Skip to content
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

Apktool v1.4.2.269870b "Multiple resources" issue #197

Closed
GoogleCodeExporter opened this issue Mar 18, 2015 · 5 comments
Closed

Apktool v1.4.2.269870b "Multiple resources" issue #197

GoogleCodeExporter opened this issue Mar 18, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. apktool d -s -f app.apk app
2.
3.

What is the expected output? What do you see instead?
expected output is successful decode however I see below exception

I: Copying raw classes.dex file...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f0c0036 dimen/account_width, config=-port-v13
at brut.androlib.res.data.ResConfig.addResource(ResCo nfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResCo nfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(AR SCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(A RSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARS CDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage( ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(AR SCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCD ecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackages 
FromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(An drolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(An drolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:4 4)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.ja va: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)


What version of the product are you using? On what operating system?

Apktool v1.4.2.269870b (I'd build it from git source of apktool on july21, 
2011), win32 xp

Please provide any additional information below.

before posting here I'd searched similar issue, found very similar issue
http://code.google.com/p/android-apktool/issues/detail?id=148

which is fixed with 
https://github.com/fboldog/brut.apktool/commit/1b6d63cb355d4a36274f5edf0383a2c4e
6e0f868

however apktool version I'm using has this fix and doesn't fix my issue,

also, I'd installed framework-res.apk of honeycombs, this also didn't help me.

Original issue reported on code.google.com by open.pon...@gmail.com on 21 Jul 2011 at 7:23

Attachments:

@GoogleCodeExporter
Copy link
Author

me too。。。。

apktool v1.41 release

I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: 
spec=0x7f080002 dimen/list_item_height, config=-ldpi
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
        at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
        at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
        at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
        at brut.androlib.Androlib.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.getResTable(Unknown Source)
        at brut.androlib.ApkDecoder.decode(Unknown Source)
        at brut.apktool.Main.cmdDecode(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)

Original comment by zbw1...@gmail.com on 9 Aug 2011 at 8:03

@GoogleCodeExporter
Copy link
Author

confirmed.

google maps 5.10:

I: Copying raw classes.dex file...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple 
resources:spec=0x7f090033 dimen/da_destination_activity_btn_size, config=-v13
        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:105)
        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(AndrolibResources.java:315)
        at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
        at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java: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)

Original comment by 333...@gmail.com on 27 Sep 2011 at 5:35

@GoogleCodeExporter
Copy link
Author

Similar issue decompiling swype 3.25
this issue is not present when decompiling 3.23

I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: 
spec=0x7f030009 layout/udb_edit, config=[DEFAULT]
    at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
    at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
    at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
    at brut.androlib.res.AndrolibResources.getResPackagesFromApk(Unknown Source)
    at brut.androlib.res.AndrolibResources.loadMainPkg(Unknown Source)
    at brut.androlib.res.AndrolibResources.getResTable(Unknown Source)
    at brut.androlib.Androlib.getResTable(Unknown Source)
    at brut.androlib.ApkDecoder.getResTable(Unknown Source)
    at brut.androlib.ApkDecoder.decode(Unknown Source)
    at brut.apktool.Main.cmdDecode(Unknown Source)
    at brut.apktool.Main.main(Unknown Source)

Original comment by error...@gmail.com on 20 Oct 2011 at 1:05

@GoogleCodeExporter
Copy link
Author

Also maps 5.11

Original comment by yuriio...@gmail.com on 27 Oct 2011 at 9:03

@GoogleCodeExporter
Copy link
Author

It's caused by the lack of support for API13 resources.

It's fixed already and will be released soon.

Original comment by Brut.alll on 5 Nov 2011 at 9:07

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant