Skip to content
Commit 44fcf29a authored by Neil Fuller's avatar Neil Fuller
Browse files

Fix DevicePolicyManager setTime() behavior / tests

Fix DevicePolicyManagerService setTime() behavior and associated CTS
tests. Since change ID If48d465fce04c094a997b25c8b62fcf0c3386ebe,
DevicePolicyManagerService calls TimeDetector.suggestManualTime().
Before doing so it clears client permissions so it is reliant on system
server permissions. The permission check for suggestManualTime() should
therefore be a enforceCallingOrSelfPermission() not a
enforceCallingPermission().

Bug: 145508391
Bug: 140712361
Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testSetTime
Change-Id: I20678e145127fd67f356f1c29abc30b484278231
parent 5f01cb6d
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