Commit Graph

12758 Commits

Author SHA1 Message Date
TreeHugger Robot
f376b8bed7 Merge "initialized carrier_certificate_string_array to an empty array instead of null, so that when a certificate is removed, it is also removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig" into rvc-qpr-dev 2020-10-23 20:39:57 +00:00
Nazanin
0c3a6b7ce9 initialized carrier_certificate_string_array to an empty array
instead of null, so that when a certificate is removed, it is also
removed in SubscriptionInfoUpdater#updateSubscriptionByCarrierConfig

Bug: 162700101
Test: manual
Change-Id: I921007498f42119581f565fcc6625c1275c59df8
Merged-In: I921007498f42119581f565fcc6625c1275c59df8
2020-10-22 21:37:47 +00:00
Amit Mahajan
1530a593ea Mark deleteMessageFromIcc() as @UnsupportedAppUsage.
The API was exposed in ag/9766884 but reverted in ag/10665971. However
with the revert the annotation was not added back.

Test: TH
Bug: 159022482
Change-Id: Ia7d200bfd4d4565971701048b1c469a6633edeb4
2020-10-21 12:32:59 -07:00
Brad Ebinger
f1f2e0405e Fix un-dismissable incoming call for auto-rejected calls
When the device receives an incoming call indication and quickly
receives another call terminated indication (such as the auto
reject case), there is the possiblity that the call terminated indication
happens while onIncomingCall is still being processed. This is due to the
fact that binder oneway calls are only guaranteed to be on the same binder
thread for the same IBinder node. Since these callbacks are happening on
two separate nodes potentially, there are running in two binder threads
at the same time, causing race conditions.

Instead, the onIncomingCall binder call should not be oneway (as it is
required to complete before other indications should occur) and only
return control back to the ImsService thread once the
MmTelFeature#notifyIncomingCall call completes.

Bug: 160213239
Test: incoming call, auto-rejected incoming call on MSIM
Change-Id: I054e6b00656fc04f48f7f378076e29322daf59ad
2020-09-28 21:06:59 +00:00
TreeHugger Robot
85f5802bec Merge "Add config to use lower of IPv4/IPv6 MTU values" into rvc-qpr-dev 2020-09-25 21:01:01 +00:00
TreeHugger Robot
504b2dd50a Merge "Fix unique identifiers best practices links in device ID API docs" into rvc-qpr-dev 2020-09-25 17:08:01 +00:00
Michael Groover
1aef206a3a Fix unique identifiers best practices links in device ID API docs
Bug: 168447060
Test: m docs
Change-Id: I483e0cf4915862254461200deb5d3dc7302bafb4
Merged-In: I483e0cf4915862254461200deb5d3dc7302bafb4
2020-09-24 19:56:04 +00:00
Sarah Chin
dc7260ad33 Add config to use lower of IPv4/IPv6 MTU values
Test: atest DataConnectionTest
Bug: 162285224
Change-Id: Ic0afdfabec3a13a4a1d3fd34e7e02d4df3a06ea5
2020-09-23 02:08:43 -07:00
Sarah Chin
c8eaff3037 Merge "Add ncid to CellLocation in CellIdentityNr" into rvc-qpr-dev 2020-09-21 23:44:07 +00:00
Sarah Chin
69e53926f2 Add ncid to CellLocation in CellIdentityNr
Update GsmCellLocation documentation for NR case. Since the NR cell ID
is 36 bits and can't fit into the 32-bit field in GsmCellLocation,
return -1 for the CID.

Test: atest CellIdentityNrTest
Bug: 166514842
Change-Id: Ib894e83900b590c11221502ad039781cea5b571c
2020-09-21 20:22:08 +00:00
Amit Mahajan
4f59bdded5 Data connection for carrier specific APN
Implement the following features to support carrier network connection.
This commit is to define the carrier config for each features.

1. Sets default preferred APN
2. Uses dun APN when using Preset APN in roaming network

Also, fixed that to use only APNs with the same set id as preferred
APN.

Test: Manual
Bug: 147969062
Merged-in: If1e6d2bf58de39c22caa901fcd90fb11f104d900
Change-Id: If1e6d2bf58de39c22caa901fcd90fb11f104d900
(cherry picked from commit b9beb0d1afda6327b1c7645ac20a016f08e5744e)
2020-09-18 22:34:52 +00:00
Brad Ebinger
2eed386624 Customize the service class for Call barring
Add a new carrier config that changes the service class is used for Call
barring settings.

CP from aosp/1404668

Test: manual
Bug: 161772958

Merged-In: Ibce22d0d340ce648c0b6df411266d1c4fe537013
Change-Id: Ibce22d0d340ce648c0b6df411266d1c4fe537013
2020-09-17 14:17:35 -07:00
Sarah Chin
e959f09461 Merge "Add minimum bandwidth config for showing LTE+ data icon" into rvc-qpr-dev 2020-08-27 19:20:18 +00:00
Sarah Chin
ea9d40e140 Add minimum bandwidth config for showing LTE+ data icon
Only show the LTE+ icon if the combined channel bandwidth is greater
than the valued defined. By default, the value is 20 MHz, and if there
is no limit then the value should be 0.

Test: atest NetworkTypeControllerTest
Bug: 160873305
Change-Id: I4068860c5798f921fc198c095ba9b8f84ae5663b
2020-08-26 15:48:14 -07:00
Tyler Gunn
ebceb0dd39 Add default constructor to NR cell classes
The default constructor is missing in CellInfoNr and CellIdentityNr
classes. All the other CellInfo* and CellIdentity* classes have it.

Also, add setCellIdentity(CellIdentityNr) method to CellInfoNr.

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1202369
Bug: 147260058
Test: m
Merged-In: I4617272446ffb32d5d33d14d825f4ed919cc1c47
Change-Id: I4617272446ffb32d5d33d14d825f4ed919cc1c47
(cherry picked from commit 23382679eb)
2020-08-20 17:31:24 +00:00
Sarah Chin
be05cd4b40 Merge "Update NR TAC limit to 3 bytes" into rvc-qpr-dev 2020-08-17 19:42:11 +00:00
Sarah Chin
ca5b04dffa Update NR TAC limit to 3 bytes
TAC was updated to 3 bytes, so the limit is now 0xffffff instead of the
previous 0xffff. Update to meet 3GPP requirements in 24.501 9.11.3.8.

Test: build
Bug: 144433329
Change-Id: Ie007c29671da709f23684ff27d30ef1c377aadc6
Merged-In: Ie007c29671da709f23684ff27d30ef1c377aadc6
2020-08-17 09:57:53 -07:00
Brad Ebinger
75d127dc92 Remove IMS call logs that may leak PII
Bug: 160389340
Test: Check logs for PII
Change-Id: I203b37d8e643c59d69aa26097d223fc4b3f8e332
2020-08-13 00:41:39 +00:00
Daniel Bright
d44c53b4e5 Call on urls changed callback when callback added
Now calling onSubscriberAssociatedUriChanged on IImsRegistrationCallback
when the callback is first added to ImsRegistrationImplBase.

Bug: 159301697
Bug: 161656000
Test: Made phone call
Test: Added unit test
Change-Id: Ibfcb8aaae9d410a09ec98e57d77eccd34fcc222f
2020-08-06 22:01:05 +00:00
Shuo Qian
1818db33e9 Change the range checking for ssrsrq am: 71818ce490
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12254388

Change-Id: I7d7179add69fbc02f23ddd2bc3c39e1fb0f521b1
2020-07-29 20:19:31 +00:00
Shuo Qian
71818ce490 Change the range checking for ssrsrq
Test: Telephony tests
Bug: 159761054
Change-Id: I383f3b5c7b4e89fa7e9cd3be6e77c3d99552b99c
2020-07-28 21:25:20 +00:00
TreeHugger Robot
b8b8f1323b Merge "Allow network stack UID caller to retrieve cell identity" into rvc-dev am: 855eb749ed am: 4f7fa277ab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12226436

Change-Id: Iccbb47fbb7d1ecba2aaddf18de4fbf2c2c7ec7e0
2020-07-24 22:25:42 +00:00
TreeHugger Robot
4f7fa277ab Merge "Allow network stack UID caller to retrieve cell identity" into rvc-dev am: 855eb749ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12226436

Change-Id: I6f82a1ee38717d801c828d4922b89dea5267215f
2020-07-24 22:08:26 +00:00
Jack Yu
56cfdd1e87 Allow network stack UID caller to retrieve cell identity
For backwards compatibility, we allow phone, system UID to
access cell identity through getServiceState. Cell broadcast
service, which is used to be part of telephony, now is running
under network stack UID. We should consider network stack UID as
trustable components like system/telephony.

Fix: 157618105
Test: Manual
Change-Id: I9b2dfc778752e130f5c7e44c4b2e45b63ac6f918
2020-07-24 19:54:25 +00:00
Josh Hou
7d4f7799ca Allow call forwarding number with prefixes to be dialed while on IMS roaming
If the carrier supports call forwarding number prefixes to be allowed
while on IMS roaming, then the number should be dialed and forwarded successfully

Bug: 153413483
Test: Verify the call using *72 <number to be forwarded to> is dialed and forwarded successully
Change-Id: Ia93dec2ebb11aa3ab8f48975a9b6f02089d1482b
2020-07-15 00:06:37 +08:00
Hall Liu
93b9040fcb Merge "Skip carrier priv check for trusted UIDs" into rvc-dev am: f1a6972937 am: a9d9ea8a3e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12141306

Change-Id: I693f18234eb0f0b1c858807a71be474e7ce00bd2
2020-07-14 00:01:26 +00:00
Hall Liu
a9d9ea8a3e Merge "Skip carrier priv check for trusted UIDs" into rvc-dev am: f1a6972937
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12141306

Change-Id: I5443d0b523edc6a2a632157294bf9e2520d9c4e2
2020-07-13 23:46:16 +00:00
Hall Liu
12a3f5cfdc Skip carrier priv check for trusted UIDs
Checking carrier privileges for UIDs with lots of shared apps can incur
a significant performance hit. For UIDs that are fixed and trusted
(system and phone), skip the permission check and always allow.

Also, double the cache size for getPackageInfo in order to reduce the
rate of cache misses.

Bug: 160971853
Test: manual verification -- observed lower rate of cache misses for
getPackageInfo from com.android.phone.

Change-Id: I1399cab579308479d7cf191b8795441cbcd3ff65
2020-07-13 12:45:00 -07:00
Shuo Qian
dfac043996 Merge "Change the range of SS-RSRQ per 3GPP TS 38.133 section 10" into rvc-d1-dev am: 84c1b0d149
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12040149

Change-Id: I89db3c21cb279e394025b371eeb52cb5d6931566
2020-07-11 00:16:39 +00:00
Shuo Qian
84c1b0d149 Merge "Change the range of SS-RSRQ per 3GPP TS 38.133 section 10" into rvc-d1-dev 2020-07-11 00:06:35 +00:00
TreeHugger Robot
0d1ad1b52e Merge "Expose NR State string method for use in RadioInfo" into rvc-d1-dev am: 6162707258
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12124535

Change-Id: Icb5ba1e83479eda2a33cc5c03ffeda739f537e3c
2020-07-10 23:35:06 +00:00
TreeHugger Robot
6162707258 Merge "Expose NR State string method for use in RadioInfo" into rvc-d1-dev 2020-07-10 23:22:45 +00:00
Shuo Qian
26e679e8e4 Change the range of SS-RSRQ per 3GPP TS 38.133 section 10
Test: Doc changes; unit tests
Bug: 159761054
Change-Id: I46ff439d43f64ff21ba5072a8533c60d2557bbb2
2020-07-10 20:35:25 +00:00
Jeff Sharkey
131781145d Fix a Sms7BitEncodingTranslator threading issue, since translate() method can easily race when called by multiple threads.
Bug: 160733170
Test: Sanity; Telephony unit tests; hard to reproduce
Change-Id: If8347a27a79351e84060c9a35e1cc9efd468f7a0
2020-07-10 18:01:37 +00:00
Sarah Chin
33e5841e87 Expose NR State string method for use in RadioInfo
Test: build
Bug: 160825855
Change-Id: Ie709cad1c94ad204c46a559d316f45da16c3541c
2020-07-09 19:26:03 -07:00
SongFerngWang
3a3af2fc2f Add carrier config for NR timer reset
KEY_NR_TIMERS_RESET_IF_NON_ENDC_AND_RRC_IDLE_BOOL:
Whetherdevice reset all of NR timers when device camped on a
network that haven't 5G capability and RRC currently in IDLE state.

Bug: 160365713
Test: build pass.
Change-Id: I9802b8712798054a85307e549fb665bc85166311
2020-07-09 05:21:59 +08:00
Jack Yu
db897af77d Disable DUN APN while roaming for certain carriers
Some carriers would like to use default APN for
tethering while the device is roaming. Added a new
carrier config to disable DUN APN while the device
is roaming.

Fix: 158546796
Test: DcTrackerTest
Change-Id: I2e633fd764f86b196a6ee0c29af2b97733e82c66
2020-06-24 22:29:23 +00:00
TreeHugger Robot
11d1ba3fde Merge "Add additional info to device ID docs in TelephonyManager and Build" into rvc-dev am: 3fa2d86fd0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11980365

Change-Id: I464bd5f8ca393f9df0016de5a5cf176ecafeda28
2020-06-24 16:29:06 +00:00
TreeHugger Robot
3fa2d86fd0 Merge "Add additional info to device ID docs in TelephonyManager and Build" into rvc-dev 2020-06-24 16:15:32 +00:00
Michael Groover
e0de018109 Add additional info to device ID docs in TelephonyManager and Build
Android 10 introduced additional restrictions to access persistent
device identifiers. This commit updates the javadocs for
TelephonyManager and Build to provide additional details regarding
the requirements and how to check if these requirements are met.

Fixes: 158471988
Test: m docs -j
Change-Id: I02932a22ecc5b761aa1a92d59d09d31863c34235
2020-06-23 19:52:51 -07:00
Michael Groover
7d6a998fc6 Merge "Update SubInfo docs for ICC ID / num restrictions in API 30" into rvc-dev am: e219b9196f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11933067

Change-Id: I0f1c98494f87481ead801bf7c52bb54b970a5013
2020-06-22 21:13:15 +00:00
Michael Groover
e219b9196f Merge "Update SubInfo docs for ICC ID / num restrictions in API 30" into rvc-dev 2020-06-22 20:58:24 +00:00
Michael Groover
ddd636ce01 Merge "Reorder TelephonyPermissions calls for carrier privileges" into rvc-dev am: f07d289b51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11937063

Change-Id: Iac8619566944573fcd1aa2d3f1f57b042c1ba0ab
2020-06-22 19:31:08 +00:00
Michael Groover
f07d289b51 Merge "Reorder TelephonyPermissions calls for carrier privileges" into rvc-dev 2020-06-22 19:25:34 +00:00
Michael Groover
0643914d05 Update SubInfo docs for ICC ID / num restrictions in API 30
In Android 11 access to the ICC ID is guarded behind the same access
restrictions as the SIM serial number; the requirements to access the
device phone number have also changed. This commit updates the docs to
reflect that these changes are active starting from API level 30.

Fixes: 159568585
Test: m docs -j
Change-Id: I5ececac6f8dee5281d8bfc6c62408a18c8b3effa
2020-06-21 18:43:23 -07:00
Michael Groover
8d7d92d710 Reorder TelephonyPermissions calls for carrier privileges
The SubscriptionManager APIs that return SubscriptionInfo objects are
often invoked by carrier privileged apps to obtain the details about
the subscription(s). Identifier and phone number access checks
currently verify requirements that typically cannot be satisfied by
carrier privileged apps first before verifying an app holds carrier
privileges. This commit invokes the carrier privileges check before
the generic PermissionManagerService check for identifier access
and moves the WRITE_SMS appop check after the READ_PHONE_STATE /
carrier privilege check for phone number access.

Bug: 157642567
Fixes: 73308711
Test: atest TelephonyPermissionsTest
Test: atest SubscriptionControllerTest
Change-Id: I0a446af5c2adaf1d6b06da221f9e236b1bdde146
2020-06-21 16:47:58 -07:00
TreeHugger Robot
29eae58c31 Merge "Reset cell broadcast config before enabling all channels" into rvc-dev am: 6f000e189b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11896412

Change-Id: I101d53831bdf6bf4f083e5ff17baad4c014c5eee
2020-06-19 22:18:42 +00:00
TreeHugger Robot
6f000e189b Merge "Reset cell broadcast config before enabling all channels" into rvc-dev 2020-06-19 22:02:39 +00:00
TreeHugger Robot
778a866f06 Merge "Add a carrier config for WFC's carrier name override by ef_pnn" into rvc-dev am: 29db7a6a62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11874044

Change-Id: Id3a587cd8b0ab0a2cda8d0973ae9f221c3c64094
2020-06-18 21:42:29 +00:00
TreeHugger Robot
29db7a6a62 Merge "Add a carrier config for WFC's carrier name override by ef_pnn" into rvc-dev 2020-06-18 21:30:10 +00:00