From b061a76e95446f12b79edb271f10b629bb295df6 Mon Sep 17 00:00:00 2001 From: sandeepjs Date: Thu, 24 Mar 2022 10:30:59 +0000 Subject: [PATCH] Adding comments to the to-be deprecated SubscriptionManager#switchToSubscription this API directly calls EuiccManager#switchToSubscription which is a public API, it also send information without port which is incomplete informationto MEP Activated device. Test: build Bug:226388098 Change-Id: Ica998f8209bd7aa6948c157bb0ace0f96876451c --- telephony/java/android/telephony/SubscriptionManager.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/telephony/java/android/telephony/SubscriptionManager.java b/telephony/java/android/telephony/SubscriptionManager.java index b6cacaf9f2899..080800b388559 100644 --- a/telephony/java/android/telephony/SubscriptionManager.java +++ b/telephony/java/android/telephony/SubscriptionManager.java @@ -3208,6 +3208,11 @@ public class SubscriptionManager { * * @param subId sub id * @param callbackIntent pending intent that will be sent after operation is done. + * + * to-be-deprecated this API is a duplicate of {@link EuiccManager#switchToSubscription(int, + * PendingIntent)} and does not support Multiple Enabled Profile(MEP). Apps should use + * {@link EuiccManager#switchToSubscription(int, PendingIntent)} or + * {@link EuiccManager#switchToSubscription(int, int, PendingIntent)} instead. */ @RequiresPermission(android.Manifest.permission.WRITE_EMBEDDED_SUBSCRIPTIONS) public void switchToSubscription(int subId, @NonNull PendingIntent callbackIntent) {