From a64c45d50eee94e4ea3247717d4d81b525d791de Mon Sep 17 00:00:00 2001 From: Muralidhar Reddy Date: Tue, 6 Dec 2022 16:36:44 +0000 Subject: isSimPortAvailable API should return true if the calling app can activate a new profile on the selected port without any user consent or deactivate dialog. Currently isSimPortAvailable API returns true if the port is active without any profile enabled on it or the calling app has carrier privileges over the selected port. It is hampering switching to MEP mode when the psim is active and empty. Test: Manually verified isSimPortAvailable API behavior on C10 with EuiccPartnerApp. Bug: 240273417 Change-Id: I4c9ad2bc6f1093163290be0e47f8a065245e5783 --- telephony/java/android/telephony/euicc/EuiccManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telephony/java/android/telephony/euicc/EuiccManager.java b/telephony/java/android/telephony/euicc/EuiccManager.java index 1252dc178cb9..7991dfd6ee9f 100644 --- a/telephony/java/android/telephony/euicc/EuiccManager.java +++ b/telephony/java/android/telephony/euicc/EuiccManager.java @@ -1569,8 +1569,8 @@ public class EuiccManager { /** * Returns whether the passing portIndex is available. - * A port is available if it is active without enabled profile on it or - * calling app has carrier privilege over the profile installed on the selected port. + * A port is available if it is active without an enabled profile on it or calling app can + * activate a new profile on the selected port without any user interaction. * Always returns false if the cardId is a physical card. * * @param portIndex is an enumeration of the ports available on the UICC. -- cgit v1.2.3-59-g8ed1b