summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorVictor Chang <vichang@google.com>2016-03-02 11:23:13 +0000
committerVictor Chang <vichang@google.com>2016-03-04 10:34:33 +0000
commit5676ae256a15b73d724c38940356be324fc9647a (patch)
treeb2996eb1a50bc607cfa8e9d3df3ded9f40b37cb0 /tools/aapt2/java/JavaClassGenerator.cpp
parent86ea8f002c921921ae2e3f205e0e7d48c1e375a7 (diff)
isDeviceOwnerProvisioningAllowed implementation to match enforceCanSetDeviceOwnerLocked
The main purpose is to fix the security flaw that user can force isDeviceOwnerProvisioningAllowed to return true by setting the device_provisioned without factory reset Check UserSetupComplete instead, as it's cached by DPMS if it's ever set to true Refactor common code of isDeviceOwnerProvisioningAllowed and enforceCanSetDeviceOwnerLocked The functionality of enforceCanSetDeviceOwnerLocked should be exactly the same. DPM Unit Test all pass Bug:27403225 Change-Id: I32dae8e222e01e08664abb313ead3a92d4186658
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions