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
This commit is contained in:
Muralidhar Reddy
2022-12-21 04:07:26 +00:00
parent 5e6c1919a2
commit b1ad5a0e9a

View File

@@ -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.