diff options
| author | 2024-12-05 11:29:42 -0800 | |
|---|---|---|
| committer | 2024-12-05 20:20:32 -0800 | |
| commit | 505b484ee56c1817b5874c753063906a21fdd11f (patch) | |
| tree | 0b9a024ec41302c259fef8e18cc648ff5544cab3 | |
| parent | 92e16f1afc487fc33d58b93965f9cb2c6552791d (diff) | |
Remove references to NV reset APIs
Bug: 379356026
Test: m
Flag: com.android.internal.telephony.flags.cleanup_cdma
Change-Id: I56c8f0326505e8d529b8de889db207e83569b2d8
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index a5913d3067c6..6b0fcdcb9e8b 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -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) { |