Commit Graph

4044 Commits

Author SHA1 Message Date
Chen Xu
5a04c0d7b8 Merge "SystemAPI for ACTION_SMS_EMERGENCY_CB_RECEIVED intent" 2019-11-11 18:33:01 +00:00
TreeHugger Robot
5edd93298e Merge "Use sysprop library for telephony props" 2019-11-11 02:11:48 +00:00
Xiangyu/Malcolm Chen
f737318cd0 Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." into qt-qpr1-dev am: d11b16f756
am: f1581e4de4

Change-Id: I1c998f9361247cb4532af3b4e12f5b5f66b63726
2019-11-08 17:30:47 -08:00
Xiangyu/Malcolm Chen
f1581e4de4 Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." into qt-qpr1-dev
am: d11b16f756

Change-Id: I7643243c98263f99a400df450eb35b925028d3cd
2019-11-08 17:25:10 -08:00
Xiangyu/Malcolm Chen
d11b16f756 Merge "Don't allow reading IMSI of one active sub if only has carrier privilege on the other." into qt-qpr1-dev 2019-11-09 01:07:49 +00:00
Malcolm Chen
4bff428285 Don't allow reading IMSI of one active sub if only has carrier privilege
on the other.

Bug: 136123413
Test: unittest
Change-Id: I67a0121d3e965f193be9e827533646423502fe70
2019-11-08 13:41:24 -08:00
Artur Satayev
3be4d59369 Merge "Add @UnsupportedAppUsage annotations for max-p." am: 8893f158c6
am: da4d6567c2

Change-Id: Iff80c388dec2c6f8184b739be6fb38b8ec8a1a49
2019-11-08 09:49:03 -08:00
Artur Satayev
ee9c6e7571 Add @UnsupportedAppUsage annotations for max-p.
See go/UnsupportedAppUsage for more details.

These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code.

Bug: 137350495
Test: m
Change-Id: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
Merged-In: I5aa29a49b193db47aaee4d3a756c17f48cc9f0b1
2019-11-08 16:17:13 +00:00
SongFerng Wang
1b3cfb1b88 Merge "[mainline] Expose getTetherApnRequired API as system API" 2019-11-08 11:17:49 +00:00
SongFerngWang
a571f9b827 [mainline] Expose getTetherApnRequired API as system API
1. getTetherApnRequired API rename to isTetherApnRequired.
2. Expose isTetherApnRequired API as system API.

Bug: 142365448
Test: Build pass.
      atest TetheringConfigurationTest (PASS)

Change-Id: Iafb2e4fbddb0251e23673742d990ad098a8ae375
2019-11-08 14:22:38 +08:00
Inseob Kim
1b5e241b92 Use sysprop library for telephony props
Bug: 117924132
Bug: 141246285
Test: lunch blueline-userdebug; m checkbuild
Change-Id: Idefa10b5bdeaff69496bc66730a7398258f3a38e
2019-11-08 15:06:37 +09:00
Jack Yu
2757d63972 Merge "Fixed incorrect WAC decoding" into qt-qpr1-dev am: fa35152703
am: 917396bf71

Change-Id: Icc2d314e9ddf444f29970dda52d6916e7c6b3f7b
2019-11-07 14:06:51 -08:00
Jack Yu
917396bf71 Merge "Fixed incorrect WAC decoding" into qt-qpr1-dev
am: fa35152703

Change-Id: I024c4bff8b733fdf2216cdd16164a2d880aaf91b
2019-11-07 14:01:06 -08:00
Chen Xu
9c1260c818 SystemAPI for ACTION_SMS_EMERGENCY_CB_RECEIVED intent
Bug: 135956699
Test: Build
Change-Id: Ic7124f30fae6faa482467fd9235ef6155854f589
2019-11-07 13:41:07 -08:00
Jack Yu
6586ad9e80 Fixed incorrect WAC decoding
Fixed the incorrect warning area coordinate decoding
when data length is greater than 127 bytes.

Bug: 143762197
Test: unit test
Change-Id: I498ccd0933f31898d531dcea307e160ae94653e8
2019-11-07 11:13:31 -08:00
Jordan Liu
83f70208d1 Merge "Expose Geometry, LatLng, and maxWaitDuration" 2019-11-06 17:15:41 +00: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
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
Brad Ebinger
4fcb9d206a Merge "Add new API for call line identification query responses" 2019-11-04 17:40:46 +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
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
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
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
Philip P. Moltmann
95a41b85e0 Pipe through featureId for network location checks
Test: atest CtsAppOpsTestCases:android.app.appops.cts.AppOpsLoggingTest#getCellInfo
Bug: 136595429
Change-Id: I4e65524e72b55c530ac9ad1de25edb079f2bd1ba
2019-11-01 12:41:41 -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
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
Amit Mahajan
b13767ad90 Merge "New APIs for SMSC address" am: 0a7690ce24 am: edae70454f
am: fea5b9b556

Change-Id: Ief15a79e0722aa2efada5742a65f4f3c4f6227e6
2019-10-31 16:50:51 -07:00
Amit Mahajan
0a7690ce24 Merge "New APIs for SMSC address" 2019-10-31 23:20:14 +00:00
Shuo Qian
08a901f10d Merge "Make getSubIdForPhoneAccountHandle Public" 2019-10-31 20:16:38 +00:00
Jordan Liu
a8ec03ebe6 Expose Geometry, LatLng, and maxWaitDuration
Expose Geometry and LatLng classes as SystemApi
Expose maxWaitDuration, which is used in the cell broadcast service
geofencing logic.

Bug: 135956699
Test: make and run appcompat script
Change-Id: Iac585cd54db97c08eccc57adc9721c90aa785fcd
2019-10-31 11:16:41 -07:00
Brad Ebinger
d3e3fab996 Merge "Add new system level APIs for accessing IMS state" 2019-10-31 16:34:27 +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
Shuo Qian
9ac2d6b08b Make getSubIdForPhoneAccountHandle Public
Clean up getSubIdForPhoneAccountHandle without checking
 CAPABILITY_SIM_SUBSCRIPTION

Test: Treehugger
Bug: 143235201
Change-Id: I563760d0e68cbcae597ccd297f184ee9efdf3367
2019-10-30 16:47:00 -07: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
Brad Ebinger
a9fcaac41e 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
Change-Id: Ia568dcd059c2bcef26462e808088901edf6b072f
2019-10-30 01:12:24 +00:00
Peter Wang
ca01a7ee08 Merge "Add EuiccCardManager.ResetOption to eraseSubscriptions" 2019-10-28 19:32:18 +00:00
Xin Li
b2198fa670 Merge "Merge Coral/Flame into AOSP master" 2019-10-27 04:44:29 +00:00
Brad Ebinger
6ac8e71164 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 GtsTelephonyTestCases, atest FrameworksTelephonyTests
Change-Id: I17cbad4642ad3099668a354bb2588f2b55602311
2019-10-25 16:29:24 -07:00
Peter Wang
2ab852d411 Add EuiccCardManager.ResetOption to eraseSubscriptions
Bug: 139474431
Test: on device
Change-Id: Ib8496ed6dbc6179940892de8df7901e84dd67d76
Merged-In: Ib8496ed6dbc6179940892de8df7901e84dd67d76
2019-10-25 14:26:22 -07:00
Chen Xu
17518fa149 Merge "move CellBroadcastMessage from telephony-common to app" 2019-10-25 17:28:22 +00:00
Chen Xu
7e902363a6 Merge "make CallerInfo as SystemAPI" 2019-10-25 17:27:45 +00:00
Brad Ebinger
d29f64463f 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
Change-Id: I37c2e643296d82312c9d4ba6e196118260009233
2019-10-25 09:43:55 -07:00
Yincheng Zhao
02f0815ddc Merge "Adding API in TelephonyManger for updating Fplmns."
am: 32eb91717f

Change-Id: I6f1ec15774320b08238c9338ff849b7528c120a6
2019-10-24 14:38:49 -07:00