ADB reference

Android SDK API Release Note

Some notes

pm block (Android 4.4 only) [SDK API 19-20]

Puts the package in a blocked state, which is almost like an uninstalled state making the package unavailable, but it doesn't remove the data or the actual package file.

The adb command calls the runSetBlockedSetting(boolean state) private method (ref) which then calls the setApplicationBlockedSettingAsUser(...) method of the package manager (ref)

pm hide (Android 5+) [SDK API 21]

Puts the package in a hidden state, which is almost like an uninstalled state, making the package unavailable, but it doesn't remove the data or the actual package file. Application can be unhidden by either resetting the hidden state or by installing it

The adb command calls the runSetHiddenSetting(boolean state) private method (ref) which then calls the setApplicationHiddenSettingAsUser(...) method of the package manager (ref)

pm disable-user (Android 4.0+) [SDK API 18]

The user has explicitly disabled the application, regardless of what it has specified in its manifest. Because this is due to the user's request, they may re-enable it if desired through the appropriate system UI. Source

The adb commands calls runSetEnabledSetting(PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER) (ref) which then calls the setComponentEnabledSetting(...) method of the package manager to enforce the new state. (ref)