recently my clients are reporting some crashes about one of my apps, in that app I needed IMEI of the device to make sure the uniqueness of the users. now in Android Pie we can't access IMEI, whats the alternative now, since there are a lot of my users are signed in, I can't just change the IMEI code to another code.
Asked
Active
Viewed 405 times
-1
-
check `if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.P)` use new imei – Manohar Apr 23 '19 at 09:05
1 Answers
0
Starting in Android Q, apps must have the READ_PRIVILEGED_PHONE_STATE privileged permission in order to access the device's non-resettable identifiers, which include both IMEI and serial number.
Source: https://developer.android.com/preview/privacy/data-identifiers

Gustavo Pagani
- 6,583
- 5
- 40
- 71