Skip to content
Commit c152198e authored by Ayush Sharma's avatar Ayush Sharma
Browse files

Construct ESIDCalculator class object just once

Construct EnterpriseSpecificIdCalculator object just once and out
of DevicePolicyManagerService class wide lock, to stop the deadlock, as
ESIDCalculator constructor depends on telephony and wifi service, which
in turn could be calling to DPMS trying to hold the lock causing the
deadlock.

Bug: 191741106
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testEnrollmentSpecificIdCorrectCalculation com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testEnrollmentSpecificIdCorrectCalculation com.android.cts.devicepolicy.MixedDeviceOwnerTest#testEnrollmentSpecificIdEmptyAndMultipleSet com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testEnrollmentSpecificIdEmptyAndMultipleSet
Change-Id: I5ec2ae6f476fcc7ca2a3114f8133653cfbbd349b
parent 52d87ab5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment