Commit Graph

3970 Commits

Author SHA1 Message Date
SongFerng Wang
1877b8226d Merge "isTetherApnRequired api rename as isTetheringApnRequired" am: 25ea00d059
am: c4bb6df605

Change-Id: I8de3f03e2443eafc072650cb362f82e4bed94aa8
2019-11-20 02:18:08 -08:00
SongFerng Wang
25ea00d059 Merge "isTetherApnRequired api rename as isTetheringApnRequired" 2019-11-20 08:46:05 +00:00
Meng Wang
99a254e353 Merge "Move GsmAlphabet to telephony/common" am: 36a15245e9
am: c68e65ed1a

Change-Id: I5cf5e4b0610d68276ce5931a0321bc12139a2253
2019-11-19 19:39:20 -08:00
Meng Wang
36a15245e9 Merge "Move GsmAlphabet to telephony/common" 2019-11-20 03:21:19 +00:00
Jordan Liu
f85b6a2def Merge "Expose Geometry, LatLng, and maxWaitDuration" am: e993fb8bb9
am: 2ca04cf384

Change-Id: Iaef98dc98f7caf25f4279b768f11937d15f7a947
2019-11-19 15:51:19 -08:00
Hall Liu
ae63546d19 Merge commit '1d7a53da981b7d4281c58af7eb9b150163b344a6' into manual_merge_1d7a53da981b7d4281c58af7eb9b150163b344a6
am: dab3711435

Change-Id: Ib75482a87545f7743f0049c8e51c354d2294c2af
2019-11-19 15:12:28 -08:00
Meng Wang
3312d7cfa7 Move GsmAlphabet to telephony/common
so it can be shared with non-telephony modules.

Test: make
Bug: 140908357
Change-Id: I8caba6a1ac3943e7f0044f7502eead10dfe8669c
2019-11-19 14:19:41 -08:00
Jordan Liu
e993fb8bb9 Merge "Expose Geometry, LatLng, and maxWaitDuration" 2019-11-19 20:55:36 +00:00
Hall Liu
1d7a53da98 Merge changes from topic "mainline4"
* changes:
  Add new API for Telecom to send phone state
  Minor style correction to avoid merge conflict
  non-mainline telephony related AIDL refactor/decoupling
2019-11-18 22:31:27 +00:00
Chen Xu
f08074d6ec Merge "SystemAPI for ACTION_SMS_EMERGENCY_CB_RECEIVED intent" am: 3c397a6217
am: 42d7faea52

Change-Id: If8ab3835f050dee774a4fbcbaca3febf07fec049
2019-11-18 11:23:06 -08:00
Chen Xu
39b95941f9 SystemAPI for ACTION_SMS_EMERGENCY_CB_RECEIVED intent
Bug: 135956699
Test: Build
Change-Id: Ic7124f30fae6faa482467fd9235ef6155854f589
(cherry picked from commit 9c1260c818)
Merged-in: Ic7124f30fae6faa482467fd9235ef6155854f589
2019-11-16 09:21:33 -08:00
Jordan Liu
b3591333f7 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
Merged-In: Iac585cd54db97c08eccc57adc9721c90aa785fcd
Change-Id: Iac585cd54db97c08eccc57adc9721c90aa785fcd
(cherry picked from commit a8ec03ebe6)
2019-11-16 07:56:30 -08:00
Chen Xu
8eb62f9485 non-mainline telephony related AIDL refactor/decoupling
1. decouple IOnSubscriptionChangedListener AIDL from telephonyMainline
2. other refactor. moving APIs which will not be included in
telephony mainline to frameworks/base/core/java/android/telephony.
Moving internal classes like AIDL which will not be included in
telephony mainline to
framework/base/core/java/com/android/internal/telephony

Bug: 140908357
Test: Build & unit test
Change-Id: I9413ef758cceadd251d03f3b5ea1054cc48ef044
Merged-In: I9413ef758cceadd251d03f3b5ea1054cc48ef044
2019-11-15 18:02:40 -08:00
SongFerngWang
8a90fc0811 isTetherApnRequired api rename as isTetheringApnRequired
Bug: 144455789
Test: Build pass.
      atest TetheringConfigurationTest (PASS)

Change-Id: I9ab4c7b3aef0619046d7e3d711683dbe1f31bb50
2019-11-15 14:50:52 +08:00
SongFerng Wang
3e5b9ac2b6 Merge "[mainline] Expose getTetherApnRequired API as system API" am: 3887ca1f22
am: fa3008c39d

Change-Id: I11ed0e214003758fe9116dff520221b09c0171b6
2019-11-11 14:42:48 -08:00
SongFerng Wang
3887ca1f22 Merge "[mainline] Expose getTetherApnRequired API as system API" 2019-11-11 22:06:49 +00:00
Artur Satayev
756d3b447a Merge "Add @UnsupportedAppUsage annotations for greylist." am: 423c3a32d6
am: 7a565c45b1

Change-Id: I48075ef4296e0b55c0055f7364c5129bbd60e9ed
2019-11-11 09:33:13 -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
fc46be7dbd Add @UnsupportedAppUsage annotations for greylist.
go/cleanup-greylist-txt

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: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
Merged-In: Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09
2019-11-08 16:17:13 +00: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
SongFerngWang
fc453e1768 [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
Merged-In: Iafb2e4fbddb0251e23673742d990ad098a8ae375
2019-11-08 19:28:33 +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
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
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
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
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
1cc8ffdf8c Merge "Move mms related code from opt/telephony to base/telephony." 2019-11-01 21:52:22 +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
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
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
0a7690ce24 Merge "New APIs for SMSC address" 2019-10-31 23:20:14 +00: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
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
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