Commit Graph

3932 Commits

Author SHA1 Message Date
Shuo Qian
f31d7e8edf Merge "Integrate the active emergency session listener in TelephonyRegistry" 2019-09-28 02:18:54 +00:00
Shuo Qian
134334bb6e Integrate the active emergency session listener in TelephonyRegistry
Add Telecom shell command: "adb shell telecom set-system-dialer"

Test: PhoneStateListener cts
Bug: 135204580
Change-Id: I5eaada6a671606642a849f0ff6fe964332d80d5f
2019-09-27 14:22:51 -07:00
Chen Xu
8dcf873d9a Merge "Revert "remove symbols from greylist"" 2019-09-26 03:45:27 +00:00
Chen Xu
a56786981e Merge "new TelephonyRegistryManager" 2019-09-24 18:32:48 +00:00
Chen Xu
6155eb9663 Revert "remove symbols from greylist"
This reverts commit 27c4e658b3.

Reason for revert: <potential performance regression. revert for now and looking for possible optimization from ART team>

Change-Id: I5bf728e4f6789d7e6398cf90f22fbf3a24d481c2
2019-09-23 18:51:02 -07:00
Chen Xu
288b71c8c1 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
2019-09-22 19:56:39 -07:00
Xiangyu/Malcolm Chen
a80a7ac63a Merge "Add APIs to return max possible active phones." 2019-09-20 22:07:44 +00:00
Amit Mahajan
97bc2c59d7 Merge "Move mms related code from opt/telephony to base/telephony." 2019-09-18 16:41:48 +00:00
Chen Xu
8474c6b9b4 Merge "move IApnSourceService.aidl to android.service.carrier" 2019-09-18 04:06:44 +00:00
Hyungjun Park
6cc6909b30 Merge "Add isApplicationOnUicc API" am: 3dc68a9585 am: 2f3eb5d88f am: 5d7734c64e
am: 3b70d93efc

Change-Id: I65f26e60e79562b19cf4940bcbe64b73b92cba62
2019-09-17 19:59:35 -07:00
Hyungjun Park
2f3eb5d88f Merge "Add isApplicationOnUicc API"
am: 3dc68a9585

Change-Id: I995d6b61d43a39ad5e52c99e62ac292540a0be7e
2019-09-17 19:17:24 -07:00
Treehugger Robot
3dc68a9585 Merge "Add isApplicationOnUicc API" 2019-09-18 02:00:54 +00:00
Malcolm Chen
30693c0aee Add APIs to return max possible active phones.
This is first step towards reboot free single SIM to DSDS switch. As
getPhoneCount returns active phone count based on current configuration,
getMaxPhoneCount (subject to renaming) will return max possible active
phones(logical modems).

Bug: 141023026
Test: manual

Change-Id: Icc6e7da7c065eb3f72ec85a99ccc148639c574da
2019-09-17 15:36:37 -07:00
Chen Xu
478ba408d3 move IApnSourceService.aidl to android.service.carrier
Bug: 140908357
Test: Build & Manual
Change-Id: I21b83798f5ecd819627a7168c167cf3cfe99dd68
2019-09-16 18:16:46 -07:00
Shuo Qian
fc225eab6b Merge "Listeners of active emergency numbers"
am: 7674b345a9

Change-Id: Ie18a4c1d18ae9fb1dbddc5f9997c471873f8ba78
2019-09-13 13:24:42 -07:00
Chen Xu
b9a1eefec6 make CallerInfo as SystemAPI
1. move CallerInfo from telephony.internal to andorid.telephony package
2. expose APIs inside CallerInfo which are consumed by non-telephony
code.

Bug: 140908357
Test: Build
Change-Id: Ie95897c77e97e40f5357c107aede82edfea44d5a
2019-09-12 23:21:06 -07:00
Shuo Qian
e6f0e85516 Listeners of active emergency numbers
1) Introduce a new signature-level system permission allowing system apps to listen the
 active emergency number, placed by calls or texts.

2) Add PhoneStateListener API surface to provide a mechanism to listen the
outgoing call emergency number or outgoing sms emergency number.

Bug: 135204580
Test: atest
Change-Id: I6e6bce6d4b97d492ca20302002911f9daa20767e
Merged-In: I6e6bce6d4b97d492ca20302002911f9daa20767e
(cherry picked from commit 7a1eb6d56b)
2019-09-13 03:16:17 +00:00
Shuo Qian
747fd26f71 Merge "Listeners of active emergency numbers" 2019-09-12 22:57:11 +00:00
Amit Mahajan
fda8bc058c 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
Change-Id: I03eda5a5dbd003659a90e2b9f6be9d4c2b767add
2019-09-12 14:36:10 -07:00
Shuo Qian
7a1eb6d56b Listeners of active emergency numbers
1) Introduce a new signature-level system permission allowing system apps to listen the
 active emergency number, placed by calls or texts.

2) Add PhoneStateListener API surface to provide a mechanism to listen the
outgoing call emergency number or outgoing sms emergency number.

Bug: 135204580
Test: atest
Change-Id: I6e6bce6d4b97d492ca20302002911f9daa20767e
2019-09-12 13:37:59 -07:00
Xin Li
d57e959e71 Merge qt-r1-dev-plus-aosp-without-vendor (5817612) into stage-aosp-master
Bug: 135460123
Change-Id: I65906d82b14125c0893d5cde0cfebb73bf9e38ab
Merged-In: I1f2564837c33cd4c6c3db6aac3cbaf8c09707da9
2019-09-10 11:16:29 -07:00
Pengquan Meng
156f347db4 Merge "Support maximum wait time for Cell broadcast" 2019-09-06 17:15:28 +00:00
Pengquan Meng
9f677a0790 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Merged-In: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
(cherry picked from commit 02d6ac0f20)
2019-09-05 15:27:31 -07:00
Pengquan Meng
02d6ac0f20 Support maximum wait time for Cell broadcast
Geo-Fencing Maximum Wait Time a device shall allow to determines it
location meeting operator policy. If the device is unable to determine
its position meeting operator policy within the GeoFencing Maximum Wait Time,
it shall present the alert to the user and discontinue further positioning
determination for the alert.

Bug: 139022202
Test: manual
Change-Id: If3d8d7915f2d86da20c63e99bee01f30e3ea89c0
2019-09-05 10:42:43 -07:00
Chen Xu
c1f208cd69 Merge "remove symbols from greylist" 2019-09-04 23:31:25 +00:00
Chen Xu
27c4e658b3 remove symbols from greylist
telephony-common is not intended to used by any apps and
being in boot class is not updatability friendly.
We are removing telephony-common from bootclass and apply
<uses-library> in manifest instead.
for apps targeting < R will auto load telephony-common lib
for app compatibility. For apos >=R, only allow usage for
phone UID.

Bug: 135955937
Test: Build
Change-Id: Ia318661546df6d8516328886e5cc0c54d5cfafe6
2019-09-04 11:42:14 -07:00
Jordan Liu
d41a61df80 Merge "Change CellBroadcast APIs to SystemApi"
am: 82454e029f

Change-Id: Ic39446ab84f910b0f5225ad42f061e2a525ec868
2019-09-03 13:52:14 -07:00
Jordan Liu
e4141f0e8b Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
Merged-In: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-09-03 11:32:58 -07:00
Jordan Liu
9cdab3bf86 Merge "Change CellBroadcast APIs to SystemApi" 2019-08-31 04:56:14 +00:00
Jordan Liu
657ef5a7e8 Change CellBroadcast APIs to SystemApi
Bug: 135956699
Test: atest SmsManagerPermissionTest
Change-Id: Ibbb22505a80567d1c08cffe9b7a7fdbd10890abe
2019-08-30 14:27:39 -07:00
Sarah Chin
5741927f2b Merge "Handle 5G meteredness in telephony framework" 2019-08-30 17:41:18 +00:00
Sarah Chin
92860a704b Handle 5G meteredness in telephony framework
Carriers can set override values via SubscriptionManager.
Added constants and configs for 5G meteredness updates.

Bug: 139070884
Bug: 139218397
Test: atest FrameworksTelephonyTests
Test: atest
cts/tests/tests/telephony/current/src/android/telephony/cts/SubscriptionManagerTest.java

Change-Id: Ic8c5938c4a414ce63303a1fa25af60a0082b1ba9
2019-08-30 14:27:39 +00:00
Brad Ebinger
5789a6df3f Merge "Preprocessing Teleservice Id 0xFDEA SMS WAP" am: 597234f119 am: 18f96879c2 am: 7bebbb7c6e am: 9cfe7babca
am: 65d8b4afc7

Change-Id: I9828e5dbf228414907a7beee8f23aef5e1eb4fb5
2019-08-28 20:13:25 -07:00
Brad Ebinger
9cfe7babca Merge "Preprocessing Teleservice Id 0xFDEA SMS WAP" am: 597234f119 am: 18f96879c2
am: 7bebbb7c6e

Change-Id: I16db44d88e9acf4437e2475fa5ac8ae2b64f6d1b
2019-08-28 18:34:33 -07:00
Amit Mahajan
13b0504c4b Merge "Fix invalid padding bits for 7-bit ASCII encoding" am: 2c8d3c56f2 am: c302ce55ab am: 1a9034d44e am: 66460139d2
am: c0f522c3ec

Change-Id: If71c72840bcf7176fbceca91fcab9bcd81955d6b
2019-08-28 17:51:22 -07:00
Brad Ebinger
18f96879c2 Merge "Preprocessing Teleservice Id 0xFDEA SMS WAP"
am: 597234f119

Change-Id: I63b3906b26643d50d0208e4231306b9cf830e977
2019-08-28 17:12:27 -07:00
Amit Mahajan
66460139d2 Merge "Fix invalid padding bits for 7-bit ASCII encoding" am: 2c8d3c56f2 am: c302ce55ab
am: 1a9034d44e

Change-Id: I84b71a73a4ad89185732dfb05582c549aab0ba3c
2019-08-28 15:13:51 -07:00
Brad Ebinger
597234f119 Merge "Preprocessing Teleservice Id 0xFDEA SMS WAP" 2019-08-28 22:02:44 +00:00
Amit Mahajan
c302ce55ab Merge "Fix invalid padding bits for 7-bit ASCII encoding"
am: 2c8d3c56f2

Change-Id: I62692e468732d1de5eba26ddc2a926bb7044e7f2
2019-08-28 13:41:21 -07:00
Amit Mahajan
2c8d3c56f2 Merge "Fix invalid padding bits for 7-bit ASCII encoding" 2019-08-28 19:45:52 +00:00
Treehugger Robot
1953ea490f Merge "SDK API doesSwitchModemConfigTriggerReboot" 2019-08-28 17:51:50 +00:00
Taesu Lee
6a814fba7a Merge "Add new default_reserved_data_coding_scheme config" am: 7a71de717b am: 3676ee2e12 am: efa8e27c2e am: a588cb6642
am: 5dc7d3b06a

Change-Id: I4aa80ab327c8956a7fc7f62f2745a038ab4eea79
2019-08-28 02:13:13 -07:00
Taesu Lee
a588cb6642 Merge "Add new default_reserved_data_coding_scheme config" am: 7a71de717b am: 3676ee2e12
am: efa8e27c2e

Change-Id: I75f0b983ef5057972246175d2b7019a5c2002564
2019-08-28 01:54:21 -07:00
Taesu Lee
3676ee2e12 Merge "Add new default_reserved_data_coding_scheme config"
am: 7a71de717b

Change-Id: Ide11a58cae754e720862e1049ccb718670e46c31
2019-08-28 01:21:59 -07:00
Treehugger Robot
7a71de717b Merge "Add new default_reserved_data_coding_scheme config" 2019-08-28 07:57:29 +00:00
Taesu Lee
bc7abc3e5a Preprocessing Teleservice Id 0xFDEA SMS WAP
The SMS WAP specified Teleservice Id 0xFDEA requires an additional
header parsing to extract new Message Identifier and new User Data from
WDP SMS User Data.

Test: MT MMS in China Telecom N/W and atest CdmaSmsTest

Change-Id: I8c0edd53c0da7c5b54fe6aa5a05f5577676383d8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-08-28 14:13:46 +09:00
Pengquan Meng
2a0cd6d35f Merge "Support WAC decoding in UMTS format" am: 9bc9b80912 am: 6cf420a80e
am: 49d538731b

Change-Id: If03eba667943b68bed66eb77acdcc53dd22cf3ed
2019-08-27 14:15:40 -07:00
Pengquan Meng
6cf420a80e Merge "Support WAC decoding in UMTS format"
am: 9bc9b80912

Change-Id: I7efc88e5878e68b571d55fd386ad022b9a662bc3
2019-08-27 13:50:18 -07:00
Taesu Lee
dc77d5a9ac Fix invalid padding bits for 7-bit ASCII encoding
Calculate correct padding bits for 7-bit ASCII encoding so that
unnecessary byte 0x00 is not appended in the User Data subparameter.
See the below issue case.

After encodeUserDataPayload(UserData;5 ASCII chars) in encodeUserData(),
UserData.numFields = 5 and UserData.payload = 5 septets and 5 bits
padding. Nevertheless if UserData.paddingBits = 0 still, paddingBits in
encodeUserData() will be 3. As a result, unnecessary one byte(5 + 3 bits)
padding is appended.

Test: Manual

Change-Id: I1cd19d5c491d8eed3b41bf5cb101fc77cb6090ab
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-08-27 17:28:41 +09:00
Pengquan Meng
c3427c01b3 Support WAC decoding in UMTS format
This add a decoder for WAC information. WAC is appended to the UMTS
cell broadcast message. The encoding is defined in ATIS-0700041.

Bug: 123096618
Test: build & manual test
Merged-In: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
Change-Id: I73dc22c27c2cfd47000ae65448fbc857ed9aa42f
(cherry picked from commit 14df7e3845369e7254e6aae13160c7e1caa1d28a)
(cherry picked from commit 1f64582bdf)
2019-08-26 16:24:14 +00:00