How to recompile a decompiled .APK? - Android Q&A, Help & Troubleshooting

How to recompile a decomiled .APK?

Well, i'm not good in these stuff but if you decompiled it with a zip software, maybe you can rezip all folders and archives into a zip file and then change the extension from .zip to .apk.

dj4v1n45h said:
How to recompile a decomiled .APK?
Click to expand...
Click to collapse
Don't start one thread to ask how to decompile and then start another to ask how to recompile.
http://forum.xda-developers.com/showthread.php?t=2295002

Related

Edit "FrameWork-res.apk"?

How to edit framework-res.apk? And the compile it back again?
I want to make a few changes....
[email protected] said:
How to edit framework-res.apk? And the compile it back again?
I want to make a few changes....
Click to expand...
Click to collapse
Open it in 7zip & replace respective files with ur edited one..
If u wanna edit those xmls , then use apk manager to decompile & recompile..
Sent from my GT-I5800 using Tapatalk
[email protected] said:
How to edit framework-res.apk? And the compile it back again?
I want to make a few changes....
Click to expand...
Click to collapse
Install 7 Zip Open Archive and replace PNGs you want to change. Check for same resolution specially for files with extention .9.png they create mess if replaced improperly.
For convenience I suggest using 7Zip extract the apk. Go to folders check pngs replace as your requirement and then finally select all the folders you got after modding open archive with 7zip and drag files. It will ask to copy your files or not. Select yes. your apk is done
Thanks both of you....

[Q] Help systemUi decompile sense recent apps

Hello , i realy need help i am not able to decompile my s3 4.1.2 systemUI apk plz help .or if someone can plz do it for me i would like to have sense recent apps in it .Plz every help is much aprreciate it
update systemUi apk DOWNLOAD
Framework res.apk DOWNLOAD
If you can't decompile, then you sure won't be able to compile it back. so the files are useless
Glebun said:
If you can't decompile, then you sure won't be able to compile it back. so the files are useless
Click to expand...
Click to collapse
No the file is for someone to do it for me and get the sense recent apps in it
Mostunique99 said:
No the file is for someone to do it for me and get the sense recent apps in it
Click to expand...
Click to collapse
Why can't you decompile it, have you decompiled apk's before or is this your first attempt at this.
ag4751 said:
Why can't you decompile it, have you decompiled apk's before or is this your first attempt at this.
Click to expand...
Click to collapse
No i have put its always giving me errors
Mostunique99 said:
No i have put its always giving me errors
Click to expand...
Click to collapse
Check this then, before you decompile the apk.,
Open the apk with 7zip or whatever you normally use for zip files then look for classes.dex file, it will be in the main zip not in any sub folders, if there is one this will be causing the decompile error so extract it to your PC then delete it from the apk.
Now decompile the apk, do what you want, compile the apk then put the classes.dex file you extracted to your PC back in the apk.
ag4751 said:
Check this then, before you decompile the apk.,
Open the apk with 7zip or whatever you normally use for zip files then look for classes.dex file, it will be in the main zip not in any sub folders, if there is one this will be causing the decompile error so extract it to your PC then delete it from the apk.
Now decompile the apk, do what you want, compile the apk then put the classes.dex file you extracted to your PC back in the apk.
Click to expand...
Click to collapse
Thank you very much worked out perfectly :good:

Fail editing SystemUI.apk

Hi, i'm trying to edit SystemUI but the file is corrupted or something, when compile i get unsupported method error, and 7zip can't delete files or add files.
What can i do?
Thank you
potaturrias said:
Hi, i'm trying to edit SystemUI but the file is corrupted or something, when compile i get unsupported method error, and 7zip can't delete files or add files.
What can i do?
Thank you
Click to expand...
Click to collapse
Use apktool to decompile and recompile. Using something like 7zip wont decompile to apk properly.
Heres a guide on how to use apktool http://forum.xda-developers.com/showthread.php?t=1891686
chromium96 said:
Use apktool to decompile and recompile. Using something like 7zip wont decompile to apk properly.
Heres a guide on how to use apktool http://forum.xda-developers.com/showthread.php?t=1891686
Click to expand...
Click to collapse
I always use apktool. When apktool fails 7zip fails too, maybe the apk was a bad compression or something.
I'll try with files from stock rom instead modified rom.
Thank you

[Q] Decompiling APK's with renaming

Can you decompile APK with just renameing it to the ZIP or RAR files.
Then you can extract it and you get all the files inside the apk.
then you can edit xml files and simply rename it back to APK.
I was just wondering is this right and safe way or you shouldn't decompile it like that?

[Q] Edit apk with ODEX file

Hi,
I have an apk that I'd like to edit, just some simple icon and xml changes. I have decompiled, edited and signed with apktool so I'm confident everything there is ok. Only problem is, it won't install.
The apk does have a odex file with it. Is it possible to edit this apk or am I wasting my time?
syztemlord said:
Hi,
I have an apk that I'd like to edit, just some simple icon and xml changes. I have decompiled, edited and signed with apktool so I'm confident everything there is ok. Only problem is, it won't install.
The apk does have a odex file with it. Is it possible to edit this apk or am I wasting my time?
Click to expand...
Click to collapse
if it is system file than place it in system/app
and set permissions and reboot
Does that include the original odex file or should I just dump it after I've edited the apk?
syztemlord said:
Does that include the original odex file or should I just dump it after I've edited the apk?
Click to expand...
Click to collapse
it work only if you have deodex it
Hello, I am running into the same problem. I want to change a setting in an apk. But I'm confused with the odex file accompanied with it.
Can I unpack an apk, change it. Rebuild it and put it back?
Do I also have to unpack the odex file and rebuild it and put it back?
I can see a lot of information about apk editing. But I can't find tools to edit an Odex?
I think I'm also confused about the odex/deodex. I just googled everything about this subject and got the tools studioandroid, but it doesn't contain anything with editing odex files....
I hope someone can help me out!
Thanks!!

Categories

Resources