[Settings] Hide satellite eSIM from users
Bug: 302044287 Test: Manually verified by forcing the eSIM profile to be NTN Change-Id: Iba4e42778bdf072ceaecc35a2245ea737e552e5c
This commit is contained in:
@@ -35,6 +35,7 @@ import androidx.annotation.Nullable;
|
||||
import androidx.annotation.VisibleForTesting;
|
||||
import androidx.appcompat.app.AlertDialog;
|
||||
|
||||
import com.android.internal.telephony.flags.Flags;
|
||||
import com.android.settings.R;
|
||||
import com.android.settings.network.SubscriptionUtil;
|
||||
|
||||
@@ -133,10 +134,13 @@ public class SelectSpecificDataSimDialogFragment extends SimDialogFragment imple
|
||||
return;
|
||||
}
|
||||
|
||||
if ((newSubInfo.isEmbedded() && newSubInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING)
|
||||
|| (currentDataSubInfo.isEmbedded()
|
||||
&& currentDataSubInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING)) {
|
||||
Log.d(TAG, "do not set the provision eSIM");
|
||||
if ((newSubInfo.isEmbedded()
|
||||
&& (newSubInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && newSubInfo.isNtn())))
|
||||
|| (currentDataSubInfo.isEmbedded()
|
||||
&& (currentDataSubInfo.getProfileClass() == PROFILE_CLASS_PROVISIONING
|
||||
|| (Flags.oemEnabledSatelliteFlag() && currentDataSubInfo.isNtn())))) {
|
||||
Log.d(TAG, "do not set the provisioning or satellite eSIM");
|
||||
dismiss();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user