diff options
| author | 2023-05-17 15:14:43 +0000 | |
|---|---|---|
| committer | 2023-06-09 12:41:29 +0000 | |
| commit | a5dc9ce04a88cbf73f4350b0415a3f3f82ff625a (patch) | |
| tree | 138d896ed0ea59ee129b1ab5aa8367a75f3f993e /libs/androidfw/ApkParsing.cpp | |
| parent | 8b5a88fd56de83a9991fccb6c1fd464290bb2eda (diff) | |
Strengthen Wallpaper clear logic
The changes are (all under flag):
- support calling clearWallpaperLocked(FLAG_LOCK | FLAG_SYSTEM), which
can be done more efficiently than clear(FLAG_LOCK) then
clear(FLAG_SYSTEM).
- add a check INTERACT_ACROSS_USER_FULL instead of returning if
clear is called for another userId than mCurrentUserId
- use setWallpaperComponent and not bindWallpaperComponentLocked in
clear, since setWallpaperComponent does other important things that
we need when changing wallpapers. This is the most important change.
Also amend the javadoc to clarify the clear behaviour.
Flag: lock screen lwp
Bug: 283091821
Test: atest WallpaperManagerTest
Test: manual: disable security checks, then for all possible
combinations of static/live wallpaper(s), run:
"adb shell service call wallpaper 10 s16 "test" i32 X i32 0"
for X in (1, 2, 3) (resp. system, lock, system | lock)
Change-Id: I86a9f18a1d236633e4de3923861a5b55c7c4c996
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions