Commit Graph

3936 Commits

Author SHA1 Message Date
Jack Yu
4358ca81ed Merge "Added read phone state permission for getNetworkCountryIso" 2019-10-03 17:22:59 +00:00
Jordan Liu
566ff18cc5 Merge "Expose CdmaSmsCbProgramData as SystemApi" 2019-10-01 17:39:17 +00:00
Amit Mahajan
87778b8652 Merge "Remove unused @hide APIs from SmsManager." 2019-09-30 20:48:53 +00:00
Amit Mahajan
24c01a2f79 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
Change-Id: If22a85887c1aae0ab80562d58bc08c6965fd470f
2019-09-30 11:22:20 -07:00
Shuo Qian
f31d7e8edf Merge "Integrate the active emergency session listener in TelephonyRegistry" 2019-09-28 02:18:54 +00:00
Jordan Liu
e8fb76af19 Expose CdmaSmsCbProgramData as SystemApi
Only getOperation and getCategory are currently used, so we only expose
those parts of the functionality. Eventually if we move BearerData to
the CBR app we will also have to expose the constructor, at which point
we may also want to expose the other constants that the constructor
uses, but for now this is okay.

Bug: 135956699
Test: manual
Change-Id: I1d3ba564372845f9b8a470adf82e84df745c02a7
2019-09-27 16:34:34 -07: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
Jack Yu
105f65068c Added read phone state permission for getNetworkCountryIso
The slot based version of getNetworkCountryIso is a system API.
So it needs to be gaurded by permission.

Bug: 141646066
Test: Telephony sanity tests
Change-Id: I810ff0b77b93870ae3f62769977c7094789d0a5a
2019-09-26 11:44:52 -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
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
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