-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[BUG] Resource decoding error. #2863
Comments
Odd. I replicate, but this is such a low level issue that suggests a new XML node type. |
Also seen here #2587 Seems VMOS may be obfuscating their XML file? |
Same issue I: Using Apktool 2.7.0 on Env145-Vip.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
Exception in thread "main" brut.androlib.err.RawXmlEncounteredException: Could not decode XML
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:145)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:151)
at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:164)
at brut.androlib.res.AndrolibResources.decodeManifestWithResources(AndrolibResources.java:196)
at brut.androlib.Androlib.decodeManifestWithResources(Androlib.java:145)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:109)
at brut.apktool.Main.cmdDecode(Main.java:175)
at brut.apktool.Main.main(Main.java:79)
Caused by: java.io.IOException: Expected: 0x00080003 or 0x00080001, got: 0x0008b800
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:45)
at brut.androlib.res.decoder.AXmlResourceParser.doNext(AXmlResourceParser.java:834)
at brut.androlib.res.decoder.AXmlResourceParser.next(AXmlResourceParser.java:98)
at brut.androlib.res.decoder.AXmlResourceParser.nextToken(AXmlResourceParser.java:108)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.nextToken(XmlPullParserDelegate.java:105)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:138)
... 7 more apkhttps://drive.google.com/file/d/1RqHKPlc_lQSQpgC5o8zU4p1ErWdM-eNQ/view 7z pass: apktool |
For the original issue - the decoding works now after
This was fixed during merge of: #3210. It looks like decoding is the goal here as rebuilding with this malformed attributes is another effort, but at least for static analysis you can review application without Apktool crashing. I'll make a new issue for comment here: #2863 (comment) as it continues to crash and is unrelated to this technique. |
Information
apktool -version
) - 2.6.1Stacktrace/Logcat
APK
https://files.vmos.cn/vmospro/version/2022021911283769073_Overseas.apk
It happens only on resource decoding . with
--no-res
it decodes fine.The text was updated successfully, but these errors were encountered: