summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Pavel Grafov <pgrafov@google.com> 2024-08-02 17:25:30 +0100
committer Pavel Grafov <pgrafov@google.com> 2024-08-07 19:00:16 +0100
commit1de4bf95aa8103d7c44ca23e24fd609716b71943 (patch)
treeb8f91423947dd7cf22054f4eb3be7f155d3737df /libs/androidfw/StringPool.cpp
parentc72414a32f0ac86cd97e41538d68aaa692f1bc6c (diff)
Stop reading redundant policy definition.
(non-generic) PolicyKey fully determines PolicyDefinitions. This information is currently stored and loaded twice, under `policy-key-entry` and also under `policy-definition-entry`, e.g.: ``` <local-policy-entry user-id="0"> <policy-key-entry policy-identifier="applicationHidden" package-name="com.google.android.GoogleCamera" /> <policy-state-entry> <policy-definition-entry policy-identifier="applicationHidden" package-name="com.google.android.GoogleCamera" /> <resolved-value-entry value="true" /> ``` This is wasteful and allows (in theory) for inconsistencies. This CL obsoletes the internal `policy-definition-entry` entry tag and deserializes PolicyDefinition using `policy-key-entry` in the surrounding `local/global-policy-entry`. After the flag is fully rolled out we can stop writing the flag. Bug: 335663055 Test: TH + manual Flag: android.app.admin.flags.dont_read_policy_definition Change-Id: Ibf3fe8c75ef9a241d4689f02f18c3f85a21e6b66
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions