diff options
author | Allen Shen <ashen@nvidia.com> | 2014-01-02 17:33:13 +0800 |
---|---|---|
committer | Chirayu Desai <chirayudesai1@gmail.com> | 2016-08-27 23:57:58 +0530 |
commit | e2695f83fce806a3ea453a5a17fb1d5e49c5e90c (patch) | |
tree | ceda3be86610dd2e8e9d2261ea053b13bcf42ba3 | |
parent | cfc03cf979b90dc2be1e031512f50cfe55b28c87 (diff) | |
download | android_development-e2695f83fce806a3ea453a5a17fb1d5e49c5e90c.tar.gz android_development-e2695f83fce806a3ea453a5a17fb1d5e49c5e90c.tar.bz2 android_development-e2695f83fce806a3ea453a5a17fb1d5e49c5e90c.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 f09434c51..ce77a08fe 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" /> |