Adb PM
Adb PM
dump PACKAGE
Prints true and returns exit status 0 when system has a FEATURE_NAME,
list features
Options:
-f: dump the name of the .apk file containing the test package
list libraries
list packages [-f] [-d] [-e] [-s] [-3] [-i] [-l] [-u] [-U]
--uid UID: filter to only show packages with the given UID
list permission-groups
Prints all known permissions; optionally only those in GROUP. Options are:
list users
Prints all broadcast receivers that can handle the given INTENT.
[--enable-rollback]
[PATH [SPLIT...]|-]
time. You can skip the waiting time by specifying a TIMEOUT of '0'
[--multi-package] [--staged]
Write an apk into the given install session. If the path is '-', data
install-commit SESSION_ID
install-abandon SESSION_ID
Changes the default install location. NOTE this is only intended for debugging;
using this can cause applications to break and other undersireable behavior.
get-install-location
move-primary-storage [internal|UUID]
PACKAGE [SPLIT...]
Remove the given package name from the system. May remove an entire app
if no SPLIT names specified, otherwise will remove only the splits of the
-k: keep the data and cache directories around after package removal.
--versionCode: only uninstall if the app has the given version code.
PACKAGE [PACKAGE...]
Flags are:
Any existing flags are overwritten, which also means that if no flags are
(protection level dangerous), and the app targeting SDK greater than Lollipop MR1.
reset-permissions
get-privapp-permissions TARGET-PACKAGE
get-privapp-deny-permissions TARGET-PACKAGE
get-oem-permissions TARGET-PACKAGE
list users
Create a new user with the given USER_NAME, printing the new user identifier
of the user.
Remove the user with the given USER_IDENTIFIER, deleting all data
switch or reboot)
get-max-users
get-max-running-users
assume-verified
extract
verify
quicken
space-profile
space
speed-profile
speed
everything
first-boot
boot-after-ota
post-boot
install
install-fast
install-bulk
install-bulk-secondary
install-bulk-downgraded
install-bulk-secondary-downgraded
bg-dexopt
ab-ota
inactive
cmdline
shared
force-dex-opt PACKAGE
bg-dexopt-job
Note that the command only runs the background optimizer logic. It may
overlap with the actual job but the job scheduler will not be able to
cancel it. It will also run even if the device is not in the idle
maintenance mode.
reconcile-secondary-dex-files TARGET-PACKAGE
Reconciles the package secondary dex files with the generated oat files.
dump-profiles TARGET-PACKAGE
/data/misc/profman/TARGET-PACKAGE.txt
/data/misc/profman/TARGET-PACKAGE[-code-path].prof
the package.
get-instantapp-resolver
Return the name of the component that is the current instant app installer.
Return the harmful app warning message for the given app, if present
uninstall-system-updates [<PACKAGE>]
Removes updates to the given system application and falls back to its
/system version. Does nothing if the given package is not a system app.
Turns on debug logging when visibility is blocked for the given package.
--reset: restore the installer and throttle time to the default, and
Prints the domain verification state for the given package, or for all
- >= 1024: Custom error code which is specific to the device verifier
Resets domain verification state for the given package, or for all
--user <USER_ID>: clear user selection state instead; note this means
Manually set the state of a domain for a package. The domain must be
will not report a failure for domains that could not be applied.
<STATE>: the code to set the domains to, valid values are:
override this.
<ENABLED> <DOMAINS>...
Manually set the state of a host user selection for a package. The domain
must be declared by the package for this to work. This command will not
<ENABLED> <DOMAINS>...
<ALLOWED>: true to allow the package to open auto verified links, false
to disable
Print the owners for a specific domain for a given user in low to high
priority order.
--package <PACKAGE>: optionally also print for all web domains declared
[-f <FLAG>]
[--grant-read-uri-permission] [--grant-write-uri-permission]
[--grant-persistable-uri-permission] [--grant-prefix-uri-permission]
[--debug-log-resolution] [--exclude-stopped-packages]
[--include-stopped-packages]
[--activity-brought-to-front] [--activity-clear-top]
[--activity-clear-when-task-reset] [--activity-exclude-from-recents]
[--activity-launched-from-history] [--activity-multiple-task]
[--activity-no-animation] [--activity-no-history]
[--activity-no-user-action] [--activity-previous-is-top]
[--activity-reorder-to-front] [--activity-reset-task-if-needed]
[--activity-single-top] [--activity-clear-task]
[--activity-task-on-home] [--activity-match-external]
[--receiver-registered-only] [--receiver-replace-pending]
[--receiver-foreground] [--receiver-no-abort]
[--receiver-include-background]
[--selector]