iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
20.28k stars 3.59k forks source link

W: Cant find 9patch chunk in file: "u/bqd.9.png". Renaming it to *.png. #2180

Closed RobertRBT closed 3 years ago

RobertRBT commented 5 years ago

Information

  1. Apktool Version (apktool -version) -2.4.0
  2. Operating System (Mac, Linux, Windows) -Linux
  3. APK From? (Playstore, ROM, Other) -APK4Fun.com

Stacktrace/Logcat

I: Using Apktool 2.4.0 on com.cleanmaster.mguard-7.2.5@APK4Fun.com.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
W: Cant find 9patch chunk in file: "u/bqd.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bsb.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/an0.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ae1.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b2q.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6e.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bjm.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/ah_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/a99.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bsx.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/gp.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b15.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/abt.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/anf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ayo.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b2o.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b4p.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/ae9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/ahf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/blt.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/a99.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bob.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b2y.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/c68.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/axq.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/akw.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ayk.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b2r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/a9r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ae9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6f.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bga.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "v/c68.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bs9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bj6.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/aqs.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bvp.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bts.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/an3.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bhr.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c0x.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bp1.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bdf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b5u.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ays.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "q/a9t.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/a9s.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bhj.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "q/a99.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/beo.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bmu.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bum.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/ae1.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bvo.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ai9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b64.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b61.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bhk.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bo_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bm4.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/brt.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bbf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b2t.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "q/a9s.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c8y.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/ah9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/ahc.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bd0.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bun.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/aul.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/akc.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ayt.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ay9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/pb.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bx_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b5t.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6j.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6l.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ai8.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bpb.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bqf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bpa.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/pk.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6k.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bpc.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/gp.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/brv.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bep.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "q/a9u.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/agw.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c2i.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/a9t.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6m.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c0y.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/gq.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ayu.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/axt.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/an5.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bvw.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/apf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ak_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bjo.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bcz.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b2s.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bjp.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/pa.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ak0.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bf3.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c3r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/gp.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/by0.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b6p.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/akg.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c95.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/ae9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/gf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/a49.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/an4.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bqe.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/agm.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/ahs.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/gf.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bjn.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bf1.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/pk.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/adr.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/aqm.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bu0.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bz8.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/aum.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b02.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/a9r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c68.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/boa.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c3i.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/aml.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b0s.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ava.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c45.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b03.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bn2.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bd2.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c90.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/a9c.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c3g.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bz6.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/aah.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c28.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c8z.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/a9s.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b1t.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "q/a9r.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bil.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/a9u.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c2h.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6g.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bmt.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/be1.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "r/c9h.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/gq.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/gq.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "q/a9c.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c2_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ben.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bs_.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c3q.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b1v.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/akd.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bw0.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bqn.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/a9c.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/b16.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "w/ae9.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bp2.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c6d.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/ayp.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/a9u.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/aks.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bx3.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/bz7.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/an6.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "h/a9t.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "f/ge.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/c46.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "u/an1.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...

Steps to Reproduce

  1. apktool d cleanmaster7.2.5.apk

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files (.apks that live in /system/framework or /system/priv-app)

APK

If this APK can be freely shared, please upload/attach a link to it.

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything?Yes
  2. If you are trying to install a modified apk, did you resign it?
  3. Are you using the latest apktool version?Yes
ChrisDukarm commented 5 years ago

I am having the same issue on the Hago games application.

https://apkpure.com/hago-play-with-new-friends/com.yy.hiyo/download/11115-APK?from=variants%2Fversion

$ apktool --force d base.apk

I: Using Apktool 2.4.0 on base.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: /home/user/.local/share/apktool/framework/1.apk I: Regular manifest package... I: Decoding file-resources... W: Cant find 9patch chunk in file: "a2/aav.9.png". Renaming it to *.png. W: Cant find 9patch chunk in file: "a2/agz.9.png". Renaming it to *.png. W: Cant find 9patch chunk in file: "a2/aau.9.png". Renaming it to *.png. W: Cant find 9patch chunk in file: "a2/aac.9.png". Renaming it to *.png. W: Cant find 9patch chunk in file: "a2/aaq.9.png". Renaming it to *.png. W: Cant find 9patch chunk in file: "a2/aaw.9.png". Renaming it to *.png. W: Cant find 9patch chunk in file: "a2/aab.9.png". Renaming it to *.png. I: Decoding values */* XMLs... I: Baksmaling classes.dex... I: Baksmaling classes4.dex... I: Baksmaling classes6.dex... I: Baksmaling classes2.dex... I: Baksmaling classes3.dex... I: Baksmaling classes7.dex... I: Baksmaling classes5.dex... I: Copying assets and libs... I: Copying unknown files... I: Copying original files...

This error leads to this error when I go to rebuild. (existing issue on build error can be found here)

AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/tmp/brut_util_Jar_4186283449969250832.tmp, p, --debug-mode, --forced-package-id, 127, --min-sdk-version, 18, --target-sdk-version, 28, --version-code, 11115, --version-name, 3.2.8, --no-version-vectors, -F, /tmp/APKTOOL15867791035596301195.tmp, -0, kotlin_module, -0, META-INF/android.arch.lifecycle_extensions.version, -0, META-INF/com.android.databinding_library.version, -0, META-INF/androidx.cardview_cardview.version, -0, META-INF/com.google.android.material_material.version, -0, META-INF/androidx.versionedparcelable_versionedparcelable.version, -0, META-INF/androidx.cursoradapter_cursoradapter.version, -0, META-INF/androidx.vectordrawable_vectordrawable-animated.version, -0, META-INF/androidx.drawerlayout_drawerlayout.version, -0, META-INF/android.support.design_material.version, -0, META-INF/android.arch.persistence_db-framework.version, -0, META-INF/androidx.browser_browser.version, -0, META-INF/com.android.databinding_baseAdapters.version, -0, META-INF/androidx.recyclerview_recyclerview.version, -0, META-INF/android.arch.lifecycle_livedata-core.version, -0, META-INF/androidx.vectordrawable_vectordrawable.version, -0, META-INF/androidx.legacy_legacy-support-core-utils.version, -0, META-INF/androidx.slidingpanelayout_slidingpanelayout.version, -0, META-INF/androidx.customview_customview.version, -0, META-INF/androidx.legacy_legacy-support-core-ui.version, -0, META-INF/android.arch.lifecycle_viewmodel.version, -0, META-INF/android.arch.lifecycle_livedata.version, -0, META-INF/androidx.media_media.version, -0, META-INF/androidx.viewpager_viewpager.version, -0, META-INF/androidx.appcompat_appcompat.version, -0, META-INF/androidx.core_core.version, -0, META-INF/androidx.swiperefreshlayout_swiperefreshlayout.version, -0, META-INF/androidx.print_print.version, -0, META-INF/androidx.legacy_legacy-support-v4.version, -0, META-INF/android.arch.persistence.room_runtime.version, -0, META-INF/android.arch.persistence_db.version, -0, META-INF/androidx.asynclayoutinflater_asynclayoutinflater.version, -0, META-INF/androidx.coordinatorlayout_coordinatorlayout.version, -0, META-INF/androidx.transition_transition.version, -0, META-INF/android.arch.lifecycle_runtime.version, -0, META-INF/androidx.documentfile_documentfile.version, -0, META-INF/androidx.fragment_fragment.version, -0, META-INF/android.arch.core_runtime.version, -0, META-INF/androidx.loader_loader.version, -0, META-INF/androidx.localbroadcastmanager_localbroadcastmanager.version, -0, META-INF/androidx.interpolator_interpolator.version, -0, svga, -0, dat, -0, lua, -0, kotlin_metadata, -0, png, -0, r/a7/b5l.9.png, -0, r/a7/b5k.9.png, -0, webp, -0, r/a2/b17.9.png, -0, r/a2/agz.9.png, -0, r/a2/b1z.9.png, -0, r/a2/aip.9.png, -0, r/a2/aab.9.png, -0, r/a2/aav.9.png, -0, r/a2/aac.9.png, -0, r/a2/aaq.9.png, -0, r/a2/b20.9.png, -0, r/a2/b5l.9.png, -0, r/a2/a6b.9.png, -0, r/a2/a6a.9.png, -0, r/a2/a_3.9.png, -0, r/a2/a69.9.png, -0, r/a2/aq4.9.png, -0, r/a2/b5k.9.png, -0, r/a2/aaw.9.png, -0, r/a2/aau.9.png, -0, arsc, -I, /home/user/.local/share/apktool/framework/1.apk, -S, /home/user/Desktop/apk/base/res, -M, /home/user/Desktop/apk/base/AndroidManifest.xml]

mosentest commented 5 years ago

are you ok?

iBotPeaches commented 3 years ago

are you ok?

I hope.

It appears I let too long go by, the original issue has no APK. The 2nd comment isn't related to the first and none of this looks to be an issue with the 9patch code.

Closing.