티스토리 뷰
반응형
안드로이드에서 부팅 시 앱에서 처리할 내용이 있었다. 디버깅을 하고 싶은데 방법을 찾다가 adb 를 이용해서 처리하는 방법을 찾아 기록해본다.
방법)
>adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -n [PACKAGE_NAME]/[RECEIVER_CLASS_NAME]
ex)
action : android.intent.action.BOOT_COMPLETED
package name : com.example.app
boot receiver class name : BootReceiver
> adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -n com.example.app/.BootReceiver
반응형
'android' 카테고리의 다른 글
[android] 디바이스에 설치된 application 확인 방법 (0) | 2021.01.16 |
---|---|
[android] adb 명령어 사용 몇 가지 (0) | 2021.01.13 |
[android] turn screen on / show when lock screen 에서의 double lifecycle (0) | 2020.11.05 |
[android ] setTurnScreenOn 및 requestDismissKeyguard 관계 (0) | 2020.11.02 |
[android] The style on this component requires your app theme to be Theme.MaterialComponents 해결 방법 (+Material Design 사이트 ) (0) | 2020.09.02 |