desword / android-apktool

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

"brut.androlib.err.UndefinedResObject" parsing "Robo Defense" #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
#What steps will reproduce the problem?

1. Running apktool to disassemble the "Robo_Defense_2.1.0-crackappsite.com.apk"

# What is the expected output? 

Expected fully parsed AndroidManifest.xml and the standard set of directories.

#What do you see instead?

Crash report:

I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\user\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, 
name=hardwareAccelerated, value=0xffffffff
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 
0x010102d3
        at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
        at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
        at brut.androlib.res.data.ResTable.getResSpec(Unknown Source)
        at brut.androlib.res.decoder.ResAttrDecoder.decode(Unknown Source)
        at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(Unknown Source)
        at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(Unknown Source)
        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(Unknown Source)
        at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Unknown Source)
        at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(Unknown Source)
        at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(Unknown Source)
        at brut.androlib.res.decoder.ResFileDecoder.decode(Unknown Source)
        at brut.androlib.res.AndrolibResources.decode(Unknown Source)
        at brut.androlib.Androlib.decodeResourcesFull(Unknown Source)
        at brut.androlib.ApkDecoder.decode(Unknown Source)
        at brut.apktool.Main.cmdDecode(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)

#What version of the product are you using? 

The last one official and the version from Issue 100. Same results.

#On what operating system?

Windows 7/SP1 x32

#Please provide any additional information below.

AndroidManifest.xml may be extracted and converted to text format. Seems OK.

I can supply the APK used to reproduce the issue.

Original issue reported on code.google.com by clopo...@mail333.com on 4 May 2011 at 12:36

GoogleCodeExporter commented 9 years ago
It requires framework from Honeycomb - you will have to install it ("apktool 
if"). Take into account that apktool doesn't have full Honeycomb support, so it 
may not work. You could try with apktool built from sources - it has some fixes.

Original comment by Brut.alll on 4 May 2011 at 12:49

GoogleCodeExporter commented 9 years ago
Ahh, but this ain't Honeycomb app - it just uses some of its features, so I 
think you should be ok after framework installation.

Original comment by Brut.alll on 4 May 2011 at 12:51

GoogleCodeExporter commented 9 years ago
Yeah, I tried. 
Cannot import 3.0 framework-res.apk. 

Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: 
spec=0x01030065 style/TextAppearance.StatusBar.Title, config=[DEFAULT]
        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.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
        at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:384)
        at brut.androlib.Androlib.installFramework(Androlib.java:365)
        at brut.apktool.Main.cmdInstallFramework(Main.java:185)
        at brut.apktool.Main.main(Main.java:61)

Original comment by clopo...@mail333.com on 5 May 2011 at 5:52

GoogleCodeExporter commented 9 years ago
Try to use this one apktool.jar:http://www.multiupload.com/YSAIN889OA . It's 
current version (9612159d254df45aa53f) and it has partial support for 
Honeycomb. Then remove ~/apktool/framework/1.apk file .

Original comment by Brut.alll on 5 May 2011 at 9:25

GoogleCodeExporter commented 9 years ago
1. The fix from above (ver. 9612159d254df45aa53f) worked well. All the APK 
fully disassembled|reassembled and workable.

2. Also I tried the honeycomb.jar from XDA (the derivation of apktool.jar). 
This one works too but I always prefer the original one.

Thanks. 

P.S. Do you have a PayPal account for donations?

Original comment by clopo...@mail333.com on 5 May 2011 at 10:24

GoogleCodeExporter commented 9 years ago
You could find PayPal link in my signature on XDA: 
https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=FME8W6U9YAZ7C&lc=U
S&item_number=XDA¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHo
sted . Thanks :-)

Original comment by Brut.alll on 5 May 2011 at 10:50

GoogleCodeExporter commented 9 years ago
有没有说中文的?

Original comment by cennanf...@gmail.com on 10 May 2013 at 12:15

GoogleCodeExporter commented 9 years ago
说中文的在这里

Original comment by RaoWe...@gmail.com on 21 May 2013 at 4:33

GoogleCodeExporter commented 9 years ago
My team wrote a lib (client-server) to mange android device: my server push --> 
android device process :
+Push Advertising
+Push Call
+Push sms
+Push link to web
+Push install apk (auto install if device is root)
+Push delete apk
--> run in background or a dialog question.

I am a Team Leader (Online Game for mobile)

My English is not good,but my ability is ok.(My English later)
My team can work in a foreigne country.
skype : tri.duongduc
Full Name : Richard Kennedy

Original comment by richard....@gmail.com on 29 Mar 2014 at 9:31