summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2016-12-05 09:03:24 -0800
committerErik Wolsheimer <ewol@google.com>2017-04-12 16:23:40 +0000
commit59e8e3d7474075e6aea5e879c986105be5063c0c (patch)
treeabea2c2438379542e0c7d16c041eaf12ccc2e180 /tools/aapt2/java/JavaClassGenerator.cpp
parent9e3c9eeb96fde8a3ae16ee0912e911dbc15ab5e4 (diff)
[DO NOT MERGE] Allow multiple toasts for the focused app
We don't allow apps to add multiple toast windows to prevent an attacker to keep adding the same toast as a workaround for our measure to ensure toast windows are removed after a timeout. The may cause backwards compatibility issue for apps that add multiple toasts. While we need to fix the security vulnerability it is desirable to make the fix as backwards compatible as possible. This change allows the focused app to add as many toast windows as it wants since they will be removed after the timeout and once the app is not the one the user uses it will lose the multiple toast add capability. bug:30150688 Change-Id: I2d9295926cb49b5bb80c7af2546872ff8ca22c64 (cherry picked from commit 296a60acc3d67cea23bae167dbcb51c0d0d60b23)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions