Remove unused gsm.defaultpdpcontext.active
Remove unused gsm.defaultpdpcontext.active property
Bug: 137202333
Test: Make
Merged-In: I64dbf9245801927e7320859a9e851d99053f271b
Change-Id: I64dbf9245801927e7320859a9e851d99053f271b
diff --git a/src/java/com/android/internal/telephony/dataconnection/DcTracker.java b/src/java/com/android/internal/telephony/dataconnection/DcTracker.java
index 0b17936..b4500c6 100644
--- a/src/java/com/android/internal/telephony/dataconnection/DcTracker.java
+++ b/src/java/com/android/internal/telephony/dataconnection/DcTracker.java
@@ -616,11 +616,6 @@
//***** Constants
- // Used by puppetmaster/*/radio_stress.py
- private static final String PUPPET_MASTER_RADIO_STRESS_TEST = "gsm.defaultpdpcontext.active";
-
- private static final int POLL_PDP_MILLIS = 5 * 1000;
-
private static final int PROVISIONING_SPINNER_TIMEOUT_MILLIS = 120 * 1000;
static final Uri PREFERAPN_NO_UPDATE_URI_USING_SUBID =
@@ -2694,24 +2689,12 @@
}
// everything is setup
- if (TextUtils.equals(apnContext.getApnType(), PhoneConstants.APN_TYPE_DEFAULT)) {
- try {
- SystemProperties.set(PUPPET_MASTER_RADIO_STRESS_TEST, "true");
- } catch (RuntimeException ex) {
- log("Failed to set PUPPET_MASTER_RADIO_STRESS_TEST to true");
- }
- if (mCanSetPreferApn && mPreferredApn == null) {
- if (DBG) log("onDataSetupComplete: PREFERRED APN is null");
- mPreferredApn = apn;
- if (mPreferredApn != null) {
- setPreferredApn(mPreferredApn.getId());
- }
- }
- } else {
- try {
- SystemProperties.set(PUPPET_MASTER_RADIO_STRESS_TEST, "false");
- } catch (RuntimeException ex) {
- log("Failed to set PUPPET_MASTER_RADIO_STRESS_TEST to false");
+ if (TextUtils.equals(apnContext.getApnType(), PhoneConstants.APN_TYPE_DEFAULT)
+ && mCanSetPreferApn && mPreferredApn == null) {
+ if (DBG) log("onDataSetupComplete: PREFERRED APN is null");
+ mPreferredApn = apn;
+ if (mPreferredApn != null) {
+ setPreferredApn(mPreferredApn.getId());
}
}
@@ -2923,11 +2906,6 @@
}
// If APN is still enabled, try to bring it back up automatically
if (mAttached.get() && apnContext.isReady() && retryAfterDisconnected(apnContext)) {
- try {
- SystemProperties.set(PUPPET_MASTER_RADIO_STRESS_TEST, "false");
- } catch (RuntimeException ex) {
- log("Failed to set PUPPET_MASTER_RADIO_STRESS_TEST to false");
- }
// Wait a bit before trying the next APN, so that
// we're not tying up the RIL command channel.
// This also helps in any external dependency to turn off the context.