반응형

사용법

$ adb shell am start -a android.intent.action.MAIN -n 패키지명/액티비티 경로명
$ adb shell am startservice -n 패키지명/서비스경로명
$ adb shell am broadcast -a "브로드캐스트명"

만약 java.lang.SecurityException: Permission Denial: not allowed to send broadcast 에러 뜰시

$ adb root

입력.

 

 

shell에서 아래를 실행하는 있습니다. 이때 am 명령어를 사용합니다.

1) 액티비티(activity)

2) 서비스

3) Broadcast

 

 

출처

http://www.dreamy.pe.kr/zbxe/CodeClip/163972

반응형