Commit Graph

9963 Commits

Author SHA1 Message Date
Jordan Liu
30adc04701 Add CDMA SCP message handling to CellBroadcast module
SCP messages are used to turn on/off categories of emergency handling.

Bug: 135956699
Test: manual
Change-Id: I4729cb98dec46560aefee570af58ff4a737cacf3
Merged-In: I4729cb98dec46560aefee570af58ff4a737cacf3
2019-11-05 16:56:40 -08:00
Meng Wang
e777c27788 Merge "Do not use hidden API ParcelableException" 2019-11-05 18:12:37 +00:00
Malcolm Chen
a43e23fb38 Have isValidPhoneId and isValidSlotIndex based on activeModemCount.
Bug: 142514392
Test: sanity and unittest
Merged-In: Ia66ee24151d1ec8ecde2dcb4c824a19b4d2cd172
Change-Id: Ia66ee24151d1ec8ecde2dcb4c824a19b4d2cd172
(cherry picked from commit dde04f8f4a)
2019-11-05 06:52:25 -08:00
Meng Wang
1e486d9b4a Do not use hidden API ParcelableException
ParcelableException, when written into Parcel, just keeps the
excaption class name and its string representation. So we
pass the same across AIDL and compose the Exception class
on the other side, following how a ParcelableException
is read from Parcel.

Bug: 141315988
Test: make
Change-Id: I92083c8a22e58c07a3537d11b1e1c143ece99031
Merged-In: I92dd527aad1e174871c330d1c043189407e136cb
2019-11-04 21:56:24 -08:00
Xiangyu/Malcolm Chen
0549e43f1d Merge "Add a carrier config to specify validation timeout for data switch." 2019-11-04 23:42:29 +00:00
Chen Xu
386027afdd Merge "new telephony annotation class" 2019-11-04 23:29:39 +00:00
Chen Xu
7631ff7c48 new telephony annotation class
This is a preparatory work for mainline. since Intdef is hidden, so we
have to move some annotations (applied in SDK/system API) to a separate
annotation class and having other module statically link to it.

TODO: include telephony annotation in framework-non-updatable-sources

Bug: 140908357
Test: Build
Change-Id: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit c9d4ee112e)
Merged-in: I37f8a0624bbf27f264870ee9dbf03d3aaa5cadc1
(cherry picked from commit 4712711d3d91621083bf92f5a1647b92c20a8b81)
2019-11-04 21:26:50 +00:00
Malcolm Chen
448b51d41d Add a carrier config to specify validation timeout for data switch.
Bug: 142884903
Test: manual test
Change-Id: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
Merged-In: Id8dc2da05efdf4dd53d03b133cc9f47efd196e02
2019-11-04 13:22:21 -08:00
Brad Ebinger
87f76cc002 Merge "Add new API for call line identification query responses" 2019-11-04 21:07:29 +00:00
Amit Mahajan
c7f1b38dcd Merge "Move MmsManager and IMms to frameworks/base/mms" 2019-11-04 20:25:14 +00:00
Jordan Liu
234ede4445 Merge "Pass bearerData and serviceCategory to CB module for CDMA" 2019-11-04 20:14:15 +00:00
Amit Mahajan
153d31bc37 Move MmsManager and IMms to frameworks/base/mms
Test: basic sanity
Bug: 140763963
Merged-in: Ib2cffce98f62913c3e50c59b63012c39d595d9ce
Change-Id: Ib2cffce98f62913c3e50c59b63012c39d595d9ce
(cherry picked from commit 6237a6b35c)
2019-11-04 11:27:49 -08:00
Jack Yu
4d854986f3 Merge "Added slot index version of getNetworkCountryIso" 2019-11-04 19:02:04 +00:00
Brad Ebinger
a3e3c595ff Add new API for call line identification query responses
The old API was not well documented and took a Bundle although
all parameters are exposed in ImsSsInfo. Creates a new API
that uses ImsSsInfo. Also add @Deprecated SystemApi definition
for older implementations that still use the old method.

Bug: 122098288
Test: atest FrameworksTelephonyTests
Merged-In: I37c2e643296d82312c9d4ba6e196118260009233
Change-Id: I37c2e643296d82312c9d4ba6e196118260009233
2019-11-04 18:41:13 +00:00
Chen Xu
7a79194fcb Merge "new TelephonyRegistryManager" 2019-11-04 18:21:51 +00:00
Amit Mahajan
987d1d04d7 Merge "Make APIs in the base CellInfo class public." 2019-11-04 18:21:36 +00:00
Amit Mahajan
c7e3bb25b8 Move SmsApplication to telephony/common.
Test: basic sanity
Bug: 140763963
Merged-in: I8662c210319523abe64feaf0610af19fd285c8ca
Change-Id: I8662c210319523abe64feaf0610af19fd285c8ca
(cherry picked from commit 1ec2e61e7f)
2019-11-01 16:40:35 -07:00
Amit Mahajan
ac0fd65067 Create frameworks/base/telephony/common for common non-mainline telephony code.
And move mms util code to the new folder.

Test: basic sanity
Bug: 140763963
Merged-in: I0d92ed3fca1fc186484ea8d3c5d17b6e332e7d22
Change-Id: I0d92ed3fca1fc186484ea8d3c5d17b6e332e7d22
(cherry picked from commit d355153dcb)
2019-11-01 16:21:14 -07:00
Amit Mahajan
7ab5b4928f Merge "Make isDataEnabledForApn() a system api." 2019-11-01 23:11:37 +00:00
Amit Mahajan
caa960b766 Merge "Make getEcno() public." 2019-11-01 23:11:33 +00:00
Amit Mahajan
8b47b32246 Merge "Remove unused @hide APIs from SmsManager." 2019-11-01 22:48:49 +00:00
Chen Xu
1f1c25e815 new TelephonyRegistryManager
today telephonyRegistry lives in system process
this is intended to persists all telephony listeners when
phone process crash. Telephony today notify system server by
using AIDL APIs directly. Instead, we are exposing a proper API
surface: telephonyRegistryManager where only phone app and
carrier privileged apps are allowed to use APIs in
TelephonyRegistryManger to notify telephony related status update.

Bug: 140908357
Test: Build & Manaul
Change-Id: I1b750751148925b4a7bd94553318907654012fc1
(cherry picked from commit 288b71c8c1)
Merged-in: I1b750751148925b4a7bd94553318907654012fc1
2019-11-01 22:44:36 +00:00
Amit Mahajan
023d2d650b Merge "Move getMmsConfig from SmsManager to MmsService." 2019-11-01 22:33:53 +00:00
Amit Mahajan
1cc8ffdf8c Merge "Move mms related code from opt/telephony to base/telephony." 2019-11-01 21:52:22 +00:00
Amit Mahajan
b1a17ee1c4 Make APIs in the base CellInfo class public.
Test: build
Bug: 139417139
Merged-in: I591c500136ac1f28d9cb87cd1649fd891e1315f6
Change-Id: I591c500136ac1f28d9cb87cd1649fd891e1315f6
(cherry picked from commit 54e43e65e0)
2019-11-01 14:40:03 -07:00
Amit Mahajan
af672b9910 Make getEcno() public.
Test: atest CellInfoTest#verifyCellSignalStrengthWcdma
Bug: 139417139
Merged-in: Ic70af2ca0d60fbf43a929982d8b6853c7b7da049
Change-Id: Ic70af2ca0d60fbf43a929982d8b6853c7b7da049
(cherry picked from commit 3a3c09610a)
2019-11-01 14:34:47 -07:00
Amit Mahajan
ed79bea3c4 Make isDataEnabledForApn() a system api.
Test: atest TelephonyManagerTest#testIsDataEnabledForApn
Bug: 140763963
Merged-in: Icbb29124294972766f68533b7e23700dd491c075
Change-Id: Icbb29124294972766f68533b7e23700dd491c075
(cherry picked from commit 505e174176)
2019-11-01 14:19:31 -07:00
Jordan Liu
c1df5e2c42 Pass bearerData and serviceCategory to CB module for CDMA
CDMA cell broadcast messages require the bearer data and service
category to be passed along for parsing. This CL updates the AIDL
interface so this info can be passed.

Bug: 135956699
Test: manual
Change-Id: I98f79fbb384881de5cb65fa7fe7a08b3f5b2e272
Merged-In: I98f79fbb384881de5cb65fa7fe7a08b3f5b2e272
2019-11-01 14:16:04 -07:00
Amit Mahajan
be576379c0 Move getMmsConfig from SmsManager to MmsService.
Test: basic sanity
Bug: 140763963
Merged-in: If0a4b319f23d1a01e98f64ed1ae6eb6b90ccb02a
Change-Id: If0a4b319f23d1a01e98f64ed1ae6eb6b90ccb02a
(cherry picked from commit 214f7ec7fa)
2019-11-01 14:15:13 -07:00
Jordan Liu
6e7e6c5b5a Merge "Add nullable and nonnull annotations" 2019-11-01 21:07:07 +00:00
Amit Mahajan
a25bc11b28 Remove unused @hide APIs from SmsManager.
Also created a new MmsManager and moved imms APIs there. Will
make MmsManager @SystemApi in a later CL.

Test: basic sanity
Bug: 140763963
Merged-in: If22a85887c1aae0ab80562d58bc08c6965fd470f
Change-Id: If22a85887c1aae0ab80562d58bc08c6965fd470f
(cherry picked from commit 24c01a2f79)
2019-11-01 14:00:38 -07:00
Shuo Qian
b15fc9bdb6 Merge "Notify OTA Emergency Number Database Installation complete" 2019-11-01 20:56:26 +00:00
Amit Mahajan
82f245f3ba Move mms related code from opt/telephony to base/telephony.
In an effort to remove it from telephony-common as that will not be
accessible to other modules, and some of them need mms code like
MmsService, TelephonyProvider, Bluetooth.

Test: basic sanity
Bug: 140763963
Merged-in: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
Change-Id: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
(cherry picked from commit fda8bc058c)
2019-11-01 12:47:10 -07:00
Shuo Qian
8fe529bce2 Make getSubIdForPhoneAccountHandle Public
Clean up getSubIdForPhoneAccountHandle without checking
 CAPABILITY_SIM_SUBSCRIPTION

Test: Treehugger
Bug: 143235201
Change-Id: I563760d0e68cbcae597ccd297f184ee9efdf3367
Merged-In: I563760d0e68cbcae597ccd297f184ee9efdf3367
(cherry picked from commit 9ac2d6b08b)
2019-11-01 11:11:46 -07:00
Shuo Qian
f019b21208 Notify OTA Emergency Number Database Installation complete
1) Introduce a system api intent for notifying OTA emergency number
database installation complete
2) Notify the installation complete in ConfigUpdater

Test: Build
Bug: 136027884
Change-Id: I62777e9e2a4a2cc3b5207c504884762768ad08e0
Merged-In: I62777e9e2a4a2cc3b5207c504884762768ad08e0
(cherry picked from commit 00a3710617)
2019-11-01 11:06:56 -07:00
Brad Ebinger
3d8a0ce489 Merge "Add new IRegistrationManager for managing IMS registration" 2019-11-01 18:01:07 +00:00
Brad Ebinger
58c1d5d729 Add new IRegistrationManager for managing IMS registration
Restructure registration API to allow for MMTEL and RCS to
both manage registration callbacks as well as provide new
query APIs for registration state and transport type.

Bug: 122098288
Test: atest GtsTelephonyTestCases
Merged-In: Ia568dcd059c2bcef26462e808088901edf6b072f
Change-Id: Ia568dcd059c2bcef26462e808088901edf6b072f
2019-11-01 09:41:57 -07:00
Treehugger Robot
ce698c4ab2 Merge "Fix CellSignalStrengthNr to use SS-RSRP" 2019-11-01 02:08:48 +00:00
Amit Mahajan
0a7690ce24 Merge "New APIs for SMSC address" 2019-10-31 23:20:14 +00:00
Jordan Liu
6701839f4a Add nullable and nonnull annotations
Bug: 135956699
Test: m -j20
Change-Id: I8f297a351896b9dc00100e6b3b8953a7f2b4ae90
Merged-In: I852fffebed9b63239a1f383ff4ad09f156fbb39d
2019-10-31 14:11:32 -07:00
Brad Ebinger
d3e3fab996 Merge "Add new system level APIs for accessing IMS state" 2019-10-31 16:34:27 +00:00
Brad Ebinger
b1b98eaa99 Merge "Remove shell commands for setting default SMS app" 2019-10-31 16:33:00 +00:00
Taesu Lee
f7488d0874 New APIs for SMSC address
Added getSmscAddress() and setSmscAddress() to access SMSC address in
(U)SIM through the SmsManager.
getSmscAddress() requires that the calling app is the default SMS app,
or has READ_PRIVILEGED_PHONE_STATE or the carrier privileges.
setSmscAddress() requires that the calling app is the default SMS app,
or has MODIFY_PHONE_STATE or the carrier privileges.

Test: Manual

Change-Id: Icb21aff450f71b30ef6a1181834014bf7b85b8e1
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-10-31 10:14:56 +09:00
Amit Mahajan
ef5e0ad2b4 Merge "Limit FDN Number up to 40 digits for Vodafone" 2019-10-31 00:51:07 +00:00
Brad Ebinger
67e099b9e7 Remove shell commands for setting default SMS app
Use RoleManager shell commands directly instead of telephony
commands for setting the default sms app.

Bug: 142419519
Test: GtsTelephonyTestCases:ImsServiceTest
Merged-In: Ib150ff57ecd0872ba732b273b5e7363375723639
Change-Id: Ib150ff57ecd0872ba732b273b5e7363375723639
2019-10-30 16:38:51 -07:00
Brad Ebinger
5c040e122f Add new system level APIs for accessing IMS state
1) Adds new system APIs that provide more access to IMS state.
2) Remove dependence on IPackageManager, which is not accessible
in mainline.

Bug: 141457496
Bug: 122098288
Test: atest FrameworksTelephonyTests
Merged-In: I17cbad4642ad3099668a354bb2588f2b55602311
Change-Id: I17cbad4642ad3099668a354bb2588f2b55602311
2019-10-30 16:33:52 -07:00
Xiangyu/Malcolm Chen
d7f38d742b Merge "Have getSupportedModemCount always rely on system properties." 2019-10-30 02:10:42 +00:00
Treehugger Robot
634c108060 Merge "Returns null not empty string if MEID is not available" 2019-10-30 00:21:50 +00:00
Treehugger Robot
5cd5e277dc Merge "Prevent sending CLIR activation and deactivation code only" 2019-10-30 00:08:27 +00:00
Xiangyu/Malcolm Chen
8ed3fb4bcf Merge changes from topic "getDeviceCapableModemCount"
* changes:
  Rename and publicize getMaxPhoneCount; and deprecate getPhoneCount.
  Add public intent ACTION_MULTI_SIM_CONFIG_CHANGED.
2019-10-29 22:54:26 +00:00