summaryrefslogtreecommitdiff
path: root/libs/androidfw/BigBufferStream.cpp
diff options
context:
space:
mode:
author ThiƩbaud Weksteen <tweek@google.com> 2024-04-08 13:17:34 +1000
committer ThiƩbaud Weksteen <tweek@google.com> 2024-04-08 13:38:30 +1000
commit617181cb398a15667555db1f05218cfb0f85f979 (patch)
treed809af36b703187b57bc8f9ad5e5b6202abc2280 /libs/androidfw/BigBufferStream.cpp
parentac45efa0f07b7e961b7f91227efb84847fd07827 (diff)
Accept MODE_DEFAULT for ACCESS_NOTIFICATIONS
In commit 8dfdb4f9358e55b7c06004b3af58951607c16613, the mode for ACCESS_NOTIFICATIONS was changed from MODE_ALLOWED to MODE_DEFAULT. It means that when noteOp is called, it may now return MODE_DEFAULT. Change the check on the return value to also accept MODE_DEFAULT. The actual permission check is done earlier in the three methods, with a call to the _enforcePermission method. Also clean up the @EnforcePermission annotations to clarify their scope. This is a purely esthetic change. Bug: 332787465 Test: boot & check Notification History Test: confirm b/329409825 remains fixed Change-Id: I75a83cc42ab265ad381254c7ecafeb2088e665cc
Diffstat (limited to 'libs/androidfw/BigBufferStream.cpp')
0 files changed, 0 insertions, 0 deletions