summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Shen <ashen@nvidia.com>2014-01-02 17:33:13 +0800
committerSteve Kondik <steve@cyngn.com>2014-11-29 11:40:32 -0800
commita37307bbf2e4f1599568ced129a41e0a1772f22a (patch)
treef5a5b6c06c09c0ccbcccda2b58e32f31b484c514
parent8c2dd17c4e2befa3798244c36e16d6be3f7cfa5c (diff)
downloadandroid_development-stable/cm-12.0-YNG1TA.tar.gz
android_development-stable/cm-12.0-YNG1TA.tar.bz2
android_development-stable/cm-12.0-YNG1TA.zip
Grant dev tools system permission to trigger media-scan servicestable/cm-12.0-YNG1TAstable/cm-12.0-YNG1Tstable/cm-12.0-YNG1I
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 74d2f422c..c1233a6e2 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" />