summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Shen <ashen@nvidia.com>2014-01-02 17:33:13 +0800
committerSteve Kondik <steve@cyngn.com>2015-10-17 00:59:22 -0700
commit72be46991340563a08e1134efbd598f451e04a96 (patch)
tree1f2a7d55cd19cbf82c5f6307c55424da860d7f9d
parent11e487b8d23aaaffbcd063df2859a97c5582b396 (diff)
downloadandroid_development-72be46991340563a08e1134efbd598f451e04a96.tar.gz
android_development-72be46991340563a08e1134efbd598f451e04a96.tar.bz2
android_development-72be46991340563a08e1134efbd598f451e04a96.zip
Grant dev tools system permission to trigger media-scan service
Google add the action ACTION_MEDIA_MOUNT into the list of protected boradcast, so that ordinary apps cannot trigger media scanning by directly sending the action out. The system built-in dev tool is granted system permission so that it will not crash when executing media scaning tools. Change-Id: I19797e61ba829df39d2b66f209cf41bf6565170f
-rw-r--r--apps/Development/AndroidManifest.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/Development/AndroidManifest.xml b/apps/Development/AndroidManifest.xml
index 252de9d67..69dc1e2ab 100644
--- a/apps/Development/AndroidManifest.xml
+++ b/apps/Development/AndroidManifest.xml
@@ -16,7 +16,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.development"
- android:versionCode="1" android:versionName="1.0">
+ android:versionCode="1" android:versionName="1.0"
+ android:sharedUserId="android.uid.system">
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />