aboutsummaryrefslogtreecommitdiff
path: root/java
AgeCommit message (Collapse)Author
2023-08-29Fix crash when Build.MANUFACTURER is longer than 4 and cap terminal_model ↵Kiwon Park
and terminal_sw_version according to GSMA RCC.14. Bug: 296681528 Test: atest service-entitlement-tests Change-Id: I59236bf8835a10d5f1b02cf9162034f3c79dda99
2023-08-14Add CanIgnoreReturnValue in OdsaResponse builder and suppress ↵Manikanta Tadikonda
AndroidJdkLibsChecker warnings. Test: atest Ts43OperationTest Change-Id: I01c95c01114720860a75c57de876e71649bd258e
2023-08-09Add CanIgnoreReturnValue annotation to HTTP Request BuilderKiwon Park
Test: m Change-Id: I927968066c1be58b2ed00f462d751dcbbfb12bd3 Bug: 295217638
2023-08-03Added TerminalId params for GetPhoneNumber.Manikanta Tadikonda
Test: atest Ts43OperationTest Change-Id: Ic403874e3408d9344394cea0701fc2ff4d6b0f2d
2023-08-01Allow apps to set User-Agent HTTP headerKiwon Park
Change-Id: I716fb780c3f8939b3e45dc26fde5a1b54315ddd8 Test: send a test request Bug: 285041946
2023-07-23Fixed incorrect nullabilityJack Yu
Fix: 292303882 Test: atest service-entitlement-tests Change-Id: Iac85a2088f2f1d10a57b953547b88de9f222ab1f
2023-07-21Added getPhoneNumber supportJack Yu
Fix: 290953736 Test: atest Ts43OperationTest Change-Id: I80db72039ecace9bd882734278fe2d89b729c204
2023-07-21Support case-insensitive TS.43 XML response param namesJack Yu
Fix: 292250853 Test: atest service-entitlement-tests Change-Id: I854a053bc74f8dd1e6c387cdaa430eb5e36a32e4
2023-07-20Removed OdsaOperation to reduce confusionJack Yu
Moved the constants in OdsaOperation into EsimOdsaOperation to reduce naming confusion. Bug: 279132691 Test: atest service-entitlement-tests Change-Id: I58de77ba88f1d3247ce40ce51317065c01532ba5
2023-07-13Add notification token and action to TS.43 auth callsSarah Chin
Add notif_token and notif_action parameters to CheckEligibility, ManageSubscription, and AcquireConfiguration Test: atest service-entitlement-test Bug: 289441100 Change-Id: I23db49ab0448ddcec3b669997ad9ba69e7c0a690 Merged-In: I23db49ab0448ddcec3b669997ad9ba69e7c0a690
2023-07-11Added EsimOdsaOperation back to maintain backwards compatibilityJack Yu
EsimOdsaOperation class has been used by many clients today. Added it back to avoid change all references in the clients. Bug: 279132691 Test: Manual & atest service-entitlement-tests Change-Id: Ie751e543a96cf14cc8016f40171bc8cdf86bd8e3
2023-07-11Re-formatted and fixed all lint errorsJack Yu
Bug: 279132691 Test: Manual & atest Ts43OperationTest Change-Id: I47e3c2e5ab99aa6d2620b316ac2c96d07fc10c90
2023-07-11Merge "Add cookie to Ts43AuthToken" into mainSarah Kim
2023-07-10Add cookie to Ts43AuthTokenSarah Chin
Add the cookie from the "Set-Cookie" header of the TS.43 response to the Ts43AuthToken. Create new APIs in ServiceEntitlement that return the full HTTP response for each request instead of just the body as a String. Modify EapAkaApis to return the full HTTP response instead of just the body as a String. Test: atest service-entitlement-tests Bug: 290658092 Change-Id: If2e7a037ee2643fb686ee39eb2501d3acb3178f4
2023-07-10Merge "Add Accept-Language field to HTTP requests." into mainKiwon Park
2023-07-07Bug fixes for TS.43 authentication serviceSarah Chin
Fix request for EAP-AKA authentication Fix issue with mTokenType not being set Fix typos Test: atest service-entitlement-tests Bug: 289577056 Bug: 289577398 Change-Id: Id8e1397136c48bc5e1e3b6a5441ce83137325db6 Merged-In: Id8e1397136c48bc5e1e3b6a5441ce83137325db6
2023-06-28Add Accept-Language field to HTTP requests.Kiwon Park
Bug: 287979083 Test: sent a test request Change-Id: Ib66847ff02ee7c4a7124a86da8a96a153272ac2c
2023-06-05Added manage service supportJack Yu
Added manage service support described in GSMA Service Entitlement Configuration section 6.5.4. Test: Manual & atest Ts43OperationTest Bug: 279132691 Change-Id: Ia9cbf502132482bef5b9b50fafd531c63c227c16
2023-06-05Added check eligibility supportJack Yu
Added check eligibility support described in GSMA Service Entitlement Configuration section 6.5.2. Test: Manual & atest Ts43OperationTest Bug: 279132691 Change-Id: I2d8221a69870502d658d61e6f8f1c99b81d6c50b
2023-06-05Added acquire configuration supportJack Yu
Added acquire configuration described in GSMA Service Entitlement Configuration section 6.5.5. Test: Manual & atest Ts43OperationTest Bug: 279132691 Change-Id: I1fc709396f2dee1e8850c3d1708bcfb4cdaba0c1
2023-06-05Added acquire temporary token supportJack Yu
Added acquire temporary operation described in GSMA Service Entitlement Configuration section 6.5.7. Test: Manual & atest Ts43OperationTest Bug: 279132691 Change-Id: I3d5e5930ef2ce5a412cb8382c91cb4265ddeb20e
2023-06-05Merge "Added manage subscription support"Treehugger Robot
2023-06-05Added manage subscription supportJack Yu
Added manage subscription operation described in GSMA Service Entitlement Configuration section 6.5.3. Test: Manual & atest Ts43OperationTest Bug: 279132691 Change-Id: I74fa251b9bc3bee20f800ac1604dacd1deb5b05e
2023-06-02Changes to ServiceEntitlementExceptionSarah Chin
Separate duplicate error code Make default values public Test: build Bug: 284212452 Change-Id: I3c36f7175fc9aa59a4341bd40fb3c2c4341e1b66
2023-05-27Added getAuthToken supportJack Yu
Added the EAP-AKA based token fetching described in GSMA TS.43 Service Entitlement Configuration section 2.8.1. Test: Manual & atest Bug: 279132691 Change-Id: I9d4ac9dbacd0f9e8a6a79ea9dc83762dbda9b947
2023-05-19Added TS43 operation API prototypeJack Yu
Only the API. Implementations will be added later. Bug: 279132691 Test: Manual Change-Id: I30642e58486631ee4d29dd02134afdb3cbe70468
2023-05-13Update premium network entitlement API per specsSarah Chin
Rename network_identifier to boostType Use APP ID 2010 instead of 2012 Test: build Bug: 264711636 Merged-In: Idbc9e78550d72747fdedf1c9b440ca6affa9608e Change-Id: Idbc9e78550d72747fdedf1c9b440ca6affa9608e
2023-05-06Add APIs to perform OIDC authenticationKiwon Park
Test: manual testing with TMO Bug: 278763129 Merged-In: I5156d1473e9d0526a2be8025b50644db43a50b89 Change-Id: I5156d1473e9d0526a2be8025b50644db43a50b89
2023-03-16Respond to second and third challenge during EAP-AKA.android-u-beta-1-gplKiwon Park
Test: EapAkaApiTest Change-Id: Ia1070ad1921ddcd117b2383163885b4d595727ad Merged-In: 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