diff options
author | Bernardo Rufino <brufino@google.com> | 2020-02-19 14:37:58 +0000 |
---|---|---|
committer | Bernardo Rufino <brufino@google.com> | 2020-02-28 21:42:36 +0000 |
commit | 0a7ced1dd3aa24064d7e6901d3b7c5cf49b35e26 (patch) | |
tree | ca5e4304273c86a8869f5551f21e62d5bc72b597 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | f9de0572fbda33a20daa2dfbfb62a651bb96a95e (diff) |
Show toasts from system/sysUI to all users
The package name test is safe:
* If it's used by Toast class in an app, apps have access to layout
params anyway via getWindowParams() and applied flag is already
protected by INTERNAL_SYSTEM_WINDOW permission.
* If it's used by ToastUI class in sys UI on behalf of another app,
sys UI is trusted domain and can't be messed up by another app. It
also has INTERNAL_SYSTEM_WINDOW permission.
Bug: 149408635
Test: atest ToastUITest android.widget.cts.ToastTest
android.widget.cts29.ToastTest android.server.wm.ToastTest
Test: Change phone to vibration/silent in secondary user and observe
toast is displayed.
Change-Id: I227e9f74166300fcb3ba8f3871b464afe6ec6a28
Merged-In: I227e9f74166300fcb3ba8f3871b464afe6ec6a28
(cherry picked from commit caef507aa935b3724bd19096b31d557aa0fc787a)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions