desword / android-apktool

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

Error decode facebook app on Win7 #563

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi all!
I try decode facebook App on Win7 but occur bellow error

apktool.bat d -s com.facebook.katana.apk
I: Copying raw classes.dex file...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=internal, 
name=layout_maxHeight, value=0x00004001
W: Could not decode attr value, using undecoded value instead: ns=internal, 
name=layout_minHeight, value=0x00004001
I: Decoding values */* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource 
spec:0x01010444
        at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
        at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
        at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:313)
        at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
        at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:80)
        at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:130)
        at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
        at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
        at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:238)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
        at brut.apktool.Main.cmdDecode(Main.java:146)
        at brut.apktool.Main.main(Main.java:77)

How can I fix this error?
I using apktool version 1.5.2, JDK 1.7.0_45, on Windows 7 Utimate

Original issue reported on code.google.com by hie...@ati.vn on 5 Dec 2013 at 6:05

GoogleCodeExporter commented 9 years ago
I took the latest facebook via the wip-2.0 branch and couldn't duplicate this 
error. As the 1.x branch won't be updated and the 2.x branch works fine. I'm 
closing this.

Original comment by connor.tumbleson on 6 Dec 2013 at 1:08

GoogleCodeExporter commented 9 years ago
Hi connor.tumbleson,
I try with apktool version 2.0 beta 7 on Win7 still error

java -jar apktool_v2.0.jar d -o fb com.facebook.katana.apk
I: Using Apktool 2.0.0-Beta7 on com.facebook.katana.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk
I: Regular manifest package...
Cleaning up unclosed ZipFile for archive C:\Users\user\apktool\framework\1.apk
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=internal, 
name=layout_maxHeight, value=0x00004001
W: Could not decode attr value, using undecoded value instead: ns=internal, 
name=layout_minHeight, value=0x00004001
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource 
spec:0x01010444
        at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:58)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:57)
        at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:53)
        at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:35)
        at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:351)
        at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
        at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:87)
        at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:147)
        at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:33)
        at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:107)
        at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:91)
        at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:314)
        at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:116)
        at brut.androlib.ApkDecoder.decode(ApkDecoder.java:106)
        at brut.apktool.Main.cmdDecode(Main.java:166)
        at brut.apktool.Main.main(Main.java:85)

Original comment by hie...@ati.vn on 9 Dec 2013 at 4:32

GoogleCodeExporter commented 9 years ago
I got the same error but dont know how to solve it clearly!
Plz help us Mr Cornor !

Original comment by tuthanh...@gmail.com on 18 Nov 2014 at 6:18