Theming android... - General Questions and Answers

I'm currently trying to make a theme for my motorola xoom. I could theme framework res without problems...i have decompiled it edited what i want recompiled and then put the edited res assign and resources.arsc with the manifest from original framework and then ziped it and renamed to apk...and it worked...but i cannot edit any non framework apk...my system say application not installed and im using the same method as for framework.....also what is classes.dex file? should i leave it untouched or change it to that one apktool made?

Related

[Q] decompiling androidmanifest.xml

I'm fooling with an sgsii apk that works on Vibrant and I9000 but not on 4g -- anyone know of a PC application that will decompile the AndroidManifest.xml file so it can be edited?
nazcalito said:
I'm fooling with an sgsii apk that works on Vibrant and I9000 but not on 4g -- anyone know of a PC application that will decompile the AndroidManifest.xml file so it can be edited?
Click to expand...
Click to collapse
Look into apkmanager
Sent from my SGH-T959V using Tapatalk
Don't know if it will work or not but try using the "how to decompile an apk" guide that I posted
Sent from my SGH-T959V using XDA App
it will work but for that you need to decompile a working classes dex file one from the origonal apk and one from the sgs4g u also need to delete out the resources arsc and let it compile a new one the new_classes.dex file (the one from the sgs4g) needs to be put into the modified apk file and renamed from New_classes.dex to classes.dex
You're not saying just replace the classes.dex and the resources.arsc files with ones from the 4g? I can already rename an apk file to zip and unzip the thing, in fact I've replaced icons and stuff in apps with no problem
nazcalito said:
You're not saying just replace the classes.dex and the resources.arsc files with ones from the 4g? I can already rename an apk file to zip and unzip the thing, in fact I've replaced icons and stuff in apps with no problem
Click to expand...
Click to collapse
images are one thng no the classes dex needs to be decompiled and recompiled (after your edits) for the 4g.. They are not that interchangeable
the resources will be rebuilt when u recompile the apk so thats not a really big issue
ok the app is the digital clock from sgs II. This is a picture.
I know there are lots of digital clock apps around but I don't like any of them.
Plans were not to change app at all but just port it.
Hmm now I'm confused. The apktool decompiles the classes.dex and resources.arsc files and I end up with smali files, so I guess I should re-read the thread on porting roms, aha but what 4g classes.dex file do I use, something from an apk like this one?
I have gone through the smali files and there is nothing about storage. I'm not sure why the stock app won't install without modification.
I am sure all you need to do is get a key and sign the app. Not sure how to do it though because I don't build apps, I mod (system) apps only, and test key sign zips.

[Q] Issue decompiling apk with apk manager

I have apk manager 5.02 which I can de-compile framework and recompile with out any issues.
I downloaded the stock 2.08 sense 3.5 rom and used explore2fs to extract the contents of the system.img file. From there I then put htcdialer.apk file into apk manager to decompile it and I get the following errors:
See attached log file as it is too big to put into the forum.
Any ideas why the apk file is not decompiling?
I dont hink that apkmanager can correctly decompile sense 3.5 apks, I could be wrong but i could never get them to work properly
If APK Manager and Tool cant extract even GB ROM apks is there a way of extracting and editing xml files? I tried 7zip and I can edit images but XML's do not extract correctly
Really interested to see how to edit XML files if APK Manager and APK Tool cant decode the APK's.
Found out what I was doing wrong!! When decompiling the apk file I wasn't adding the dependancy. So for example when I was decompiling the systemui.apk, I was simply using option 9 to decompile which is not right!
What you need to do is copy the systemui.apk file in to place-apk-here-for-modding
Then find the dependency framework so for example the systemui.apk depends on com.htc.recources.apk. So pull this from your phone on to the desktop and then use option 10 to decompile. It will then prompt you for the dependancy apk file. Drag that on to the command window and press enter and it decompiles! It is easy when you know how
Also when you recompile you will probably get errors...You need to take the newly created classes.dex and drop it into the original apk then push to your phone
Where can I find the dependency file??
I got the same problem when I try to Decompile any system app, like "SystemUI.apk" or "Settings.apk" ...etc
Now I understand from you that I need a dependency file, Where can I get it??
I use Samsung Galaxy SL (I9003), Rooted and Deodxed
i use samsung galaxy mini. can i use apkmanager to decompile any apk for my device......by pressing 9 directly.....? i want to decompile settings.apk....thnx in advance......

Can't recompile settings.apk

Sorry if this is a duplicate or in the wrong place, but i cant find any solutions.
I am having trouble recompiling the settings.apk. I decompile it without problems but the apk can't recompile unless I paste in the .arsc file from the stock apk (by unziping). The problem is that when I edit the xml, it needs to make a new .arsc file since I edited xml within the layout folder.
I am using apktool and have had no problems with other apk files. This is on the Samsung galaxy player 5.0 USA.
Another note, if I decompile, put in the resources.arsc file, and recompile, the new apk file is smaller. In addition, if I unzip the recompiled apk I can edit the xml w/o a problem. This is weird because when I unzip the stock settings.apk the xml files are un-readable.
Any Ideas about what I am doing wrong?
Sorry for being a noob.
tchen510 said:
Sorry if this is a duplicate or in the wrong place, but i cant find any solutions.
I am having trouble recompiling the settings.apk. I decompile it without problems but the apk can't recompile unless I paste in the .arsc file from the stock apk (by unziping). The problem is that when I edit the xml, it needs to make a new .arsc file since I edited xml within the layout folder.
I am using apktool and have had no problems with other apk files. This is on the Samsung galaxy player 5.0 USA.
Another note, if I decompile, put in the resources.arsc file, and recompile, the new apk file is smaller. In addition, if I unzip the recompiled apk I can edit the xml w/o a problem. This is weird because when I unzip the stock settings.apk the xml files are un-readable.
Any Ideas about what I am doing wrong?
Sorry for being a noob.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2251719

Help with recompile framework-res.apk

I decompiled the apk and it brought up a framework-res folder. I tried a few ways to recompile but I never see the recompiled apk what am I doing wrong

[Q] The resources.arsc of framework-res is not recompiling with APK Multitool

Hi there
I am facing a strange problem. I am decompiling resources.arsc using APK Multitool (from official site) with no problems. I then change a few colors in res\values\colors.xml. Then I recompile and delete the resources.arsc from the keep folder as instructed. The apk colpiles ok but to my surprise there is no change in the colors. I decompile it again only to find that the changes i made have been reverted.
Amusingly enough I tried APK Multitool Stable Release from this thread http://forum.xda-developers.com/showthread.php?t=2341351 And it recompiles fine and even the resources.arsc is changes (via time stamp and size) but the framework-res when pushed through adb causes bootloop.
I am stuck at this point. Any help would be greatly appreciated.
I am on a Micormax A52 with Gingerbread 2.3.7 (Stock).
Thank You

Categories

Resources