Professional Documents
Culture Documents
Force stop everything associated with Issue a broadcast intent. Dump the heap of <PROCESS>, write to
<PACKAGE> (the app's package name) <FILE>
--user [<USER_ID> | all | current]
kill-all --user [<USER_ID>]
Specify which user to send to; if not
Kill all background processes specified then send to all users. When supplying a process name, specify
user of process to dump; uses current user
profile start <PROCESS> <FILE>
if not specified.
am command : instrument
Start profiler on <PROCESS>, write results
-n
to <FILE> instrument [options] <COMPONENT>
Dump native heap instead of managed
profile stop <PROCESS> Start monitoring with an Instrumentation
heap
instance. Typically the target
Stop profiler on <PROCESS>
<COMPONENT> is the form
screen-compat [on|off] <PACKAGE> <TEST_PACKAGE> / am command : start
<RUNNER_CLASS>.
Control screen compatibility mode of start [options] <INTENT>
<PACKAGE> -r
Start an Activity specified by <INTENT>
display-size [reset|<WxH>] Print raw results (otherwise decode
-D
Override emulator/device display size <REPORT_KEY_STREAMRESULT>). Use
with [-e perf true] to generate raw output for Enable Debugging
display-density <dpi> performance measurements.
-W
Override emulator/device display density -e <NAME> <VALUE> Wait for launch to complete
to-uri <INTENT> Set argument <NAME> to <VALUE>. For
--start-profiler <FILE>
Print the given intent specification as a URI test runners a common form is -e
Start profiler and send results to<FILE>
<testrunner_flag> <value>[,<value> ...]
to-intent-uri <INTENT>
-P <FILE>
-p <FILE>
Print the given intent specification as an
Write profiling data to <FILE> Like --start-p
rofiler , but profiling stops when
intent: URI.
the app goes idle.
clear-debug-app -w
-R <COUNT>
Clear the package previous set for Wait for instrumentation to finish before
Repeat the activity launch <COUNT>
debugging with set-debug-app returning. Required for test runners.
times. Prior to each repeat, the top activity
--no-window-animation will be finished.
am command : set-debug-app
Turn off window animations while running
-S
set-debug-app [options] <PACKAGE> --user [<USER_ID>] Force stop the target app before starting the
Set application <PACKAGE> to debug. activity.
Specify which user instrumentation runs in;
-w current user if not specified --opengl-trace
Wait for debugger when application starts Enable tracing of OpenGL functions
am command : monitor
--persistent --user [<USER_ID>]
monitor [options]
Retain this value Specify which user to run as; if not
Start monitoring for crashes or ANRs
specified, then run as the current user.
--gdb
am command : startservice
--user [<USER_ID]
am command : kill