Loading core/java/android/provider/Settings.java +0 −9 Original line number Diff line number Diff line Loading @@ -2761,7 +2761,6 @@ public final class Settings { MOVED_TO_GLOBAL.add(Settings.Global.SET_GLOBAL_HTTP_PROXY); MOVED_TO_GLOBAL.add(Settings.Global.DEFAULT_DNS_SERVER); MOVED_TO_GLOBAL.add(Settings.Global.PREFERRED_NETWORK_MODE); MOVED_TO_GLOBAL.add(Settings.Global.PREFERRED_CDMA_SUBSCRIPTION); } /** @hide */ Loading Loading @@ -5334,14 +5333,6 @@ public final class Settings { public static final String PREFERRED_NETWORK_MODE = "preferred_network_mode"; /** * The cdma subscription 0 = Subscription from RUIM, when available * 1 = Subscription from NV * @hide */ public static final String PREFERRED_CDMA_SUBSCRIPTION = "preferred_cdma_subscription"; /** * Name of an application package to be debugged. */ Loading packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +8 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import com.android.internal.content.PackageHelper; import com.android.internal.telephony.Phone; import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.RILConstants; import com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager; import com.android.internal.util.XmlUtils; import com.android.internal.widget.LockPatternUtils; import com.android.internal.widget.LockPatternView; Loading Loading @@ -1429,7 +1430,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { }; String[] secureToGlobal = { Settings.Global.PREFERRED_NETWORK_MODE, Settings.Global.PREFERRED_CDMA_SUBSCRIPTION, Settings.Global.CDMA_SUBSCRIPTION_MODE, }; moveSettingsToNewTable(db, TABLE_SYSTEM, TABLE_GLOBAL, systemToGlobal, true); Loading Loading @@ -2246,6 +2247,12 @@ public class DatabaseHelper extends SQLiteOpenHelper { RILConstants.PREFERRED_NETWORK_MODE); loadSetting(stmt, Settings.Global.PREFERRED_NETWORK_MODE, type); // Set the preferred cdma subscription source to target desired value or default // value defined in CdmaSubscriptionSourceManager type = SystemProperties.getInt("ro.telephony.default_cdma_sub", CdmaSubscriptionSourceManager.PREFERRED_CDMA_SUBSCRIPTION); loadSetting(stmt, Settings.Global.CDMA_SUBSCRIPTION_MODE, type); // --- New global settings start here } finally { if (stmt != null) stmt.close(); Loading Loading
core/java/android/provider/Settings.java +0 −9 Original line number Diff line number Diff line Loading @@ -2761,7 +2761,6 @@ public final class Settings { MOVED_TO_GLOBAL.add(Settings.Global.SET_GLOBAL_HTTP_PROXY); MOVED_TO_GLOBAL.add(Settings.Global.DEFAULT_DNS_SERVER); MOVED_TO_GLOBAL.add(Settings.Global.PREFERRED_NETWORK_MODE); MOVED_TO_GLOBAL.add(Settings.Global.PREFERRED_CDMA_SUBSCRIPTION); } /** @hide */ Loading Loading @@ -5334,14 +5333,6 @@ public final class Settings { public static final String PREFERRED_NETWORK_MODE = "preferred_network_mode"; /** * The cdma subscription 0 = Subscription from RUIM, when available * 1 = Subscription from NV * @hide */ public static final String PREFERRED_CDMA_SUBSCRIPTION = "preferred_cdma_subscription"; /** * Name of an application package to be debugged. */ Loading
packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +8 −1 Original line number Diff line number Diff line Loading @@ -47,6 +47,7 @@ import com.android.internal.content.PackageHelper; import com.android.internal.telephony.Phone; import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.RILConstants; import com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager; import com.android.internal.util.XmlUtils; import com.android.internal.widget.LockPatternUtils; import com.android.internal.widget.LockPatternView; Loading Loading @@ -1429,7 +1430,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { }; String[] secureToGlobal = { Settings.Global.PREFERRED_NETWORK_MODE, Settings.Global.PREFERRED_CDMA_SUBSCRIPTION, Settings.Global.CDMA_SUBSCRIPTION_MODE, }; moveSettingsToNewTable(db, TABLE_SYSTEM, TABLE_GLOBAL, systemToGlobal, true); Loading Loading @@ -2246,6 +2247,12 @@ public class DatabaseHelper extends SQLiteOpenHelper { RILConstants.PREFERRED_NETWORK_MODE); loadSetting(stmt, Settings.Global.PREFERRED_NETWORK_MODE, type); // Set the preferred cdma subscription source to target desired value or default // value defined in CdmaSubscriptionSourceManager type = SystemProperties.getInt("ro.telephony.default_cdma_sub", CdmaSubscriptionSourceManager.PREFERRED_CDMA_SUBSCRIPTION); loadSetting(stmt, Settings.Global.CDMA_SUBSCRIPTION_MODE, type); // --- New global settings start here } finally { if (stmt != null) stmt.close(); Loading