Skip to content

Instantly share code, notes, and snippets.

@thinkfeed
Created June 25, 2013 14:17
Show Gist options
  • Save thinkfeed/5858796 to your computer and use it in GitHub Desktop.
Save thinkfeed/5858796 to your computer and use it in GitHub Desktop.
adb发送BOOT_COMPLETED
我们可以通过
1
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
命令发送BOOT_COMPLETED广播,而不用重启测试机或模拟器来测试BOOT_COMPLETED广播,这条命令可以更精确的发送到某个package,如下:
1
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n package_name/class_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment