summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorSterling Huber <hubers@google.com>2019-11-07 11:04:03 -0800
committerSterling Huber <hubers@google.com>2019-12-09 18:17:39 +0000
commitfe4bf7926ed91661a39a08fabfc0eb55e2fb4f32 (patch)
treeb0e46971ca365abcd9a38331f8db971fd936a20a /tools/aapt2/java/JavaClassGenerator.cpp
parent17fd6580615240ad7b657ef8bb042bf612c66319 (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: 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: Ica346c853dcb9a1e494f7143ba1c38d22c0003d0 Merged In: Ica346c853dcb9a1e494f7143ba1c38d22c0003d0
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions