Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - How to install signed APK on device?

I'm in the final stages of preparation for publishing my signed APK to the Android Market. In Google's doc's they say:

10. Test your compiled and signed application

Before you release your compiled application, you should thoroughly test it on the target mobile device (and target network, if possible).

So I have my compiled, release-signed, zipaligned APK ready to put on the Market. How do I get it onto my phone to test it?

Obviously, I can't simply load up my Eclipse project onto the phone (as I've been doing during development) because it loads the debug-signed APK file instead of the APK that has gone through the signing process and is ready to upload to the Android Market.

like image 635
Jake Wilson Avatar asked Oct 14 '11 18:10

Jake Wilson


People also ask

How do I install an APK file on my Android device?

Just open your browser, find the APK file you want to download, and tap it – you should then be able to see it downloading on the top bar of your device. Once it's downloaded, open Downloads, tap on the APK file and tap Yes when prompted. The app will begin installing on your device.

Where is signed APK located?

In the new Android Studio, the signed apk is placed directly in the folder of module for which the apk is built.

How does APK signing work on Android?

Android requires that all APKs be digitally signed with a certificate before they are installed on a device or updated. When releasing using Android App Bundles, you need to sign your app bundle with an upload key before uploading it to the Play Console, and Play App Signing takes care of the rest.

Why is APK unsigned?

Unsigned Apk, as the name suggests it means it is not signed by any Keystore. A Keystore is basically a binary file that contains a set of private keys. Every App that we install using the Google Play App Store needs to be signed with a Keystore.


Video Answer


1 Answers

Try adb install MyApp.apk in a shell from your ./bin folder while the phone is attached to USB.

If you experience problems due to certificate errors, you should run adb uninstall your.package.id before installing the new package.

like image 180
keyboardsurfer Avatar answered Oct 17 '22 07:10

keyboardsurfer