t0thkr1s / frida

Frida scripts for mobile application dynamic-analysis.
https://medium.com/infosec-adventures
GNU General Public License v3.0
104 stars 31 forks source link

Getting error while installing the apk #1

Closed Shapa7276 closed 4 years ago

Shapa7276 commented 4 years ago

adb: failed to install app-debug.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]

t0thkr1s commented 4 years ago

👋

Thanks for opening this issue. I actually uploaded a test APK, so you have to use the -t switch allows you to install test APKs. The full command that you have to use is adb install -t app-debug.apk. Let me know, if you have further problems!

-t: Allow test APKs to be installed. Gradle generates a test APK when you have only run or debugged your app or have used the Android Studio Build > Build APK command.

Shapa7276 commented 4 years ago

Hello T0thk1s

I am getting below error now

image

t0thkr1s commented 4 years ago

Strange... I tested it with Genymotion and AVD, both worked flawlessly. What Android version are you trying to install on? The error message says that it couldn't verify the APK. I might have to rebuild the project and upload a new APK file.

t0thkr1s commented 4 years ago

Anyway, I signed the application. Now, you should be able to install it without the -t option.

Shapa7276 commented 4 years ago

it worked. thank you