1. ADB 명령으로 activity 실행
adb shell 실행후, am
start -a <action> -n <component name>
#am start -a android.intent.action.MAIN -n
com.android.deskclock/.AlarmClock
start an Activity: am start [-D] [-W]
<INTENT>
-D:
enable debugging
-W:
wait for launch to complete
start a Service: am startservice
<INTENT>
send a broadcast Intent: am
broadcast <INTENT>
2. ADB Process find and kill
adb shell ps | find "deskclock"
2번째 숫자정보가 pid
Adb shell kill pid
댓글 없음:
댓글 쓰기