Apktool
Apktool copied to clipboard
Failed with a malform AndroidManifest file
Information
- Apktool Version (
apktool -version) - 2.9.3 - Operating System (Mac, Linux, Windows) - Windows 10
- APK From? (Playstore, ROM, Other) - This repo
- Java Version (
java --version) - Open JDK 17
This malformed APK file has been open issues at Androguard and has been fixed in version 4.1.1: https://github.com/androguard/androguard/issues/1006
What failed? I don't see any details.
Sorry I replied late. Run apktool -d with that malware apk file, the output AndroidManifest.xml is damaged, missing information This is the output from the command line apktool d DichVuCong.apk
I: Using Apktool 2.9.3 on DichVuCong.apk
I: Loading resource table...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\xxxx\AppData\Local\apktool\framework\1.apk
I: Decoding values */* XMLs...
I: Decoding AndroidManifest.xml with resources...
W: Bad string block: string entry is at 752, past end at 752
W: Unknown chunk type at: (0x00003370) skipping...
W: Unknown chunk type at: (0x00003378) skipping...
W: Unknown chunk type at: (0x00003380) skipping...
W: Unknown chunk type at: (0x00003388) skipping...
W: Unknown chunk type at: (0x00003390) skipping...
W: Unknown chunk type at: (0x00003398) skipping...
W: Unknown chunk type at: (0x000033a0) skipping...
W: Unknown chunk type at: (0x000033a8) skipping...
W: Unknown chunk type at: (0x000033b0) skipping...
W: Unknown chunk type at: (0x000033b8) skipping...
W: Unknown chunk type at: (0x000033c0) skipping...
W: Unknown chunk type at: (0x000033c8) skipping...
W: Unknown chunk type at: (0x000033d0) skipping...
W: Unknown chunk type at: (0x000033d8) skipping...
W: Unknown chunk type at: (0x000033e0) skipping...
W: Unknown chunk type at: (0x000033e8) skipping...
W: Unknown chunk type at: (0x000033f0) skipping...
W: Unknown chunk type at: (0x000033f8) skipping...
W: Unknown chunk type at: (0x00003400) skipping...
W: Unknown chunk type at: (0x00003408) skipping...
W: Unknown chunk type at: (0x0000345c) skipping...
W: Unknown chunk type at: (0x00003464) skipping...
W: Unknown chunk type at: (0x0000346c) skipping...
W: Unknown chunk type at: (0x00003474) skipping...
W: Unknown chunk type at: (0x0000347c) skipping...
W: Unknown chunk type at: (0x00003484) skipping...
W: Unknown chunk type at: (0x0000348c) skipping...
W: Unknown chunk type at: (0x00003494) skipping...
W: Unknown chunk type at: (0x0000349c) skipping...
W: Unknown chunk type at: (0x000034a4) skipping...
W: Unknown chunk type at: (0x000034ac) skipping...
W: Unknown chunk type at: (0x000034b4) skipping...
W: Unknown chunk type at: (0x000034bc) skipping...
W: Unknown chunk type at: (0x000034c4) skipping...
W: Unknown chunk type at: (0x000034cc) skipping...
W: Unknown chunk type at: (0x00003524) skipping...
W: Unknown chunk type at: (0x0000352c) skipping...
W: Unknown chunk type at: (0x00003534) skipping...
W: Unknown chunk type at: (0x0000353c) skipping...
W: Unknown chunk type at: (0x00003544) skipping...
W: Unknown chunk type at: (0x0000354c) skipping...
W: Unknown chunk type at: (0x00003554) skipping...
W: Unknown chunk type at: (0x0000355c) skipping...
W: Unknown chunk type at: (0x00003564) skipping...
W: Unknown chunk type at: (0x0000356c) skipping...
W: Unknown chunk type at: (0x00003574) skipping...
W: Unknown chunk type at: (0x0000357c) skipping...
W: Unknown chunk type at: (0x00003584) skipping...
W: Unknown chunk type at: (0x0000358c) skipping...
W: Unknown chunk type at: (0x00003594) skipping...
W: Unknown chunk type at: (0x0000359c) skipping...
W: Unknown chunk type at: (0x000035a4) skipping...
W: Unknown chunk type at: (0x000035ac) skipping...
W: Unknown chunk type at: (0x000035b4) skipping...
W: Unknown chunk type at: (0x000035bc) skipping...
W: Unknown chunk type at: (0x00003614) skipping...
W: Unknown chunk type at: (0x0000361c) skipping...
W: Unknown chunk type at: (0x00003624) skipping...
W: Unknown chunk type at: (0x0000362c) skipping...
W: Unknown chunk type at: (0x00003634) skipping...
W: Unknown chunk type at: (0x0000363c) skipping...
W: Unknown chunk type at: (0x00003644) skipping...
W: Unknown chunk type at: (0x0000364c) skipping...
W: Unknown chunk type at: (0x00003654) skipping...
W: Unknown chunk type at: (0x0000365c) skipping...
W: Unknown chunk type at: (0x00003664) skipping...
W: Unknown chunk type at: (0x0000366c) skipping...
W: Unknown chunk type at: (0x000095b8) skipping...
W: AXML hit unexpected end of file at byte: 0x95B8
I: Regular manifest package...
[Fatal Error] :2:236: Element type "manifest" must be followed by either attribute specifications, ">" or "/>".
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
I: Copying META-INF/services directory
- corrupted file: AndroidManifest.xml.txt
- File decrypted from Androguard Python tool: AndroidManifest.xml_Androguard.txt
thanks for details.
Hi, help please C:\apktool>apktool b C:\apktool\AliExpress_v.8.55.1 I: Using Apktool 2.9.3 I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether sources has changed... I: Checking whether resources has changed... I: Building resources... W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2760: error: '@2098003969' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2827: error: '@2098003984' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2828: error: '@2098003983' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2829: error: '@2098003983' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2830: error: '@2098003982' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2834: error: '@2098003978' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2835: error: '@2098003978' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2836: error: '@2098003978' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2837: error: '@2098003978' is incompatible with attribute theme (attr) reference. W: C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml:2852: error: '@2080505856' is incompatible with attribute resource (attr) reference. W: error: failed processing manifest. brut.androlib.exceptions.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Evgen\AppData\Local\Temp\brut_util_Jar_31673858062832635512031989111920605867.tmp, link, -o, C:\Users\Evgen\AppData\Local\Temp\APKTOOL8235570106194046577.tmp, --package-id, 127, --version-code, 446, --version-name, 8.55.1, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, --no-compile-sdk-metadata, --warn-manifest-validation, -e, C:\Users\Evgen\AppData\Local\Temp\APKTOOL2003170402509209950.tmp, -0, arsc, -I, C:\Users\Evgen\AppData\Local\apktool\framework\1.apk, --manifest, C:\apktool\AliExpress_v.8.55.1\AndroidManifest.xml, C:\apktool\AliExpress_v.8.55.1\build\resources.zip] AndroidManifest.txt