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

Commit 7bbe39ad authored by emancebo's avatar emancebo Committed by Deepak Kundra
Browse files

telephony: use IMEI as device ID when LteOnCdma mode is enabled

Fixes CTS test

Change-Id: Idc9b38efd4e8fc56680c10ae46605510c29bda4c
parent 1d1ff6ab
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -267,6 +267,17 @@ public class CDMALTEPhone extends CDMAPhone {
        return "";
    }


    // fix CTS test expecting IMEI to be used as device ID when in LteOnCdma mode
    @Override
    public String getDeviceId() {
        if (TelephonyManager.getLteOnCdmaModeStatic() == PhoneConstants.LTE_ON_CDMA_TRUE) {
            return mImei;
        } else {
            return super.getDeviceId();
        }
    }

    // return GID1 from USIM
    @Override
    public String getGroupIdLevel1() {