Android Install and run an application


Example

To install an APK file, use the following command:

adb install path/to/apk/file.apk

or if the app is existing and we want to reinstall

adb install -r path/to/apk/file.apk 

To uninstall an application, we have to specify its package

adb uninstall application.package.name

Use the following command to start an app with a provided package name (or a specific activity in an app):

adb shell am start -n adb shell am start <package>/<activity>

For example, to start Waze:

adb shell am start -n adb shell am start com.waze/com.waze.FreeMapAppActivity