summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2019-12-18 09:54:09 -0500
committerFabian Kozynski <kozynski@google.com>2020-01-10 13:28:26 -0500
commit34e85c9613bcb84f39584eb4a468106cf20dfea4 (patch)
treed40a905479c51e9a8c2c67bf298a0bb4a6236c2d /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3df3e3b0bf41b8d0cfe683bdd9ff8b8af480f1fa (diff)
Prevent sending early termination of appop use
If a package starts a particular appop both as active and noted, once one of them is finished (usually noted after 5s), a message will be sent to callbacks indicating the end of the use. However, the app op may still be active. This could result in the removal of indicators prematurely from notifications. This change prevents that from happening by checking if the app op is still in use by that combination uid/package (either active or noted) and not notifying listeners if that's the case. Also removed user sensitive checks. Test: atest AppOpsControllerTest Test: use app from bug report. Observe that notification does not lose the microphone indicator Bug: 144092031 Change-Id: I180e7c257e6171e7686ba7eda9bf02249358ed00
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions