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

Commit e185d524 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk Committed by Android (Google) Code Review
Browse files

Merge "Remove references to NV reset APIs" into main

parents c87ba88f 505b484e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -8385,6 +8385,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) {
@@ -8425,6 +8430,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) {