Comments (39)
Hi SunnyOK, please double check:
- You are using the latest version of aapt.exe from Android 4.1 SDK.
- When you add the new resources.arsc into the original Contacts.apk, for the compression level, you choosed "store" or "no compression", etc.
from apktool.
- I used the aapt for ICS. Its size is 805KB.
- I tried all compression levels in WinRAR: Store, Fatest, Fast, Normal, Good and Best. None of them is working.
- I also decompile and then recompile Contacts.apk in linux. Decompiling and recompiling have no errors. But it does not work in phone like what I got in Windows 7.
from apktool.
Today, I use the latest version of aapt from Android 4.1 SDK (r20.0.1). Its size is 829.
Size of resources.arsc is changed, but Contacts.apk does still not work.
from apktool.
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.
from apktool.
Thank you for your reply. It gives me a new hope.
I have tried more. But I am still getting it work.
Would you please let me know which apktool.jar and aapt you are using? If possible, can you let me download your tools and have a try?
from apktool.
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.
from apktool.
Can you post the commands you are running? I will duplicate exactly then
from apktool.
Framework:
java -jar apktool.jar if framework-res.apk
Decompile:
java -Xmx64m -jar apktool.jar d Contacts.apk Contacts
Recompile:
java -Xmx64m -jar apktool.jar b Contacts New_Contacts.apk
from apktool.
aapt is from Android 4.1 SDK (r20.0.1). Its size is 829.
apktool.jar is 1.4.9.
I also tried apktool for ICS, and apktool 1.4.3 - 1.4.9.
from apktool.
Could you upload the framework-res and Contacts here?
And any other APK in the /system/framework folder
from apktool.
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.
from apktool.
Hi iBotPeaches,
Can you send me your aapt and apktool.jar for Jelly Bean when you say "It works fine for me"?
This will allow me to test in my computer directly. Thanks.
from apktool.
aapt: http://miui.connortumbleson.com/other/apktool/aapt/linux/aapt
apktool: http://miui.connortumbleson.com/other/apktool/apktool_1.4.9.jar
from apktool.
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?
from apktool.
SunnyOK, try to issue this command (put all apks and apktool.jar and aapt into one folder, cd to it):
export PATH=.:$PATH && java -jar apktool.jar d Contacts.apk
from apktool.
Hi BurgerZ,
By doing this, no improvement has been achieved. I feel hopeless.
from apktool.
Hi! Try this http://www.mediafire.com/?dkkha0pw90090j8
from apktool.
Hi, BergerZ,
Thank you. This set of aapt and apktool.jar change resources.arsc disk size from 1481 KB to 1525 KB. I simply decompile and then recompile Constants.apk without any modifications. After flashing new Contacts.apk and rebooting, I still get "Unfortunately, Contacts has stopped".
I have a question: Whether or not this problem is related to other apks in the ROM?
from apktool.
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.
from apktool.
See my apks and logcat.
I include README.txt.
http://www.mediafire.com/?tfibqtmwvvbjfjj
from apktool.
Well shit.
E/AndroidRuntime( 978): java.lang.NullPointerException
E/AndroidRuntime( 978): at com.android.contacts.dialpad.T9Search.initT9Map(T9Search.java:223)
Looks like we have new resource type. T9Map. Will have to code support for it. Its just loosing it on rebuild.
from apktool.
iBotPeaches,
Glad to know that you found the root cause. This problem has bothered me for almost 10 days. I have exhausted all posibilities and tools that I have, including their combinations. The solution is highly desired.
Thank you for looking at this issue and look forward to hearing from you for solution..
from apktool.
Hi iBotPeaches,
Is there any progress on T9Map? Can you provide apktool that I can test? Thanks.
from apktool.
Progress will be posted when done. I don't have a phone to test. There is no development until I get a phone back.
from apktool.
If you do not mind, I can test your new code in my phone.
When can you get your phone back?
from apktool.
It was sent yesterday. It should arrive in 2-4 days. Then development begins again.
from apktool.
Hi, iBotPeaches,
Any progress on development? Looking forward to testing your new apktool for handling T9Map and rebuilding Contacts.apk.
from apktool.
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.
from apktool.
We are appreciated.
from apktool.
I have tried apktool 1.4.10 today. It seems that this version od apktool does not resolve this problem associated with T9Map.
from apktool.
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.
from apktool.
Sorry for bothering you. I did read your changelog and expect a fix. Please ignore my report. Thank you.
from apktool.
I have fixed this.
from apktool.
Good news.
from apktool.
Liangyz70 from gfan found the root cause of the problem. With his method, now I can recompile Contacts.apk.
from apktool.
Can you post a link to this?
from apktool.
Apktool v1.5.0 released 20min ago fixes this
from apktool.
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.
from apktool.
Confirmed to be working with FC Contacts :) Thanks.
from apktool.
Related Issues (20)
- Unable to rebuild apk with apktool HOT 3
- [BUG] Attribute android:lStar not found HOT 1
- Please help me [BUG] HOT 1
- [BUG]How to solve the following problems when decompiling HOT 2
- [BUG] Can't recompile YouTube 1.6.21 HOT 1
- [BUG] Unable to parse '&' in AndroidManifest.xml HOT 2
- [BUG] brut.directory.PathNotExist: apktool.yml HOT 1
- [BUG]removing/moding line in smali HOT 4
- [BUG] Cannot recompile firefox HOT 2
- [BUG] Dex 040 unsupported? HOT 2
- [BUG] Error while building APK HOT 1
- thank u for looking at this this is a new thing that started happening when 6.0 came out HOT 1
- [BUG]When the assets directory contains the Assets folder, the generated apk cannot run HOT 3
- [BUG]Using aapt2 to export packages, extra spaces appear in the meta-data value in AndroidManifest HOT 1
- NEED HELP ANALYZE MY GAME APK FILE, IT'S REPORTED AS VIRUS BY GOOGLE PLAY PROTECT
- [BUG] Resources$NotFoundException for drawable when decompile and build apk HOT 1
- "error: expected enum but got (raw string) 1" HOT 1
- [BUG] Add all classes*.dex to doNotCompress HOT 4
- [BUG] Incorrect default setting of minSdkVersion HOT 2
- [BUG]Hello, I am suffering from the problem of not being able to integrate Payload with the Android application. I searched on several sites and did not find the solution, Knowing that I installed the version and it did not work every time I was asked to install 2.9.2 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apktool.