[Solved] Decompiling Moto X4 - Moto X4 Questions & Answers

I'm trying to help someone out with a center clock mod but I get an error when decompiling the SystemUI.apk. Are there any known issues with apktool and the Moto X4?

Never mind. I figured out how to decompile the SystemUI.apk by having apktool ignore the framework-res.apk errors.

Related

Help, any alternative to apktool

Hi can anyone suggest an alternative tool for apktool. It just doesn't work for me. Whatever I do either gives compiling errors or just a bootloop. Thanks guys.
It's nice to know I'm not the only one. Anything past extract optimize and zip is useless for me. I have never had it actually compile an .apk without an error.
I'm having serious problems compiling the framework-res from a CM6.1 based ROM. It decompiles fine, but won't recompile I get hundreds of errors about missing referances.
I only wanna edit a few XML's :sad:
Sent from my HTC Hero using Tapatalk
l0st.prophet said:
I'm having serious problems compiling the framework-res from a CM6.1 based ROM. It decompiles fine, but won't recompile I get hundreds of errors about missing referances. I only wanna edit a few XML's :sad: Sent from my HTC Hero using Tapatalk
Click to expand...
Click to collapse
Which xmls do you want to edit, and what are you wanting to change?
dean.d said:
Which xmls do you want to edit, and what are you wanting to change?
Click to expand...
Click to collapse
Thanks for replying, but I worked it out. I had some dodgy .9.png's that were breaking the compile, so I just had to remove them before compiling.
For anyone else having trouble, check the logs after you decompile to see if there are any messages about .9.pngs. If there are, remove them from the decompiled folder, compile when you are finished, then just add the .9.png's back in afterwards with WinRAR.
I was tryna change the color of the text and the border in the bottom popup menu for my Gingerbread theme
l0st.prophet said:
Thanks for replying, but I worked it out. I had some dodgy .9.png's that were breaking the compile, so I just had to remove them before compiling.
For anyone else having trouble, check the logs after you decompile to see if there are any messages about .9.pngs. If there are, remove them from the decompiled folder, compile when you are finished, then just add the .9.png's back in afterwards with WinRAR.
I was tryna change the color of the text and the border in the bottom popup menu for my Gingerbread theme
Click to expand...
Click to collapse
The reason that happens is the original "dev" who themed the framework did not decompile/modify/recompile. He merely dragged and dropped the modified .9.png
Hence when u decompile, apktool cannot find the necessarry data within resources.arsc to decompile the .9.png and hence when u go to recompile, it complains. Ur safest bet is to always decompile an apk as close to stock as possible.
Where do you place your framework-res.apk I placed mine in the platform tools folder but apktool can not find it

Help Editing SystemUI.XML

I have tried for the last day trying to get SystemUI.apk De-compiled so I can edit the Status bar.xml to move clock to center of status bar...Every time I try to De-compile in apktool or apkmanager I get errors..
Can someone that knows how to De-compile / Recompile and edit the SystemUI.apk to have clock in center.Do this for me and upload back here...
I am at my wits end and just would like to have this to finish off my theme....
SystemUI.Apk
http://www.mediafire.com/?j2fw13at1i1weox
Framework-res.Apk
http://www.mediafire.com/?75i5i6ictrjkx6r
Will give Thanks for any help giving....

How to modify Jelly Bean Contacts.ap?

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

decompile SystemUI.apk please :(

hey guys iam trying to modify the status bar of the GB rom and i found that i cant edit the .xml files by extracting SystemUI.apk by renaming it to SystemUI.rar and then extracting it si i tried to decompile the SystemUI.apk but i faild so please if can anyone decompile the attached SystemUI.apk then upload it decompiled for me please
Best regards ..
GUIDE/TUT:
http://forum.xda-developers.com/showthread.php?t=2014062
http://forum.xda-developers.com/showthread.php?t=2073725
I following that guide.
I attach decomplied your SystemUI file. This is first time i do it. So tell me if it work.

[Q] Decompile and recompile apk

hello i am trying to edit my SystemUI.apk and when i decompile it i keep getting an errors when i come to re compile it :/
anyone have a good tutorial/program to decompile and recompile apk's
Thanks
MRL3GS

Categories

Resources