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

Commit 07abaa4e authored by emancebo's avatar emancebo Committed by Abhisek Devkota
Browse files

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

Fixes CTS test

RENDANG-314
Change-Id: Idc9b38efd4e8fc56680c10ae46605510c29bda4c
parent d2af427e
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -239,6 +239,17 @@ public class CDMALTEPhone extends CDMAPhone {
        return (mSimRecords != null) ? mSimRecords.getIMSI() : "";
    }


    // 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() {