summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/AndroidManifest.xml
diff options
context:
space:
mode:
authorSamuel Asteberg <samuel.asteberg@sonymobile.com>2015-02-25 15:51:05 +0100
committerJohan Redestig <johan.redestig@sonymobile.com>2015-03-23 13:50:09 +0100
commit8d516a80a056943c8265a4e0af63e41d8cdffede (patch)
tree244bc7dcad75949821fde7fcabeb0d6e3df55b23 /packages/SystemUI/AndroidManifest.xml
parent38fcaf4037a50225b931551a48c898c7b0bb4db2 (diff)
downloadframeworks_base-8d516a80a056943c8265a4e0af63e41d8cdffede.zip
frameworks_base-8d516a80a056943c8265a4e0af63e41d8cdffede.tar.gz
frameworks_base-8d516a80a056943c8265a4e0af63e41d8cdffede.tar.bz2
SystemUI needs the SET_WALLPAPER permission
If changing wallpaper when low on memory, retrieving the default wallpaper may return null, which triggers error handling in ImageWallpaper. This error handling tries to perform WallpaperManager.clear(), but for that it needs SET_WALLPAPER permission, which it does not have. For users with apps that auto change wallpaper, this issue can be frequent in low-memory conditions. The solution is to add the permisson. Change-Id: I81503c1667e3952c2dd15599969f7dcc51623e5b
Diffstat (limited to 'packages/SystemUI/AndroidManifest.xml')
-rw-r--r--packages/SystemUI/AndroidManifest.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/AndroidManifest.xml b/packages/SystemUI/AndroidManifest.xml
index b606a6f..226a8ca 100644
--- a/packages/SystemUI/AndroidManifest.xml
+++ b/packages/SystemUI/AndroidManifest.xml
@@ -104,6 +104,9 @@
<uses-permission android:name="android.permission.ACCESS_KEYGUARD_SECURE_STORAGE" />
<uses-permission android:name="android.permission.TRUST_LISTENER" />
+ <!-- Needed for WallpaperManager.clear in ImageWallpaper.updateWallpaperLocked -->
+ <uses-permission android:name="android.permission.SET_WALLPAPER"/>
+
<!-- Recents -->
<uses-permission android:name="android.permission.BIND_APPWIDGET" />