aboutsummaryrefslogtreecommitdiff
path: root/java/com/android
AgeCommit message (Collapse)Author
2023-03-01Update premium network entitlement API per specsSarah Chin
Rename network_identifier to boostType Use APP ID 2010 instead of 2012 Test: build Bug: 264711636 Change-Id: Idbc9e78550d72747fdedf1c9b440ca6affa9608e
2023-02-06Respond to second and third challenge during EAP-AKA.Kiwon Park
Test: EapAkaApiTest Change-Id: Ia1070ad1921ddcd117b2383163885b4d595727ad Bug: 223430297
2022-11-29Log IOException details during HTTP requests.Kiwon Park
Bug: 223430992 Change-Id: I66ad29f7cb2c051d134207ef60004f01fe066644 Test: m
2022-11-01Add network identifier to URLSooraj Sasindran
Add network identifier to URL Bug: 246792173 Test: build Change-Id: Ie71420eae54757bbcbc6a6fd86fca586056719a5
2022-10-06Simplify debug HTTP response logging.Kiwon Park
The full HTTP response content is already logged in getHttpResponse. Bug: 251302721 Test: m Change-Id: Ibbfd73b27455f5745fcd8bfeffc15115e458e6c1
2022-10-04Merge changes from topic "bypass"Kiwon Park
* changes: Add back ServiceEntitlement constructor with four arguments Add ability to bypass EAP-AKA authentication. Add ability to save the HTTP request/responses. Replace String.join with TextUtils.join in forming operationTargets Support the new fields in EsimOdsOperation and ServiceEntitlementRequest for CR1052.
2022-10-04Add back ServiceEntitlement constructor with four argumentsKiwon Park
to keep backward compatibility. Test: m Bug: 248324915 Change-Id: I49955ef4def9d5b02ab1d22f9215d8f04afdab8b Merged-In: I49955ef4def9d5b02ab1d22f9215d8f04afdab8b
2022-10-04Add ability to bypass EAP-AKA authentication.Kiwon Park
Bug: 248324915 Test: EapAkaApiTest Change-Id: I21b6ca7975d0bf79a52428658783a5930368998e Merged-In: I21b6ca7975d0bf79a52428658783a5930368998e
2022-10-04Add ability to save the HTTP request/responses.Kiwon Park
Bug: 223430297 Test: HttpClientTest Change-Id: I395c26dff80e44a1531b70ca8310de1298b95613 Merged-In: I395c26dff80e44a1531b70ca8310de1298b95613
2022-10-04Replace String.join with TextUtils.join in forming operationTargetsKiwon Park
Test: m Bug: 239096429 Change-Id: I99e82f76ffde87ab3afa4b5f608856a20119a925 Merged-In: I99e82f76ffde87ab3afa4b5f608856a20119a925
2022-10-04Support the new fields in EsimOdsOperation and ServiceEntitlementRequestKiwon Park
for CR1052. Test: m Bug: 239096429 Change-Id: Iee8d58d924bc3524ad4a4462728ff966feeb4428 Merged-In: Iee8d58d924bc3524ad4a4462728ff966feeb4428
2022-09-15Add support for premium network entitlementSooraj Sasindran
Add support for premium network entitlement in service entitlement API. Bug: 246792173 Test: build Change-Id: If71dd849133d4464f43d6a427496939c8022f141
2021-10-28Log ServiceEntitlementException in EapAkaHelper.getEapAkaResponseMeng Wang
Bug: 197762140 Test: atest Merged-In: I33363d5f10f0a1be03ebc72680fc73c8b42fa75d Change-Id: I33363d5f10f0a1be03ebc72680fc73c8b42fa75d
2021-07-28Add support for multiple cookiesandroid-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devMeng Wang
Bug: 194722614 Test: atest Test: manual - see bug comment6 Change-Id: I7f455da1fe154e4f4bbdf10b1fb15994eab98e0e
2021-05-25Merge "Support specifying accept configuration document type XML or JSON" ↵Meng Wang
into sc-dev
2021-05-25Support specifying accept configuration document type XML or JSONsamalin
Bug: 187194391 Test: EapAkaApiTest Change-Id: I2593ce33702f1fd54b29af72cf2f1802eb811c19
2021-05-20Support Synchronization-Failure handlingMeng Wang
Bug: 188614002 Test: atest Change-Id: Idd8d76d9b1ced3959a08554bd0c09f10420dd9b6
2021-05-11Merge "Remove unused instance" into sc-devTreeHugger Robot
2021-05-11Implement for EsimOsdaOprationssamalin
Bug: 177544547 Test: unit tests Change-Id: I0fe91dadc6af7d1a6a72b96d50d0b731586e980d (cherry picked from commit b48a7e91915dc87faeea10ce3b7e0c4c8008ca11)
2021-05-11Remove unused instancesamalin
Bug: 177544547 Test: presubmit Change-Id: I7134219819367f240da0a43a467fa66b6f6dcab8 (cherry picked from commit e55c9784bbb38480809af4f60720fd976c6a9663)
2021-03-09Add null check to StreamUtils.inputStreamToStringSafeMeng Wang
HttpUrlConnecion.getInputStream/getErrorStream could return null on connection issues. Bug: 182298836 Test: atest Change-Id: Id3bda6e79b62847710be223356cb51bd776a1069
2021-03-03Handle EAP synchronization failureMeng Wang
Main changes: 1. EapAkaApi can support sync failure flow to get configuration doc 2. Seperate EAP-AKA challenge parsing from EapAkaResponse into a new class EapAkaChallenge 3. EapAkaResponse can represent either a success response or a sync failure 4. EapAkaSecurityContext can parse AUTS for sync failure Bug: 181052106 Test: atest Change-Id: I7bb942ca679cacf8ff6898177248419b56e06741
2021-02-25Undo JSON escaping of forward-slash in POST bodyMeng Wang
Android JSON toString() escapes forward-slash with back-slash. It's not supported by some vendor and not mandatory in JSON spec. Undo escaping. Bug: 181238451 Test: manual Change-Id: I11267cac34053aa9c1b000389421fedc5f3966ad
2021-02-19Merge "Expose EapAkaHelper" into sc-devTreeHugger Robot
2021-02-18Allow client to specify timeout and NetworkMeng Wang
API surface change: - setTimeoutInSec and setNetwork added to CarrierConfig.Builder Bug: 175827888 Bug: 177100676 Test: atest Change-Id: I909fe568898074598d8ae0bd5db90b273534a09d
2021-02-18Expose EapAkaHelperMeng Wang
Some utility methods used in EAP-AKA authentication as an implementation details could be helpful to other apps. Expose them in new class to avoid directly exposing implementation details. Bug: 178431041 Test: atest Change-Id: I3227276cd3f02a167ee278d042febf7438186b95
2021-02-11Fix package name to align with folder structure.Meng Wang
Bug: 173450048 Test: make, atest Change-Id: I2fc1739444a168c664de722656f0b45e4c45035a
2021-02-05Localized cookie handlingMeng Wang
Bug: 177562073 Test: manual - VoWiFi enetitlement success Test: unit test pass Change-Id: Ie544e17026feaf6a0df6377061310fa2fe9be59f
2021-02-05Support entitlement status query for multiple app Idssamalin
Bug: 177544547 Test: EapAkaApiTest Change-Id: I588fdb68c9de4f549849cdaaabbb1458cf8ea663
2021-02-05Use system property for controlling if logs with potential PII dataSama Lin
The property is effective on other than user build. Bug: 177544547 Test: presubmit Change-Id: I6e1038fd74119d6d18ee232f965fa80ef43e55d6
2021-02-04Implement the ServiceEntitlementExceptionSama Lin
Bug: 177544547 Change-Id: I284e9be6f040c29974abd3e8d35df08a6147399c Merged-In: I284e9be6f040c29974abd3e8d35df08a6147399c Test: EapAkaApiTest, EapAkaResponseTest, HttpClientTest (cherry picked from commit 13a767f5dfd038f9b099698da8aaedb1707eb45a)
2021-02-02EAP AKA Challenge response not accepted by serversamalin
Correct the parameter of calling the method of generate IMSI EAP and also format the code style Bug: 177544547 Test: atest EapAkaResponseTest and Verified CSpire VoWiFi entitlement flow with this CL. Summary ------- arm64-v8a service-entitlement-tests: Passed: 28, Failed: 0, Ignored: 0, Assumption Failed: 0, Change-Id: I28766caf800139f6c4244be5a65b4f508c539fe0 Merged-In: I28766caf800139f6c4244be5a65b4f508c539fe0 (cherry picked from commit fb4a25e1de19e98950d3adb6041818e70a5eb8fe)
2021-01-21Move test-only classes out of libMeng Wang
FakeURLStreamHandler class is only used in unit test of lib implementation. It's not used by the lib directly nor needed by users of the lib for unit test - users of the lib can mock ServiceEntitlement class directly. Test: presubmit Change-Id: I59948c8081c3412351613e089027b40d97ec6a96
2021-01-19Add tests for ServiceEntitmentSama Lin
Bug: 173450048 Test: presubmit Change-Id: Iaf9435e3c3c42295c2cc33a33fa5e4a7af20dcba
2021-01-15Add implementations for service-entitlement libsamalin
Implements the APIs for retrieving the VoWifi entitlement status through EAP-AKA authenticate method which defines in GSMA TS.43 specification. Bug: 173450048 Test: presubmit Change-Id: I7549e2a0287c1294b71a83c8189109f708e5b31f