Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 171eeee6 authored by Eran Messeri's avatar Eran Messeri
Browse files

Implement Device Policy upgrade flow

Implement an upgrade flow in the DevicePolicyManagerService for
admin-set policies.

The purpose is to allow graceful, rather than ad-hoc, setting of default
values for new policies added to DevicePolicyData or ActiveAdmin.

This change also cleans up the lowest of hanging fruits - presence of
password properties metrics, by upgrading from version 0 (nonexistent)
to version 1.

The versioning mechanism is meant for handling additional upgrade
scenarios.

Test: Manual upgrade, flash to a build without a version and check that
the device boots and the version file is created.
Test: atest FrameworksServicesTests:PolicyVersionUpgraderTest
Bug: 181009337

Change-Id: Iac7d345b34beba00d6d5fb10d6fb0a2c745592e0
parent fa2d8ad0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment