Apktool: Can't decompile apk file which using kolin

Information

  1. Apktool Version (apktool -version) - 2.3.3 , 2.3.4
  2. Operating System (Mac, Linux, Windows) - MacOS
  3. APK From? (Playstore, ROM, Other) - Other

Stacktrace/Logcat

92:得到 xiatian$ apktool d 得到.ver.4.0.1.build.20180615.apk
I: Using Apktool 2.3.4-92bec5-SNAPSHOT on 得到.ver.4.0.1.build.20180615.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
S: WARNING: Could not write to (.../apktool/framework), using /var/folders/46/1nvmzdp11230xjpb30_3lk7c0000gn/T/ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
I: Loading resource table from file: /var/folders/46/1nvmzdp11230xjpb30_3lk7c0000gn/T/1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "i/n7.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "p/n9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "p/n7.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/ak9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/ak8.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/n8.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/rv.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "i/n_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "p/n6.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/yw.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/yi.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "i/na.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/ru.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "i/n6.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "p/n_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "p/n8.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/s5.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "p/na.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/y1.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/s2.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/a_u.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/n7.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "i/n8.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/na.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/n_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/sb.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/n6.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/n9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "i/n9.9.png". Renaming it to *.png.
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
192:得到 xiatian$ apktool b .../Desktop/temp/得到/得到.ver.4.0.1.build.20180615
I: Using Apktool 2.3.4-92bec5-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Building resources...
S: WARNING: Could not write to (.../Library/apktool/framework), using /var/folders/46/1nvmzdp11230xjpb30_3lk7c0000gn/T/ instead...
S: Please be aware this is a volatile directory and frameworks could go missing, please utilize --frame-path if the default storage directory is unavailable
W: ERROR: 9-patch image .../Desktop/temp/得到/得到.ver.4.0.1.build.20180615/res/drawable-xxhdpi/a9h.9.png malformed.
W:        No marked region found along edge.
W:        Found along left edge.
W: ERROR: Failure processing PNG image .../Desktop/temp/得到/得到.ver.4.0.1.build.20180615/res/drawable-xxhdpi/a9h.9.png
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/46/1nvmzdp11230xjpb30_3lk7c0000gn/T/brut_util_Jar_7137504422296775119.tmp, p, --forced-package-id, 127, --min-sdk-version, 14, --target-sdk-version, 26, --version-code, 20180615, --version-name, 4.0.1, --no-version-vectors, -F, /var/folders/46/1nvmzdp11230xjpb30_3lk7c0000gn/T/APKTOOL1077035773353441538.tmp, -0, assets/dist/css/ddeditor.d41d8cd98f00b204e9800998ecf8427e.css, -0, ogg, -0, mp3, -0, mp4, -0, arsc, -I, /var/folders/46/1nvmzdp11230xjpb30_3lk7c0000gn/T/1.apk, -S, .../Desktop/temp/得到/得到.ver.4.0.1.build.20180615/res, -M, .../Desktop/temp/得到/得到.ver.4.0.1.build.20180615/AndroidManifest.xml]

Steps to Reproduce

  1. apktool d 201805251639406027371511.apk
  2. apktool b 201805251639406027371511

Frameworks

None

APK

下载APK

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything? tried -r ,but nothing works
  2. If you are trying to install a modified apk, did you resign it? no,i just try to decompile and build
  3. Are you using the latest apktool version? yes,try 2.3.3 and git clone master build latest apktool to try out it

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 2
  • Comments: 18 (3 by maintainers)

Most upvoted comments

@hurricanetx If you don’t need to manipulate resources in the apk , you can use a workaround and decompile apk without resources.

$ apktool d 201805251639406027371511.apk -r -o without_res
$ apktool b  without_res -o new.apk
I: Using Apktool 2.3.4-21fbe5-SNAPSHOT
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether resources has changed...
I: Copying raw resources...
I: Copying libs... (/lib)
I: Copying libs... (/kotlin)
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...

@iBotPeaches 666,Thank you for your answer a lot

@hurricanetx I recognize the resource directory named “r” from AndResGuard, so just what I thought this application is using for obfuscation.

@ibuprophen1 You can get that kind of output when you compile from source.

/opt/Apktool# java -jar brut.apktool/apktool-cli/build/libs/apktool-cli-all.jar
Apktool123 v2.3.4-21fbe5-SNAPSHOT - a tool for reengineering Android apk files