3

How to find ICCID of SIM in Android device connected to Linux PC using command?

I have connected my Android device with SIM to my Linux PC. I want to know ICCID of SIM in Andorid phone.

I can get the ICCID using getIccSerialNumber() when used in Android Application. But I don't want to run Android App on a phone. Instead, I want to get the ICCID using my Linux PC only. i.e. Either by using adb command or running a C program in my PC.

How can I do it?

Alex P.
  • 30,437
  • 17
  • 118
  • 169
user1865411
  • 69
  • 2
  • 2
  • 4
  • I'm voting to close this question as off-topic because questions about Android **usage** are prohibited on Stackoverflow. The only Android questions permitted here are those about Application and System Development, and related Development Tools. – Chris Stratton May 31 '18 at 02:52

2 Answers2

2

To call getIccSerialNumber() do:

adb shell service call iphonesubinfo 11
Alex P.
  • 30,437
  • 17
  • 118
  • 169
0

adb shell dumpsys iphonesubinfo

Refer to the usage of service call command in here adb shell dumpsys iphonesubinfo!

PoZ
  • 13
  • 1
  • 4