Hi, just have a question regarding modding apks inside /app in odexed roms.
Have read a few threads regarding deodexing and decompiling apks, and just wish to clarify one thing:
For apks which have a corresponding odex file, is it possible to modify them without deodexing the whole rom? Intend to edit some xml files in the Contacts.apk file but wasn't sure of the exact procedure.
Here's what I tried:
1. Used xultimate to deodex
2. Used apktool to decompile apk
3. Edited xml
4. Used apktool to compile
5. Added META-INF and AndroidManifest.xml from original apk using 7zip
6. Deleted Contacts.apk and Contacts.odex
7. Copied Contacts.apk over
Thanks in advance!
ock said:
Hi, just have a question regarding modding apks inside /app in odexed roms.
(...)
For apks which have a corresponding odex file, is it possible to modify them without deodexing the whole rom? Intend to edit some xml files in the Contacts.apk file but wasn't sure of the exact procedure.
Click to expand...
Click to collapse
+1
I am also interested in the answer ...
I would like to theme some widgets and theme the statusbar on a stock ROM. I am not sure is it possible ? And what is the procedure with the odexed files ?
Related
guys i'm trying to add lockscreens to the rom i'm using, I decompiled classes.dex from framework jar of a theme which have the lockscreens i want, after decompiling classes.dex with baksmali i get 4 folders:
-android
-com
-java
and -siso
which files are the ones that contains the information about lockscreens?
edit*
decompiling android-policy jar i found the files of the lockscreens. what more do i need?
any help would be appreciated and I hope somebody can help me
thanks
i've search for a tutorial or something that help me, but came with nothing, thats why I post this
Hello, I want to edit the SystemUI.apk from GamersROM v6.3 (Odexed rom) and so far I managed to decompile the apk with apktool, edit it and rebuild it
I haven't touched the odex file
If I just replace the apk I lose my topbar entirely.
What can I do now, can anyone help me?
Nevermind, Fond a way to do it
I am trying to modify XMLs of Jelly Bean Contacts.apk. Using apktool that has been used for ICS and other Jelly Bean apks, I can decompile and then recomplie it without any error. However, the recompiled Contacts.apk would not work in cell phone, showing a message "Unfortunately, Contacts has stopped!".
To simplify the problem, I simply do decompiling and then recompiling without any modifications. I found that the size of resources.arsc has been changed from 1480 KB to 1525 KB. The new Contacts.apk causes FC!
Note: Files in smali folder can still be modified. After editing, use apktool to recompile and create a new apk. Then use WinRAR or 7zp to drag the newly created classes.dex into the original Contacts.apk. Such a "modified" Contacts.apk works properly. Note here that we did not modify resources.arsc.
This problem is only related to resources.arsc!! XMLs cannot be recompiled!!
Does anybody have the same problem? Do you know how to solve this problem? Any solutions or suggestions are appreciated.
Did anybody try this?
Are you all ok with modifying Contacts.apk?
With the current apktool jar file you can not edit any XML in the contacts apk. It has to be done in source code
Sent from the BatCave
zelendel said:
With the current apktool jar file you can not edit any XML in the contacts apk. It has to be done in source code
Sent from the BatCave
Click to expand...
Click to collapse
Thank you for your reply. The question is why we can edit XML in other apks except Contacts.apk.
Is there any magic?
framework-res.apk, Settings.apk, SystemUI.apk, Phone.apk are all ok without any problem.
iBotPeaches, the author of apktool, wrote: "Looks like we have new resource type. T9Map. Will have to code support for it. Its just loosing it on rebuild."
See discussions at: https://github.com/iBotPeaches/brut.apktool/issues/11
Hi please can anybody help:
So I decompiled the framework-res.apk with apk-tool and did some changes in res/values/arrays ...when I compiled everything this probleme was coming: In the original framework-res.apk all values folders are hidden, in my re-compiled ones they are there
I tried to flash the rom - bootloop ... can anybody teach me right compiling of the framework-res.apk?
Thank you
Flo0008 said:
Hi please can anybody help:
So I decompiled the framework-res.apk with apk-tool and did some changes in res/values/arrays ...when I compiled everything this probleme was coming: In the original framework-res.apk all values folders are hidden, in my re-compiled ones they are there
I tried to flash the rom - bootloop ... can anybody teach me right compiling of the framework-res.apk?
Thank you
Click to expand...
Click to collapse
Take Meta-inf folder from original apk and copy it to new one. Open apks with 7zip or winrar. And I think that you need to copy AndroidManifest too.
Sent from my GT-I9070 using Tapatalk
Does anyone know how to remove from the system tray carrier name ?
If you can edit the systemui.apk after deodexing, it should be easy for you.
Unfortunately it was not possible for me, to deodex our systemui.apk.
The downloadable edited systemui.apk of the p6 is running, if you rename the original systemui.apk and systemui.odex.
But after that you will miss some taskbar functions.
Tippfehler said:
If you can edit the systemui.apk after deodexing, it should be easy for you.
Unfortunately it was not possible for me, to deodex our systemui.apk.
The downloadable edited systemui.apk of the p6 is running, if you rename the original systemui.apk and systemui.odex.
But after that you will miss some taskbar functions.
Click to expand...
Click to collapse
Thanks, but no detailed instructions can not do it .
Hide Operator P6 (You can test apk from #10):
http://forum.xda-developers.com/showthread.php?t=2776681
If you google for these words, you can find instructions:
systemui.apk status_bar.xml TextView paddingLeft
Tippfehler said:
Hide Operator P6 (You can test apk from #10):
http://forum.xda-developers.com/showthread.php?t=2776681
If you google for these words, you can find instructions:
systemui.apk status_bar.xml TextView paddingLeft
Click to expand...
Click to collapse
Its working, thanks:good: I used the apk from first post
I made a simple tutorial here :
http://forum.xda-developers.com/ascend-p7/development/guide-how-to-remove-carrier-tray-t2843461
The systemui.apk from #10 has a house instead of a huawei logo for home.
If you donĀ“t rename systemui.odex, you will get a lot of systemui error messages and it would be difficult, to fix it.
The better way is to edit the original systemui.apk.
Since this is working well, am I able to deodex this SystemUI and make my own changes? Couldn't deodex the original SystemUI.
...
i cannot get it working. all i see is black window when i restart. what deodoxing means? wut
i tried this: http://forum.xda-developers.com/ascend-p7/development/guide-how-to-remove-carrier-tray-t2843461
deodex: http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
deodex tool: http://forum.xda-developers.com/ascend-p7/general/guide-stock-rom-flashables-wip-t2836655