diff options
author | Allen Shen <ashen@nvidia.com> | 2014-01-02 17:33:13 +0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-17 00:59:22 -0700 |
commit | 72be46991340563a08e1134efbd598f451e04a96 (patch) | |
tree | 1f2a7d55cd19cbf82c5f6307c55424da860d7f9d | |
parent | 11e487b8d23aaaffbcd063df2859a97c5582b396 (diff) | |
download | android_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.xml | 3 |
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" /> |