I need the SIM Serial Number to identify the SIM Card for application. The code is very simple for single SIM phones,
TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
sim_ID = telephonyManager.getSimSerialNumber();
However, when I test this on a dual SIM phone it gets weird because I can't be sure if the serial number returned is from Slot 1 or Slot 2. Is there any way to get both sim serial numbers? Or can I, in any way, identify which Sim slot is returning the serial number when the above code is called?
P.S. I don't need IMEI numbers or IMSI numbers. I specifically need the SIM serial number (SSN).