summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2022-08-25 16:23:12 -0400
committer Yuri Lin <yurilin@google.com> 2022-08-25 21:09:39 +0000
commita826f9bd15d149305814a835fb5d1a3921a085f5 (patch)
treee650c93a1dac50722659c2993c4132818c4c50c6 /libs/androidfw/Util.cpp
parent1914a2f78e7eb52d2f2fac6971ffa05b51c8ed0e (diff)
Check rule package name in ZenModeHelper.addAutomaticRule
instead of checking that of the configuration activity, which is potentially spoofable. The package name is verified to be the same app as the caller by NMS. This change removes isSystemRule (called only once) in favor of checking the provided package name directly. Bug: 242537431 Test: ZenModeHelperTest, manual by verifying via provided exploit apk Change-Id: Ic7f350618c26a613df455a4128c9195f4b424a4d Merged-In: Ic7f350618c26a613df455a4128c9195f4b424a4d
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions