Hold RECEIVE_BOOT_COMPLETED permission to receive ACTION_BOOT_COMPLETED
Bug: 36530928
Test: follow steps to repro in http://b/36530928#comment2; also added
debug statement to verify that broadcast is received when phone
is booted.
Change-Id: I85ecb443064d76477026fdea52fc25cebb1f2013
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d44ae6e..974824b 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -55,6 +55,7 @@
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
<!-- Following used for getting the status of the contacts sync adapter -->
<uses-permission android:name="android.permission.READ_SYNC_STATS"/>
+ <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-feature
android:name="android.hardware.telephony"