WindySha / Xpatch

This is a tool to repackage apk file, then the apk can load any xposed modules installed in the device. It is another way to hook an app without root device.
Apache License 2.0
2.52k stars 385 forks source link

Install failed - Failed to extract native libraries, res=-2 #110

Closed AiziChen closed 2 years ago

AiziChen commented 2 years ago

command:

java -jar ~/Downloads/xpatch-5.0.jar /Users/coq/AndroidStudioProjects/hello/app/release/app-release.apk -l

run command sucess, but failed to install. my test app compiled from SDK 33, and target at 28, 30, 32 and 33 are also can not be installed.

there is install error message:

Performing Streamed Install
adb: failed to install app-release-xposed-signed.apk: Failure [INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]
AiziChen commented 2 years ago

I fixed it while I changed attribute android:extractNativeLibs value from "false" to "true" in AndroidManifest.xml file.