summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorBernardo Rufino <brufino@google.com>2019-10-22 11:53:42 +0100
committerBernardo Rufino <brufino@google.com>2019-10-22 11:53:42 +0100
commit974de956da25167762f8bf1ea153cf4c47763692 (patch)
tree9d5c2dd80a89293152b09e1acf95d8264c6c3803 /tools/aapt2/java/JavaClassGenerator_test.cpp
parente6de1595383ec1159797a29e8b04400925663168 (diff)
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: Working on CTS test 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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions