Commit Graph

12823 Commits

Author SHA1 Message Date
Aswin Sankar
b3918d9c38 Merge "NetworkService: quitSafely() on onDestroy()" into tm-qpr-dev 2022-09-22 17:23:27 +00:00
Aswin Sankar
4041689bf3 NetworkService: quitSafely() on onDestroy()
- When IwlanNetworkService is un-bound, such as when phone app dies,
  the typical sequence is onUnbind() followed by onDestroy() immediately.
- Messages queued by onUnbind() are not processed, which leaves the
  IwlanNetworkService in an unexpected state for the next onBind().
- The change is applied to DataService.java as well for safety.

Bug: 237447534
Test:
Live test by crashing com.android.phone to verify fix to unbind/destroy
behavior.

Change-Id: I25d968867401bd7d285735c83c71e3649467c5db
Merged-In: I25d968867401bd7d285735c83c71e3649467c5db
2022-09-22 00:08:01 +00:00
TreeHugger Robot
a443c8bd2e Merge "Revert "Add anomaly reports to check if IMEI is null."" into tm-qpr-dev 2022-09-21 01:14:57 +00:00
Ling Ma
5579b3ba98 AnomalyReport catch any exception when try to read deviceConfig
If the app context, likely tests that didn't mock permission, doesn't have deviceConfig read permission, don't try to enforce server-side flag .

Fix: 247700179
Test: manual trigger + https://android-build.googleplex.com/builds/abtd/run/L02900000956490923
Change-Id: I8f0e84219057974649def4bcc312ae0dc38670d1
2022-09-20 21:32:43 +00:00
Aishwarya Mallampati
fb207fff5b Revert "Add anomaly reports to check if IMEI is null."
This reverts commit 58e9f0004c.

Reason for revert: broken cts test b/247843841

Change-Id: I3df323704688510cb8fd17b8e0eb7b3d4febce7e
2022-09-20 21:31:44 +00:00
Aishwarya Mallampati
35d55a58cc Merge "Add anomaly reports to check if IMEI is null." into tm-qpr-dev 2022-09-20 16:35:13 +00:00
TreeHugger Robot
95ffd81e8f Merge "Allow bugreport only after server-side config loaded" into tm-qpr-dev 2022-09-20 05:03:54 +00:00
Hyosun Kim
2dbb6cb421 Merge "To read the group UUID, the calling app either needs carrier privileges or the READ_PHONE_STATE permission and access to device identifiers." into tm-qpr-dev 2022-09-20 03:06:34 +00:00
Aishwarya Mallampati
58e9f0004c Add anomaly reports to check if IMEI is null.
Bug: 247555621
Test: Basic testing + atest FrameworkTelephonyTests
Change-Id: Ieb0c6a7f5cedb86b36d3f8ac6a5867ace2f95487
2022-09-20 00:42:32 +00:00
Ling Ma
eaa0fd59f0 Allow bugreport only after server-side config loaded
To address the problem where the anomaly reports that are blocked by UUID continue being generated before the device receives server-side block list.

Bug: 246637909
Test: manual placing voice call + data browsing
Change-Id: I3e41e3dd2e6255dc7cbdda86736861720b757c4c
2022-09-13 21:53:44 +00:00
Aswin Sankar
2d24bbc890 Add DataFailCause for IWLAN_CONGESTION.
- ePDG private error type CONGESTION was added in TS 24.502.

Bug: 233121749
Test: ErrorPolicyManagerTest#testErrorPolicyWithNumAttemptsPerFqdn()

Change-Id: I85e6a1700f72db1d55a7929e5d4d93f8cac66c64
Merged-In: I85e6a1700f72db1d55a7929e5d4d93f8cac66c64
2022-09-06 17:40:49 +00:00
hyosun
6f8675f324 To read the group UUID, the calling app either needs carrier privileges or the READ_PHONE_STATE permission and access to device identifiers.
If the app has only the READ_PHONE_STATE permission, it can no longer read the group UUID.
When SubscriptionManager#getSubscriptionsInGroup is called, If the calling app has carrier permission or READ_PHONE_STATE permission and access to device identifiers, then returns a list.
If not, it returns an empty list.

Bug: 213902861
Test: atest SubscriptionManagerTest
Test: atest SubscriptionControllerTest
Test: manual (b/213902861#comment54)
Change-Id: I4e764b1a5babfcacf675f6e83d2b1014ec570c1e
Merged-In: I4e764b1a5babfcacf675f6e83d2b1014ec570c1e
2022-09-02 11:50:46 +00:00
TreeHugger Robot
b346a79c95 Merge "Add KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY" into tm-qpr-dev 2022-09-01 17:26:37 +00:00
Ling Ma
f752c1925e Add KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY
Add KEY_CAPABILITIES_EXEMPT_FROM_SINGLE_DC_CHECK_INT_ARRAY to carrier
config, which indicates the capabilities that are exempt from the single
PDN rule.

Fix: 237550962
Test: atest + cts
Change-Id: Ie49f6274d8e780534e203d6d0a5ead4ed2f3cfa7
2022-08-29 13:31:28 -07:00
Sungcheol Ahn
28ecf3e17d Merge "[Telephony] Handling to cache the instance of BinderCacheManager when createForSubscriptionId is called" into tm-qpr-dev 2022-08-26 01:31:48 +00:00
Sarah Chin
26756ac2a5 Merge "Update default for unset MTU v4" into tm-qpr-dev 2022-08-12 16:48:50 +00:00
Sarah Chin
90427e32ca Update default for unset MTU v4
The default was added in ag/16276490 and partially reverted in
ag/17950114. Update the default the correct value of 0 instead of -1.

Test: atest ApnSettingTest
Bug: 237602273
Change-Id: I06d5b40d93d4a3bce441756615cccbd02e1822f5
2022-08-10 14:50:01 -07:00
Jack Yu
d59d93d019 Merge "Supported UNKNOWN in IWLAN handover rule" into tm-d1-dev am: 2c6ac09bda
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19509981

Change-Id: Ief68ee442ce7a3404f4e5422f8e691448da441bf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-03 23:11:21 +00:00
Sarah Chin
d9ac485b1f Supported UNKNOWN in IWLAN handover rule
Extended handover rule to support the scenario that
handover should be blocked when source network goes
out of service.

Test: Basic testing + Wifi calling handover test + atest DataNetworkControllerTest
Bug: 234095834
Change-Id: I68c23f970af2a554ab438f630363be4591664cbb
2022-08-03 22:45:53 +00:00
donaldahn
81513212f0 [Telephony] Handling to cache the instance of BinderCacheManager when
createForSubscriptionId is called

Bug: b/237248121
Test: (TMUS) Calling Dial, Receive, Messaging Send, receive, airplane on/off
Change-Id: I4aeeb621246fe49ade21d36d3d0aa94fe4f69ea3
2022-07-23 00:53:20 +00:00
TreeHugger Robot
ce91d5fe1d Merge "Initialize port list in UiccSlotInfo constuctor" into tm-qpr-dev 2022-07-19 19:58:20 +00:00
Sarah Chin
fecc3b1339 Merge "Update values for NR signal strength" into tm-qpr-dev 2022-07-18 23:43:07 +00:00
Sarah Chin
56c72708a8 Update values for NR signal strength
Ranges were the same as LTE values, which is incorrect.

Test: atest CellSignalStrengthNrTest
Bug: 234304714
Change-Id: I030c6aeec22556454955bb4f9671afe830bb9e2f
2022-07-17 23:26:39 -07:00
Andrew Solovay
2284913fec Merge "docs: Typo fix ("Poicly" -> "Policy")." into tm-dev am: c8cf6861e8 am: 8d0a26091b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19270053

Change-Id: I37452ac1a4f173564b32a6c1e0dd42812ec8bb50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 22:59:46 +00:00
Andrew Solovay
8d0a26091b Merge "docs: Typo fix ("Poicly" -> "Policy")." into tm-dev am: c8cf6861e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19270053

Change-Id: I8de208f366e245fe9de5b83c547c076c74bdc0e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-14 22:35:39 +00:00
Andrew Solovay
8b7f68d4ef docs: Typo fix ("Poicly" -> "Policy").
Bug: 178958617
Change-Id: I0144af1f11f742d197aa38074b8c59be19cbdeb7
Test: (Built docs with go/abtd - go/abort-ui/run/L19100000955473218)
2022-07-13 23:44:51 +00:00
Michael Hoisie
02cc3745cb Initialize port list in UiccSlotInfo constuctor
UiccSlotInfo.getPorts() assumes a non-null port list. Ensure that the
port list is initialized in the (now deprecated) public constructor. If
it is initialized to null, and getPorts is called, an NPE will occur.

This came up in a setupwizard test that was using the UiccPortInfo
constructor and calling getPorts().

Test: setupwizard SlotsSelectionActivityTest

Bug: 238559684
Bug: 238444812

Change-Id: I0be45f4b55be196f94034f6eb26657202d50e32f
2022-07-10 22:07:07 +00:00
Chinmay Dhodapkar
8d71635489 Fix tts span on Editable
Make sure we clear any previously set TTS spans
before calling ttsSpanAsPhoneNumber.

Bug: 237511525
Change-Id: I89a4b190d9b8ebeeb19d0e693d1b1364b1ac9763
Test: on device test of blocked numbers with Talkback enabled
2022-07-08 17:14:30 +00:00
Aishwarya Mallampati
366cdaf821 Merge "Extract hostname if mMmsProxyAddress starts with http." into tm-qpr-dev 2022-06-14 15:11:30 +00:00
Amruth Ramachandran
886b084514 Merge "Revert "To read the Group UUID, the Caller must also have the US..."" into tm-dev am: 34cb65ba31 am: a2021dd5d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18800075

Change-Id: Ie9e65066cdfa4aa4c53fda6d5d06368453c88af0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 16:19:39 +00:00
Amruth Ramachandran
a2021dd5d2 Merge "Revert "To read the Group UUID, the Caller must also have the US..."" into tm-dev am: 34cb65ba31
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18800075

Change-Id: I7941ef268e477d93dd4a1cfc8bdb4f05f22b7d71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-09 16:11:58 +00:00
Amruth Ramachandran
34cb65ba31 Merge "Revert "To read the Group UUID, the Caller must also have the US..."" into tm-dev 2022-06-09 15:43:14 +00:00
Hyosun Kim
afd162fac7 Revert "To read the Group UUID, the Caller must also have the US..."
Revert "To read the Group UUID, the Caller must also have the US..."

Revert "To read the Group UUID, the Caller must also have the US..."

Revert submission 17956544-group_uuid

Reason for revert: Bug: 235395006
Reverted Changes:
Iaa5493679:To read the Group UUID, the Caller must also have ...
Ic635126db:To read the Group UUID, the Caller must also have ...
Ia134265c2:To read the Group UUID, the Caller must also have ...

Change-Id: I286ebe8766b5cb975ee6e3536c966ef260b67627
2022-06-09 00:19:33 +00:00
Aishwarya Mallampati
c4ad2c4f59 Extract hostname if mMmsProxyAddress starts with
http.

Bug: 226279832
Test: atest
com.android.internal.telephony.dataconnection.ApnSettingTest#testBuild_mmsProxyAddrStartsWithHttp
Change-Id: I3cf4a23ab6d6f7f21116ec591b11ec1c8a798f51

Change-Id: Ic05c39c8c86294564e65c4d0ab0ee263abe03fb3
2022-06-03 16:52:14 +00:00
Ling Ma
59e996dd23 Minor update canHandleType()
Bug: 232632618
Test: manual
Change-Id: I5e1ca1361dfe04cd484e585f095aff0c5ff2579f
2022-06-02 20:43:46 +00:00
Chen Xu
d779fb845f Merge "Updating the error message for clear understanding of Deprecated methods. Test: manual Bug: 234089071" into tm-dev am: 399d8e96ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18620716

Change-Id: Ie1123936e1769b9681765bf335b34be0fbd20b38
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-27 21:12:19 +00:00
Chen Xu
399d8e96ff Merge "Updating the error message for clear understanding of Deprecated methods. Test: manual Bug: 234089071" into tm-dev 2022-05-27 20:53:12 +00:00
sandeepjs
3f140106e9 Updating the error message for clear understanding of Deprecated
methods.
Test: manual
Bug: 234089071

Change-Id: Ieba3a2e257c8f097dfcdc0c22abe7225ae5bed0c
2022-05-27 05:24:58 +00:00
Jack Yu
ccda49065b Merge "Traffic descriptor only data profile should be enabled" into tm-dev am: e55b0a1f17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18567917

Change-Id: I12accca49ced1a57b037ac62c470a6e9737f8b2a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-25 16:09:16 +00:00
Jack Yu
d11b29cfe0 Traffic descriptor only data profile should be enabled
If a data profile only contains traffic descriptor, and has no
APN setting, it should be considered enabled.

Fix: 233557423
Test: Manual + atest DataProfileTest
Change-Id: Ied26cbba3bde8491bfd6299a2724fc2c5b26c026
2022-05-23 17:18:46 -07:00
Jack Yu
52f8907c1e Added a new fail cause
Added a new fail cause 0x3F which was added in
3GPP TS 24.008 release 15.3

Bug: 232757475
Test: Manual
Change-Id: Id14c2421f965beeb509ce73dd3d284ba8d1f6622
2022-05-16 20:21:42 -07:00
Amruth Ramachandran
843431d919 Merge "[MEP] set removable eSIM as default eUICC to pass GCF/PTCRB" into tm-dev am: 3e5894b2e8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18281725

Change-Id: I294b89447a925522dac6b6a1f177624e8984591a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-13 23:55:20 +00:00
Amruth Ramachandran
3e5894b2e8 Merge "[MEP] set removable eSIM as default eUICC to pass GCF/PTCRB" into tm-dev 2022-05-13 23:22:06 +00:00
Ling Ma
02e4ae490e Merge "Make registrationState consistent with RoamType in case of override" into tm-d1-dev 2022-05-13 16:51:52 +00:00
Shivakumar Neginal
b9d34ecb2f [MEP]Uncomment the EuiccManager switchToSubscription changes.
Currently targetSdk enforcement inside switchToSubscription
(without port) API is commented as apps such as tycho and CBRS
are not yet adopted to the new Android T APIs.

Test: Manually tested esim scenarios and atest executed
Bug: 221887933
Merged-In: I8faf9cf58db7c9204193643d4fa710d6d6608d55
Change-Id: I7b1897df2ff350ef43617c3ede140ef4beb83165
2022-05-13 12:40:10 +00:00
Ling Ma
5153e1b7cf Make registrationState consistent with RoamType in case of override
Bug: 231357778
Test: manual + atest frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/NetworkRegistrationInfoTest.java
Change-Id: Ibf74839f688df587d1f791795924a8152c52e3dc
2022-05-13 01:08:35 +00:00
TreeHugger Robot
91604b8ef0 Merge "Update API doc for accidentally exposed NETWORK_TYPE_BITMASK_LTE_CA" into tm-dev 2022-05-12 18:22:02 +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
Ling Ma
882677a1d5 Update API doc for accidentally exposed NETWORK_TYPE_BITMASK_LTE_CA
NETWORK_TYPE_BITMASK_LTE_CA is not used anywhere even if it's
accidentally passed into setAllowedNetworkTypesForReason(). Will be deprecated in U.

Fix: 230383206
Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/TelephonyManagerTest.java
Change-Id: Id0c521c4fb74eaf7d73deaf122e923f72b924c18
Merged-In: Id0c521c4fb74eaf7d73deaf122e923f72b924c18
2022-05-11 14:01:49 -07:00
Brad Ebinger
7fd1f11059 Ensure create/destroy is called properly for Capability Exchange API
We were mistakenly not calling the destroy API properly for Capability
Exchange API when the listener passed in was null. Instead we were calling
destroy -> create. This was causing us to call destroy -> create
over 4 times when switching SIMs.

Bug: 228278638
Test: manual PUBLISH verification on TMO, atest FrameworksTelephonyTests
Change-Id: If374f8306add45e60f64fa4031af31c8f448bb22
2022-05-10 16:55:50 -07:00