diff options
author | Eran Messeri <eranm@google.com> | 2020-03-05 10:38:32 +0000 |
---|---|---|
committer | Eran Messeri <eranm@google.com> | 2020-03-05 10:41:06 +0000 |
commit | 46bedf31840e07adc86d3a2fab4324345dd8ecfb (patch) | |
tree | 5350dfa0d185b834744695ff9bd76298bcce38d2 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d021b2851ade8d3f34452ddaa42f9882e376fda3 (diff) |
Restrict adding managed profile in DO devices
On devices that have a Device Owner, or had a Device Owner and Profile
Owner and the managed profile was removed, apply the restriction
for adding a managed profile.
This would prevent such devices from getting into the DO+PO mode, which
is no longer supported in R.
Bug: 149006203
Test: Manual, set TestDPC as the Device Owner, upgrade it, observe TestDPC cannot create a managed profile.
Test: Manual, have a device with different DO and PO packages, remove PO, observe it cannot be re-added.
Change-Id: Iea48049a671071d2ad075b5e4c9ae3ce830975d3
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions