berkus / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

trouble decoding ICS Gmail #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey Brut.all, I'm back again, trying to decompile the newest apks that probably 
don't work with your tool lol. Still using your patch from issue 195 (also 
tried your standard version) to mount xoom framework then decompile leaked 
Gmail.apk from IceCreamSandwhich (found here: 
http://www.droid-life.com/2011/10/24/gmail-from-ice-cream-sandwich-works-on-moto
rola-xoom/)

What steps will reproduce the problem?
1. mount framework from Xoom with issue 195 apktool patch.
2. apktool d gmail.apk (from the droid-life article above)
3. outputs errors, and lots of em.

What is the expected output? What do you see instead?
regular output is expected. I instead get this:

C:\Android\APKtool>apktool d gmail.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f040010 layout/compose_area_recipients, config=-sw600dp
        at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
        at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)

        at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
        at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
        at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:315)
        at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
        at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:43)
        at brut.androlib.Androlib.getResTable(Androlib.java:44)
        at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
        at brut.apktool.Main.cmdDecode(Main.java:120)
        at brut.apktool.Main.main(Main.java:57)

C:\Android\APKtool>

What version of the product are you using? On what operating system?
Windows XP using apktool v1.4.1 with patch from issue 195 (apktool-for-v13)

Please provide any additional information below.
I apologize if you are already working on getting APKtool updated for Android 
4.0, I know it just came recently came out. Since it was compatible with the 
Xoom's framework already (I already had it installed on my Xoom) I thought it 
wouldn't have had any issues.

Attached is the Xoom framework from Tiamat Rom 2.2.2 and the gmail from the 
linked article. Let me know if you need anything else. Keep up the great work 
Brut!

Original issue reported on code.google.com by brian6a...@gmail.com on 24 Oct 2011 at 9:18

Attachments:

GoogleCodeExporter commented 9 years ago
There's no edit button... but I did update my SDK to 4.0, and copied in the new 
aapt.exe when the update was finished, FWIW

Original comment by brian6a...@gmail.com on 24 Oct 2011 at 9:21

GoogleCodeExporter commented 9 years ago
That apktool-for-v13.zip file wasn't mine. I have added support for API13 
resources today and now I can decode Gmail.apk properly. Also I confirmed that 
I get errors using apktool-for-v13, so it seems it's bugged.

Original comment by Brut.alll on 5 Nov 2011 at 11:49

GoogleCodeExporter commented 9 years ago
Where is this version with support for API13. I am having a similar issue, I 
get smali but no resources. Apologies for bumping an old issue.

Original comment by asparks...@gmail.com on 8 Nov 2011 at 3:30