shroudedcode / apk-mitm

🤖 A CLI application that automatically prepares Android APK files for HTTPS inspection
https://npm.im/apk-mitm
MIT License
3.6k stars 337 forks source link

Question - How to change a framework file of the apktool in the apk-mitm #101

Open youngeun-kang opened 2 years ago

youngeun-kang commented 2 years ago

First, thank you for this wonderful git repo! I really love this:)

My question is - During the decoding process of an apks file in apk-mitm, I received a "Could not decode" error like the below. This error is because of the AOSP framework and changing the framework file, I was able to get out of this error when I use Apktool itself. ( Get success when following this troubleshooting guide ( Solving could not decode error - Framework files : Apktool documentation

However, I don't know how to change a framework file of the apktool in the apk-mitm. I want to use my resource table (=framework file) in this process, how can I do?? - I: Loading resource table from file: C:\Users\XXX~1.5\AppData\Local\Temp\1\apk-mitm-fbe5de4216973912ada1a6b8c270bd93\framework\1.apk

Log -- I: Using Apktool 2.6.0 on base.apk I: Loading resource table... I: Decoding Shared Library (com.nhn.android.search.Setup), pkgId: 113 ... I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: C:\Users\XXX~1.5\AppData\Local\Temp\1\apk-mitm-fbe5de4216973912ada1a6b8c270bd93\framework\1.apk W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x7d0a0000 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x7d0a0000 W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x7c0a0008