summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2022-08-25 16:23:12 -0400
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2022-09-14 17:52:32 +0000
commit83183e08c1ca3f21b2389df786cd5fb257081243 (patch)
tree422e0dc1e648f2f82c288aad4ee214fd5a084b54 /libs/androidfw/StringPool.cpp
parent1aae720772a86e2db682d2e9ed77937334e475f3 (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 (cherry picked from commit a826f9bd15d149305814a835fb5d1a3921a085f5) Merged-In: Ic7f350618c26a613df455a4128c9195f4b424a4d
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions