Commit Graph

12 Commits

Author SHA1 Message Date
Muralidhar Reddy
428d93afb4 [MEP] UnsupportedOperationException is thrown when carrier app tries to download subscription.
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
2022-03-03 06:13:33 +00:00
Muralidhar Reddy
29d2181bd2 [MEP] Handle downloadSubscription with switchAfterDownload is set to true
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
2022-02-26 19:00:02 +00:00
Chen Xu
3c22236cda A overloaded API for downloadSubscription with portIndex for LPA
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
2022-02-10 11:22:17 -08:00
Muralidhar Reddy
2f0319eddb [MEP] Add subscriptionId as intent extra to a resolution intent.
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
2022-02-04 21:09:32 +00:00
Jordan Liu
805e7d12b7 Make switchToSubscription use PendingIntent
Bug: 205504646
Test: manual
Change-Id: Ieec385ee6b054d2c6392c4a45eb501eb876cdd0a
2021-12-30 19:22:22 -08:00
Jordan Liu
3fec4d4fd7 Do not use portIndex API until implemented
Bug: 207384656
Bug: 207392528
Test: manual
Change-Id: Ief7a17a40abfc91447f5fdc669a263cd2c198ad7
2021-11-22 11:19:24 -08:00
Jordan Liu
95c4643204 Add portIndex for switch subscription API
Bug: 205504646
Test: manual (builds, will not be functional until LPA implementation)
Change-Id: Ic289538f5df17c03b2f8da7f4966c583d4557586
2021-11-16 14:03:38 -08:00
Svet Ganov
ea8a2145c9 Revert an API breaking changes
bug:150281259

Test: N/A

Change-Id: Ie30286456af15dd7b81bceb0547ffe8bfac422d2
2020-05-01 15:25:51 -07:00
Alex Lin
e94c4f7ac8 Update EuiccService encodeSmdxSubjectAndReasonCode
Update the method signature of encoding subject code and reasoncode
Bug: 149216056
Test: atest EuiccService

Change-Id: Ifb9c1a11f48e191f7d49384946f9fd78d81b84dc
2020-03-02 11:58:26 -08:00
Alex Lin
aac0588d15 Add public error codes to Euicc public API
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
2020-01-22 13:20:04 -08:00
Alex Lin
2fb59151dc Add public API for EuiccService log dump
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
2020-01-17 13:59:16 -08:00
Meng Wang
2b8d61158d Move android.service.euicc.* into telephony
Bug: 145232482
Test: make
Change-Id: I9dc5c904761f688e7abecea47647da29f6cec512
2019-11-27 19:15:55 +00:00