apk-mitm icon indicating copy to clipboard operation
apk-mitm copied to clipboard

Unable to install Patched XAPK and Patched apk

Open gosala opened this issue 1 year ago • 4 comments

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

gosala avatar Aug 15 '24 11:08 gosala

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

iknek avatar Sep 20 '24 11:09 iknek

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?

rahmanonik18 avatar Oct 15 '24 21:10 rahmanonik18

Having the same issue. Anyone has a solution?

JellyBelly1809 avatar Sep 06 '25 07:09 JellyBelly1809

https://github.com/niklashigi/apk-mitm/issues/189#issuecomment-2585650332 mentions that using android-unpinner after apk-mitm fixed the app for them, I haven't tried it yet though. I just completely switched to android-unpinner and Frida.

theoratkin avatar Sep 06 '25 14:09 theoratkin