add the WAKE_LOCK perm to the DownloadProvider
Fred Quintana [Thu, 6 Feb 2014 00:55:03 +0000 (16:55 -0800)]
The DownloadService needs the WAKE_LOCK permission, which
it normally gets as a side-affect of the MediaProvider
being in the same shared UID. Since clockwork doesn't
include the MediaProvider the uses-permission needs to
be added to DownloadProvider.

Change-Id: Ib3f58695e21e1cf7d841bc55093c26b631092b30

AndroidManifest.xml

index 031b3d3..cee7cbc 100644 (file)
@@ -54,6 +54,7 @@
     <!-- TODO: replace with READ_NETWORK_POLICY permission when it exists -->
     <uses-permission android:name="android.permission.CONNECTIVITY_INTERNAL" />
     <uses-permission android:name="android.permission.MODIFY_NETWORK_ACCOUNTING" />
+    <uses-permission android:name="android.permission.WAKE_LOCK" />
 
     <application android:process="android.process.media"
                  android:label="@string/app_label"