diff --git a/src/im/angry/openeuicc/bridge/LpaProvider.java b/src/im/angry/openeuicc/bridge/LpaProvider.java index 2e73039..9fd361d 100644 --- a/src/im/angry/openeuicc/bridge/LpaProvider.java +++ b/src/im/angry/openeuicc/bridge/LpaProvider.java @@ -140,9 +140,6 @@ public class LpaProvider extends ContentProvider // in: int slotId, int portId, bool refresh=true // out: bool success case "disableActiveProfile" -> handleDisableActiveProfile(args); - // in: int slotId, int portId, string iccid, bool enable=true, bool refresh=true - // out: bool success - case "switchProfile" -> handleSwitchProfile(args); // in: int slotId, int portId, string iccid, string nickname // out: bool success case "setProfileNickname" -> handleSetProfileNickname(args); @@ -521,30 +518,6 @@ public class LpaProvider extends ContentProvider // return profile(profile); } - private MatrixCursor handleSwitchProfile(Map args) throws Exception - { - String[] iccid = new String[1]; - boolean[] enable = new boolean[1]; - boolean[] refresh = new boolean[1]; - - if (!tryGetArgAsString(args, "iccid", iccid)) - return missingArgError("iccid"); - - if (!tryGetArgAsBoolean(args, "enable", enable)) - enable[0] = true; - - if (!tryGetArgAsBoolean(args, "refresh", refresh)) - refresh[0] = true; - - boolean success = withEuiccChannel - ( - args, - (channel, _) -> LPAUtilsKt.switchProfile(channel.getLpa(), iccid[0], enable[0], refresh[0]) - ); - - return success(success); - } - private MatrixCursor handleSetProfileNickname(Map args) throws Exception { String[] iccid = new String[1];