From acb336bd3027c802dd070ccb22ca34d1534836c8 Mon Sep 17 00:00:00 2001 From: Jack Yu Date: Tue, 7 Jul 2020 17:21:17 -0700 Subject: Fixed that data connections not tearing down when APN set id changes When APN set id changes (by changing the preferred APN in settings), the existing data connections from previous APN set id should be torn down. Fixed by checking the APN set id when building the waiting APN list and tethering APN list. Fix: 159761970 Test: DcTrackerTest Merged-in: I626f871b64d50127feece80f018272e51ad1c66c Change-Id: I626f871b64d50127feece80f018272e51ad1c66c (cherry picked from commit 715073fc691482562cab5ccd958cc1313f6f8947) --- core/java/android/provider/Telephony.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/java/android/provider/Telephony.java b/core/java/android/provider/Telephony.java index 7946dda3170d..3fb572754e5b 100644 --- a/core/java/android/provider/Telephony.java +++ b/core/java/android/provider/Telephony.java @@ -3924,8 +3924,7 @@ public final class Telephony { /** * The APN set id. When the user manually selects an APN or the framework sets an APN as - * preferred, all APNs with the same set id as the selected APN should be prioritized over - * APNs in other sets. + * preferred, the device can only use APNs with the same set id as the selected APN. *

Type: INTEGER

* @hide */ -- cgit v1.2.3-59-g8ed1b