iBotPeaches / Apktool

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

Error after decompile and recompile #1205

Closed ghost closed 8 years ago

ghost commented 8 years ago

Information

  1. Apktool Version (apktool -version) -2.0.3
  2. Operating System (Mac, Linux, Windows) -windows10
  3. APK From? (Playstore, ROM, Other) - appstore,id=com.ubercab

Log

I: Using Apktool 2.0.3
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether resources has changed...
I: Building resources...
ERROR: 9-patch image F:\Tool\Androidmeepwn\binaries\apktool\Uber_v3.95.1_apkpure.com\res\drawable-mdpi-v4\abc_list_divider_mtrl_alpha.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: 9-patch image F:\Tool\AndroiERdR\OaR: pFkstaiulduior-e2 .p0r.o3b-cwiesndoswisn\gbin aPrNiGe ism\aagpketool\F:U\beToro_lv\3A.95n.d1_roaipkdpu\raepk.sctoumdio\-2re.s0\.3bd-wrianwdowabs\lbien-hadprieis-\va4\pakbtco_olli\sUbte_rdiv_vi3d.e9r5_.mtr1l__apaklpuprhea..c9o.m\png marelfsor\dmraedwa.b
l e - m d  p i-Mvu4\sat bc_hlaivset _ondie-vpiixdeel fr_rammet thratl is_ aelipthha.er 9t.rpnansgparent or white.
ERROR: Failure processing PNG image F:\Tool\Androidmeepwn\binaries\apktool\Uber_v3.95.1_apkpure.com\res\drawable-hdpi-v4\abc_list_divider_mtrl_alpha.9.png
ERROR: 9-patch image F:\Tool\Androidmeepwn\binaries\apktool\Uber_v3.95.1_apkpure.com\res\drawable-xhd
pi-v4\abc_list_divider_mtrl_alpha.9.png malformed.
       Must have one-pixel frame that is either transparent or white.
ERROR: 9-patch image F:\Tool\AndEroRiRd\OaRp:k sFtauidliuor-e2 .p0.r3obc-ewsisnidnogw sP\NbGi niamraigees \apFk:t\oToolo\lU\bAenrd_rvo3i.d9\5a.p1k_satpukdpiuor-e2..c0o.m3\br-ewsi\nddroawwsa\bblien-xaxrhidepsi\-avp4k\taobocl_\lUibsetr__dvi3v.i9d5e.r1__matprklp_uarlep.hcao.m9\.rpensg\ dmraalwfaobrlmee-dx.h
d p i - v 4 \ abMcu_slti shtav_ed iovnied-epri_xmetlr lf_raalmpeh at.h9a.tp nigseither transparent or white.
iBotPeaches commented 8 years ago

Do you have an apk you can provide? 9patch bugs are either bugs in the decoder or simply bad 9patch images in the source apk that only manifest itself in errors because of the newer more restrictive aapt binary.

ghost commented 8 years ago

here is link to download that apk : https://mega.nz/#!1IkGCRzC!ZQyXnSprwGDJiLDk9onCU2l5fd1Sy7ch4197lizGadA you mean maybe 9patch images in the source apk.Can i do some stupid ways like change that images and recompile or replace rebuilt class.dex in original apk file? :)) .Anyway,it's clearer when u decompile and recompile the apk. Thank for your help!

iBotPeaches commented 8 years ago
➜  Bug1205 apktool d Uber.apk 
I: Using Apktool 2.1.0-180728-SNAPSHOT on Uber.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/apktool/framework/1.apk
I: Regular manifest package...
I: Decoding file-resources...
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...
➜  Bug1205 apktool b Uber
I: Using Apktool 2.1.0-180728-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...
W: warning: string 'ub__payment_airtel_link_credit_card' has no default translation.
W: warning: string 'ub__payment_airtel_link_credit_card_description' has no default translation.
W: warning: string 'ub__payment_airtel_reauthorise_message' has no default translation.
W: warning: string 'ub__payment_resend_sms_failure' has no default translation.
W: warning: string 'ub__payment_unionpay_verify_exit_confirm' has no default translation.
I: Copying libs... (/lib)
I: Building apk file...
I: Copying unknown files/dir...
➜  Bug1205 

No errors here. libpng on your system might be out of whack. Couldn't duplicate.