ADB PM help
AndroidDebugBridge PackageManager
How to use?
adb shell
You can use the following commands after this one. To exit type “exit”.
adb shell $command
Change $command for any of the ones below, you wont be placed in a different shell.
List Applications
pm list packages -e $type
-s
: system
-3
: manually installed
Disable Applications
pm disable-user $package
pm suspend $package
“Suspend” may be disabled after a (few) reboot(s), shows a Digital Wellbeing prompt.
Change permissions
pm grant $package $permission
pm revoke $package $permission
Want the master list of permissions? go Here
Optimizations
pm compile -a -m $type
space
: reduce memory usage
speed
: make apps faster
pm trim-caches 999999999999999999
You can repeat this command many times, the longer it takes to execute, the more cache it removed.