aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/android/internal/telephony/uicc
AgeCommit message (Collapse)Author
2023-12-13Passing feature flags to more componentsJack Yu
Bug: 296076674 Test: data browsing + voice call + sending sms Change-Id: If47575b5b7f3329bf6d50024aab5460caaaff352
2023-08-28Fix eUicc SIM detection issueCalvin On
Change the order of SIM status query and Slot Status query to detect the eSIM with IRadio 1.1 HAL Version Bug: 136146842 Change-Id: I6334c71a13117c9b81d343dde73a5180003bf6c6 (cherry picked from commit 0377f987f940af51a07d7907d7c380ec809a3cec)
2023-08-09Merge "Check phoneId before updating carrier services." into mainAishwarya Mallampati
2023-08-07Check phoneId before updating carrier services.Aishwarya Mallamapti
Bug: b/289755989 Test: atest FrameworksTelephonyTests Change-Id: Ie43fbfb232fdb3977b6241e671970ad65e535c9c
2023-07-28Check mAdnCache is not null before loading FDN. am: 886684aa25 am: ↵Aishwarya Mallamapti
dc63ee4135 am: 9a2a2544f8 Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/24230615 Change-Id: I8165ae89000cf0b6a33f83209f0b4a8a951b9706 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28Check mAdnCache is not null before loading FDN. am: 886684aa25 am: dc63ee4135Aishwarya Mallamapti
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/24230615 Change-Id: I10b7893edfdcbf3c002c85cd45c17ad87fdd5a35 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28Check mAdnCache is not null before loading FDN.Aishwarya Mallamapti
Bug: 292467876 Test: Manual Verification: - Enable FDN - reboot device - After reboot, no crashes were observed - Performed basic functionality tests after reboot such as making calls and sending sms using the sim card. - QA verified and informed that fix is working: b/292467876#comment18 Change-Id: Id4909881f9f6ac509c60889557652632f00a8523
2023-07-11Merge "NPE fix when reading the port index from uiccslot in logger" into ↵Arun Voddu
main am: a15c24b2ab am: e3f4bec193 am: c02a427a9f am: 4578560c00 am: b691f6c5bf am: 4fd16d1e2f Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2639531 Change-Id: Id24aaaa666cd8a9e588475152455fcd395ccf618 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-11Merge "NPE fix when reading the port index from uiccslot in logger" into ↵Arun Voddu
main am: a15c24b2ab am: e3f4bec193 am: c02a427a9f am: 4578560c00 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2639531 Change-Id: I2cbac62eb167fd9cf742032b40c63a2c8c210fa8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-11Merge "NPE fix when reading the port index from uiccslot in logger" into ↵Arun Voddu
main am: a15c24b2ab am: e3f4bec193 am: c02a427a9f Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2639531 Change-Id: I2fd1601adeba346c67c459011003f32916e3ce21 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-11Merge "NPE fix when reading the port index from uiccslot in logger" into mainArun Voddu
2023-06-27NPE fix when reading the port index from uiccslot in loggerarunvoddu
Bug: 281967625 Test: atest tests/telephonytests/src/com/android/internal/telephony/uicc Change-Id: I5b21b400092a556bc172f88c092d29d77e27d240
2023-06-14Merge "Notify waiters even if mMaxAdnCapacity of SIM is 0." am: 9e80acc9b9 ↵Aishwarya Mallampati
am: 043f4b9fcb am: 99a574c16a am: b0184374a8 am: 9a3ae4d549 am: 2ed3d383b8 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2596633 Change-Id: Id8b3ee2997fe518598df6d6750adfe2970456512 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14Merge "Notify waiters even if mMaxAdnCapacity of SIM is 0." am: 9e80acc9b9 ↵Aishwarya Mallampati
am: 043f4b9fcb am: 99a574c16a am: b0184374a8 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2596633 Change-Id: I3ba7461043903518657447b3aa52b2a85a0de0f3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-14Merge "Notify waiters even if mMaxAdnCapacity of SIM is 0." am: 9e80acc9b9 ↵Aishwarya Mallampati
am: 043f4b9fcb am: 99a574c16a Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2596633 Change-Id: I70d1294d44bdf2657201285b3e281aecda467507 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-26Notify waiters even if mMaxAdnCapacity of SIM is 0.Aishwarya Mallampati
Requesters waiting for ADN loading are not notified if mMaxAdnCapacity is 0. This might block the requester from moving forward. To avoid such scenarios, notify waiters even if mMaxAdnCapacity is 0. Bug: 280014301 Test: atest CtsSimPhonebookProviderTestCases Flashed device on raven-userdebug and performed basic functionality tests. Change-Id: I7db3a4e8c684264630cd2b6fd333e47eeb38e3e6
2023-05-16Merge "Added to check to verify the result of the the EVENT_SELECT_FILE_DONE ↵TreeHugger Robot
in UiccPkcs15" into udc-d1-dev am: 2e4e32151f am: a123c79fde am: 49392f977c Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/23103739 Change-Id: I87e313dd075f664119bc4eb320e4885588906fb4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-12Added to check to verify the result of the the EVENT_SELECT_FILE_DONE in ↵arunvoddu
UiccPkcs15 Bug: 278928983 Test: atest FrameworksTelephonyTests Test: Manually verified through logs and performed basic sanity and found no issues. Change-Id: I5f313a37c2712a64c191633332fd1ea87b56f465
2023-05-10Remove deprecated IRadio <1.4 APIs and referencesSarah Chin
Test: atest FrameworksTelephonyTests, CtsTelephonyTestCases Bug: 280900995 Change-Id: Iaa47e642d8f82443a948407981524e1cc8e2f119
2023-05-09Merge "The CL moves the FDN fetching logic from SimRecords to IccRecord base ↵Treehugger Robot
class" into udc-dev
2023-05-09The CL moves the FDN fetching logic from SimRecords to IccRecord base classarunvoddu
Bug: 277880312 Test: atest frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc. Also manually verified with CSIM and performed sanity with In Airtel and Jio and found no crash and problems. Change-Id: If67f749bccab36583af7631a75ad304a38514ea8
2023-05-02Merge "Migrate set network selection auto from legacy subscription" into udc-devLing Ma
2023-05-02Migrate set network selection auto from legacy subscriptionLing Ma
In the legacy subscription flow, upon SIM loaded, if the slot mapping changed, a set network selection auto mode request will be sent to modem. Migrate that logic to the existing flow. Fix: 278517596 Test: voice call + internet browsing + reporter verified fix Change-Id: If54767be505aaaa7c11c33ddb96feaa42cb8ef99
2023-04-25Initial sim state unknown is not updated during cardstate absent event.Muralidhar Reddy
Test: Manual verification on P21 and P22, atest FrameworksTelephonyTests:UiccSlotTest Bug: 274192269 Change-Id: Ic1abb3a96f8318cff87c7dcae6e19d0c890db139
2023-04-17Remove legacy subscription codeJack Yu
Removed SubscriptionController and SubscriptionInfoUpdater, which have been replaced by SubscriptionManagerService. Test: atest FrameworksTelephonyTests Test: Basic phone functionality tests Fix: 276816827 Change-Id: Ia00b3d6206c60247c7f642bb720bdd8c5ea26af2
2023-04-14Fixed inactive pSIM not shown in settingsJack Yu
When the device is configured in e+e mode, the user does not have a chance to enable the inserted pSIM from Settings. Fixed by inserting the subscription from the inactive SIM. Fix: 271386059 Test: atest SubscriptionManagerServiceTest Test: Manually enabled e+e and inserted a physical SIM Change-Id: I36126c16cbe21b7288ee7974b3ccf826c9393f0f
2023-04-12Fixed port index is not updated when iccid is active but slot is inactiveMuralidhar Reddy
Set proper port index if iccid is present in the SLOT_STATUS event Bug: 274847836 Test: Manually verified switching between E+E<->P+E in DSDS and E<->P in SS Test: atest SubscriptionManagerServiceTest, atest FrameworksTelephonyTests Change-Id: I57cf260bbd73fa390be1e24a18591104111d9b4f
2023-04-04Merge "Adding extra flag while broadcasting the SIM_STATE_CHANGED" am: ↵Arun kumar Voddu
81ee5609d8 am: 90fda2e46d am: 43b9294178 Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2521715 Change-Id: I3df5c8662c02580add462b40724fe54a69a87d3f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-04Merge "Adding extra flag while broadcasting the SIM_STATE_CHANGED"Arun kumar Voddu
2023-04-04Adding extra flag while broadcasting the SIM_STATE_CHANGEDarunvoddu
Bug: 275646028 Test: atest verified Change-Id: I9f8fdc18373cfb0a32da03c362dde0567242c318
2023-04-03Added SIM events handling and fix crashesJack Yu
1. Added SIM events handling in subscription manager service. 2. Fixed all crashes found during boot up. 3. Update subscription before broadcasting carrier config changed event. This is same as the reverted ag/20813887. Bug: 239607619 Test: Manual Merged-In: Ic3c2cd6ae21ec5199637d609c20d361b17de0726 Change-Id: Ic3c2cd6ae21ec5199637d609c20d361b17de0726
2023-04-01Merge "Wrong subscription is getting cleared during slot switch" into udc-devMuralidhar Reddy Mule
2023-03-31Wrong subscription is getting cleared during slot switchMuralidhar Reddy
If SLOT_STATUS is the last event, updateSimStateForInactivePort is getting called with wrong logical slot index which is already mapping to different slot-port pair. Tested use cases: 1. SS: pSIM <-> eSIM 2. DSDS: P+E <-> E+E Test: Manually verified on C10 Bug: 254388181 Change-Id: I2ba09ac3564b56b86a00308bd8da6e517ac1718a
2023-03-30Merge "Introduced Thread safety protected when accessing ↵Arun kumar Voddu
getAllUiccCardInfos" am: 7685407b98 am: d8eabb08d2 am: 593d8d47fd Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/2497316 Change-Id: I54b8431186964f0d353d5e76e4b64896fafe51a4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-29Merge "Introduced Thread safety protected when accessing getAllUiccCardInfos"Arun kumar Voddu
2023-03-24Moved SIM state broadcast back to UiccControllerJack Yu
Moved the SIM related stuffs back to UiccController. SubscriptionManagerService will mainly handle subscription related stuffs. The same SIM state broadcast is ported from SubscriptionInfoUpdater. This CL is exactly same as the reverted ag/20770404 except 1. Removed the lock in getInstance. The instance is just a reference and should not be updated after created. 2. Seperate the old code with the feature flag with more conservative approach. 3. Update the SIM state with handler. Bug: 239607619 Test: Manual Merged-In: Ifb085003087aa1e270925c755fc6e819f0871dc0 Change-Id: Ifb085003087aa1e270925c755fc6e819f0871dc0
2023-03-23Moved SimStateToString to TelephonyManagerJack Yu
Bug: 239607619 Test: Manual Merged-In: I15a4f0504980211e17a7a1c5c0e21c9c1e9e0c98 Change-Id: I15a4f0504980211e17a7a1c5c0e21c9c1e9e0c98
2023-03-20Introduced Thread safety protected when accessing getAllUiccCardInfosarunvoddu
Bug: 273620122 Test: atest verified and manually verified Change-Id: I25bec4c9ff4ed494f55c97e61103885534aef6fc
2023-03-11Renamed the id printing methodJack Yu
Renamed the id printing method, which is not only for iccid. Also improved the test coverage. Bug: 272989110 Test: atest SubscriptionDatabaseManagerTest Test: Basic phone functionality Change-Id: I25d34e829e879e0b1283cd756f6e34ebacbd45d2
2023-03-09Added GetActiveSubscriptionInfo supportJack Yu
1. Added GetActiveSubscriptionInfo. 2. Added SetDisplayNameUsingSrc. 3. Converted more modules to use SubscriptionManagerService. Test: atest FrameworksTelephonyTests Bug: 239607619 Merged-In: I8c0aa35d4430b7c6ca6d02c4e68a00b7d5ef9b94 Change-Id: I8c0aa35d4430b7c6ca6d02c4e68a00b7d5ef9b94
2023-03-08Load the FDN records when the USIM initializes and the SIM refreshesarunvoddu
Bug: 267116389 Bug: 271397128 Test: atest verified also verified manually Change-Id: I7762a681298e504a71f90838e8f98209879192f1 Merged-In: I7762a681298e504a71f90838e8f98209879192f1
2023-03-07Load the FDN records when the USIM initializes and the SIM refreshesarunvoddu
Bug: 267116389 Bug: 271397128 Test: atest verified also verified manually Change-Id: I7762a681298e504a71f90838e8f98209879192f1
2023-03-03Renamed methods for clarificationJack Yu
Test: build Bug: 239607619 Merged-In: Iefbf99da50eb7575234d03a36bd65d2e34a76b41 Change-Id: Iefbf99da50eb7575234d03a36bd65d2e34a76b41
2023-02-28Get and Set the TPMR value to EF_SMSS field in ISIM/USIMarunvoddu
Bug: 226337641 Test: Atest verified Merged-In: I7fa09707595877f3edd6619ed875020e4e39f263 Change-Id: I7fa09707595877f3edd6619ed875020e4e39f263
2023-02-27Fetches smsc value from the EF_PSISMSC elementary file of the simarunvoddu
Bug: 229066443 Test: aTest verification completed Merged-In: I5e3cd32022803982b15cb06d79549bbdf809415d Change-Id: I5e3cd32022803982b15cb06d79549bbdf809415d
2023-02-26Fixed NPE problem in UiccCardHyunho
Calling getCardId API before setting the UiccPort map results in the NPE problem. When the getCardId API is called, it checks to see if the UiccPort map has a value. Bug: b/270655428 Test: atest UiccCardTest Change-Id: I734d6f4fd9d3d88fb8c91c0a69e8c325c9fc50b6
2023-02-23Fixed port index not updated on inactive eSIMJack Yu
The port index should be set to -1 when an embedded subscription is inactive. Also fixed the debug messages in the dump. Fix: 270177138 Test: Manually activate/deactivate eSIM Test: atest SubscriptionManagerServiceTest Change-Id: I8567714c87c8ca6ee313ead2119264c2a038e116
2023-02-18Merge "Clean up usage of multiple MEP flags in uicc module." into udc-devMuralidhar Reddy Mule
2023-02-17Clean up usage of multiple MEP flags in uicc module.Muralidhar Reddy
Bug: 262449536 Test: Manual verification C10P10 and atest FrameworksTelephonyTests Change-Id: I254e498d4bf3988d4e9570d0065204cda87f4a3e
2023-02-17Remove overloaded iccCloseLogicalChannel and iccTransmitApduLogicalChannel ↵Muralidhar Reddy
from CommandInterface Keep only one API along with extra isEs10 parameter. Test: Manually verified on C10, atest FrameworksTelephonyTests and atest CtsStatsdAtomHostTestCases:TelephonyStatsTests Bug: 268496310 Change-Id: I6235d9a370eb8063c886b351d0f40a8d0b4f00ff Merged-In: I6235d9a370eb8063c886b351d0f40a8d0b4f00ff (cherry picked from commit a5a7816ded47af2646b28d72c5f3362332ef09aa)