am
usage: am [subcommand] [options]
usage: am start [-D] [-N] [-W] [-P ] [--start-profiler ]
[--sampling INTERVAL] [-R COUNT] [-S]
[--track-allocation] [--user | current]
am startservice [--user | current]
am stopservice [--user | current]
am broadcast [--user | all | current]
am to-uri [INTENT]
am to-intent-uri [INTENT]
am to-app-uri [INTENT]
am start: start an Activity. Options are:
-D: enable debugging
-N: enable native debugging
-W: wait for launch to complete
--start-profiler : start profiler and send results to
--sampling INTERVAL: use sample profiling with INTERVAL microseconds
between samples (use with --start-profiler)
-P : like above, but profiling stops when app goes idle
-R: repeat the activity launch times. Prior to each repeat,
the top activity will be finished.
-S: force stop the target app before starting the activity
--track-allocation: enable tracking of object allocations
--user | current: Specify which user to run as; if not
specified then run as the current user.
--stack : Specify into which stack should the activity be put.
am startservice: start a Service. Options are:
--user | current: Specify which user to run as; if not
specified then run as the current user.
am stopservice: stop a Service. Options are:
--user | current: Specify which user to run as; if not
specified then run as the current user.
am broadcast: send a broadcast Intent. Options are:
--user | all | current: Specify which user to send to; if not
specified then send to all users.
--receiver-permission : Require receiver to hold permission.
am to-uri: print the given Intent specification as a URI.
am to-intent-uri: print the given Intent specification as an intent: URI.
am to-app-uri: print the given Intent specification as an android-app: URI.
specifications include these flags and arguments:
[-a ] [-d ] [-t ]
[-c [-c ] ...]
[-e|--es ...]
[--esn ...]
[--ez ...]
[--ei ...]
[--el ...]
[--ef ...]
[--eu ...]
[--ecn ]
[--eia [,[,)
[--ela [,[,)
[--efa [,[,)
[--esa [,[,; to embed a comma into a string,
escape it using "\,")
[-f ]
[--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]
[--receiver-registered-only] [--receiver-replace-pending]
[--receiver-foreground] [--receiver-no-abort]
[--receiver-include-background]
[--selector]
[ | | ]
$
$am
usage: am [subcommand] [options]
usage: am start [-D] [-N] [-W] [-P ] [--start-profiler ]
[--sampling INTERVAL] [-R COUNT] [-S]
[--track-allocation] [--user | current]
am startservice [--user | current]
am stopservice [--user | current]
am broadcast [--user | all | current]
am to-uri [INTENT]
am to-intent-uri [INTENT]
am to-app-uri [INTENT]
am start: start an Activity. Options are:
-D: enable debugging
-N: enable native debugging
-W: wait for launch to complete
--start-profiler : start profiler and send results to
--sampling INTERVAL: use sample profiling with INTERVAL microseconds
between samples (use with --start-profiler)
-P : like above, but profiling stops when app goes idle
-R: repeat the activity launch times. Prior to each repeat,
the top activity will be finished.
-S: force stop the target app before starting the activity
--track-allocation: enable tracking of object allocations
--user | current: Specify which user to run as; if not
specified then run as the current user.
--stack : Specify into which stack should the activity be put.
am startservice: start a Service. Options are:
--user | current: Specify which user to run as; if not
specified then run as the current user.
am stopservice: stop a Service. Options are:
--user | current: Specify which user to run as; if not
specified then run as the current user.
am broadcast: send a broadcast Intent. Options are:
--user | all | current: Specify which user to send to; if not
specified then send to all users.
--receiver-permission : Require receiver to hold permission.
am to-uri: print the given Intent specification as a URI.
am to-intent-uri: print the given Intent specification as an intent: URI.
am to-app-uri: print the given Intent specification as an android-app: URI.
specifications include these flags and arguments:
[-a ] [-d ] [-t ]
[-c [-c ] ...]
[-e|--es ...]
[--esn ...]
[--ez ...]
[--ei ...]
[--el ...]
[--ef ...]
[--eu ...]
[--ecn ]
[--eia [,[,)
[--ela [,[,)
[--efa [,[,)
[--esa [,[,; to embed a comma into a string,
escape it using "\,")
[-f ]
[--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]
[--receiver-registered-only] [--receiver-replace-pending]
[--receiver-foreground] [--receiver-no-abort]
[--receiver-include-background]
[--selector]
[ | | ]
$
$
am usage: am [subcommand] [options] usage: am start [-D] [-N] [-W] [-P] [--start-profiler ]
[--sampling INTERVAL] [-R COUNT] [-S]
[--track-allocation] [--user | current]
am startservice [--user | current]
am stopservice [--user | current]
am broadcast [--user | all | current]
am to-uri [INTENT]
am to-intent-uri [INTENT]
am to-app-uri [INTENT]
am start: start an Activity. Options are: -D: enable debugging -N: enable native debugging -W: wait for launch to complete --start-profiler: start profiler and send results to
--sampling INTERVAL: use sample profiling with INTERVAL microseconds
between samples (use with --start-profiler)
-P : like above, but profiling stops when app goes idle
-R: repeat the activity launch times. Prior to each repeat,
the top activity will be finished.
-S: force stop the target app before starting the activity
--track-allocation: enable tracking of object allocations
--user | current: Specify which user to run as; if not
specified then run as the current user.
--stack : Specify into which stack should the activity be put.
am startservice: start a Service. Options are:
--user | current: Specify which user to run as; if not
specified then run as the current user.
am stopservice: stop a Service. Options are: --user | current: Specify which user to run as; if not
specified then run as the current user.
am broadcast: send a broadcast Intent. Options are: --user | all | current: Specify which user to send to; if not
specified then send to all users.
--receiver-permission : Require receiver to hold permission.
am to-uri: print the given Intent specification as a URI.
am to-intent-uri: print the given Intent specification as an intent: URI.
am to-app-uri: print the given Intent specification as an android-app: URI.