System app Contacts (Phonebook.apk) decompiling and recompiling - Xperia Z3 Compact Q&A, Help & Troubleshooting

I decompiled and recompiled Phonebook.apk without modifying anything and the app gets smaller, from 7,196 kB to 7,178 kB. What can it depend on? I used Advanced Apktool ...

Related

[Q] modding APKs and ODEX files

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 ?

i can not change the dialer

Well i am working in my own rom build based on v 20e gingerbread licked by Erestor..
.the problem is that i can't modify the phone.apk....i decompile without any problem....change the xml and the png's and recompile again without any errors...i install the apk and the dialer it is the same like the stock one.....
Somebody can help me....how can change the dialer changing some png and some xml...
All clear....the png and xml are in contacts.apk....not in the phone.apk

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

Decompiling 5.5 apk's

I use VTS, for frameworks I used the following files in the framework to decompile.
com.htc.resources
framework-res.apk
phone.apk
systemUI.apk
all apk's are decompiling using this method
Haven't used vts in a while but I've never added phone.
Framework-res
Htc. Resources
SystemUi
Framework-res-htc
Sent from my EVO using Tapatalk
none
I just threw some system apk's in, and low and behold, it worked, before I did that, everything in 5.5 was throwing errors in most apk's.
I'm a theming madman, my wife gets mad I theme so much lol, but considering she's going through "life's changes" there isn't nothing else to do

[Q]Change Navigation Bar Height in [ROM][PORT][CM9.2][Touchwiz Revolutionised 5

I like ONscreen Buttons... So i Enabled it in "Touchwiz Revolutionised 5 by arpitkh96".. but the height is 39dip which i thought more for our phones..
I tried Decompiling nd change the navi bar Height
:
i followed this Method:
1)decompiled the framework-res.apk using apktoool ..
2)went to res folder>values folder
3)opened dimens.xml file in values folder..
4)edited these two lines:
<dimen name="navigation_bar_height">20.0dip</dimen>
<dimen name="navigation_bar_width">24.0dip</dimen>
5)Again Compiled it and the size of the framework-res.apk got reduced..
6)but i pushed it into my System folder and changed permissions..
7)after that i pushed it into framework folder..
After that my phone got struck at booting image...
Can SomeOne Help me in this....?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My Works:
NLauncherV2.0-Launcher With Toggles,Swipes ,Shortcuts,CleanUI;:http://forum.xda-developers.com/showthread.php?t=2617840
NMemo-http://forum.xda-developers.com/showthread.php?t=2625207
naresh babu said:
I like ONscreen Buttons... So i Enabled it in "Touchwiz Revolutionised 5 by arpitkh96".. but the height is 39dip which i thought more for our phones..
I tried Decompiling nd change the navi bar Height
:
i followed this Method:
1)decompiled the framework-res.apk using apktoool ..
2)went to res folder>values folder
3)opened dimens.xml file in values folder..
4)edited these two lines:
20.0dip
24.0dip
5)Again Compiled it and the size of the framework-res.apk got reduced..
6)but i pushed it into my System folder and changed permissions..
7)after that i pushed it into framework folder..
After that my phone got struck at booting image...
Can SomeOne Help me in this....?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My Works:
NLauncherV2.0-Launcher With Toggles,Swipes ,Shortcuts,CleanUI;:http://forum.xda-developers.com/showthread.php?t=2617840
NMemo-http://forum.xda-developers.com/showthread.php?t=2625207
Click to expand...
Click to collapse
It is because , you din't sign it. Do this:
open original(unmodified apk) ,modified apks with winrar and drag meta-inf folder and androidmanifest.xml from original to modified apk. Choose compression as store and flash it.
Sent from my GT-S5570 using xda premium
Venkatesh said:
It is because , you din't sign it. Do this:
open original(unmodified apk) ,modified apks with winrar and drag meta-inf folder and androidmanifest.xml from original to modified apk. Choose compression as store and flash it.
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
I will Try It Later as i m doing some work with present rom and I have to go to college.. But Thanks For the info...:laugh:
My Works:
Nlauncher-http://forum.xda-developers.com/showthread.php?t=2625863
NMemo-http://forum.xda-developers.com/showthread.php?t=2625203

Categories

Resources