Commit Graph

3514 Commits

Author SHA1 Message Date
Michele Berionne
19939bdbe0 Merge "Add APIs to get/set if usage of multiple SIMs is restricted." 2019-01-30 01:14:22 +00:00
Jordan Liu
9824ab022b Merge "Card ID APIs are public" am: bd4a4dc889 am: a039e692a4
am: 316dc44a91

Change-Id: Ibb4966a27a96f1e50b42f616556a4e843050557a
2019-01-29 15:42:07 -08:00
TreeHugger Robot
895ce08d6b Merge "Migrate dialer to RoleManager" 2019-01-29 23:28:16 +00:00
Jordan Liu
316dc44a91 Merge "Card ID APIs are public" am: bd4a4dc889
am: a039e692a4

Change-Id: I6041944772567794b79a355c9f77767ed61c0f76
2019-01-29 15:18:21 -08:00
Jordan Liu
bd4a4dc889 Merge "Card ID APIs are public" 2019-01-29 22:43:47 +00:00
Michele
398d5d9113 Add APIs to get/set if usage of multiple SIMs is restricted.
Add API that indicates if the usage of multiple SIMs at the same time is
allowed or restricted in order to support requirements from carriers for
dual SIM devices

Bug: 123537730
Test: Verified with test application.
Change-Id: I5e3e5ff41927e43ead4a30988630cf9125d5a048
2019-01-29 12:56:53 -08:00
Jordan Liu
d6c684fff4 Card ID APIs are public
These were system API but we should expose them for apps with carrier
privileges.

Test: manual
Bug: 122974656
Change-Id: Ie60e4c580dfa9dd0d7d6fb6b94226661d0620dad
2019-01-29 10:55:35 -08:00
Chen Xu
0b409e8cc0 Merge "new API for IMS call fail cause" 2019-01-29 18:37:10 +00:00
Gnaneshwar Gatla
6eac3ad995 Merge "uce: Updating UCE API to accept ICC-ID." am: d20bdb915a am: f0b1c48141
am: 76557cc012

Change-Id: I2842a05e0cb9c867e8a1eb726fe8204e567a4d2f
2019-01-29 01:42:48 -08:00
Gnaneshwar Gatla
76557cc012 Merge "uce: Updating UCE API to accept ICC-ID." am: d20bdb915a
am: f0b1c48141

Change-Id: Iebacfbd592a36da5736b4979c6a6c0e47fa0effc
2019-01-28 23:53:35 -08:00
Pengquan Meng
59691cc266 Merge "new SystemAPI to getSimLocale" am: 5cf41e47fe
am: 1b607c875f

Change-Id: I2a6c1b9aaab034763f261d7464bd302ad5bbdd2d
2019-01-28 23:03:32 -08:00
Jack Yu
697a064562 Merge "Data profile refactoring" am: b551d0d6d3
am: daae1f5265

Change-Id: Ie04247ed0d8f6cb1139309a808ab2fb15ebcbade
2019-01-28 22:07:32 -08:00
Amit Mahajan
dc458b1aa2 Merge "Add Emergency Number Test Mode" am: 783400c390
am: 4c12798e56

Change-Id: I741e0a5899d9734bf35c50853cccb95211cb1d70
2019-01-28 21:58:47 -08:00
Treehugger Robot
d20bdb915a Merge "uce: Updating UCE API to accept ICC-ID." 2019-01-29 04:43:32 +00:00
Pengquan Meng
5cf41e47fe Merge "new SystemAPI to getSimLocale" 2019-01-29 00:21:49 +00:00
chen xu
6ac5fc19e6 new API for IMS call fail cause
Bug: 119890559
Test: atest CtsTelephonyTestCases:PhoneStateListenerTest
Change-Id: Ia047b7ba2345ad0c8d998506026defc02eb80dc9
2019-01-28 13:37:12 -08:00
Jack Yu
b551d0d6d3 Merge "Data profile refactoring" 2019-01-28 21:29:27 +00:00
sqian
4fd607e32e 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
Merged-in: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
(cherry picked from commit cb4bd3a30f)
2019-01-28 10:58:45 -08:00
Jack Yu
7d675e5a44 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
Merged-In: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
Change-Id: I04b910f8e349e8b7819ff058bf37ad06c3fd9adc
(cherry picked from commit af6b47af54)
2019-01-28 10:32:23 -08:00
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
Eugene Susla
92b88c7fab Migrate dialer to RoleManager
Test: ensure settings UI is ok, ensure stock dialer can still make a call
Change-Id: Iab835939fbb92af06d9440910fbde2725ca66f70
2019-01-25 17:20:39 -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
chen xu
61aa8cd949 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
Merged-In: I8f78ba00abf0ef74bd2b2147755596edaee156cf
Change-Id: I8f78ba00abf0ef74bd2b2147755596edaee156cf
2019-01-23 14:25:22 -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