diff options
| author | 2022-12-15 13:51:41 +0000 | |
|---|---|---|
| committer | 2023-03-08 13:10:11 +0000 | |
| commit | b55648924c6d312e6df3d36af1657802569c4814 (patch) | |
| tree | 610714749620a404cb8b9ed3e62a54b97e2af575 /libs/androidfw/FileStream.cpp | |
| parent | b29ba60eb86bb3e977fd69aff1dee9a03a9468c5 (diff) | |
Update read wallpaper methods (U and above)
The following methods in WallpaperManager:
- getDrawable()
- getDrawable(int which)
- peekDrawable()
- peekDrawable(int which)
- getFastDrawable()
- getFastDrawable(int which)
- peekFastDrawable()
- peekFastDrawable(int which)
- getWallpaperFile(int which)
Have been changed in T to return the default system wallpaper data unless the caller has the internal permission READ_WALLPAPER_INTERNAL (or MANAGE_EXTERNAL_STORAGE).
The READ_WALLPAPER_INTERNAL permission has been added in the SystemUI and shell AndroidManifest.
This CL also stops returning the cached wallpaper if an app doesn't hold
the READ_WALLPAPER_INTERNAL permission.
Test: treehugger
Test: atest CtsScopedStorageDeviceOnlyTest
Test: atest ScopedStorageHostTest
Test: atest CtsAppOpsTestCases
Test: atest CtsWallpaperTestCases
Test: atest NoWallpaperPermissionsTest
Test: atest LauncherIronwoodIntegrationTests (see
HomescreenCustomizationTests#testChangeWallpaper)
Bug: 261906287
Bug: 239784307
Change-Id: I8f90fbe78668e4e1d09188196180ca39c6b760b1
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions