Commit Graph

3492 Commits

Author SHA1 Message Date
TreeHugger Robot
501ef01725 Merge "Data profile refactoring" 2019-01-28 18:08:56 +00:00
Hongming Jin
08496b0e98 Add API in SmsManager to return sms messages for financial app.
Test: atest android.telephony.cts.SmsManagerTest
Bug: 111207447
Change-Id: I1571cb005f7c1374a9acbec27041bca291fa7153
2019-01-26 14:26:47 -08:00
Hongming Jin
46edf1506d Add API to SmsManager to allow apps to authenticate user account through
sms without requesting sms permissions.

Bug: 111210542
Test: atest android.telephony.cts.SmsManagerTest
Change-Id: I9b176032d7b2bf578dd1a64745bf4a1e13008a7a
2019-01-25 15:24:29 -08:00
Brad Ebinger
b2c88d1480 Add new ImsException to better handle ImsService errors
The ImsService can crash unexpectantly or not be available
for certain device configurations. Define a checked exception
ImsException to handle these cases instead of using
RuntimeExceptions.

Bug: 122480210
Test: atest FrameworksTelephonyTests
Change-Id: Ie3221d56a235c0e037d71e197f4972df31faa09b
2019-01-24 22:28:06 +00:00
Brad Ebinger
fcaf4a2492 Merge changes from topics "ut_provision_api", "ims_prov_api_defs" am: 3fc958475b am: 1e6ed3c5eb
am: 270fe0a1f9

Change-Id: Id9c04847789ac612b6de7ddea15292936a6f24c8
2019-01-24 11:45:19 -08:00
Brad Ebinger
d18b780145 Define a subset of provisioning integers as public am: ad9aec3522 am: 7b353e207e
am: 3d7a116e85

Change-Id: I93d88ffc45a8edd3abc9a281322eaedab8a86dc1
2019-01-24 11:38:35 -08:00
Brad Ebinger
270fe0a1f9 Merge changes from topics "ut_provision_api", "ims_prov_api_defs" am: 3fc958475b
am: 1e6ed3c5eb

Change-Id: Ib16f22466459b5a294cfab5d020f64aad11cecfc
2019-01-24 10:58:53 -08:00
Brad Ebinger
3d7a116e85 Define a subset of provisioning integers as public am: ad9aec3522
am: 7b353e207e

Change-Id: I55969aca6c0f948dc911eac8c587e322f8da6901
2019-01-24 10:53:29 -08:00
Brad Ebinger
7b353e207e Define a subset of provisioning integers as public
am: ad9aec3522

Change-Id: I89c0b4242b68f545cce6043341150d45d4e22643
2019-01-24 10:35:59 -08:00
Brad Ebinger
3fc958475b Merge changes from topics "ut_provision_api", "ims_prov_api_defs"
* changes:
  Add new UT provisioning CarrierConfig options
  Define a subset of provisioning integers as public
2019-01-24 18:09:14 +00:00
Michael Groover
b9dd251e1f Merge "Enable device identifier check for priv apps" 2019-01-24 17:46:01 +00:00
Xiangyu/Malcolm Chen
1ea414819a Merge "Add API to handle user's subscription selection changes." 2019-01-24 08:46:54 +00:00
Scott Randolph
025bd52d01 Merge "Implementation of Remote-SIM." am: 9f7bc7d616 am: 0fd63d542d
am: 6133800a58

Change-Id: Ic3c43594d4648f2942bec62cfd418e0d1d0c8f29
2019-01-23 21:50:17 -08:00
Scott Randolph
6133800a58 Merge "Implementation of Remote-SIM." am: 9f7bc7d616
am: 0fd63d542d

Change-Id: Ie4c28658f6384df624bf8b1d4c1b7b9bed555611
2019-01-23 21:28:45 -08:00
Malcolm Chen
94d74d291e Add API to handle user's subscription selection changes.
When user selects a eSIM subscription, Settings app informs Telephony.
Telephony needs to take actions such as writting it into global
settings, switch profiles and notify registrants, for example
AlternativeNetworkAccessService.

Bug: 120945564
Test: unittest
Change-Id: I846d9444aac368d183e06744c9eb8aa0c08dfe6a
2019-01-23 21:11:08 -08:00
Michael Groover
efca477259 Enable device identifier check for priv apps
Bug: 117781266
Test: atest CtsTelephony3TestCases
Test: atest android.telephony.cts.TelephonyManagerTest
Test: atest android.permission.cts.telephony.TelephonyManagerPermissionTest
Change-Id: I6b54edec787779c91478277ba18744f9696e6e8b
2019-01-24 04:53:15 +00:00
Brad Ebinger
b3f4632fb0 Add new UT provisioning CarrierConfig options
Adds two new carrier config options for UT:
1) Whether or not the carrier supports UT over IMS
2) Whether or not the carrier requires a carrier app to
provision the device to use UT over IMS.

Also adds new ITelephony AIDL for querying/setting
provisioning for MMTEL currently used for UT over
IMS only.

Bug: 119896853
Test: atest FrameworksTelephonyTests
Change-Id: I51260afed85b99cf6ed89374daf417c3a25c7fb9
2019-01-23 16:50:49 -08:00
Jack Yu
af6b47af54 Data profile refactoring
Data profile should use the public defined types
instead of the internal defined data types.

1. Using integer instead of string for protocol type.
2. Using TelephonyManager.NetworkTypeBitMask instead of
   the internal ServiceState.RIL_RADIO_TECHNOLOGY_XXX
   in data profile.

Test: Telephony sanity tests
Bug: 73659459
Change-Id: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
2019-01-23 16:29:00 -08:00
Brad Ebinger
ad9aec3522 Define a subset of provisioning integers as public
There are a few non-OMADM specific configs that need to
be exposed in ProvisioningManager to handle cases
like turning on WFC "non-persistently" for provisioning
on certain networks. These should be well defined for
compatibility as well as ease of use.

Test: atest FrameworksTelephonyTests, turn on WFC
Change-Id: I79c9492664d4bf41b10639c0596d4f2697cd46f2
2019-01-23 16:16:40 -08:00
Vasu Nori
aea0391cf6 Implementation of Remote-SIM.
Design doc http://shortn/_GG690j15js

1. Modified SmsManager to send message thru Bluetooth if the subscription
   is for a Remote-SIM.
2. Added new column 'subscriptionType' to SubscriptionInfo.
3. SubscriptionManager:
  a. Added new constants for Local SIM and Remote SIM
  b. Added hidden APIs to add/remove Remote SIM subscriptions

Bug: 112321331
Test: tested manually and w/ unittests
Change-Id: Ib15553a806691a258fc00f7aaf812b8a9d49c2e9
2019-01-23 14:25:32 -08:00
Xiangyu/Malcolm Chen
1f61f171e0 Merge "Add System API to enable / disable a logical modem." am: 8df9d17289
am: def2c87ee6

Change-Id: I85875233adced81ae9caa4d1a4c65cdc84922356
2019-01-22 22:07:47 -08:00
Xiangyu/Malcolm Chen
8df9d17289 Merge "Add System API to enable / disable a logical modem." 2019-01-23 05:40:04 +00:00
chen xu
108f948ffa new SystemAPI to getSimLocale
1. expose to system API
2. refactor to support passing subId instead of read from defaultSIM and
previously inserted SIM.

Bug: 122620985
Test: cts
Change-Id: I8f78ba00abf0ef74bd2b2147755596edaee156cf
2019-01-22 15:16:47 -08:00
Xiangyu/Malcolm Chen
8718e42d68 Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java" am: 5c1968475c
am: 112d88e592

Change-Id: I4830219aefbf7e2fc0d2e1573e7d60479af0dfab
2019-01-21 19:33:24 -08:00
Malcolm Chen
1a5de86744 Add System API to enable / disable a logical modem.
Bug: 122926141
Test: unittest
Change-Id: Ifeb3b135ba9ecba8982a911f369fa266468d2e45
Merged-In: Ifeb3b135ba9ecba8982a911f369fa266468d2e45
2019-01-21 13:43:18 -08:00
Malcolm Chen
4616e52aef Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java
IRadioConfig 1.1 getPhoneCapability and setPreferredDataModem
are defined. Here we hook the calls into RadioConfig.

Bug: 121354686
Test: sanity
Change-Id: I2a198d446962510ef9a3019d3aa30b40e796ebe0
Merged-In: I2a198d446962510ef9a3019d3aa30b40e796ebe0
2019-01-21 13:07:41 -08:00
Jordan Liu
2b804df24b Merge "Trigger PhoneStateListener onCallAttributesChanged" am: cd4ca49b18 am: bbd7b9170a
am: 3be2df7b4f

Change-Id: Id1a5684693554f10159f90f607c7a4f7ad1e3d51
2019-01-18 23:30:22 -08:00
Jordan Liu
3be2df7b4f Merge "Trigger PhoneStateListener onCallAttributesChanged" am: cd4ca49b18
am: bbd7b9170a

Change-Id: Iefb3d9845b95e22f45ecfeb47f770b708951438a
2019-01-18 23:13:05 -08:00
Treehugger Robot
cd4ca49b18 Merge "Trigger PhoneStateListener onCallAttributesChanged" 2019-01-19 06:49:09 +00:00
Michele Berionne
da8ca7f8ac Merge "Carrier restriction enhancements for Android Q" am: 98391daa29
am: 941ad71f35

Change-Id: I1c9e816516eeb25d775d71fae8684af25e22fefb
2019-01-18 17:03:11 -08:00
Jayachandran Chinnakkannu
a09c7737aa Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26 am: e9dc415e2b
am: 58a61cc734

Change-Id: I0196a9f1da64efd6a811139bb9d2de7e39defe11
2019-01-18 16:18:57 -08:00
Michele Berionne
98391daa29 Merge "Carrier restriction enhancements for Android Q" 2019-01-19 00:13:56 +00:00
Jayachandran Chinnakkannu
58a61cc734 Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26
am: e9dc415e2b

Change-Id: I2e381e9215a2d8f036a0de4f021573688250c142
2019-01-18 15:43:03 -08:00
Jayachandran C
8ef41bf34f Cellular data stall recovery based on networkStatus
This CL introduces cellular data stall recovery based on
network validation result. It still re-uses the existing
recovery steps but the triggers are based on networkStatus
from NetworkMonitor when the network is bad. Each recovery
step is spaced by a configurable grace period (default 3 mins)
to avoid back to back recovery.

This feature is controlled by the following settings. If this
feature is enabled then the legacy data stall detection based
on TrafficStats will automatically be disabled.

Settings.Global.DATA_STALL_RECOVERY_ON_BAD_NETWORK
1 => Enabled (default)
0 => Disabled

Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS
3 minutes is default value

Bug: 113916551
Test: atest FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DcTrackerTest

Change-Id: I738fc7ed08803de1114f7a3d79bf278449e94ea8
2019-01-18 22:52:16 +00:00
Michele Berionne
a4a1ae499d Carrier restriction enhancements for Android Q
Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Test: Added test cases for CarrierRestrictionRules.
Change-Id: I2723fb07db13efdafbc74471a87182e2d2a32718
Merged-In: I2723fb07db13efdafbc74471a87182e2d2a32718
2019-01-18 22:37:12 +00:00
Xiangyu/Malcolm Chen
5837dcdbb5 Merge "Add System API to enable / disable a logical modem." 2019-01-18 22:20:14 +00:00
Malcolm Chen
cf21ad751a Add System API to enable / disable a logical modem.
Bug: 122926141
Test: unittest
Change-Id: Ifeb3b135ba9ecba8982a911f369fa266468d2e45
2019-01-18 12:29:28 -08:00
Jack Yu
40951923b3 Merge "Split applyNewState into enable/disable APN" am: 56401a4c74
am: c2468ed1e3

Change-Id: Ic458340d04bcbc4b8a68854ebd10ed7a4cf065ce
2019-01-18 01:40:23 -08:00
Jack Yu
56401a4c74 Merge "Split applyNewState into enable/disable APN" 2019-01-18 09:07:16 +00:00
Jayachandran Chinnakkannu
4cee2bdf3a Merge "Update sharedPreference to false when exits new device provisioning" am: 1136af9966
am: d25ea190d9

Change-Id: I055efd867cbe2e9034774af082178476c47fe83a
2019-01-17 22:21:47 -08:00
Michele Berionne
996d9f6a38 Merge "Carrier restriction enhancements for Android Q" 2019-01-18 02:56:16 +00:00
Jack Yu
4810387d02 Split applyNewState into enable/disable APN
This is the preliminary work for adding handover
type for enable/disable APN.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
Change-Id: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
(cherry picked from commit ade6d1a66d)
2019-01-17 16:45:14 -08:00
chen xu
61fbefbbe9 Update sharedPreference to false when exits new device provisioning
Update sharedPreference to false when exits new device provisioning,
indicating no users modifications on the settings for new devices.
Thus carrier specific default roaming settings can be applied for new devices.

Bug: 122817867
Test: Manual test on VZW SIM in Setupwizard
Merged-in: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
Change-Id: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
2019-01-18 00:44:21 +00:00
Shuo Qian
e11e621d5a Merge "Add Emergency Number Test Mode" 2019-01-17 21:52:58 +00:00
Michele Berionne
39ec88f1dc Carrier restriction enhancements for Android Q
Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Test: Added test cases for CarrierRestrictionRules.
Change-Id: I2723fb07db13efdafbc74471a87182e2d2a32718
2019-01-17 13:50:36 -08:00
Jordan Liu
a26b716863 Merge "EuiccManager handles multiple eUICCs using cardId" am: b39f47fe46
am: 3f944f197c

Change-Id: Id1e9a16e223505377a2933ac67b0da439d34ac5f
2019-01-17 12:47:28 -08:00
Jack Yu
995480dc9d Merge "Split applyNewState into enable/disable APN" 2019-01-17 07:17:19 +00:00
sqian
cb4bd3a30f Add Emergency Number Test Mode
Add EMERGENCY_NUMBER_SOURCE_TEST_MODE

This also does not allow to send the service categories from database when
dialing.

Bug: 122840137
Test: Manual; Treehugger
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
2019-01-16 17:05:40 -08:00
Jack Yu
ade6d1a66d Split applyNewState into enable/disable APN
This is the preliminary work for adding handover
type for enable/disable APN.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Change-Id: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
2019-01-16 15:35:38 -08:00
Jordan Liu
8218ddd963 Trigger PhoneStateListener onCallAttributesChanged
onCallAttributesChanged can trigger whenever the PreciseCallState or
network type changes, or when the modem reports call quality changes.

Bug: 122366240
Test: builds
Change-Id: I9b13cbdd85c24c077e1a13df302bf60128c164e9
2019-01-16 15:13:12 -08:00