티스토리 뷰

반응형

안드로이드에서 부팅 시 앱에서 처리할 내용이 있었다. 디버깅을 하고 싶은데 방법을 찾다가 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

반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함