commit | b6d04416628ab29df57efcd738332912d9260cea | [log] [tgz] |
---|---|---|
author | Yuri Lin <yurilin@google.com> | Thu Aug 25 16:23:12 2022 -0400 |
committer | Yuri Lin <yurilin@google.com> | Thu Aug 25 16:23:56 2022 -0400 |
tree | 56c6f82ee4ca09fea0c15562147a5846d50df582 | |
parent | f68bb6df1e9f81d8cd8376ed339d8e6d03641722 [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