Commit Graph

1983 Commits

Author SHA1 Message Date
TreeHugger Robot
de6f60a91f Merge "Use changeID and Compatibility.isChangeEnabled for Mainline" 2020-01-14 03:15:38 +00:00
Collin Fijalkovich
3e5b5de760 Merge "TelephonyManager: cache service handles" 2020-01-14 01:09:15 +00:00
Shuo Qian
d0c818129a Use changeID and Compatibility.isChangeEnabled for Mainline
Test: Treehugger
Bug: 145147528
Bug: 147600208

Change-Id: I8092f4c7d3be046da337cdcbadeed89844b3aaab
2020-01-13 17:04:14 -08:00
Xiangyu/Malcolm Chen
34fb1da756 Merge "Move ACTION_CARRIER_* intent and extras from TelephonyIntents to TelephonyManager." 2020-01-13 21:56:31 +00:00
Neil Fuller
6199194cd7 Merge "Remove android.telephony.action.NETWORK_SET_TIME" 2020-01-13 08:51:17 +00:00
TreeHugger Robot
c54923ca57 Merge "Add new @SystemApis for RCS dependencies" 2020-01-11 02:54:22 +00:00
Malcolm Chen
93fcf24a23 Move ACTION_CARRIER_* intent and extras from TelephonyIntents to
TelephonyManager.

The purpose is to expose them as @SystemApi as they are used externally.

Bug: 140908357
Test: unittest
Change-Id: I3dabcb853ebbd648b20d97b446db11476780be25
2020-01-10 16:39:36 -08:00
Shuo Qian
2f1b6c4162 Merge "Make hidden API isDataCapable for Telephony" 2020-01-10 22:17:43 +00:00
Brad Ebinger
f8e4614a91 Add new @SystemApis for RCS dependencies
As part of mainline, remove telephony dependencies from RcsService
and PresencePolling apps.

Bug: 147319232
Test: atest CtsTelephonyTestCases
Change-Id: Id25bfffc1c40db8b183206dc598165272da7356c
2020-01-10 13:24:12 -08:00
Automerger Merge Worker
83b9c07104 Merge "Deprecate some UICC related APIs in TelephonyManager" am: fdd350b67a am: 4a0f894e07 am: 907c95f3c7
Change-Id: I967ff804d2dabea9215478d742d7968754c060bc
2020-01-09 23:27:30 +00:00
Automerger Merge Worker
907c95f3c7 Merge "Deprecate some UICC related APIs in TelephonyManager" am: fdd350b67a am: 4a0f894e07
Change-Id: Ic8064420142d961c92e04d606b74b952706c7146
2020-01-09 23:15:56 +00:00
Rambo Wang
fdd350b67a Merge "Deprecate some UICC related APIs in TelephonyManager" 2020-01-09 22:59:44 +00:00
Tim Murray
d597b9b254 TelephonyManager: cache service handles
Instead of looking up service handles before every API call, cache service
handles and remove them on endpoint death.

Test: boots, works
bug 140788621

Change-Id: If9bb6840c43f004bb7d363db870d0a05f2d69d6c
2020-01-09 10:55:27 -08:00
Neil Fuller
ad7694357d Remove android.telephony.action.NETWORK_SET_TIME
Remove the now-unused android.telephony.action.NETWORK_SET_TIME
intent.

Bug: 140712361
Test: treehugger
Test: atest com.android.server.timedetector
Change-Id: Ifa64d0dfa82a2db7742c0b3fcc76ad73b231a9f9
2020-01-09 16:44:44 +00:00
Sarah Chin
df94694c42 Merge "Handle 5G meteredness in telephony framework" 2020-01-09 05:03:24 +00:00
Automerger Merge Worker
e576ba8f8d Merge "(Backport) Pipe through featureId from caller to permission checks in telephony code" am: 0104ce5293 am: f5a037d685
Change-Id: I09813d60dacabbd98e395816f9d7cb6d965a4f19
2020-01-09 03:45:21 +00:00
Treehugger Robot
0104ce5293 Merge "(Backport) Pipe through featureId from caller to permission checks in telephony code" 2020-01-09 02:48:14 +00:00
Shuo Qian
291415806f Make hidden API isDataCapable for Telephony
Rename isDataCapable to isDataConnectionEnabled as a System API for
 System UI.

Test: RILTest; Treehugger; cts
Bug: 147017757
Change-Id: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
2020-01-08 18:39:44 -08:00
Sarah Chin
0b7efca5e6 Merge "Handle 5G meteredness in telephony framework" into qt-qpr1-dev-plus-aosp 2020-01-09 02:23:13 +00:00
Sarah Chin
1431ab2ee5 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
Merged-In: Ic8c5938c4a414ce63303a1fa25af60a0082b1ba9
(cherry-picked from ag/9302701)
2020-01-09 02:13:47 +00:00
Sarah Chin
e8aa5acef5 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
Merged-In: Ic8c5938c4a414ce63303a1fa25af60a0082b1ba9
(cherry-picked from ag/9302701)
2020-01-09 02:13:26 +00:00
Peter Wang
3e2fb955a8 Merge "[Telephony Mainline] Refactored ServiceManager calls" 2020-01-08 23:57:48 +00:00
Automerger Merge Worker
a215171da1 Merge "Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED" am: b42b1e7302 am: d8b41fa1d0 am: 5eeb96ebd6
Change-Id: I063c28763198bc33ca6e35fe259fbb649df2fecf
2020-01-08 22:50:16 +00:00
Automerger Merge Worker
5eeb96ebd6 Merge "Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED" am: b42b1e7302 am: d8b41fa1d0
Change-Id: I48c9b36fe1f2f2a9331afaeb33bc99819011ba0b
2020-01-08 22:44:42 +00:00
Philip P. Moltmann
06b07e9e25 (Backport) Pipe through featureId from caller to permission checks in telephony
code

Test: atest FrameworksTelephonyTests CtsAppOpsTestCases
Bug: 136595429
Fixes: 146350559
Change-Id: Ie58007cf2a4e4a39cdfd72822150efce71dfbe84
Merged-In: I7ef41e8961e48d40e5685c4a521e83cb20953e48
2020-01-08 14:16:54 -08:00
Meng Wang
b42b1e7302 Merge "Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED" 2020-01-08 22:05:07 +00:00
Makoto Onuki
57e56f2d3c Add a copy of Rlog for the telephony mainline module
We can't expose android.telephony.Rlog directly to the telephony
module as @SystemApi because we can't protect it from app code.

So instead, expose a lower level API from the Log class to the
telephony module with client=SystemApi.Client.MODULE_LIBRARIES so
it can only be accessed by boot classpath code, and then create
a copy of Rlog in the telephony module, which internally use the
aforementioned API.

Note:
- Support for MODULE_LIBRARIES is not fully in yet, so for now
the Log.logToRadioBuffer() API is still hidden.
- Once all the infra is in, we can expose logToRadioBuffer.
- Once we mark it with MODULE_LIBRARIES, ART will protect it
against app code, so no further protection will be needed.

Bug: 144374158
Test: boot
Change-Id: I5be0497a17d00152286fe3351bf58e75b675ceb6
2020-01-07 16:40:35 -08:00
Peter Wang
d9eebca1c2 [Telephony Mainline] Refactored ServiceManager calls
to use TelephonyServiceManager

Bug: 142255256
Bug: 112725883
Test: Build, SimSmsTest, TelephonyRegistryTest, SimPhoneBookTest, OpportunisticNetworkServiceTest
Change-Id: I50068a02f1f5a4ff51acdbe4d1ded09ec4c4d6b8
2020-01-07 16:11:47 -08:00
Artur Satayev
74cb719964 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I547d7fb2e6bc2e9707bbc0d14dc1e8cd632c5a23
2020-01-07 14:19:21 +00:00
TreeHugger Robot
61b4e7136e Merge "Made setPolicyDataEnabled a SystemApi" 2020-01-07 05:39:30 +00:00
Automerger Merge Worker
04b4c4613b Merge "isTetheringApnRequired's permission is wrong." am: 6297d2548d am: bdce8daaf6 am: 281310f168
Change-Id: I7768a96a105d637c0293a0c94bc76967db722006
2020-01-07 05:05:05 +00:00
Automerger Merge Worker
281310f168 Merge "isTetheringApnRequired's permission is wrong." am: 6297d2548d am: bdce8daaf6
Change-Id: I8f261ea142bc8fe2b31dd95061f6fdcd50407977
2020-01-07 04:50:50 +00:00
SongFerng Wang
6297d2548d Merge "isTetheringApnRequired's permission is wrong." 2020-01-07 04:34:59 +00:00
Automerger Merge Worker
8250be7908 Merge "Change TelephonyManager#isManualNetworkSelectionAllowed to system api" am: 03cbd5d35c am: 8c349cff44 am: 3ea281feb8
Change-Id: Iee06212929aef212ec1087235c736afb54336f0a
2020-01-07 03:31:20 +00:00
Automerger Merge Worker
3ea281feb8 Merge "Change TelephonyManager#isManualNetworkSelectionAllowed to system api" am: 03cbd5d35c am: 8c349cff44
Change-Id: I02a786fbf6ea2b9378ba62159034ba42efb01e56
2020-01-07 03:18:44 +00:00
Betty Chang
02141e80f7 Merge "[Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager" 2020-01-07 02:41:52 +00:00
Tom Hsu
03cbd5d35c Merge "Change TelephonyManager#isManualNetworkSelectionAllowed to system api" 2020-01-07 02:24:31 +00:00
Rambo Wang
d9832ed2ed Deprecate some UICC related APIs in TelephonyManager
In specific, the following APIs are marked deprecated:
- TelephonyManager#iccOpenLogicalChannel
- TelephonyManager#iccCloseLogicalChannel
- TelephonyManager#iccCloseLogicalChannelBySlot
- TelephonyManager#iccTransmitApduLogicalChannel
- TelephonyManager#iccTransmitApduLogicalChannelBySlot
- TelephonyManager#iccTransmitApduBasicChannel
- TelephonyManager#iccTransmitApduBasicChannelBySlot
- TelephonyManager#iccExchangeSimIO
- TelephonyManager#sendEnvelopeWithStatus

The comments of the APIs are updated, suggesting to switch to
android.se.omapi.SEService APIs instead.

Telephony APIs do not provide any resource management for opened
logical channels, so it's easy for apps to open channels and
never close them. Secure Element Service does provide resource
management, so we are directing apps to use those APIs instead.

Bug: 146360599
Test: N/A
Change-Id: Id44402c637aaa77c77ee7672e0ceddf1bee20f7c
2020-01-06 17:12:40 -08:00
Automerger Merge Worker
3db9e958ab Merge "Create new APIs for overriding APNs" am: 13beb87783 am: 4d1771a3fb
Change-Id: I202aa723edabdca84eddb679233ac0dcf6cfacd2
2020-01-07 00:10:24 +00:00
Hall Liu
13beb87783 Merge "Create new APIs for overriding APNs" 2020-01-06 23:14:44 +00:00
Jayachandran Chinnakkannu
0aaa6beedf Merge "Make the following telephony intents as system API" 2020-01-06 22:00:32 +00:00
tom hsu
070f90cab2 Change TelephonyManager#isManualNetworkSelectionAllowed to system api
Bug: 146036213
Test: make and atest pass
Change-Id: I185d4b1bb2061dbde3b18e6e9f0baf6461ff609d
2020-01-06 16:03:21 +00:00
changbetty
8f823800d7 [Mainline] Move the setAlwaysAllowMmsData from SubscriptionManager to TelephonyManager
Bug: 146309719
Test: make
Change-Id: Ibb68cd4e6a6ba49c56b313380ddf16734813459b
2020-01-06 16:59:28 +08:00
Hall Liu
39839dc63b Create new APIs for overriding APNs
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.

Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest

Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
Merged-In: I6c6214424169c05fd452db71a8c6593f8473b9d4
2020-01-05 14:24:22 -08:00
Hall Liu
8106f9f511 Merge "Create new APIs for overriding APNs" 2020-01-05 21:55:41 +00:00
Hall Liu
efc4962eba Create new APIs for overriding APNs
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.

Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest

Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
2020-01-03 17:09:11 -08:00
Jayachandran C
041e769c09 Make the following telephony intents as system API
ACTION_REQUEST_OMADM_CONFIGURATION_UPDATE
ACTION_DEFAULT_DATA_SUBSCRIPTION_CHANGED
ACTION_DEFAULT_VOICE_SUBSCRIPTION_CHANGED

Bug: 146680426
Test: Build
Change-Id: I8ba6d564347777204e2563f87a81f6b0b905d43f
2020-01-03 16:43:23 -08:00
Malcolm Chen
a3f8de5463 Hook supplyPin and supplyPuk to proper impl with subId specified
All TelephonyManager APIs are subId specified, where the public  API call
should map to a subId specific implementation via ITelephony and
PhoneInterfaceManager. But that's not the case for supplyPin and
supplyPuk. So fixing it and clean up unused aidl calls.

Bug: 146593004
Test: manual - pin and puk
Change-Id: If496674ef2ddc608264cf7b12905614698dc7e2d
2020-01-02 15:27:33 -08:00
Meng Wang
51b2141041 Remove ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED
from protected broadcast list.

The broadcast was removed in I8fffe2996f233f2422173e9823810523ce80f2e5

Bug: 140908357
Test: make
Change-Id: I12d18e307ca253c81b1e858b3d27474a0d01aac6
2020-01-02 15:03:47 -08:00
Daniel Bright
79a4f8857b Made setPolicyDataEnabled a SystemApi
Made setPolicyDataEnabled a SystemApi and added
annotation for appropriate permission checked
in PhoneInterfaceManager.

Bug: 146654731
Test: FrameworkServiceTests
Change-Id: I396bf25d1e6025764bf43a64ddaa61c8e22353f9
2020-01-02 14:24:30 -08:00