Adb command cheat sheet on Ubuntu Linux - lifuzu/cafe GitHub Wiki

1. Install a package with overwrite mode:

$ adb install -r package.apk

2. Found the package name from the package:

$ aapt dump badging ReaderNOWT-arm-debug.apk | egrep ^package
package: name='com.bn.readers.nowt' versionCode='1' versionName='1.0'

3. Delete the package in device:

$ adb shell pm uninstall -k com.bn.readers.nowt

OR

$ adb shell am start -a android.intent.action.DELETE -d package:<your app package>