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
Related
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....
I have been trying to edit some xml files in .apks I found hundreds of threads on it but they all say use apks manager or apks tool or apks edit I have tried all of them I can decompile the apks open xmls in hxd and edit but when I recompile they force close and if I edit framework-res.apk com.android.phone force closes can sumone pls help me out. Thanks
oakieville said:
I have been trying to edit some xml files in .apks I found hundreds of threads on it but they all say use apks manager or apks tool or apks edit I have tried all of them I can decompile the apks open xmls in hxd and edit but when I recompile they force close and if I edit framework-res.apk com.android.phone force closes can sumone pls help me out. Thanks
Click to expand...
Click to collapse
use notepad++ to edit the xml after you use apk manger or apk tools to decompile tha apk.
ok havent tried notepad++ will try after editing just recompile,zipalign and sign if it not a system app or do i got that wrong
Decompile original apks, not modified or themed ones.
Sent from my PG86100 using xda premium
Any tips how to recompile without error?
IceThor said:
Any tips how to recompile without error?
Click to expand...
Click to collapse
Use apk multi tool, and search xda.
Sent from my Xperia Ray using xda premium
Simple..
Install apktool and apkmanager ics....
Install all framework apk files with apktool and then decompile/compile with apkmanager
Sent from my WT19i using xda premium
Well maybe you are doing some mistakes... Or maybe you just need to install files with apktool, or delete files from keep if you are on apkmanager, i don't know, lots of methods
Tried all but failed it says failed to recompile due to img etc
IceThor said:
Tried all but failed it says failed to recompile due to img etc
Click to expand...
Click to collapse
There are so many guides in xda for editing/compiling apks...
guide 1
guide 2
guide 3
guide 4
You must install java jdk
And you must "install" framework for decompiling from that rom, that you edit:
copy out frmework-res.apk and systemUI.apk from your rom and move it to C:/apktool folder
then run a command:
Code:
apktool if framework-res.apk
this will install framework files on pc
then run a command again
Code:
apktool if systemUI.apk
this will install systemUI files on pc.
Now you can decompile apks with
apk multi tool
it's easy to use
be careful with *.9.png editing! (search xda)
the *.xml files you must edit with notepad++ (free on web)
if you choose compile system apk, then chose y, and you will have a keep folder, if you decompiled a non-system apk, choose 1
("choose unsigned apk using keep folder option")
if you edited the png files, then delete in keep folder the *.png files what you edited.
if you edit any *.xml file then in keep folder delete the resources.arsc file
The non-system apk's you must sign with 13. (you will have first unsisgned-APPNAME.apk, then with sign signed_APPNAME.apk)
The system apks are signed with original sign, (you will have system-APPNAME.apk
Thanks Wechy77 i will try
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:
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