diff options
| author | 2023-05-09 14:08:23 +0100 | |
|---|---|---|
| committer | 2023-05-10 17:32:50 +0100 | |
| commit | a855429993433a007f200465a571bab7364dbff4 (patch) | |
| tree | e4f6ac13dc4cd120aa5bfe1a57283f3fedcedae4 /libs/androidfw/ApkParsing.cpp | |
| parent | e28c758073e304f87b9a0566d6daf6607ef58960 (diff) | |
Allow rolling back Turn Off Work 2.0
To facilitate it, previous effective value is stored in
DevicePolicyData, with "true" default value to avoid
storing it. When the system boots, if the current flag
value is different from the stored one, suspension is
updated.
An upgrade step sets the stored state to "false" once,
so that devices upgrading from pre-U get their work
apps suspended if in quiet mode.
Bug: 265683382
Test: Manual, via device_config
Test: atest PolicyVersionUpgraderTest
Change-Id: I711ace4cc2f8da6ce4f85aa0f0cde740dba2ba02
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions