My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 14044: RECEIVE_BOOT_COMPLETED not required for BOOT_COMPLETED broadcast
20 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Reported by CommonsG...@gmail.com, Jan 15, 2011
Environment: Android 2.2 (emulator, Nexus One) and Android 2.3 (Nexus S)

Symptoms: You can register a BOOT_COMPLETED broadcast receiver, which will get control even if RECEIVE_BOOT_COMPLETED is not requested as a permission.

Sample code: grab https://github.com/commonsguy/cw-advandroid/tree/master/SystemEvents/OnBoot, comment out the RECEIVE_BOOT_COMPLETED permission, install, and test. You will see the "Hi, Mom!" logged by the BroadcastReceiever.

Dec 6, 2011
#1 gud...@gmail.com
"Bug" reproduced on Tablet SG 10.1, Android 3.1
Feb 8, 2012
#2 xacc....@gmail.com
Appears to be fixed in ICS
Oct 11, 2012
#4 yogitach...@gmail.com
This issue is still reproducible on JB.
Jul 15, 2013
#5 capit...@gmail.com
I don't reproduce this bug in the emulator running Android 4.2.2. I get this error:

07-15 11:55:26.011: W/BroadcastQueue(306): Permission Denial: receiving Intent { act=android.intent.action.BOOT_COMPLETED flg=0x10 (has extras) } to com.example.myapp.debug/com.example.myapp.BootReceiver requires android.permission.RECEIVE_BOOT_COMPLETED due to sender null (uid 1000)

A project member may want to verify and update the status.


Sign in to add a comment

Powered by Google Project Hosting