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

Commit 505b484e authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Remove references to NV reset APIs

Bug: 379356026
Test: m
Flag: com.android.internal.telephony.flags.cleanup_cdma
Change-Id: I56c8f0326505e8d529b8de889db207e83569b2d8
parent 92e16f1a
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -8373,6 +8373,11 @@ public class TelephonyManager {
    @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
    @Deprecated
    public boolean nvResetConfig(int resetType) {
        if (Flags.cleanupCdma()) {
            if (resetType != 1) {  // 1: reload NV reset (reboot modem)
                return false;
            }
        }
        try {
            ITelephony telephony = getITelephony();
            if (telephony != null) {
@@ -8413,6 +8418,9 @@ public class TelephonyManager {
    @SystemApi
    @RequiresFeature(PackageManager.FEATURE_TELEPHONY_RADIO_ACCESS)
    public boolean resetRadioConfig() {
        if (Flags.cleanupCdma()) {
            return false;
        }
        try {
            ITelephony telephony = getITelephony();
            if (telephony != null) {