summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Aurélien Pomini <pomini@google.com> 2023-04-06 09:55:22 +0000
committer Aurélien Pomini <pomini@google.com> 2023-04-12 12:42:56 +0000
commit7965f4d70acbbd9b32a7e855b70f336102516eac (patch)
tree8c90332b85dab28643e1cd83950713271ab44e0c /libs/androidfw/ObbFile.cpp
parent844c5aec4826d6e12e6f25546a2cdd5b73205f2c (diff)
Always return the system default wallpaper with openDefaultWallpaper
This change is gated by flag. If the lockscreen live wallpaper flag is enabled, never return null with openDefaultWallpaper, otherwise the operation clear(FLAG_LOCK) is compromised. clear will delete the cropFile and create an ImageWallpaper engine, without recreating any crop file. The ImageWallpaper engine will then call getBitmap which returns the cropFile, or, if it does not exist, a bitmap from openDefaultWallpaper. Thus our fallback defense with clear relies on the fact openDefaultWallpaper returns something, which was not the case with FLAG_LOCK Test: manual debugging (call clear(LOCK) by setting wallpapers) Bug: 277098137 Change-Id: Id5b8ce84ceb976e143e4da914f08c99b8c8ff835
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions