New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot modify/recompile XLMs of Jelly Bean Contacts.apk #11
Comments
Hi SunnyOK, please double check:
|
|
Today, I use the latest version of aapt from Android 4.1 SDK (r20.0.1). Its size is 829. |
I think your messing up on the re-injection of the resources.arsc file. It works fine for me. Copy the exact commands in order you are running. |
Thank you for your reply. It gives me a new hope. |
Sorry. There is a typo in my last comment. The second line should be: I have tried more. But I am still NOT getting it work. |
Can you post the commands you are running? I will duplicate exactly then |
Framework: Decompile: Recompile: |
aapt is from Android 4.1 SDK (r20.0.1). Its size is 829. |
Could you upload the framework-res and Contacts here? And any other APK in the /system/framework folder |
These is my toolkit: (aapt, apktool) and Contacts.aph and framework-res.apk. http://www.mediafire.com/?xu48ze0oj8qhe1v Note that when I use the latest aapt from Android 4.1 SDK (r20.0.1), the size of resources.arsc is correct. |
Hi iBotPeaches, |
I am sorry. I am not successful through decompiling and then recompiling Contacts.apk by using your aapt and apktool_1.4.9.jar in linux. The promlem persists. My Contacts.apk and framework-res.apk are from Jelly Bean 4.1.1 for Samsung Galaxy GT-I9000 and I897. Have you got Contacts.apk working? |
SunnyOK, try to issue this command (put all apks and apktool.jar and aapt into one folder, cd to it): |
Hi BurgerZ, By doing this, no improvement has been achieved. I feel hopeless. |
Hi! Try this http://www.mediafire.com/?dkkha0pw90090j8 |
Hi, BergerZ, |
Could you please get the logcat :o I just need to know what the error is. So I know if its a bad resource or something. |
See my apks and logcat. |
Well shit.
Looks like we have new resource type. T9Map. Will have to code support for it. Its just loosing it on rebuild. |
iBotPeaches, |
Hi iBotPeaches, |
Progress will be posted when done. I don't have a phone to test. There is no development until I get a phone back. |
If you do not mind, I can test your new code in my phone. |
It was sent yesterday. It should arrive in 2-4 days. Then development begins again. |
Hi, iBotPeaches, |
GIT is open source. You will see if I do anything. Please don't ask anything until you notice I push changes. I'm very busy and do this as a hobby. |
We are appreciated. |
I have tried apktool 1.4.10 today. It seems that this version od apktool does not resolve this problem associated with T9Map. |
ugh. Did you even read the changelog? Or the posts associated with that release? Only 2 bugs were fixed. I've literally setup Java Debuggers and stepped through this code for hours trying to track down SystemUI and T9Map problems. Haven't been able to fix this yet. I'm a full time student w/ a part time job. I work when I can. Please be patience and wait for a fix and actually read the changelog. |
Sorry for bothering you. I did read your changelog and expect a fix. Please ignore my report. Thank you. |
I have fixed this. |
Good news. |
Liangyz70 from gfan found the root cause of the problem. With his method, now I can recompile Contacts.apk. |
Can you post a link to this? |
Apktool v1.5.0 released 20min ago fixes this |
Haha, many thanks Connor for this :) I am compiling stock JB roms and got this issue today. And here's your new apktool. Amazing ;) Wiil let you know if this works for me. |
Confirmed to be working with FC Contacts :) Thanks. |
I am trying to modify XMLs of Jelly Bean Contacts.apk. Using all apktools (up to 1.4.9) 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 7zip 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.
Please fix this problem in apktool 1.4.10.
The text was updated successfully, but these errors were encountered: