summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Matías Hernández <matiashe@google.com> 2024-02-21 17:54:10 +0100
committer Matías Hernández <matiashe@google.com> 2024-02-21 17:54:10 +0100
commit37ccd192ed7550bc6055ed09cc6a3692fc0d8bfa (patch)
tree7fbe9b81804551953d55c62f1401fa5b4d17fa56 /libs/androidfw/FileStream.cpp
parent7e1188270bc67e677a933dae218c94e63117eae8 (diff)
Verify rule ownership in setAutomaticZenRuleState
Implementation now matches API documentation -- apps can only activate/deactivate their own rules. Also refactored applyGlobalZenModeAsImplicitZenRule slightly to remove repetition and call setAutomaticZenRuleStateLocked directly (doesn't need the rule ownership check since we already know it's the implicit rule for that package). Fixes: 326199494 Test: atest ZenModeHelperTest NotificationManagerZenTest Change-Id: I4efecaafb7798dc72bf0955c1b1604c92c8f27e8
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions