TelephonyManager.
The purpose is to expose them as @SystemApi as they are used externally.
Bug: 140908357
Test: unittest
Change-Id: I3dabcb853ebbd648b20d97b446db11476780be25
As part of mainline, remove telephony dependencies from RcsService
and PresencePolling apps.
Bug: 147319232
Test: atest CtsTelephonyTestCases
Change-Id: Id25bfffc1c40db8b183206dc598165272da7356c
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
Rename isDataCapable to isDataConnectionEnabled as a System API for
System UI.
Test: RILTest; Treehugger; cts
Bug: 147017757
Change-Id: I96b45575eb7f030f3dcb9539c06f8ec25539e2e9
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
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
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
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
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
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
from protected broadcast list.
The broadcast was removed in I8fffe2996f233f2422173e9823810523ce80f2e5
Bug: 140908357
Test: make
Change-Id: I12d18e307ca253c81b1e858b3d27474a0d01aac6
Made setPolicyDataEnabled a SystemApi and added
annotation for appropriate permission checked
in PhoneInterfaceManager.
Bug: 146654731
Test: FrameworkServiceTests
Change-Id: I396bf25d1e6025764bf43a64ddaa61c8e22353f9