Commit Graph

11372 Commits

Author SHA1 Message Date
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
Nathan Harold
8b804f3308 Merge "Add Callback for Registration Failure" 2020-01-07 18:17:03 +00: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
Peter Wang
62a1145512 Merge "[Telephony Mainline] Move CarrierAppUtils and LocationAccessPolicy to telephony common" 2020-01-07 10:29:54 +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
Peter Wang
9bacfe13f4 Merge "[Telephony Mainline] Expose getActiveSubscriptionIdList" 2020-01-07 04:15:30 +00:00
Peter Wang
c61b1edc97 [Telephony Mainline] Move CarrierAppUtils and LocationAccessPolicy to telephony common
Bug: 146904426
Test: Build
Change-Id: I6f6d24fd0adab803899b25a47199839bcbb09eb0
2020-01-06 20:14:24 -08: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
TreeHugger Robot
72874be4c7 Merge "Make SignalStrength constructor system APIs" 2020-01-07 02:10:35 +00:00
Automerger Merge Worker
af1eb246ef Merge "SMS service loads MMS config directly instead" am: 250a41a139 am: e93312767b
Change-Id: I654b7a4b46f7f0795c0e39d364392e247edb174f
2020-01-07 01:50:47 +00:00
Automerger Merge Worker
48c8548945 Merge "Expose SignalStrength.CREATOR" am: b0546af594 am: 9ca0d16b2e am: 3cfdaf97d4
Change-Id: If794d46074f6e09e65717a90a4b4084d4b26cc12
2020-01-07 01:32:54 +00:00
Treehugger Robot
250a41a139 Merge "SMS service loads MMS config directly instead" 2020-01-07 01:29:05 +00:00
Automerger Merge Worker
3cfdaf97d4 Merge "Expose SignalStrength.CREATOR" am: b0546af594 am: 9ca0d16b2e
Change-Id: Ie785dcbdbe287ad6c4c7ecf94a2bb412bbce1408
2020-01-07 01:20:38 +00:00
Treehugger Robot
b0546af594 Merge "Expose SignalStrength.CREATOR" 2020-01-07 01:02:53 +00:00
Taesu Lee
5f39e5d863 SMS service loads MMS config directly instead
getCarrierConfigValues() is removed from MmsManager and SMS service
loads Carrier configuration values directly since MmsService could
return null or cached config instead if an app requests the config by
receiving ACTION_CARRIER_CONFIG_CHANGED before the config is loaded
newly in MmsService by ACTION_CARRIER_CONFIG_CHANGED.

Bug: 145768042
Test: manual

Change-Id: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e
Merged-In: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-07 00:12:54 +00:00
Sarah Chin
8bf65d078f Merge "SMS service loads MMS config directly instead" 2020-01-07 00:12:21 +00: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
Peter Wang
5a07a245c9 [Telephony Mainline] Expose getActiveSubscriptionIdList
Bug: 146362577
Fix: 146362577
Test: Build
Change-Id: Ic2886c8af0ef176cffcd674eb5b1a09cb49cc8f0
2020-01-06 16:06:34 -08:00
Hall Liu
13beb87783 Merge "Create new APIs for overriding APNs" 2020-01-06 23:14:44 +00:00
Taesu Lee
44fb1904e3 SMS service loads MMS config directly instead
getCarrierConfigValues() is removed from MmsManager and SMS service
loads Carrier configuration values directly since MmsService could
return null or cached config instead if an app requests the config by
receiving ACTION_CARRIER_CONFIG_CHANGED before the config is loaded
newly in MmsService by ACTION_CARRIER_CONFIG_CHANGED.

Bug: 145768042
Test: manual

Change-Id: Idc21015cab2902bd0f67e2131ea89b04c4fc4f5e
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2020-01-06 15:09:48 -08:00
Jayachandran Chinnakkannu
0aaa6beedf Merge "Make the following telephony intents as system API" 2020-01-06 22:00:32 +00:00
Hai Shalom
a5173faa2f Merge "[Encrypted IMSI] Add support for EAP Method prefix" 2020-01-06 21:14:06 +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
Xiangyu/Malcolm Chen
a4e58b7e19 Merge changes from topic "146593004"
* changes:
  Use proper Telephony API to supply sim pin and puk.
  Hook supplyPin and supplyPuk to proper impl with subId specified
2020-01-04 02:07:01 +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
Xiangyu/Malcolm Chen
fe5de982c7 Merge "[Telephony Mainline] Make newFromBundle and fillInNotifierBundle System API" 2020-01-03 23:22:55 +00:00
Sooraj Sasindran
89e4e0c1e9 Make SignalStrength constructor system APIs
Make SignalStrength constructor system APIs so that
it can be accessed by TelephonyRegistry

Bug: 140908357
Test: make
Change-Id: I80693b0f1b1f9de1a8c93ce8a23a816346afb634
2020-01-03 14:05:04 -08:00
Automerger Merge Worker
55df86c362 Merge "Removed LTE_CA from Annotations" am: 8ab4812386 am: 8288b90353
Change-Id: I25f4bb36d55d20f8b4d99fecfa238bdd60bc0d44
2020-01-03 19:11:22 +00:00
Treehugger Robot
8ab4812386 Merge "Removed LTE_CA from Annotations" 2020-01-03 18:51:33 +00:00
Daniel Bright
f88d11a37a Removed LTE_CA from Annotations
Teams need to directly link to Annotations and having
a @hide as a const prevents that @SystemApi methods from
doing this.

Bug: 146084549
Test: FrameworkServiceTests
Merged-In: I2d6ad7621560ef73b10d6eb861c44700b27a2ea6
Change-Id: I2d6ad7621560ef73b10d6eb861c44700b27a2ea6
2020-01-03 10:06:08 -08:00
Automerger Merge Worker
59ddb32fde Merge "Moved RilRadioTechnology annotation" am: d031947100 am: 11caff98ff
Change-Id: I0cf1626bd1588a48f092fc7d2ae717251a7f4240
2020-01-03 03:22:10 +00:00
Treehugger Robot
d031947100 Merge "Moved RilRadioTechnology annotation" 2020-01-03 02:10:39 +00:00
Nathan Harold
5e6e983cad Add Callback for Registration Failure
Add a callback to PhoneStateListener to indicate that
a registration procedure has failed.

Bug: 143187047
Test: make update-api && make
Change-Id: I4a4ba4479dfd465a9d8063135f3b4bf4e1323e99
2020-01-02 17:01:36 -08:00
Daniel Bright
809d36111f Removed LTE_CA from Annotations
Teams need to directly link to Annotations and having
a @hide as a const prevents that @SystemApi methods from
doing this.

Bug: 146084549
Test: FrameworkServiceTests
Change-Id: I2d6ad7621560ef73b10d6eb861c44700b27a2ea6
2020-01-02 16:51:00 -08:00
Malcolm Chen
8a8b120093 [Telephony Mainline] Make newFromBundle and fillInNotifierBundle System
API

The APIs are used in several placed where listens to
SERVICE_STATE_CHANGE broadcast.

Bug: 140908357
Test: build
Change-Id: I84543dbb056694d975799c7959c7ed66e286c530
2020-01-02 15:27:33 -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
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
Chen Xu
68725714c9 Merge "move UiccAppType to annotation class" 2020-01-02 18:36:49 +00:00
Xiangyu/Malcolm Chen
49599938ab Merge "Make sanitizeLocationInfo System Api." 2020-01-02 18:30:05 +00:00
Chen Xu
d1b06a2090 move UiccAppType to annotation class
this is to allow non-telephony mainline module statically link
to telephony annotatons.

Bug: 135956699
Test: Manual
Change-Id: I1207418cc83217cefc603589496660aa0d4be202
2020-01-01 22:46:48 -08:00