1

Willing to gather SIM serial information (aka ICCID) through SDK. The current method TelephonyManager#getSimSerialNumber does not seem to work on API level 29. However, I have seen other Apps working fine on Android 10. Any hint of how this can be alternatively achieved? Thanks

karllindmark
  • 6,031
  • 1
  • 26
  • 41
fturriaf
  • 9
  • 1

1 Answers1

0

Have you requested the READ_PRIVILEGED_PHONE_STATE permission? It's required in API level 29 and onward as per the Privacy changes that came with that release.

Privacy changes Android 10

karllindmark
  • 6,031
  • 1
  • 26
  • 41
  • Hi. I tried without success. Seems it has been restricted by Google, see: https://stackoverflow.com/questions/55173823/i-am-getting-imei-null-in-android-q – fturriaf Jul 28 '20 at 23:03
  • Did you try this workaround? https://stackoverflow.com/a/59560877/860212 – karllindmark Jul 29 '20 at 06:03