title: Android Q Beta 4 get IMEI and IMSI
body: <p>I just noticed something interesting happen in Android Q Beta 4 that was not happening in Android Q Beta 3</p>
  <p>According to the documentation getIMEI() - <a href="https://developer.android.com/reference/android/telephony/TelephonyManager.html#getImei()" rel="nofollow noreferrer">https://developer.android.com/reference/android/telephony/TelephonyManager.html#getImei()</a></p>
  <blockquote>
  <p>Returns the IMEI (International Mobile Equipment Identity). Return null if IMEI is not available.</p>
  <p>Requires Permission: READ_PRIVILEGED_PHONE_STATE, for the calling app to be the device or profile owner and have the READ_PHONE_STATE permission, or that the calling app has carrier privileges (see hasCarrierPrivileges()).</p>
  </blockquote>
  <p>However using the Android Emulator (Google Play Store) I can still access the device IMEI if I'm the default SMS App:</p>
  <ul>
  <li>READ_PHONE_STATE + Default SMS App --&gt; Will return device IMEI</li>
  <li>READ_PHONE_STATE --&gt; Will return null</li>
  </ul>
  <p>This was not happening with Beta 3, even with the (READ_PHONE_STATE + Default SMS App) combination I was not able to access the IMEI, which is fine it matches the Q documentation</p>
  <p>From what I understand the Android Beta 4 behavior goes against the documentation and the new Android Q &quot;Non-resettable device identifiers&quot; restrictions.</p>
  <p>Anyone knows if this is a regression from the Beta 3 or did Google change this behavior and did not update the Android documentation?</p>