Decompile Settings.apk - GB
Started By jmiller148, Mar 31 2011 08:35 AM
87 replies to this topic
#1 OFFLINEPosted 31 March 2011 - 08:35 AM
Anyone able to decompile the GB Settings.apk with Apkmanager 4.9. I keep getting errors.
#2 OFFLINEPosted 31 March 2011 - 01:14 PM
Yeah, neither can I. Got a bunch of unknown source and unable to decode attr values errors.
#3 OFFLINEPosted 31 March 2011 - 03:07 PM
Thanks for the response. I guess I need yo do some more reading.
Sent via DX #4 OFFLINEPosted 31 March 2011 - 03:32 PM
No problem. If you looking to theme it, you can extract the apk and edit the images. Won't have access to everything but something is better than nothing.
#5 OFFLINEPosted 31 March 2011 - 04:25 PM
I just like to reorganize the maim menu. Oh well. It will get figured out sooner or later.
Sent via DX #6 OFFLINEPosted 31 March 2011 - 05:55 PM
You have to add all of the framework resource apks to apktool. Add framework-res.apk, moto-res.apk, blur-res.apk and SystemUI.apk. If you're using apkmanager, do this in /apkmanager/other. Then it will decompile. However, I haven't been able to get a recompiled version to work yet. It might have something to do with the GB SDK changing some of the string formats.
Example apktool.jar if framework-res.apk #7 OFFLINEPosted 31 March 2011 - 08:21 PM
I'm not sure what my problem was earlier, but I've got it working now. Managed to do a quick inversion too. As long as you install the extra resource files, you should be good to go.
Attached Files#8 OFFLINEPosted 31 March 2011 - 09:04 PM unkleduke said: I'm not sure what my problem was earlier, but I've got it working now. Managed to do a quick inversion too. As long as you install the extra resource files, you should be good to go. [ATTACH=CONFIG]1541[/ATTACH] Could you send me Settings.apk with just the inversion? I've done it a few times before but just dont have the patience to do it lol. I wanna get my theme released by this weekend and my custom settings icons wont look right with the light background. :) #9 OFFLINEPosted 01 April 2011 - 03:02 AM
Sure Carl, I'm a fan your stuff. Remember you'll have to invert the call settings, battery manager, and bua in their respective apks.
[ATTACH]1542[/ATTACH] UPDATE! Attention! The apk has some bugs. Only use it as a reference. If I get a chance to fix it, I'll post a proper version. Edited by unkleduke, 01 April 2011 - 06:05 AM. #10 OFFLINEPosted 01 April 2011 - 11:22 AM
Thanks for the answer. Ill get that done.
EDIT: Worked like a charm. No recompile though. THANKS AGAIN! Sent via DX Edited by jmiller148, 01 April 2011 - 11:55 AM. #11 OFFLINEPosted 02 April 2011 - 05:42 AM
Tried it at home this morning and got it to recompile without a problem.
Sent via DX #12 OFFLINEPosted 02 April 2011 - 05:51 AM
Great! Now I'm working on the dialer and contacts apks. What a pain! I've been able to invert some of the white menus (call settings is done) with hex edits, but I'd rather be able to do a clean decompile/recompile. Let me know if anyone has any luck with this. Blur is such a pain for themers!
#13 OFFLINEPosted 03 April 2011 - 11:35 AM
I see Moto/Google moved alot of stuff around in GB.
Some of the xmls that used to be in framework are now in SystemUI. Notification area text colors are what I was trying to edit and they used to be in the statusbar.xml and statusbar_latest_content.xml...etc...which was in framework... Now its moved to SystemUI.apk..... Fortunately I just copied the xmls from an old theme to the GB apks and it worked out!! #14 OFFLINEPosted 03 April 2011 - 08:32 PM
I stand corrected. Using the xmls from a Froyo theme did not work. Back to square one.
I can't get SystemUI.apk to decompile without an error. And what are the extra resources that you mentioned above, unkleduke? I saw over at xda that some people on HTC devices had to use some extra resource in one of the folders as well. Whats that about? #15 OFFLINEPosted 04 April 2011 - 11:31 AM
There are 4 files (that I know of) that contain resources. blur-res.apk, moto-res.apk, framework-res.apk, SystemUI.apk. Apktool needs to reference these files in order to decompile/compile properly. Go to the same folder that apktool is in (If you're using apkmanager, it's in /other). From the command line type:
java -jar apktool.jar if framework-res.apk Do this for each of the 4 resource files. Then you'll be able to decompile/compile any of the system apks. However, a few of the apks still won't recompile properly (BlurPhone and BlurContacts for example). I haven't figured out the cause of this issue yet. #16 OFFLINEPosted 04 April 2011 - 03:16 PM
Yeah i figured it out last night. I did it a bit differently though . I actually dragged the apk to the cmd box when it asked for the resource file. Just having in the folders didnt allow me to do anything. Got everything the way i need for my theme now except for the dialer. Ill check that out tonight and let ya know if I have any success
Are you a:
Rooted Droid Bionic owner? Don't turn off USB Debugging until the SBF comes out. Trust me on this one! #17 OFFLINEPosted 06 April 2011 - 03:01 PM unkleduke said: I'm not sure what my problem was earlier, but I've got it working now. Managed to do a quick inversion too. As long as you install the extra resource files, you should be good to go. [ATTACH=CONFIG]1541[/ATTACH] If you don't mind, what did you mod to invert the colors of the settings menu (black background and white text)? I tried some xml edits and it didn't do anything :confused #18 OFFLINEPosted 06 April 2011 - 05:02 PM
The main edit is changing AndroidManifest.xml
application android:theme="@android:style/Theme.Light" to application android:theme="@android:style/Theme" *This causes a black-on-black text issue in Manage Applications lists. I haven't figured how to fix this yet. *Not all menus in settings are controlled by Settings.apk. Backup Assistant, Call Settings, Battery etc. are all their own apks. #19 OFFLINEPosted 06 April 2011 - 06:14 PM unkleduke said: The main edit is changing AndroidManifest.xml application android:theme="@android:style/Theme.Light" to application android:theme="@android:style/Theme" *This causes a black-on-black text issue in Manage Applications lists. I haven't figured how to fix this yet. *Not all menus in settings are controlled by Settings.apk. Backup Assistant, Call Settings, Battery etc. are all their own apks. I think I've got it, check it out: ![]() ![]() I did like you said in AndroidManifest, but I changed all the "Theme.Light" entries to "Theme.Black". I also made some changes in the "Values" folder; there's an entry in styles.xml that I changed from "Theme.Light" to "Theme.Black". In colors.xml I changed <item type="color" name="text_color">@android:color/black</item> to <item type="color" name="text_color">#ffffffff</item> Edited by bouchigo, 06 April 2011 - 06:16 PM. #20 OFFLINEPosted 07 April 2011 - 05:22 AM
Nice job. I believe it was the edit in colors.xml I was looking for. Thanks.
On another note, I solved an old apktool.jar issue when compiling some blur apks. Now I can recompile blurphone and any other blur apk w/o error. Just edit the apktool.yml so that the framework ids are listed in numerical order. 1 user(s) are reading this topic0 members, 1 guests, 0 anonymous users |
||