TelephonyManager.
The purpose is to expose them as @SystemApi as they are used externally.
Bug: 140908357
Test: unittest
Change-Id: I3dabcb853ebbd648b20d97b446db11476780be25
Merged-In: I3dabcb853ebbd648b20d97b446db11476780be25
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)
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)
* 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
Do not use hidden broadcast API of RemoteCallbackList
Bug: 140908357
Bug: 146349977
Test: Build
Merged-In: I5fa9b0f36f18c6073ad20867f6bf62d573f823b8
Change-Id: I5fa9b0f36f18c6073ad20867f6bf62d573f823b8
Support new API for setNetworkSelectionModeManual with ran parameter
Bug: 68116277
Test: atest FrameworksTelephonyTests
Change-Id: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
Merged-In: I0e8b78b1b16d4bf6a6c0f39eedc48b253ca7a810
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)
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)
Add new constant to send MO CDMA SMS with expectMore option.
Bug: 72613248
Change-Id: I4fbcaa13648c66482f6bb741c433aede2ec824c7
Merged-In: I4fbcaa13648c66482f6bb741c433aede2ec824c7
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
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
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
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
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>
As part of mainline, remove telephony dependencies from RcsService
and PresencePolling apps.
Bug: 147319232
Test: atest CtsTelephonyTestCases
Merged-in: Id25bfffc1c40db8b183206dc598165272da7356c
Change-Id: Id25bfffc1c40db8b183206dc598165272da7356c
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)
* 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