Odex and repacking - myTouch 3G, Magic Android Development

Hi there,
I has disassembled an odex file and changed something. As I understand I can't make it an odex again but I must make a dex file and put this with the filename classes.dex in the apk file.
Can I just put it in the apk file and just sign the package again or do I need first to convert the binary xml files from the apk to normal files and then pack the apk file back?
Thanks

Related

How to create back apk after unzipping it?

I have edited an apk after i unzipped it. But now i have problem to merge it back to apk. Can somebody teach me the steps to do this? Thanks.
I think an .apk is just a zip file basically so try to zip your files again and change the extension from .zip to .apk
i have tried but the apk file cannot be installed in my phone.
Probably because the file was signed and you did not sign it with the correct key again.

[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

How to make .APK from file have been extracted

i have been extract the Whatsapp.apk into file to edit some of file and i now i want to make it back to APK, i have been trying to make it .rar and then rename it to.apk but always error,thank you alot
Repack it to .zip and then rename it to. apk.. It'll work as a system app but if u want it to work like a regular downloaded app,u have to sign the apk..
you will need a signapk program to sign it...check here http://forum.xda-developers.com/showthread.php?t=1241952&page=2
done i found the trick

[Q] How to make flashable zip to replace a file inside an apk?

Just want to know this. Because it is really annoying to decompress and recompress apk file again and again just to edit one file inside the apk.
Thanks

Categories

Resources