How to get the enrollment-specific identifier of a device, which is guaranteed to be the same value for the same device, enrolled into the same organization by the same managing app.
How to use the getEnrollmentSpecificId () method (added in API level 31) in Kotlin?
public String getEnrollmentSpecificId ()
It returns an enrollment-specific identifier of this device, which is guaranteed to be the same value for the same device, enrolled into the same organization by the same managing app. This identifier uniquely identifies individual devices within the same organization. The identifier would be consistent even if the work profile is removed and enrolled again (to the same organization), or the device is factory reset and re-enrolled.
Usage: