1

I'm trying to pull an APK file, modify it, then re-install to phone. I'm using adb, apktool and jarsigner. I'll call the APK file, 1.arm64_v8a.apk.

  1. adb pull /data/ .. /1.arm64_v8a.apk to pull the file from android to my computer.
  2. apktool decode 1.arm64_v8a.apk -o 1.arm64_v8a to decompress the APK
  3. apktool build --use-aapt 1.arm64_v8a -o 1.arm64_v8a.apk to build a new APK.
  4. sign apk jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore keystore 1.arm64_v8a.apk mykey
  5. Install APK to phone adb install 1.arm64_v8a.apk which produces: Failure [INSTALL_FAILED_INVALID_APK: Failed to extract native libraries, res=-2]
James Welchman
  • 105
  • 1
  • 6

0 Answers0