summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorBernardo Rufino <brufino@google.com>2019-10-22 11:53:42 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-12-18 06:23:25 +0000
commitd885c3279f3fecb2c08e382c733a440113dae644 (patch)
treee8a8d28fe3b31056abb022bd46a6df5fb65e1cfa /tools/aapt2/java/JavaClassGenerator.cpp
parent87670f362090b4790d85e1347be9849a7461c2a1 (diff)
RESTRICT AUTOMERGE
Make toasts non-clickable Since enforcement was only on client-side, in Toast class, an app could use reflection (or other means) to make the Toast clickable. This is a security vulnerability since it allows tapjacking, that is, intercept touch events and do stuff like steal PINs and passwords. This CL brings the enforcement to the system by applying flag FLAG_NOT_TOUCHABLE. Test: atest CtsWindowManagerDeviceTestCases:ToastTest Test: Construct app that uses reflection to remove flag FLAG_NOT_TOUCHABLE and log click events. Then: 1) Observe click events are logged without this CL. 2) Observer click events are not logged with this CL. Bug: 128674520 Change-Id: Ic36585bc4f186e0224f5b687c49c0b3d9266838c (cherry picked from commit b81f269ae2afb446b9d4a909fc2bcf038af00c41)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions