From b1ad5a0e9a6189671123e4539693ef5f80eaef8b Mon Sep 17 00:00:00 2001 From: Muralidhar Reddy Date: Wed, 21 Dec 2022 04:07:26 +0000 Subject: [PATCH] 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 with EuiccPartnerApp and Fi App on C10 Bug: 240273417 Change-Id: Ie07061540fa7fcd13116a76dce2653b0d4feefe0 --- 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 a2d20193a4304..cdb7d7c9ff59e 100644 --- a/telephony/java/android/telephony/euicc/EuiccManager.java +++ b/telephony/java/android/telephony/euicc/EuiccManager.java @@ -1570,8 +1570,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.