Commit Graph

4872 Commits

Author SHA1 Message Date
Binyi Wu
87a3a44d52 Merge "Revert "Add constants for setNullCipherAndIntegrityEnabled"" 2022-11-15 03:27:30 +00:00
Binyi Wu
af7b5cb5b4 Revert "Add constants for setNullCipherAndIntegrityEnabled"
Revert "Add RIL interface for setNullCipherAndIntegrityEnabled"

Revert submission 20283075-setNullCipherAndIntegrityEnabled

Reason for revert:
DroidMonitor: Potential culprit for Bug b/259163733 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted Changes:
Idad17af0a:Add setNullCipherAndIntegrityEnabled CTS to IRadio...
Ia72f7bdd6:Add constants for setNullCipherAndIntegrityEnabled...
I5ea99cb06:Add setNullCipherAndIntegrityEnabled to IRadioNetw...
I53403d9f7:Add RIL interface for setNullCipherAndIntegrityEna...

Change-Id: Iae73cc40c4be22599bfdec61d48d9318c4fba2a8
2022-11-15 02:19:00 +00:00
Yomna Nasser
c7d4a9fb81 Merge "Add constants for setNullCipherAndIntegrityEnabled" 2022-11-15 01:36:03 +00:00
jimsun
a4c9bc8003 Create module-specific Hal versions
Bug: 243072871
Test: cts test
Change-Id: Ib4bd4e42677b6d506a509a0097b86dd4a9acb012
2022-11-15 00:09:45 +08:00
Yomna Nasser
05ab460ef9 Add constants for setNullCipherAndIntegrityEnabled
Bug: b/237529943
Test: m
Change-Id: Ia72f7bdd64f659fb0b1aecaf06cc0d044b6d6f7b
2022-11-05 03:06:31 +00:00
Hunsuk Choi
6a37f543ae Add APIs for the domain selection service
Bug: 243344927
Test: atest
Change-Id: I3ec9be06b1646df884c2915ac199f5845c1d49d0
2022-11-02 09:00:31 +00:00
Hunsuk Choi
f4d3d69e02 Merge "Add RIL requests and unsol for IRadioIms hal" 2022-10-31 14:34:43 +00:00
Aishwarya Mallampati
9bea015021 Change get/setUserHandle to get/setSubscriptionUserHandle.
Bug: 255592760
Test: Sanity, atest android.telephony.cts.SubscriptionManagerTest, atest
com.android.internal.telephony.SubscritpionControllerTest

Change-Id: I6df0579cd33e2b2efcd8477270160b46c10d0a3a
2022-10-26 18:28:50 +00:00
Hunsuk Choi
b2c8f0173e Add RIL requests and unsol for IRadioIms hal
Bug: 216387835
Test: build & flash
Change-Id: I7a8afdef592881146699472051b9b6cdfde1b457
Merged-In: I7a8afdef592881146699472051b9b6cdfde1b457
2022-10-21 02:44:46 +00:00
Aishwarya Mallampati
4f83895959 Add setUserHandle and getUserHandle apis.
Bug: 247166170
Test: Basic testing, unittests
Change-Id: I4b9ab5f56a3ddac25ab8c335a84d86b5ba0fe932
2022-10-20 22:55:44 +00:00
Jack Yu
40dfa97392 Removed unused methods
Removed getAllSubscriptionInfoCount(), getDefaultSmsPhoneId(), and
getDefaultDataPhoneId().

Bug: 239607619
Test: Manual
Change-Id: I1e4110e4bb7dbbc05d51f75d67f451a8ce3bf229
2022-10-03 13:53:49 -07:00
Hunsuk Choi
b765796dc8 Add RIL requests for Emergency Call domain selection HAL API changes.
Add the following:
- RIL_REQUEST_SET_EMERGENCY_MODE
- RIL_REQUEST_TRIGGER_EMERGENCY_NETWORK_SCAN
- RIL_REQUEST_CANCEL_EMERGENCY_NETWORK_SCAN
- RIL_REQUEST_EXIT_EMERGENCY_MODE

- RIL_UNSOL_EMERGENCY_NETWORK_SCAN_RESULT

Test: Build
Bug: 243344927
Change-Id: I62b8f26460858d1b608075466c4ad26114c69b8a
2022-09-29 10:50:34 +00:00
Sarah Chin
b64c84f42e Merge "Add 5G booster slice APIs" 2022-09-23 14:52:58 +00:00
Sarah Chin
dca0e87e8c Add 5G booster slice APIs
Create APIs for 5G booster slice feature.

Test: TelephonyManager CTS tests
Bug: 244369054
Change-Id: Ib044bfd5c3a06f96123f95d5d4ef8f90f2917369
2022-09-22 00:10:39 -07:00
Jack Yu
f60d4ddf8a Removed old data stack
Completely removed the old telephony data.

Fix: 201830726
Test: Manual
Change-Id: I8e92c8f795c4ecfd71a3a642956fbb60711fb56e
2022-09-14 20:31:58 -07:00
Aishwarya Mallampati
89bace0ba9 Merge "setCellInfoListRate on specific sub" 2022-09-08 17:29:03 +00:00
Aishwarya Mallampati
be0df52749 setCellInfoListRate on specific sub
Bug: 242144387
test: CtsTelephonyTestCases, Sanity Check
Change-Id: Iaa64c4a560ffe7bd99bfdb86d0b3caa145a07d25
2022-09-08 16:03:03 +00:00
Thomas Nguyen
20a240d08e Merge "Add new APIs for owner groups to vote on radio power state" 2022-08-16 17:52:25 +00:00
Jack Yu
bbf95d4b8e Revert "Removed old data stack"
Revert "Removed old data stack"

Revert "Removed old data stack"

Revert submission 19477826-remove_old_data

Reason for revert: Pixel 4a needs it
Reverted Changes:
I4f58626b0:Removed old data stack
I798b17a59:Removed old data stack
I523b924c2:Removed old data stack

Change-Id: Icd03bc713359e49cba659b54a1454bb0d56efa97
2022-08-15 19:53:50 +00:00
Thomas Nguyen
437bd386c7 Add new APIs for owner groups to vote on radio power state
Bug: 228777724
Design doc: go/voting-radio-power-state
Test: Run the following tests
 - atest android.telephony.cts.TelephonyManagerTest
 - atest com.android.internal.telephony.ServiceStateTrackerTest
 - atest com.android.internal.telephony.data.DataNetworkControllerTest
 - atest com.android.internal.telephony.dataconnection.DcTrackerTest
 - atest com.android.internal.telephony.GsmCdmaPhoneTest
Change-Id: I4d49de3e056be62897a7472acc1c68c2a9932c27

Change-Id: I15750f49573d4213970b6b5228d5180c775f8536
2022-08-15 17:41:38 +00:00
Jack Yu
af681a4297 Removed old data stack
Fix: 201830726
Test: Manual
Change-Id: I523b924c24f538e38f523ed77ed2b49594a110ae
2022-08-01 11:12:05 -07:00
Aishwarya Mallampati
4867ae7f0f Merge "Delete unused intents." 2022-07-20 15:50:55 +00:00
arunvoddu
9cb5462a51 Fetches sim service table from the EF_SST elementary file of the sim
Bug: 217794026
Test: Atest verification completed
Change-Id: I7341a5f3e6c585ce9e042d26a08a614e0d6292a0
2022-07-11 04:35:45 +00:00
arunvoddu
c50be40eeb Interface for PSI-SMSC value from UICC
Bug: 229066443
Test: Done with manual and atest verification
Change-Id: I1bbcb4513396920f1254563ebe70635319fbee8c
2022-06-23 09:15:03 +00:00
Amit Mahajan
c91b5107d8 Delete unused intents.
ACTION_SUBINFO_RECORD_UPDATED and ACTION_SUBINFO_CONTENT_CHANGE

Test: atest
Bug: 132734069
Change-Id: I6e0382ea67750f7106ddc9834b98f1d1cc7e8eb2
2022-05-23 17:53:21 +00:00
TreeHugger Robot
c5a6db5d9c Merge "TP - Message reference for SMS SUBMIT type" 2022-05-19 07:45:32 +00:00
Ramya Manoharan
e88f8481d7 TP - Message reference for SMS SUBMIT type
Addition of the TP - Message reference in pdu for SMS-SUBMIT type
Test: Build
Bug: 228299168

Change-Id: I3a64b79478d16d730c921fbfdd050fc014eec7b5
2022-05-18 18:10:37 +00:00
Amruth Ramachandran
b9ff5ae38e Merge "[MEP] set removable eSIM as default eUICC to pass GCF/PTCRB" into tm-dev am: 3e5894b2e8 am: 81ae67c287
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18281725

Change-Id: If0ffec6fe4a3db29205ef7c420198cfff57ae982
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-14 00:13:18 +00:00
Muralidhar Reddy
c78b316c02 [MEP] set removable eSIM as default eUICC to pass GCF/PTCRB
To support removable esim to pass GCT/PTCRB test in DSDS mode, we should make sure all the download/activation requests are by default route to the removable esim slot. In order to satisfy this use case, we should return removable esim cardId as default.

1. Add switch UI in RadioInfo hidden activity to set removable esim as default eUICC.
2. When switch is checked/unchecked, corresponding flag is set in UiccController and intent is broadcasted to LPA.
3. TelephonyManager#getCardIdForDefaultEuicc API returns removable esim cardId if switch is checked.

Bug: 228640832
Test: Manual verification (Verified intent broadcast is received at LPA and flag is set in the UiccController)
Change-Id: I1c3a77a8c76d53f1d88ac4bbd77c8dbadc8d7a74
2022-05-12 15:45:43 +00:00
ckishan
32eefa6c71 Telephony GBA_U Authentication
Extend getIccAuthentication() API to support GBA-U bootstrapping parameters and NAF key from SIM for both USIM and ISIM

Bug: 229200773
Test: `atest android.telephony.cts.TelephonyManagerTest#testTelephonyManager`
pass on crosshatch
Change-Id: I3c5d92a47b56137aeb850820a0afe812385aa0f8
2022-05-10 10:48:23 +00:00
Aishwarya Mallampati
2e894a2754 Merge "Revert "VoWifi notification for emergency calls"" into tm-dev 2022-04-08 00:46:32 +00:00
Aishwarya Mallampati
d79acc64a7 [automerge] Revert "VoWifi notification for emergency calls" 2p: 501b640ae0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17618862

Change-Id: If8f89abcbbd7772abcd86c6cdf30cb94169d768f
2022-04-06 16:17:14 +00:00
Aishwarya Mallampati
501b640ae0 Revert "VoWifi notification for emergency calls"
Revert "VoWifi notification for emergency calls"

Revert submission 17034757-VoWifi_Emergency_Notification

Reason for revert: QC updated the patches which needs to be reviewed. The issue is under discussion.
Reverted Changes:
Iaf52a642a:VoWifi notification for emergency calls
I9e2a7ea4e:VoWifi Emergency Call Notification
I494748118:VoWifi notification for emergency calls

Change-Id: Ifb875960d427a38fd5f624bc45f849cf5d743e2f
2022-04-06 16:16:58 +00:00
Sarah Chin
ac94df2bab SetDataEnabled indicate calling package
Test: atest TelephonyManagerTest
Bug: 226149142
Change-Id: I769437e9332f27c0990c37f60ad6d9db284e86cf
2022-03-31 21:15:05 -07:00
Jack Yu
fcd56e60dd Merge "Moved MVNO matching logic out of old data stack" into tm-dev 2022-03-22 00:24:38 +00:00
Jack Yu
316939d210 Moved MVNO matching logic out of old data stack
Moved MVNO matching logic out of old data stack. There
is no logic change here.

Bug: 171809764
Test: Manual
Change-Id: Ia7fc8042fe81a884bbab60c7a9bb6423f0401d65
2022-03-21 09:38:14 -07:00
Rambo Wang
28b2ee8ec0 Optimize TM#getCarrierServicePackageName[ForLogicalSlot]
Instead of querying package manager every time which is
quite expensive, the new implementation will improve
the performance by query the cache in CarrierPrivilegesTracker.

Bug: 217442920
Test: atest CarrierPrivilegesTrackerTest
Change-Id: I29df8599bdfc84cab330fa7056a228997a4bac0f
2022-03-15 16:51:14 -07:00
Jack Yu
c2382270b9 Completely detach old data stack
Not create DcTracker and TransportManager instances
when new data stack is enabled.

Test: atest FrameworksTelephonyTests and manually tested on
Pixel 4 and Pixel 6.
Bug: 222323544

Change-Id: Ice595f329e2f4e531dc577cd3db7c863ba15d6d6
2022-03-11 20:44:05 -08:00
Sukanya Rajkhowa
b6e9b03b83 VoWifi notification for emergency calls
- Add new intent to send VOWIFI_ENABLED status

Bug: 179122732
Test: Manually verified by simulating
Change-Id: Iaf52a642a0435a070b8280b098e7929cddde55f6
2022-03-05 00:07:30 +00:00
Muralidhar Reddy
d1cc4ed8ac [MEP] Resolve port index in case apps are calling switchToSubscription(without portIndex) API for disable operation.
Subscription enable/disable is done through a single EuiccManager.switchToSubscription API. If the passing subId is invalid which means to disable the currently enabled profile on eUICC. With MEP, there can be more than one active subscription so apps should explicitly calling new API switchToSubscripti.on(with portIndex) to specify disable which profile from eUICC.

Bug: 218393363
Test: atest FrameworksTelephonyTests
Change-Id: I7af60c9447acbb86597d9ad14b249c0fa9a76f26
2022-02-16 06:00:03 +00:00
Treehugger Robot
108ec178ee Merge "Create EVENT_TRAFFIC_DESCRIPTORS_UPDATED" am: 35ac7e34ce am: d47e88e58c am: c15388da45 am: 39173ceda9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1917117

Change-Id: I1b0fe0c9642064a22485774bd523bbe47953dda8
2022-01-27 03:06:12 +00:00
Treehugger Robot
35ac7e34ce Merge "Create EVENT_TRAFFIC_DESCRIPTORS_UPDATED" 2022-01-27 01:49:59 +00:00
Hunter Knepshield
2526568630 APIs for SIM call manager voice status
This CL creates two new PhoneAccount capabilities for the SIM call
manager (and potentially telephony itself for PSTN PhoneAccounts) to
advertise that they support voice calling, potentially independent of
voice service state. With this information, telecom will feed updated
back into telephony for plumbing through the standard ServiceState-based
APIs.

Bug: 205737545
Test: atest android.telecom.cts.PhoneAccountOperationsTest
  (an additional CTS test for the TelephonyManager API will be added as
  a follow-up)
Change-Id: If7a5b03a7aa630823ac238ef27721e5e6cc596e6
2022-01-24 13:18:12 -08:00
Sandeep Jawalkar
c0168a8677 Merge "Adding compareIgnoreTrailingFs helper method to compare IccId's" 2022-01-24 09:29:26 +00:00
sandeepjs
9560590d89 Adding compareIgnoreTrailingFs helper method to compare IccId's
Test: build, manual
Bug: 213434330
Change-Id: I20c37c4178c269b71864220852ba067ff70191ba
2022-01-24 06:48:06 +00:00
Hakjun Choi
e120a5c163 Merge "Add public API to ProvisioningManager for IMS/RCS provisioning by updatable provisioning app" 2022-01-22 06:50:31 +00:00
Hakjun Choi
a9008580f4 Add public API to ProvisioningManager for IMS/RCS provisioning by
updatable provisioning app

Bug: 197992603
Test: CTS ImsServiceTest#testProvisioningManagerWhen(Mmtel/Rcs)ProvisionIs(Not)Required
Change-Id: I4fc0759111d15cec01a49a78cda5065bfb7e6c65
2022-01-20 05:46:33 +00:00
Bernardo Rufino
1a5cb387d6 Revert "Revert "Migrate unsafe parcel APIs in framework-minus-apex""
This reverts commit 331be9a643.

Reintroducing ag/16366278 since it seems unrelated to b/214053959 (more details on b/214053959#comment55).

Original commit message:

Migrate unsafe parcel APIs in framework-minus-apex

Migrate the following unsafe parcel APIs in framework-minus-apex:
* Parcel.readSerializable()
* Parcel.readArrayList()
* Parcel.readList()
* Parcel.readParcelable()
* Parcel.readParcelableList()
* Parcel.readSparseArray()

This CL was generated by applying lint fixes that infer the expected
type from the caller code and provide that as the type parameter
(ag/16365240).

A few observations:
* In some classes we couldn't migrate because the class also belonged to
another build module whose min SDK wasn't current (as is the case for
framework-minus-apex), hence I suppressed the lint check
(since I'll eventually submit the lint check to the tree).
* In some cases, I needed to do the cast in
https://stackoverflow.com/a/1080525/5765705 to make the compiler happy
since there isn't another way of providing a class of type
Class<MyClassWithGenerics<T>>.
* In the readSerializable() case, the new API also requires the class
loader, that was inferred to by InferredClass.class.getClassLoader().
* Note that automatic formatting and import rely on running hooked up
to the IDE, which wasn't the case here.

Bug: 195622897
Change-Id: I272432e6e082a973f7a50492ec35d79c2b577c93
Test: TH passes
2022-01-19 11:13:18 +00:00
Jonggeon Kim
45ed6b9c92 Merge "ImsService Subscription Notifications" 2022-01-18 06:20:43 +00:00
Jonggeon Kim
235d7a46ca ImsService Subscription Notifications
Provide a new API in ImsService that creates a new version of each ImsFeature and dependencies when a new subId is loaded.
The ImsService handles ImsFeature setup and teardown procedures to happen on a per-subscription basis instead of on a per-slot basis.
Provide the compatibility behavior for older devices that are not upgrading to using the new API.

Bug: 197991451
Test: atest FrameworksTelephonyTests:ImsServiceTest, atest CtsTelephonyTestCases:ImsServiceTest

Change-Id: I231da2f4479d4a4fb272edbf27e49f46833a082a
2022-01-14 21:18:58 +00:00