Commit Graph

4097 Commits

Author SHA1 Message Date
Brad Ebinger
ee30a546d6 Merge "API fix: Rename and clarify ProvisioningManager constants" 2020-03-23 16:19:36 +00:00
Philip P. Moltmann
b36bcc882a Pipe through attributeTag for one SMS permission check
Bug: 136595429
Test: TH
Change-Id: I99635efd0da5e72c3df9c6383779a059bbe3c1d1
Merged-In: I346ac2d3acad0e0d18b298f89f0b96324fc52333
2020-03-20 00:28:09 +00:00
Philip P. Moltmann
9ed7e7f1b1 Merge "Pipe through attributeTag for one self-permission check" 2020-03-19 19:41:17 +00:00
Philip P. Moltmann
a345428817 Pipe through attributeTag for one self-permission check
... Also remove unused aidl methods.

Bug: 136595429
Test: TH
Change-Id: I37bf62a83c1043acdc878f747ef85d719766f991
2020-03-18 18:16:22 -07:00
Rambo Wang
ca33ed2d7e Introduce a new RIL request constant to support getBarringInfo.
Bug: 148981484
Test: make
Merged-In: I05e0abe29f6d8c5796c777fd83d76e398e35b6b1
Change-Id: I05e0abe29f6d8c5796c777fd83d76e398e35b6b1
(cherry picked from commit 284118f9e0)
2020-03-18 09:52:24 -07:00
Nathan Harold
61b5d6741b Add Callback to notify changes of barring status
-Create a BarringInfo class to pass Barring information
 from HAL to PhoneStateListener.
-Add a multi-callback registrant so that ServiceStateTracker
 and potentially DcTracker can also listen to barring info in
 the future.

Bug: 143226991
Test: make update-api && make && atest BarringInfoTest
Merged-In: I08240259f3142beeca991238bf705236f0303954
Change-Id: I08240259f3142beeca991238bf705236f0303954
2020-03-18 09:52:10 -07:00
Brad Ebinger
f0fc4b5ab0 API fix: Rename and clarify ProvisioningManager constants
Fixes: 148515237
Fixes: 151173009
Test: atest CtsTelephonyTestCases; atest FrameworksTelephonyTests
Merged-In: I633ad3270f8b7d047c3522a420746b668000d078
Change-Id: I633ad3270f8b7d047c3522a420746b668000d078
2020-03-12 17:04:49 -07:00
Jack Yu
0ce205791c Removed permission check
Removed permission check for getNetworkCountryIso and made it public.
This API was added since the first version of Android. Removed the
permission check for backward compatibility reason.

Test: Telephony sanity tests
Bug: 149872821
Merged-In: I68833fdf6f078d69bc8c2e5f01cf4e058d6d7093
Change-Id: I68833fdf6f078d69bc8c2e5f01cf4e058d6d7093
(cherry picked from commit 0b9a12c2c4)
2020-03-11 20:59:31 -07:00
Shuo Qian
c3e4dd3799 Merge "API Council Feedback - Override EmergencyNumberDB File API" 2020-03-11 19:24:51 +00:00
sqian
a1c74497cd API Council Feedback - Override EmergencyNumberDB File API
Use ParcelFileDescriptor; Introduce Reset API

Test: atest TelephonyHostTest#testEmergencyNumberDb
Bug: 147805285
Change-Id: I7a7733c02874c0f17fef8c91b9e543c8e803f504
Merged-In: I7a7733c02874c0f17fef8c91b9e543c8e803f504
(cherry picked from commit 75c49ab334)
2020-03-10 22:13:46 +00:00
Shuo Qian
7618c552e6 Remove hidden setRadioIndicationUpdateMode in TelephonyManager
We need to remove the previous hacky hidden API
 setRadioIndicationUpdateMode and its implementation in Telephony.
 This is an hidden API that affects power cost. We should remove it
 to prevent potential users to use it unexpectedly (e.g. in reflection)

Test: Manual by making a call
Bug: 148544396
Change-Id: I0bce99b5363392bbaf9cf76dad8c1b47a138fd19
Merged-In: I0bce99b5363392bbaf9cf76dad8c1b47a138fd19
(cherry picked from commit 4b779449d7)
2020-03-10 21:43:00 +00:00
Hall Liu
57948adee3 Merge changes from topic "sys-selection-chan"
* changes:
  Split setSystemSelectionChannels
  Add setSystemSelectionChannels API
2020-03-09 20:00:40 +00:00
Hall Liu
1276af44e9 Add setSystemSelectionChannels API
Add setSystemSelectionChannels as a SystemApi, connecting to the
identically-named HAL method.

Fixes: 144595103
Test: manual through the testapp, atest TelephonyManagerTest
Change-Id: I52ff09258af772e272937dd137813d0d63c50cb5
Merged-In: I52ff09258af772e272937dd137813d0d63c50cb5
2020-03-06 14:19:07 -08:00
Sarah Chin
f5d9be9323 Carrier config for 5G up/down bandwidth and LTE for NSA
Add default values for 5g upstream/downstream bandwidth
Update default values on NR frequency changed
Config to use LTE values for upstream and 5G for downstream on NSA
Resource overlay for modem predictive/instantaneous bandwidth estimates

Test: atest FrameworksTelephonyTests
Bug: 149032132
Bug: 149032474
Bug: 149032786
Change-Id: I70e95e98c871ba3fdc2e94de9504eafe247619c9
Merged-In: I70e95e98c871ba3fdc2e94de9504eafe247619c9
2020-03-03 11:53:11 -08:00
Treehugger Robot
967a468a78 Merge "Change createFromNativeSmsSubmitPdu for API review" 2020-03-03 18:06:12 +00:00
Daniel Bright
03c3d36ce8 Merge "Rewriting phone constants for mainline" 2020-03-02 20:31:24 +00:00
Daniel Bright
941ff72b3b Merge "Make string version of APN_TYPEs a @SystemApi" 2020-03-02 19:13:48 +00:00
Zongheng Wang
5b0e5bbffc Change createFromNativeSmsSubmitPdu for API review
* Change it into a public API
* Rename method to createSmsSubmitPdu
* Add maxTargetSdk to createFromEfRecord()’s UnsupportedAppUsage

Bug: 149697039
Test: compile
Change-Id: I067deb1063891e81bee96281d87a6319d6f72bf1
2020-03-02 19:02:16 +00:00
Daniel Bright
71206ec925 Make string version of APN_TYPEs a @SystemApi
The string version of Apn Types are used in the carrier config table.
Modules besides Telephony uses this table directly and so it made sense to expose
this as a @SystemApi

Test: ApnSettingsTest
Bug: 147465477
Merged-In: I1c344b3ff482d973b8bf51a33956a7f90f291634
Change-Id: I1c344b3ff482d973b8bf51a33956a7f90f291634
2020-02-27 14:27:14 -08:00
Daniel Bright
0b5d2852b3 Rewriting phone constants for mainline
* Exposing Emergency extra constants through TelephonyManager
* Always reading or writing PhoneConstants.SubscriptionKey
with SubscriptionManager.EXTRA_SUBSCRIPTION_KEY

Bug: 147465477
Test: FrameworksCoreTests, FrameworksServicesTest, CarrierTests
Merged-In: I84d6687ca6cab86c8c68dc2dd2679cfee0919c1e
Change-Id: Ic02e02a4b1ac989a974938dc87118a6f7c926e9e
2020-02-27 11:26:11 -08:00
Sarah Chin
64050ff818 Revert "Modify PhoneCapabilities for device capabilities"
This reverts commit e8b7635634.

Reason for revert: Change not supported by vendor

Bug: 149522248
Bug: 143238237
Change-Id: Iaf9eb6493b937545ba5f046912fc023887e7b566
Merged-In: I17315f5b99ad7c5a5a6d88ed21a825301fa8e5e5
2020-02-25 11:09:02 -08:00
Tyler Gunn
12f7f43ec8 Merge "IMS: Add support for IMS Explicit call transfer" 2020-02-19 18:55:20 +00:00
Junyu Lai
7e0dbc53e3 Merge "[SP15] Remove unused getVtDataUsage in TelephonyMananger" 2020-02-19 01:10:38 +00:00
Taesu Lee
c8ec731663 Use month in the range 1-12 for 3GPP2 SMS Time Stamp instead
Zero-based month is not needed anymore since android.text.format.Time is
replaced with LocalDateTime. For the safety, just rename "month" to
"monthOrdinal" in the range 1-12.

Bug: 146021623
Test: atest CdmaSmsTest

Change-Id: I0eb5bad9b3701217a6e4f44bfcd76013576d79d5
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-02-17 17:55:25 +09:00
junyulai
9cd0ea1767 [SP15] Remove unused getVtDataUsage in TelephonyMananger
Test: atest FrameworkTelephonyTests
Bug: 143923500
Change-Id: I31b7041dc2591b354200da5637496f071fc4aa9f
2020-02-14 16:31:41 +08:00
Ravi Paluri
f4b38e7ff1 IMS: Add support for IMS Explicit call transfer
Test: Manual
Bug: 62170207
Change-Id: I06a256adb0e1910d40809c91bcdd42c56a142842
2020-02-14 11:02:09 +05:30
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