Starting with android T, old onDownloadSubscription API is deprecated and new API with portIndex is introduced. As latest LPA app is not released with new API changes, exception is occurred.
Added condition to fallback to deprecated API in case if the LPA is not implemented the new API.
Bug: 222257028
Test: manually tested with Google Fi activation on sunfish device
Change-Id: Ifc0b828f0f60d456066386957d4bd1080bdd6ae9
Most of cases, download opperation is port agnostic we don't need to specify the portIndex. However if this is triggered from carier apps and apps specify download followed with esim activation, then platform need to resolve a portIndex(maybe through UX) and need to pass this portIndex to LPA app. Also If cannot resolve port Index, request user confirmation with new UX dialog to support MEP feature.
Bug: 220060771
Test: Manual test with Fi, atest FrameworksTelephonyTests
Change-Id: Id27bdc3d802bb5f2fb3459ec62be75365a2222b8
Most of cases, download opperation is port agnostic we don't need
to specify the portIndex. However if this is triggered from carier
apps and apps specify download followed with esim activation, then
platform need to resolve a portIndex(maybe through UX) and need to
pass this portIndex to LPA app. thus we need to add an overloaded
version of download API for LPA.
Bug: 214055002
Test: Build & atest EuiccServiceTest
Change-Id: If127224ca7ca696c8eb512dc80c27f54e4f25b38
With the introduction of Multiple Enabled Profiles, a 3-way user confirmation dialog is required to handle use cases related to multiple esim ports in DSDS mode. LPA app uses the subscriptionId(from resolution intent) to query the subscription info related information.
Bug: 214055002
Test: atest android.telephony.euicc.cts.EuiccManagerTest
Change-Id: Ic89fce3fa5249b917e743cfbaed4ff2978cadcd8
Adding public error codes to euicc public API, this will allows the user
to get an general idea of what went wrong when calling the Euicc APIs
Bug: 143107744
Test: atest EuiccService, atest EuiccManager
Change-Id: I427f17e8f28fa4a646a63299a1f63c4c5970a5a0
Add public APi to EuiccService which allows the connected LPA to dump
out the logs when a bug report is triggered.
Bug: 62881779
Test: manually tested by extracting bug report to see if the logs are
present and atest EuiccServiceTest
Change-Id: I0869b95d12ab87a5e2a255015549191040d9daa7