[MEP] eSim profile is not enabled

eSim profile is not getting enabled when tried from the Settings->SIMs->Downloaded Sim. Modified logic to directly rely on PortIdxToPhoneId mapping in UiccSlot, this is to fix the getSimSlotMapping return wrong value in DSDS mode when psim card is absent.

Bug: 213251124
Test: Manual, atest TeleServiceTests
Change-Id: Ib85bedac840fe46b8f295e57811af2399abd5092
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index 8f48501..e1a7cbc 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -9057,13 +9057,8 @@
                 for (int portIdx : portIndexes) {
                     String iccId = IccUtils.stripTrailingFs(getIccId(slot, portIdx,
                             callingPackage, hasReadPermission));
-                    if (slot.isPortActive(portIdx)) {
-                        UiccPort port = slot.getUiccCard().getUiccPort(portIdx);
-                        portInfos.add(new UiccPortInfo(iccId, port.getPortIdx(),
-                                port.getPhoneId(), true));
-                    } else {
-                        portInfos.add(new UiccPortInfo(iccId, portIdx, -1, false));
-                    }
+                    portInfos.add(new UiccPortInfo(iccId, portIdx,
+                            slot.getPhoneIdFromPortIndex(portIdx), slot.isPortActive(portIdx)));
                 }
                 infos[i] = new UiccSlotInfo(
                         slot.isEuicc(),