Android am command

Author: yifei / Created: June 3, 2017, 11:36 p.m. / Modified: June 4, 2017, 11:23 a.m. / Edit

am is short for activity manager, which is used to start and stop activity in android.

basic syntax

start an activity

you can get the activity name by decompiling the apk and view the androidmanifest.xml file

am start -n <package_name>/<activity_name> [parameters]
am start -n

stop an activity

am force-stop