Commit Graph

4071 Commits

Author SHA1 Message Date
zoey chen
183d505f90 [Settings] To avoid use APIs in IccCard directly, moving APIs into TelephonyManager.
IccCard#changeIccLockPassword
IccCard#setIccLockEnabled
IccCard#getIccLockEnabled
Bug: 146983487
Test: manual

Change-Id: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
Merged-In: I1a3c3b15063ea00d0ca59bd5395f2bca8cdfe391
2020-02-06 20:32:10 +08:00
Xiangyu/Malcolm Chen
53ae130d31 Merge "Move ACTION_CARRIER_* intent and extras from TelephonyIntents to TelephonyManager." 2020-02-05 23:31:51 +00:00
Jiashen Wang
e37c8d26c2 Merge "Add isEuiccSupportedCountry system API to EuiccManager" 2020-02-05 22:14:06 +00:00
Malcolm Chen
d1a3b37bb9 Move ACTION_CARRIER_* intent and extras from TelephonyIntents to
TelephonyManager.

The purpose is to expose them as @SystemApi as they are used externally.

Bug: 140908357
Test: unittest
Change-Id: I3dabcb853ebbd648b20d97b446db11476780be25
Merged-In: I3dabcb853ebbd648b20d97b446db11476780be25
2020-02-04 23:28:22 +00:00
Jack Yu
de1fa3078c Merge "Move GsmSmsCbMessage to CBReceiver test app" 2020-02-04 17:04:11 +00:00
Jordan Liu
4583717145 Move GsmSmsCbMessage to CBReceiver test app
After removing platform handling of cell broadcasts (in favor of
CellBroadcastService module) the GsmSmsCbMessage class is only used by
CellBroadcastReceiver test app, so move the class there.

Bug: 135956699
Test: manual
Merged-In: Ia1d19356c34f9a13638c10d1c1b9e53c6b69fddd
Change-Id: Ia1d19356c34f9a13638c10d1c1b9e53c6b69fddd
(cherry picked from commit 803c885513)
2020-02-03 22:45:46 -08:00
changbetty
0ae6355421 [Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager
Bug: 146309719
Test: make
Change-Id: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
Merged-In: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
2020-02-03 19:47:22 +08:00
Meng Wang
e3387ef9c4 Fix import of Rlog - generated by formatting tool
Test: make
Merged-In: Ibe36c6d0fe8bfb6277d7b9034af8dbf45ce2f716
Change-Id: Ibe36c6d0fe8bfb6277d7b9034af8dbf45ce2f716
2020-01-30 12:38:32 -08:00
sqian
de188ac200 Support Call Forwarding and Call Waiting APIs for voice call.
Allows system apps to get/set call forwarding configuration including
 reason, status, number and timeout.

Allows system apps to get/set the status for call waiting function;
Call waiting function enables the waiting for the incoming call when
 it reaches the user who is busy to make another call and allows users
 to decide whether to switch to the incoming call.

Test: Cts; Treehugger; https://paste.googleplex.com/5810435984982016
Bug: 147920077
Change-Id: Iadeea607749c67209df8cb1313f8b134df0a5c4a
Merged-In: Iadeea607749c67209df8cb1313f8b134df0a5c4a
(cherry picked from commit ce96e26c27)
2020-01-29 14:59:27 -08:00
Sarah Chin
6b86cf7884 Merge "Manual network selection by RAN type" 2020-01-29 21:36:31 +00:00
Sooraj Sasindran
cd70c935b3 Merge changes from topic "CherryPickMainline"
* changes:
  make sim_colors a system config
  convert hidden configs to public
  Add back off timer configs as carrier config
  Carrier config to switch data if primary is OOS
  Do not use hidden enabledSetting
  Do not use hidden putIntForUser
  Fix testNetworkScanRequestParcel_Parcel CTS
  Do not use hidden broadcast API of RemoteCallbackList
  Make requestModemActivityInfo a system api
  Remove usage of hidden Parcel APIs
  Do not use hidden withCleanCallingIdentity
  Do not use hidden isPrivilegedApp
2020-01-29 17:34:53 +00:00
Sarah Chin
b739deddc6 Merge changes from topics "phone_cap", "tdscdma"
* changes:
  Modify PhoneCapabilities for device capabilities
  Added TD-SCDMA bands for network scanning
2020-01-28 17:26:11 +00:00
Sooraj Sasindran
02f70c7476 Do not use hidden broadcast API of RemoteCallbackList
Do not use hidden broadcast API of RemoteCallbackList
Bug: 140908357
Bug: 146349977
Test: Build
Merged-In: I5fa9b0f36f18c6073ad20867f6bf62d573f823b8
Change-Id: I5fa9b0f36f18c6073ad20867f6bf62d573f823b8
2020-01-27 22:03:54 -08:00
Sarah Chin
3736427468 Manual network selection by RAN type
Support new API for setNetworkSelectionModeManual with ran parameter

Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
Merged-In: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
2020-01-28 00:17:14 +00:00
Shuo Qian
419caebfc9 Merge "Refactor SmsManager not to use ActivityThread hidden API in Mainline" 2020-01-27 23:47:50 +00:00
Shuo Qian
f7de016204 Refactor SmsManager not to use ActivityThread hidden API in Mainline
Introduce a server API to get current package name to remove
 ActivityThread for Mailine

Test: Treehugger; no function change; Manual: tried to send a message to 22000,
      and observed that it pops out a notification window to ask me: "Messages
      would like to send a message to 22000, Cancel or Send?" I clicked on "Send".
      UI shows that SMS is sent successfully.
Bug: 145147528
Change-Id: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
Merged-In: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
(cherry picked from commit 24fded67fb)
2020-01-27 14:48:23 -08:00
sqian
6cd260243a Support always reporting signal strength phone state listener
We should not allow other stack (such as Bluetooth) to directly control
 modem indication reporting. The hidden API
 TelephonyManager.setRadioIndicationUpdateMode added before do not
 support multiple clients and do not support the case when clients'
 process die.

The new solution would be adding a new listener
 PhoneStateListener.LISTEN_ALWAYS_REPORTED_SIGNAL_STRENGTH and let
 telephony registry (which is running under system process) to tell
 telephony whether to always turn on signal strength update if any client
 is listening to this event.

Introduce a new system API for TelephonyRegistry
to tell Telephony module this listening mechanism.

Introduce a new permision for this function

Test: WIP (Have this CL out to try to catch up the API deadline)
Bug: 147322848

Change-Id: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
Merged-In: Iaee832c75b29d89dbc9e5c6659e1a7e89c4a467f
(cherry picked from commit 93642d4433)
2020-01-27 14:20:09 -08:00
Sarah Chin
e8b7635634 Modify PhoneCapabilities for device capabilities
Updated PhoneCapability from 1.3 RadioConfig HAL
New SimSlotCapability
Add getPhoneCapability API

Test: atest FrameworksTelephonyTests
Bug: 143238237
Bug: 143238191
Change-Id: I3349c3e50a806fb7bfd65b1bf16079878a5aeb06
Merged-In: I3349c3e50a806fb7bfd65b1bf16079878a5aeb06
2020-01-24 23:45:39 -08:00
Sarah Chin
8449733719 Merge "CDMA MO SMS follow on DC feature" 2020-01-25 03:21:40 +00:00
Nazish Tabassum
ab9cc5c213 CDMA MO SMS follow on DC feature
Add new constant to send MO CDMA SMS with expectMore option.

Bug: 72613248
Change-Id: I4fbcaa13648c66482f6bb741c433aede2ec824c7
Merged-In: I4fbcaa13648c66482f6bb741c433aede2ec824c7
2020-01-25 01:52:44 +00:00
Jiashen Wang
c1d75eea75 Add isEuiccSupportedCountry system API to EuiccManager
Currently LPA passed supported/unsupported countries to Settings by
writing the value into properties which is not ideal. Instead, we need to
provide an API in EuiccManager to determine whether eUICC is supported
in a country.
Bug: 147674689
Test: 1) Manually tested by flashing the change to the device
2) Change LPA to override onGetIsEuiccSupportedCountry
3) Make sure LPA can get the request

Change-Id: Ic94a2d2c771fd1ec2e5899d9e0428bb70cde4249
Merged-In: Ic94a2d2c771fd1ec2e5899d9e0428bb70cde4249
2020-01-24 13:25:36 -08:00
calvinpan
d77e0bde77 Redesign the setPreferredNetworkType
Some APPs(like OMA DM) might enable or disable 5G settings, so redesign
the setPreferredNetworkType behavior.

1. Create allowed_network_type in telephonyprovider
2. Create get/set allowed network type API
3. When APPs call setPreferredNetworkType() that will AND with allowed
network type.

Bug: 136730709
Test: By Manual
1. setAllowedNetwork to disable 5G
2. setPreferredNetworkTypeBitmask to set NR_LTE_GSM_WCDMA
3. framework set LTE_GSM_WCDMA to modem
Merged-In: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
Change-Id: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
2020-01-24 13:23:27 -08:00
Grace Jia
6bde5e6f7a Support API to toggle IMS on and off.
Bug: 141929672
Test: atest CtsTelephonyTestCases:TelephonyManagerTest
Change-Id: Icac337d99b578d2667657c07ab5bd13fd3e17590
2020-01-24 01:43:41 +00:00
Sarah Chin
92e0799d58 Merge "Add support to pass password in Call barring" 2020-01-23 01:58:20 +00:00
Meng Wang
9222283997 Merge "Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API" 2020-01-22 17:54:35 +00:00
Treehugger Robot
ca45896352 Merge "New system API to create SMS PDU and expose copyMessageToIcc()" 2020-01-22 16:57:44 +00:00
Treehugger Robot
e27d58f0cd Merge "Cleanup code and documentation for SMS EF records" 2020-01-22 16:56:33 +00:00
Tyler Gunn
48f7f07d52 Merge "Expose ImsConfig constants as part of API." 2020-01-22 06:50:17 +00:00
Suresh Koleti
ec1da29510 Add support to pass password in Call barring
- Adding password support for call barring over IMS

Test: Manual
Bug: 112248618
Change-Id: Ibdf159fbeb8eb5d80846db711fbff8979887733b
2020-01-22 10:52:51 +05:30
Tyler Gunn
30eee35a57 Expose ImsConfig constants as part of API.
Moving the config keys in ImsConfig to ProvisioningManager and defining
appropriate allowed values for all.  Old values are now deprecated.

Bug: 147732815
Test: Created and ran new CTS test to verify get/set of the new parameter
values.
Change-Id: Ifa7e1b6bcd21b4dfac541c258e1c53ee1515fa3d
2020-01-22 04:22:37 +00:00
Meng Wang
0e8d91a230 Use Intent.EXTRA_REBROADCAST_ON_UNLOCK instead of hidden API
Bug: 147912059
Test: make
Change-Id: Iae022db9c8ae39e9f55034c91b98ca82869933c9
2020-01-17 15:58:13 -08:00
Hall Liu
eb7a2ad408 Add call barring constants to ImsUtImplBase
Add call barring constants to ImsUtImplBase in order to expose them in
the system API surface.

Fixes: 147733594
Bug: 146834818
Test: build
Change-Id: Ieb701625b1ecf858d67648f5bb4c87f3e87c1f73
2020-01-16 10:25:59 -08:00
Taesu Lee
27e67c2eb0 New system API to create SMS PDU and expose copyMessageToIcc()
Expose copyMessageToIcc() with ACCESS_MESSAGES_ON_ICC permission and new
getSmsPdu() and getDeliverPdu() for both 3GPP and 3GPP2 are added for
use by TelephonyProvider.
It includes cleanup documentations for SMSC and getSubmitPdu() as well.

Test: Manual

Change-Id: I0bed6a961412c89025d5c70f59fef5cd163cbfbf
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-16 17:35:09 +09:00
Taesu Lee
ade283c436 Cleanup code and documentation for SMS EF records
Bug: 145683032
Test: Manual

Change-Id: Ide03fb636249e4609a7e133320f415ed29984086
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-16 16:24:18 +09:00
Allen Su
b498fbf860 Merge "[RCS] Implement notifyRcsAutoConfigurationReceived()" 2020-01-15 02:42:27 +00:00
Meng Wang
52cc4a4321 Merge changes Iec082f0c,I86a479af
* changes:
  telephony/common/* should use android.util.Log
  Use com.android.telephony.Rlog for mainline module.
2020-01-14 18:06:22 +00:00
Brad Ebinger
6408fa473f Merge "Add new @SystemApis for RCS dependencies" 2020-01-14 17:31:36 +00:00
allenwtsu
f7ce51f9cf [RCS] Implement notifyRcsAutoConfigurationReceived()
Bug: 147122370
Test: build pass
Change-Id: I239c53806b148e899d8078c469731f05e8b97885
2020-01-14 14:30:01 +08:00
Allen Su
b1c730d069 Merge "[RCS] Add set/getRcsProvisioningStatusForCapability()" 2020-01-13 23:15:14 +00:00
Brad Ebinger
10327316a9 Add new @SystemApis for RCS dependencies
As part of mainline, remove telephony dependencies from RcsService
and PresencePolling apps.

Bug: 147319232
Test: atest CtsTelephonyTestCases
Merged-in: Id25bfffc1c40db8b183206dc598165272da7356c
Change-Id: Id25bfffc1c40db8b183206dc598165272da7356c
2020-01-13 13:38:07 -08:00
Treehugger Robot
93db49faec Merge "Add Callback for Registration Failure" 2020-01-13 20:58:00 +00:00
Meng Wang
6d3e821058 Use com.android.telephony.Rlog for mainline module.
Bug: 144374158
Test: make
Merged-In: I86a479affb8e0fa8e48734324a6a05c68230d910
Change-Id: I86a479affb8e0fa8e48734324a6a05c68230d910
2020-01-13 10:32:55 -08:00
Calvin Pan
2d83e92bbd Merge "[Telephony Mainline] Add new api for Mvno matching" 2020-01-13 16:54:50 +00:00
Treehugger Robot
b2c3eaaf10 Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 14:27:29 +00:00
changbetty
9ec425857c [Telephony Mainline] Add new api for Mvno matching
Bug: 144977430
Test: make
Change-Id: I550e93ab8662c81068a6d52fef2e3c299607c18f
Merged-In: I550e93ab8662c81068a6d52fef2e3c299607c18f
2020-01-13 05:01:44 +00:00
Nathan Harold
c41cb737ed Add Callback for Registration Failure
Add a callback to PhoneStateListener to indicate that
a registration procedure has failed.

Bug: 143187047
Test: make update-api && make
Merged-In: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
Change-Id: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
(cherry picked from commit 5e6e983cad)
2020-01-12 10:33:03 -08:00
Meng Wang
00fe08f5bf Merge "Add a copy of Rlog for the telephony mainline module" 2020-01-10 22:05:03 +00:00
Makoto Onuki
eba9902300 Add a copy of Rlog for the telephony mainline module
Bug: 144374158
Test: boot
Merged-In: I5be0497a17d00152286fe3351bf58e75b675ceb6
Change-Id: I5be0497a17d00152286fe3351bf58e75b675ceb6
(cherry picked from commit 57e56f2d3c)
2020-01-10 11:05:43 -08:00
Xiangyu/Malcolm Chen
3863c17fd2 Merge changes from topic "146593004"
* changes:
  Remove usage of @hide @Deprecated Telephony API in NPMS
  Use proper Telephony API to supply sim pin and puk.
  Hook supplyPin and supplyPuk to proper impl with subId specified
2020-01-10 18:53:42 +00:00
Sarah Chin
0262cb7765 Merge "5G meteredness for telephony framework" 2020-01-10 16:36:48 +00:00