specifications include these flags and arguments: Īm lock-task: bring to the front and don't allow other tasks to runĪm get-config: retrieve the configuration and any recent configurations Īm stack list: list all of the activity stacks and their sizes.Īm stack info: display the information about activity stack. Īm stack resize: change size and position to. Īm stack movetask: move from its current stack to the top (true) or bottom (false) of. Use switch-user if you want to start the user in foreground.Īm stop-user: stop execution of USER_ID, not allowing it to run anyĬode until a later explicit start or switch to it.Īm stack start: start a new activity on using. Īm to-uri: print the given Intent specification as a URI.Īm to-intent-uri: print the given Intent specification as an intent: URI.Īm switch-user: switch to put USER_ID in the foreground, startingĮxecution of that user if it is currently stopped.Īm start-user: start USER_ID in background if it is currently stopped, allow-restart: allow watchdog to perform normal system restartĪm restart: restart the user-space system.Īm idle-maintenance: perform idle maintenance now.Īm screen-compat: control screen compatibility mode of. gdb: start gdbserv on the given port at crash/ANR When done to select where it should be delivered.Īm monitor: start monitoring for crashes or ANRs. w: wait for debugger when application startsĪm clear-debug-app: clear the previously set-debug-app.Īm bug-report: request bug report generation will launch UI Specify user of process to dump uses current user if not specified.Īm set-debug-app: set application to debug. n: dump native heap instead of managed heap The given argument mayīe either a process name or pid. Specify user of process to profile uses current user if not specified.Īm dumpheap: dump the heap of a process. user | current: When supplying a process name, This assumes that the process supports the selected ABI.Īm profile: start and stop profiler on a process. abi : Launch the instrumented process with the selected ABI. no-window-animation: turn off window animations while running. user | current: Specify user instrumentation runs in w: wait for instrumentation to finish before returning. to generate raw output for performance measurements. r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT). receiver-permission : Require receiver to hold permission.Īm instrument: start an Instrumentation. user | all | current: Specify which user to send to if not user | all | current: Specify user whose processes to kill Īm kill-all: Kill all background processes.Īm broadcast: send a broadcast Intent. Processes that are safe to kill - that is, will not impact the user user | all | current: Specify user to force stop Īm kill: Kill all processes associated with. Options are:Īm force-stop: force stop everything associated with. Options are:Īm stopservice: stop a Service. user | current: Specify which user to run as if notĪm startservice: start a Service. opengl-trace: enable tracing of OpenGL functions S: force stop the target app before starting the activity P : like above, but profiling stops when app goes idle sampling INTERVAL: use sample profiling with INTERVAL microsecondsīetween samples (use with -start-profiler) start-profiler : start profiler and send results to Īm set-debug-app am clear-debug-appĪm start: start an Activity.