Commit Graph

6406 Commits

Author SHA1 Message Date
SongFerngWang
9dfd9a5f33 Supplementary Services(SS) gray out when airplane mode on in Call Settings menu.
add carrier config "KEY_SS_DISABLE_WHEN_AIRPLANE_MODE_BOOL".

Bug: 141284019
Test: when airplane mode on, all of SS UIs are gray out.
Change-Id: I869a267fa5aaebf3b48f20bc70d21d612cd84586
(cherry picked from commit 08972c5b2b)
Merged-In: I869a267fa5aaebf3b48f20bc70d21d612cd84586
2020-01-08 22:05:46 +08:00
Jayachandran C
b9da911011 Remove READ_SMS permission for ACTION_SMS_MMS_DB_CREATED
Bug: 144739528
Test: Build
Change-Id: I27341bf7c1f6fc640ba51360f8a6035cdb86052b
Merged-In: I27341bf7c1f6fc640ba51360f8a6035cdb86052b
2019-12-13 13:55:14 -08:00
Brad Ebinger
9fd5576e60 Add CarrierConfig for roaming PLMNS that will need emer DDS switch
When roaming, we assume that the roaming operator will support
control plane fallback for emergency SUPL. For roaming operators
that we know do not support control plane fallback, we must perform
a DDS switch before dialing an emergency number on that operator.

Bug: 144383368
Test: atest TeleServiceTests; manual
Merged-In: I4a033f89610fd409ea81c40230938720ca76541c
Change-Id: I4a033f89610fd409ea81c40230938720ca76541c
2019-12-12 05:08:45 +00:00
Jack Yu
9d95aff922 When SPN is empty, use PNN in mobile network settings
Added one more name source 'PNN', which has priority
higher than carrier id but lower than EF_SPN.

Bug: 143493866
Test: Manual

Change-Id: I2ef14204d0db018e7f67578a57e56fdbea8b698c
2019-12-06 15:28:30 -08:00
Sooraj Sasindran
74891f2730 Add back off timer configs as carrier config
Add time to determine as ping pong as a carrier config
Add max back off hysteresis time as a carrier config

Test: build
Bug: 143578171
Change-Id: I599aa88c4a8f29ca62aaa2948cc5c7f292b6a827
2019-11-19 12:00:47 -08:00
Xiangyu/Malcolm Chen
d11b16f756 Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." into qt-qpr1-dev 2019-11-09 01:07:49 +00:00
Malcolm Chen
4bff428285 Don't allow reading IMSI of one active sub if only has carrier privilege
on the other.

Bug: 136123413
Test: unittest
Change-Id: I67a0121d3e965f193be9e827533646423502fe70
2019-11-08 13:41:24 -08:00
TreeHugger Robot
725dff26a5 Merge "Add comment in getSubscriptionsInGroup about throwing IllegalStateException" into qt-qpr1-dev 2019-11-07 20:50:32 +00:00
Malcolm Chen
ebc4cff912 Add comment in getSubscriptionsInGroup about throwing IllegalStateException
Bug: 142250528
Test: build
Change-Id: I57b87755f6ddf962721e620f869ff48370e3f2d6
2019-11-06 14:02:46 -08:00
Sooraj Sasindran
04f5ac1af5 Carrier config to switch data if primary is OOS
Carrier config to switch data to primary from cbrs
if primary is OOS
Carrier config to specify back off time from cbrs
to primary

Bug: 143578171
Test: make
Merged-In: I2fbec74b7f00dcb751e38b0f5a336fea8370cbee
Change-Id: I2fbec74b7f00dcb751e38b0f5a336fea8370cbee
2019-11-06 02:06:15 +00:00
Malcolm Chen
f1239756b5 Add a carrier config to specify validation timeout for data switch.
Bug: 142884903
Test: manual test
Change-Id: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
Merged-In: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
2019-11-04 18:50:49 +00:00
Nathan Harold
b09250e794 [DO NOT MERGE] Check CellInfoCallback Detail for Null
In cases where the source of the CellInfo fails
but does not generate a Throwable, the detail info
will not be provided and should be null. Inside the
user process, we need to check for null before
dereferencing the detail object. Oops. :-(

Bug: 142706765
Bug: 142421696
Test: manual
Merged-In: I1307d1d7aacef0bbd33bfc73700ee774e12e64c1
Change-Id: I1307d1d7aacef0bbd33bfc73700ee774e12e64c1
(cherry picked from commit fff052067c)
2019-10-28 13:08:48 -07:00
Hall Liu
6652a265c7 Add ImsReasonInfo constant for retrying without RTT
Add CODE_RETRY_ON_IMS_WITHOUT_RTT for the IMS stack to indicate to
Telephony that a call should be retried without RTT enabled.

Bug: 141963475
Test: manual

Change-Id: Ic3aa8856e98d8c34fd98462d71834e69b857eda4
2019-10-12 01:04:42 +00:00
Hall Liu
8718323a76 Fix race in TelephonyScanManager
TelephonyScanManager may sometimes encounter a race condition where
Telephony sends it the first scan result before it has saved the
returned scan ID. This causes a crash in the app that's requesting the
scan.

To fix this, synchronize on mScanInfo while requesting the network scan
so that the handler in TelephonyScanManager will wait for the scan ID to
be saved before processing the first message from Telephony.

Bug: 142068098
Test: manual
Change-Id: I0b2b4c6dc749e21641843818293941704ed870a6
2019-10-09 13:41:51 -07:00
Sarah Chin
06b97e2a38 Add NETWORK_TYPE_NR to Telephony framework
Add NETWORK_CLASS_5_G to TelephonyManager
Add NR to ServiceState

Bug: 135421985
Test: atest FrameworksTelephonyTests
Change-Id: Iaed46354400c7a1ce410eebc246892d7edf448dc
Merged-In: Iaed46354400c7a1ce410eebc246892d7edf448dc
2019-10-07 14:07:51 -07:00
Cheonho Park
8c0b496c97 Merge "Allow signing key rotation" into qt-qpr1-dev 2019-09-18 05:04:12 +00:00
Sooraj Sasindran
12638b96ae Add a carrier config to disable ping test
Add a carrier config to disable ping test before data
switch to opportunistic network.

Bug: 141003010
Test: make
Merged-In: I56835e5b416685fbcf2ab2729aa6a039c7f11806
Change-Id: I56835e5b416685fbcf2ab2729aa6a039c7f11806
2019-09-14 01:39:05 +00:00
Pengquan Meng
c12bf8a9e0 Merge "Support maximum wait time for Cell broadcast" into qt-qpr1-dev 2019-09-06 23:07:37 +00:00
Pengquan Meng
1e1099a123 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
Change-Id: I5b5c79257706e8606ca6952c5396e4abf2aaf28d
2019-09-05 14:06:14 -07:00
Nazanin Bakhshi
293ecad827 Fix crashes seen when checking for carrierConfig certificates
1. Do not throw exception when packageName is not found
2. Fix NPE caused by null SubscriptionInfo

Bug: 140122832
Test: Utest and manual test
Change-Id: I686647419896a1780f0697b3ed5d319363675f5f
2019-08-30 18:36:27 +00:00
Pengquan Meng
1f64582bdf Support WAC decoding in UMTS format
This add a decoder for WAC information. WAC is appended to the UMTS
cell broadcast message. The encoding is defined in ATIS-0700041.

Bug: 123096618
Test: build & manual test
Merged-In: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
Change-Id: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
(cherry picked from commit 14df7e3845369e7254e6aae13160c7e1caa1d28a)
2019-08-23 09:36:46 +00:00
Pengquan Meng
455fc80450 Merge "Add fields to Cellbroadcast" into qt-qpr1-dev 2019-08-22 18:31:05 +00:00
Pengquan Meng
02cfb3bdc8 Add fields to Cellbroadcast
This add some fields to CellBroadcasts in order to support the WEA 3.0
geo-fencing.

Bug: 123096618
Test: atest TelephonyProviderTests
Merged-In: Ied0780cb1b9993e6d8cdb80131ba2f8b8affcb54
Change-Id: Ied0780cb1b9993e6d8cdb80131ba2f8b8affcb54
(cherry picked from commit 5c6e975ce4a973619f20167644475b04e663ee4e)
2019-08-22 18:24:38 +00:00
SongFerng Wang
c1a2db2320 Merge "Create carrier config to define specific default value of APN types." into qt-qpr1-dev 2019-08-22 09:49:27 +00:00
Nazanin Bakhshi
65371b27c8 add checking for carrierConfigs certificates for psim
Test: utests
Bug: 139133814
Change-Id: I2d5cf7ee4e516ff16a67a5fbef6674a380095888
2019-08-21 21:45:23 +00:00
Nazanin Bakhshi
e6e214e227 Merge "add certs to carrier configs and store them as UiccAccessRules" into qt-qpr1-dev 2019-08-21 21:42:24 +00:00
Sarah Chin
cb97705a1c Merge "Changed regex matching for MCC and MNC" into qt-qpr1-dev 2019-08-21 21:26:53 +00:00
Sarah Chin
e3228ca3fd Changed regex matching for MCC and MNC
Bug: 137942727
Test: atest CellIdentityTest
Change-Id: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c
(cherry picked from commit cb76b14fdf)
Merged-In: Iaeb9ff9e2a5a82be66855378831cd52ee49e3c5c
2019-08-21 18:37:51 +00:00
Hall Liu
562a3f81c6 Merge "Add carrier config for ignoring user RTT setting" into qt-r1-dev
am: 5ca4cef9b5

Change-Id: I15a0dc85d3a2c9be599deed826696e4a1c542fce
2019-08-21 11:37:35 -07:00
Hall Liu
5ca4cef9b5 Merge "Add carrier config for ignoring user RTT setting" into qt-r1-dev 2019-08-21 18:28:20 +00:00
Nazanin Bakhshi
6a3a71cb2b add certs to carrier configs and store them as UiccAccessRules
Bug: 138388637
Test: tested with local override and made sure they are read and parsed
Change-Id: I50fb11444f0da33ae48683b834e6ca50941ad1b7
Merged-In: I50fb11444f0da33ae48683b834e6ca50941ad1b7
2019-08-21 18:00:27 +00:00
SongFerng Wang
712fc079a0 Merge "To modify 5G icon carrier config's comment: 5GPlus to 5G_Plus" into qt-qpr1-dev 2019-08-21 03:16:52 +00:00
James Lin
507bc4ac36 Merge "Remove the Phone registration error notification" into qt-qpr1-dev 2019-08-21 03:14:05 +00:00
SongFerngWang
b532af6c72 To modify 5G icon carrier config's comment: 5GPlus to 5G_Plus
Bug: 138932186
Test: build pass
Change-Id: Ic8625f44a5ad23a307cfb280b85bfb27da2f2b06
2019-08-21 02:42:20 +08:00
Jayachandran Chinnakkannu
d084c899d9 Merge "Fixed null callback issue" into qt-r1-dev
am: f3395734e8

Change-Id: I438b53eec3edf8de1f9046ea820f7fdfd17f4249
2019-08-20 10:51:22 -07:00
SongFerngWang
c87140c940 Create carrier config to define specific default value of APN types.
Create Carrier config for default value of APN types field if not specified by
user when adding/modifying an APN.

Bug: 139320184
Test: Enter empty APN type and check if only default is added into
APN.
Change-Id: Ie6984e4eb741b1ac0a245b40e7102cc2c0c25b20
2019-08-20 13:31:27 +00:00
Nathan Harold
a9df8f6993 Merge "Add Debounce text to ACTION_NETWORK_COUNTRY_CHANGE" into qt-qpr1-dev 2019-08-19 23:58:38 +00:00
SongFerng Wang
052a08bcda Merge "Extends carrier config KEY_5G_ICON_CONFIGURATION_STRING to support more scenarios." into qt-qpr1-dev 2019-08-19 18:26:03 +00:00
Jack Yu
09ef1cb126 Fixed null callback issue
Fixed the vendor data/network service non-responsive
issue. The callback binder passed from frameworks
might be GC'd so that vendor data/network service skipped
calling the callback. This eventually caused data
connection state machine messed up.

Fixed by turning the weak refernce to the callback into
a strong reference. This ensure the binder alive when
vendor service needs to invoke the callback.

Test: Telephony sanity tests
Bug: 139076980
Change-Id: Ica0b7b810ffd5416ffd1b2b61f7ebc4af0dcb8ce
2019-08-19 10:02:11 -07:00
James.cf Lin
8f05cb6f19 Remove the Phone registration error notification
When the Phone registration status changes and back to
service, remove the Phone error notification automatically.

Bug: 136535506
Test: manual
Change-Id: I3ac19c09a37c4f62ddcf64e8660a7e925648f4dd
2019-08-19 10:35:35 +08:00
SongFerngWang
52dada71a7 Extends carrier config KEY_5G_ICON_CONFIGURATION_STRING to support more scenarios.
Add RRC state condition to support more scenarios.
Carrier config KEY_5G_ICON_CONFIGURATION_STRING change default value.

Bug: 138932186
Test: atest NetworkControllerDataTest.java#testNr5GIcon_NrNotRestrictedRrcCon_show5GIcon
atest NetworkControllerDataTest.java#testNr5GIcon_NrNotRestrictedRrcIdle_show5GIcon

Change-Id: Icb8af599f95a09c5e709f00d7710e018218a23cc
2019-08-16 16:31:16 +08:00
Jack Yu
f14bf1ee93 Merge "Added debug messages and watchdog" into qt-r1-dev
am: 24397e7a07

Change-Id: I22a4a8e6599e46a0c3aba931af82bf98d7f48ece
2019-08-14 20:34:47 -07:00
Jack Yu
24397e7a07 Merge "Added debug messages and watchdog" into qt-r1-dev 2019-08-15 03:15:12 +00:00
Jack Yu
36e2bfbaad Added debug messages and watchdog
Added debug messages and watchdog to catch
unresponsive data service issue.

Bug: 139076980
Test: Manual
Change-Id: I52dd126fddc1b1e8b18d5388a92aabaa3e2e48d5
2019-08-15 00:07:07 +00:00
Vagdevi Kondeti
0e3973b1b0 Merge "[AT&T] Add key to show 4g for 3g RAT." into qt-r1-dev
am: d7a23cc714

Change-Id: I6ac937185796a11cba2efe513877ed330915290a
2019-08-13 12:07:31 -07:00
Nathan Harold
3bdc7e4c62 Add Debounce text to ACTION_NETWORK_COUNTRY_CHANGE
Explain that once a country signal is lost, the broadcast
will be delayed for some time until we are confident that
we have lost visibility to any country (unless we detect
a new country).

Bug: 136036974
Test: make offline-sdk-docs (docstring-only change)
Change-Id: I29536ca2d60968405bb476a97dfbda69487c0013
2019-08-13 11:43:27 -07:00
Pengquan Meng
8a66dd0357 Merge "Add timeout for displaying 5G icon" into qt-qpr1-dev 2019-08-12 22:24:58 +00:00
Pengquan Meng
0ac07b2b41 Add timeout for displaying 5G icon
This change add an optional filed that allows carrier to change the
timeout.

System UI will show the 5G icon and start a timer with the timeout
from this config when the device connect to a 5G cell. System UI stop
displaying 5G icon when both the device disconnect from 5G cell and
the timer is expired.

Bug: 136107473
Test: build
Change-Id: I9720ec127865daa03fb2c23fbdd7d4ebf5e30e1b
2019-08-12 12:00:25 -07:00
vagdevi
3f2b9a5ac9 [AT&T] Add key to show 4g for 3g RAT.
This key is introduced for AT&T

This will also require a carrier-config side change
to set show_4g_for_3g_data_icon_bool to true.

This will replace H/H+ that is shown by AT&T today.

Bug: 138655095
Test: manually

Change-Id: I480e14be41f8edbe607472351efd39d6d91b81b0
2019-08-09 16:44:11 -07:00
Hall Liu
feadbafc03 Merge "Add carrier config for allowing merge of RTT calls" into qt-r1-dev
am: f84ff34a31

Change-Id: I14916ac03825bcfac65208aa2dfda26e7d7b8632
2019-08-08 17:13:34 -07:00