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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user