Coder Social home page Coder Social logo

Comments (39)

huawuxin avatar huawuxin commented on May 3, 2024

Hi SunnyOK, please double check:

  1. You are using the latest version of aapt.exe from Android 4.1 SDK.
  2. 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.

SunnyOK avatar SunnyOK commented on May 3, 2024
  1. I used the aapt for ICS. Its size is 805KB.
  2. I tried all compression levels in WinRAR: Store, Fatest, Fast, Normal, Good and Best. None of them is working.
  3. 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.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

Can you post the commands you are running? I will duplicate exactly then

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

Could you upload the framework-res and Contacts here?

And any other APK in the /system/framework folder

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

aapt: http://miui.connortumbleson.com/other/apktool/aapt/linux/aapt
apktool: http://miui.connortumbleson.com/other/apktool/apktool_1.4.9.jar

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

BurgerZ avatar BurgerZ commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

Hi BurgerZ,

By doing this, no improvement has been achieved. I feel hopeless.

from apktool.

BurgerZ avatar BurgerZ commented on May 3, 2024

Hi! Try this http://www.mediafire.com/?dkkha0pw90090j8

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

See my apks and logcat.
I include README.txt.
http://www.mediafire.com/?tfibqtmwvvbjfjj

from apktool.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

Hi iBotPeaches,
Is there any progress on T9Map? Can you provide apktool that I can test? Thanks.

from apktool.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

If you do not mind, I can test your new code in my phone.
When can you get your phone back?

from apktool.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

It was sent yesterday. It should arrive in 2-4 days. Then development begins again.

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

Hi, iBotPeaches,
Any progress on development? Looking forward to testing your new apktool for handling T9Map and rebuilding Contacts.apk.

from apktool.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

We are appreciated.

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

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.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

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.

SunnyOK avatar SunnyOK commented on May 3, 2024

Sorry for bothering you. I did read your changelog and expect a fix. Please ignore my report. Thank you.

from apktool.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

I have fixed this.

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

Good news.

from apktool.

SunnyOK avatar SunnyOK commented on May 3, 2024

Liangyz70 from gfan found the root cause of the problem. With his method, now I can recompile Contacts.apk.

from apktool.

Acid-miuipolskapl avatar Acid-miuipolskapl commented on May 3, 2024

Can you post a link to this?

from apktool.

iBotPeaches avatar iBotPeaches commented on May 3, 2024

Apktool v1.5.0 released 20min ago fixes this

from apktool.

Acid-miuipolskapl avatar Acid-miuipolskapl commented on May 3, 2024

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.

Acid-miuipolskapl avatar Acid-miuipolskapl commented on May 3, 2024

Confirmed to be working with FC Contacts :) Thanks.

from apktool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.