niklashigi / apk-mitm

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

Unable to install Patched XAPK and Patched apk #175

Open gosala opened 3 months ago

gosala commented 3 months ago

Approach 1:

Getting the below error when i try to install the patch apk(i downloaded XAPK and unzipped, took the base apk, and ran apk-mitm command, then i got the patched apk. that was not installed.)

Error for Approach 1

adb: failed to install C:\Users\ASUS\Downloads\rv\com.ms-patched.apk: Failure [INSTALL_FAILED_MISSING_SPLIT: Missing split for com.ms]

Approach 2 i downloaded XAPK, and ran apk-mitm command on XAPK, and patched XAPK was generated (SUCESS : Done! Patched file: ./sample_APKPure-patched.xapk) . getting below error when installing

Error For Approach 2 there was a problem while parsing the package

Approach 3 i downloaded APK, and ran apk-mitm command on APK, and patched XAPK was generated (SUCESS : Done! Patched file: ./sample_APKPure-patched.apk) . getting below error when installing

Error For Approach 3 App was installed on device, But Unable to OPEN

iknek commented 2 months ago

Did you use a tool to install the split apk (xapk) when using approach 2, for example Aefyr/SAI?

rahmanonik18 commented 1 month ago

I have tried apkmirror to download an app and with apk-mitm it sussecfully patched the xapk, now i am having issues to install that? Did you find out the solution? In the patched file when i renamed it into zip, i was supposed to get one obb file and one apk, but there are obb file and multiple apk with different name( i.e: config.tr. apk.idsig), one mainfest.json. Any idea how to solve it?