I can uninstall an app by its package name. To obtain a list of all the packages installed on the device, run command adb shell pm list packages
. To filter out the results by a keyword contained in the package name, use the -f
option, as in adb shell pm list packages -f <key_word>
.
Sometimes, package names change. To retrieve a list of 3-rd party packages, installed by the user (not OEM-pre-installed), include the -3
option, as in adb shell pm list packages -3
. All the vendor-preloaded apps that are shipped with the device live in the /system
directory. All the apps that I, as a user installed, live in the /data/
folder. The -3
option directs the command to the /data/
folder and returns all the apps that reside there.
The package name convention is usually com.app.company.project
. Once I know the package name, I run command adb uninstall <package_name>
to uninstall the app by that package name. The expected output is Success
, and the app is gone from the device.