NOTE
If
adbcomplains about noplugdevgroup, first make sure that the phone USB connection is set to File transfer.
$ adb shell pm list packages
In this example, disabled GMail package.
$ adb shell pm disable-user --user 0 com.google.android.gm
$ adb shell pm enable com.google.android.gm
WARNING
All data and cached will be removed as well. Pass
-koption to keep the data and cache directories around after package removal.One might need to pass
--user Xargument if uninstalling fails with the following error:Failure [DELETE_FAILED_INTERNAL_ERROR].
$ adb shell pm uninstall foundation.e.calendar