Closed GoogleCodeExporter closed 9 years ago
What steps will reproduce the problem?
1. apktool d com.google.android.apps.googlevoice-2.apk
What is the expected output? What do you see instead?
fully de-compiled apk.
I get the following error:
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and
Settings\user\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
resizeMode, value=0x00000003
W: Could not decode attr value, using undecoded value instead: ns=android, name=
resizeMode, value=0x00000003
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01010363
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:3
5)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:8
6)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
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?
1.4.1, android 2.08.651.2, windows xp
Please provide any additional information below.
HTC EVO 3D
Original comment by reekotu...@gmail.com
on 14 Sep 2011 at 4:11
Attachments:
brut.androlib.err.UndefinedResObject [SOLVED!!!]
For all those having similar issues like above, this is what I did to get the
apk to decompile.
I attempted to pull the framework-res from my phone and use it to decompile the
files, and this seemed to be the issue.
1. delete all files in the following folder c:\Documents and Settings\%current
user%\apktool\framework\*
2. Pull com.htc.resources.apk from phone
3. Install com.htc.resources.apk to computer with apktool
4. now attempt to decompile again.
This worked because apktool already has the framework-res.apk integrated in it.
Hope this helps someone.
Original comment by reekotu...@gmail.com
on 21 Sep 2011 at 3:20
Yeah, that was an issue with decompiling Honeycomb apks using pre-Honeycomb
framework.
Original comment by Brut.alll
on 5 Nov 2011 at 10:04
I just got the same error while decoding the latest Play Store apk 3.8.16.
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010103ac
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:51)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Original comment by archon810
on 18 Aug 2012 at 5:54
Original issue reported on code.google.com by
j...@eyrie.in
on 25 Aug 2011 at 5:09