Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6ad2ce8 authored by Sindhu Kanathur's avatar Sindhu Kanathur
Browse files

Display IMEI number for *#06# when no sim

When there is no sim, display the IMEI based
on the default slotId.

Change-Id: I34b6d6b35ddf34026ab064e2f73d47941d901165
CRs-Fixed: 794575
parent 5b4258ad
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -287,6 +287,8 @@ public class SpecialCharSequenceMgr {
        String imeiStr = null;
        String imeiStr = null;
        long subId = SubscriptionManager.getDefaultVoiceSubId();
        long subId = SubscriptionManager.getDefaultVoiceSubId();
        int slotId = SubscriptionManager.getSlotId(subId);
        int slotId = SubscriptionManager.getSlotId(subId);
        //In case of no-sim, slotId will be -1.
        if (slotId < 0) slotId = 0;
        imeiStr = telephonyManager.getDeviceId(slotId);
        imeiStr = telephonyManager.getDeviceId(slotId);


        AlertDialog alert = new AlertDialog.Builder(context)
        AlertDialog alert = new AlertDialog.Builder(context)
@@ -302,6 +304,8 @@ public class SpecialCharSequenceMgr {
        String meidStr = null;
        String meidStr = null;
        long subId = SubscriptionManager.getDefaultVoiceSubId();
        long subId = SubscriptionManager.getDefaultVoiceSubId();
        int slotId = SubscriptionManager.getSlotId(subId);
        int slotId = SubscriptionManager.getSlotId(subId);
        //In case of no-sim, slotId will be -1.
        if (slotId < 0) slotId = 0;
        meidStr = telephonyManager.getDeviceId(slotId);
        meidStr = telephonyManager.getDeviceId(slotId);


        AlertDialog alert = new AlertDialog.Builder(context)
        AlertDialog alert = new AlertDialog.Builder(context)