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!!
Related
Hi i am trying to edit the framework res apk so i can change the text colour and the themed clock colour. I can decompile with apktool and change the colors.xml but after compiling framework res i just get stuck in a bootloop. I have tried just copying the reaources file to my original framework but still bootloops. I have searched google and here and finding it hard to find a solution. One thing i noticed in 7zip it says that for resources the OS is FAT but on the edited one it is UNIX as well as being a smaller file when compressed. If anyone can help that will be great.* Thanks
Sent from my GT-I9100 using XDA App
sign the apk as a system app.
no you shouldn't have to sign it just rename unsigned framework-res.apk to framework-res.apk and reflash to phone it shouldn't bootloop when you compiled did you select yes to system file and yes to copy everything then delete what was in keep file? If its an XML when you delete from keep file you have to delete the file you modified also.
txr33 said:
One thing i noticed in 7zip it says that for resources the OS is FAT but on the edited one it is UNIX as well as being a smaller file when compressed.
Click to expand...
Click to collapse
Did you choose Store as the compression method when adding the Resource file to your original apk?
mattfox27 said:
no you shouldn't have to sign it just rename unsigned framework-res.apk to framework-res.apk and reflash to phone it shouldn't bootloop when you compiled did you select yes to system file and yes to copy everything then delete what was in keep file? If its an XML when you delete from keep file you have to delete the file you modified also.
Click to expand...
Click to collapse
I originally just renamed mine and got a bootloop. Signed it as a system apk and stuck it in an update.zip and flashed it and it worked. Also, as the above post mentions, store must be selected as the compression method.
I am sure this would be a WTF for some people thats why I'm asking in the Q&A section.
I've noticed that .apk files can be renamed to .rar and, once decompressed, we can find files in a normal-structure in their real format (images, sounds, xmls, etc).
So I wonder, let's say, we want to modify one of the images inside the .apk. We would change it for another with the same name/size so no probs with that.
Could we decompress the .apk as a .rar, change the file, recompress it to a .rar and rename it to .apk, or we would **** permissions or something in the way?
Otherwise it needs some compiler or something I guess right? But then I wouldn't understand why it can be plainly decompressed as a .rar..
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
UpInTheAir said:
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
Click to expand...
Click to collapse
Thanks a lot mate! Very appreciated
I'm searching for a simple way how can I deodex any rom. My idea is to rename the *.odex file to classes.dex and put it into the apk/jar archive using a simple archive manager. Will this work? I don't like any scripts to do that, will make it manual before flashing the rom. And need I to sign the apk/jar files (I think the normal apk files need that, but what witch the framework? Need it too to be resigned?).
no use xultimate
Sent from my GT-S5830 using xda premium
sometimes scripts is better to make your life easier
btw try dsixda android kitchen. its my favorite tool/script to deodex
Hmm ok will try first the dsixda android kitchen, I see it has version for Linux. But I will understand how this script works?
EDIT
Ok, now I see, it uses baksmali and samli to deodex. Thanks to all, will test it tomorrow.
Ok, after using the dsixda android kitchen and deodexing the framework (and SystemUI.apk, not more) and flashing the ROM I got an bootloop (wipe doesn't help). Her is my logcat http://pastebin.com/DtfChnPp , can some help, what did I wrong? I have only after deodexing apply the volume mod and the Pdroid patch, I am working on this rom http://forum.xda-developers.com/showthread.php?t=1360889
try this
download xultimate, theres a thread about it somewhere. unzip it and connect your phone with the rom thats .odex http://forum.xda-developers.com/show....php?t=1360889
next
once connected click on opition 5 which will pull all the apps and framework files from your phone and will deodex all the files and store them in the folder called "done_app" and "done_framework" may take up to 15mins
next
change the folder names of the done folders to "app" and "framework" and have both folders and the rom.zip that you installed pre at hand, in your case
http://forum.xda-developers.com/show....php?t=1360889
Then open the rom.zip up with 7zip and then click on system folder and drop "app" and "framework" folders into the rom.zip so your swaping the the folders with the .odex files for the deoxed ones you just did. put it on sd-card. wipe, mount system and data and install.
correct me if im wrong.
hope this works.
Hi everyone,
From my understanding, if we want to change the pngs in an apk, we can simply open it with 7zip, then replace the pngs, it's done.
I took EventStreamPluginCallLog.apk from arc s which is updated to ICS.
The apk can be installed in xperia s and it is working fine.
However, when I change the png named icon in res > drawable-hdpi > icon.png
The apk can no longer be installed.
So I go with decompiling and recompiling the apk using apktool, no error shown but I still can't install it
Any idea? Thanks
did you sign it after recompiling?
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
realfelix said:
did you sign it after recompiling?
Click to expand...
Click to collapse
I thought the same even it says no need for system apk, I still do it and get the same problem, can't install
Felimenta97 said:
System apps don't need to be signed. What i did for system apps is:
Decompile app
Replace png
Recompile app
Use TickleMyAndroid -> Prepare files for pushing.
Click to expand...
Click to collapse
I tried everything I know. Apk Multi Tool, simply apktool only, direct replace PNG with 7zip (compression changed to deflate), direct replace with winrar (compression method retained as store), it just doesn't want to install.
I have tried TickyMyAndroid, I am not sure if I done thing correctly but I see no error when recompiling yet can't be installed. My goodness. Time to forget about this stuff
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: