title: How to get IMEI in android 10
body: <p>For security purposes, I want to store the IMEI number of app users but I am getting the following error </p>
  
  <pre><code>2020-02-14 13:29:36.620 14794-14794/com.udaan.android.creditoperations E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.udaan.android.creditoperations, PID: 14794
      java.lang.SecurityException: getImeiForSlot: The user 10643 does not meet the requirements to access device identifiers.
          at android.os.Parcel.createException(Parcel.java:2071)
          at android.os.Parcel.readException(Parcel.java:2039)
          at android.os.Parcel.readException(Parcel.java:1987)
          at com.android.internal.telephony.ITelephony$Stub$Proxy.getImeiForSlot(ITelephony.java:10471)
          at android.telephony.TelephonyManager.getImei(TelephonyManager.java:1754)
          at android.telephony.TelephonyManager.getImei(TelephonyManager.java:1715)
  </code></pre>
  
  <p>Is there any way to access IMEI number including latest android devices?</p>