Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1ad5a0e authored by Muralidhar Reddy's avatar Muralidhar Reddy
Browse files

isSimPortAvailable API should return true if the calling app can activate a...

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
parent 5e6c1919
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.