summaryrefslogtreecommitdiff
path: root/libs/androidfw/Util.cpp
diff options
context:
space:
mode:
author Yuri Lin <yurilin@google.com> 2022-09-06 16:14:16 -0400
committer Yuri Lin <yurilin@google.com> 2022-09-06 21:19:57 +0000
commit0b262d0ae5cd30a8411ca3fafd7919d72b2fa464 (patch)
treec059df858c87ba144f746341018267608cafc442 /libs/androidfw/Util.cpp
parentef2a1d60bedbfb271c9aa8457abfb51e476e4119 (diff)
Fix system zen rules by using owner package name if caller is system
Previously were unable to add new zen rules because rules added via the settings pages were getting registered under package "com.android.settings", which then were not considered "system rules". These rules should have package android, so when we can trust the caller (via checking that the caller is system) we should be taking the package name from the owner of the rule. Bug: 245236706 Bug: 242537431 Test: NMSTest; manual Change-Id: Id69b671592396ac3304862dadbe73de328a8e27a Merged-In: Id69b671592396ac3304862dadbe73de328a8e27a
Diffstat (limited to 'libs/androidfw/Util.cpp')
0 files changed, 0 insertions, 0 deletions