Skip to content
Commit c1e6f21f authored by Felipe Leme's avatar Felipe Leme
Browse files

Safecty checker improvements on DevicePolicyManagerService.

- Include mSafetyChecker on dump().
- Change OneTimeSafetyChecker so it's disabled after any operation.
- (Conditionally) log the mSafetyChecker used.

Bug: 172376923

Test: adb shell dumpsys device_policy | grep mSafetyChecker
Test: atest CtsDevicePolicyManagerTestCases:DeviceOwnerTest#testDevicePolicySafetyCheckerIntegration_allOperations,testDevicePolicySafetyCheckerIntegration_isSafeOperation,testDevicePolicySafetyCheckerIntegration_unsafeStateException \
  CtsDevicePolicyManagerTestCases:ProfileOwnerTest#testDevicePolicySafetyCheckerIntegration_allOperations,testDevicePolicySafetyCheckerIntegration_isSafeOperation,testDevicePolicySafetyCheckerIntegration_unsafeStateException

Change-Id: Ife936cea89c6e21a56454766ecb4b29b652bd584
parent c3d7c80f
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