summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorRubin Xu <rubinxu@google.com>2020-05-28 22:56:59 +0100
committerRubin Xu <rubinxu@google.com>2020-06-04 20:25:30 +0100
commit1637f34cd5fe72e67f70edbcad8d31c2ba60925b (patch)
treec9ce9f5e3fff14f2c806ca155d52310626d3fc1b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent83e9ba45a4f874ecd81aeda3a4ff7964b1eba3ba (diff)
Load owner info during DevicePolicyManagerSerivce construction
While most of the admin policy (DevicePolicyData) is loaded lazily wheneve they are read, the list of Device and Profile owners are currently loaded during PHASE_LOCK_SETTINGS_READY, which means policy getters relying on the list of owners, for example isCommonCriteriaModeEnabled, does not work until this boot phase. It turns out that some other system services (WifiService) will attempt to read the policy before this boot phase and hence fails. Fix this by loading the owner info as part of DevicePolicyManagerSerivce construction, so the info is always available. Test: atest FrameworksServicesTests:DevicePolicyManagerTest Test: Set TestDPC as DO, enable Common Criteria mode, add WiFi, Check /data/misc/apexdata/com.android.wifi/WifiConfigStore.xml for the lack of plaintext WiFi PSK. Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testSecurityLogging Bug: 157476512 Change-Id: If403cf98574612cb44f7c8a697095276c65087fe
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions