Commit Graph

2865 Commits

Author SHA1 Message Date
Jeff Sharkey
e92ed6fbb3 Define broadcasts for refreshing data plans.
We don't hand the Intent out to the Settings app, since we need to
carefully set whitelisting to allow the carrier app to wake up and
respond if it's dozing.

Define new "changed" broadcast that we'll send out whenever plans
are changed internally.

Test: builds, boots
Bug: 64133169
Change-Id: Iacdd06d8e273fd52c8fc83edab13c9c8453b28eb
2018-01-10 20:47:45 -07:00
Holly Jiuyu Sun
6a85d75fbc Merge "Merge EuiccProfile into EuiccProfileInfo." am: b01bd54b11 am: 6a5dc32ac3
am: 20f35f962e

Change-Id: I8f7cc7e81fc163119ffa15666f054b298d47fff1
2018-01-10 05:58:24 +00:00
Holly Jiuyu Sun
20f35f962e Merge "Merge EuiccProfile into EuiccProfileInfo." am: b01bd54b11
am: 6a5dc32ac3

Change-Id: I3d6df6f2bce5b6e19ce0ef2c13adc39fa1b9a862
2018-01-10 05:49:06 +00:00
Holly Jiuyu Sun
b01bd54b11 Merge "Merge EuiccProfile into EuiccProfileInfo." 2018-01-10 05:21:35 +00:00
yinxu
9e68465043 Merge "Check null before calling clone()" am: e1bdd513d0 am: 1c60aa03fc
am: 910cf3219c

Change-Id: I51ee6e90e464bfa1bae74ff8aacdf12378e15449
2018-01-10 03:38:21 +00:00
yinxu
910cf3219c Merge "Check null before calling clone()" am: e1bdd513d0
am: 1c60aa03fc

Change-Id: Ie06c696c8805e188d1af3121c66f3180a9845c16
2018-01-10 03:28:45 +00:00
Treehugger Robot
e1bdd513d0 Merge "Check null before calling clone()" 2018-01-10 03:07:26 +00:00
Jack Yu
35dfaa2d88 Merge "Exposed CDMA SID/NID get APIs" am: 0cb936a855 am: 46ffa48122
am: e936a81557

Change-Id: I357f89c8d8ab7032710063e5cd6d2f761c9e1bb4
2018-01-10 02:49:44 +00:00
Jack Yu
e936a81557 Merge "Exposed CDMA SID/NID get APIs" am: 0cb936a855
am: 46ffa48122

Change-Id: I4693b44d59a312def9f26ad54badd5533cd36dfd
2018-01-10 02:39:54 +00:00
TreeHugger Robot
7819f611de Merge "Add API EuiccController#startOtaUpdatingIfNecessary" 2018-01-10 02:38:11 +00:00
Treehugger Robot
0cb936a855 Merge "Exposed CDMA SID/NID get APIs" 2018-01-10 02:19:20 +00:00
Cassie Han
b76d28fee3 Merge "Expose a new public column network_type_bitmask and deprecate bearer_bitmask gradually." am: 72acefa6d8 am: b51df90f28
am: 23274614da

Change-Id: Id1b1667359a45259aea7d32cf7426f843ba0f33f
2018-01-10 01:33:29 +00:00
Cassie Han
23274614da Merge "Expose a new public column network_type_bitmask and deprecate bearer_bitmask gradually." am: 72acefa6d8
am: b51df90f28

Change-Id: I7045d6b684351e3545d24a52d16cb53d85483f20
2018-01-10 01:20:42 +00:00
Cassie Han
72acefa6d8 Merge "Expose a new public column network_type_bitmask and deprecate bearer_bitmask gradually." 2018-01-10 00:55:32 +00:00
yinxu
f45c946421 Check null before calling clone()
Bug: 67748005
Test: Basic telephony sanity

Change-Id: Ia46a82823b2d3c2bf3a6cb77a6fe191a7f7cb5d0
2018-01-09 16:30:28 -08:00
Malcolm Chen
904340088a Merge "Add isMobileDataEnabled in TelephonyManager." am: ed7eead23b
am: 6b943d5deb

Change-Id: I132cc6d3de77f20717a40884683fb0c81fbb7083
2018-01-10 00:06:27 +00:00
Treehugger Robot
ed7eead23b Merge "Add isMobileDataEnabled in TelephonyManager." 2018-01-09 23:46:55 +00:00
Holly Jiuyu Sun
e6153b9bff Merge EuiccProfile into EuiccProfileInfo.
After EuiccCard is moved to the platform, it can depend on
EuiccProfileInfo directly.

Bug: 70292228
Test: unit test
Change-Id: Ibe2c61ce9c4d2c99bac1cd9df8bb62414c46feee
2018-01-09 15:08:26 -08:00
Qingxi Li
6019f9ca34 Add API EuiccController#startOtaUpdatingIfNecessary
This function requests calling app has WRITE_EMBEDDED_SUBSCRIPTIONS
permission. It will check whether the OTA update needed to be done
first. If current eUICC OS isn't latest one and OTA needed to be
performed, it will update eUICC OS. When the OS update is started or
finished, a broadcast will be sent.

Bug: 37279356
Test: E2E
Change-Id: Iea86add4bdc01c79a8714af4b3a89735ba78ee74
2018-01-09 13:33:15 -08:00
Malcolm Chen
5f153006b0 Merge "Rename RadioNetworkConstants to NetworkConstants." am: 289b3fbca8 am: 4d2ffac581
am: c84d79740e

Change-Id: I2998277c63caa244aba07372ac8104aeeed85529
2018-01-09 21:10:15 +00:00
Jack Yu
9cd3b7b3f5 Exposed CDMA SID/NID get APIs
Made two existing hidden APIs getSystemId() and getNetworkId()
into public APIs.

Test: Telephony sanity tests
bug: 32718590
Change-Id: I436bd2699f8f805def753878d93e7dbf524e5f44
2018-01-09 12:25:52 -08:00
Malcolm Chen
c84d79740e Merge "Rename RadioNetworkConstants to NetworkConstants." am: 289b3fbca8
am: 4d2ffac581

Change-Id: I349cd20ecbcb801a1e93d4a215d65df432f5df69
2018-01-09 19:43:02 +00:00
Treehugger Robot
289b3fbca8 Merge "Rename RadioNetworkConstants to NetworkConstants." 2018-01-09 07:04:01 +00:00
Malcolm Chen
ffbaa9de1c Add isMobileDataEnabled in TelephonyManager.
Added a new hidden API isMobileDataEnabled in TelephonyManager.
Rename related APIs to isUserMobileDataEnabled,
isUserMobileDataEnabled and setUserMobileDataEnabled to better
clarify their functionality.

Bug: 69814555
Test: build
Change-Id: I2f186f1e7550cafbe4ee3a5af293c39274cbfeaa
Merged-In: I2f186f1e7550cafbe4ee3a5af293c39274cbfeaa
2018-01-08 18:08:22 -08:00
TreeHugger Robot
03057588bc Merge "Remove SystemApi annotation from EuiccManager.getOtaStatus()" 2018-01-09 02:03:01 +00:00
Jeff Sharkey
9c53dba9a3 Merge "Sigh, people wrote tests with weird assumptions." 2018-01-08 23:01:15 +00:00
Pankaj Kanwar
d3d0e82727 Merge "Change warning message for roaming for DTAG." 2018-01-08 22:02:18 +00:00
Cassie Han
658e7119a6 Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config." am: 9c1279d2ae
am: 28dd9dfeb5

Change-Id: I9b8a48709850b545b806fb605d1d94e9cdefe1d0
2018-01-08 21:28:02 +00:00
Jeff Sharkey
ddf216440d Sigh, people wrote tests with weird assumptions.
They're mocking a mock.  Nelson called.

Test: bit FrameworksTelephonyTests:com.android.internal.telephony.ServiceStateTrackerTest
Bug: 71707742
Change-Id: I30db29808fb22ade2247446782ee1ec3d4b947cb
2018-01-08 13:38:49 -07:00
Cassie Han
9c1279d2ae Merge "Migrate flag config_telephony_use_own_number_for_voicemail to Carrier Config." 2018-01-08 17:25:26 +00:00
Jiyong Park
15bf538cbe Remove SystemApi annotation from EuiccManager.getOtaStatus()
EuiccManager.getOtaStatus() has been annotated as @SystemApi, but its
declaring class EuiccManager has not. Therefore, the method hasn't been
recognized as SystemApi (does not appear in system-current.txt) and no
app is using the method.

This hasn't been harmful, but will soon trigger CTS failures when we do
the exact match for SystemAPIs; a runtime entity annotated as @SystemApi
have to exist in the documented API (e.g. system-current.txt). So
removing this no-op annotation.

Bug: 67891551
Test: m -j checkapi
Change-Id: I570ef5e5c88b6b9162116d3d3a7b17367efa9d7f
2018-01-08 14:08:17 +09:00
pkanwar
1e96faed34 Change warning message for roaming for DTAG.
Bug: 64106612
Test: manual
Change-Id: I9fee99d4f08521727466c2480dce0aff3a395fe3
2018-01-07 16:34:02 -08:00
Jeff Sharkey
717f52f2dd Intent to manage subscription plans.
Define an API for carrier apps to provide a deep-link into their app
for the user to see more details about their billing relationship,
such as upgrading plans.

The createManageSubscriptionIntent() method is ready for OS
components to use when deciding if they should show a "MANAGE"
button in their UI, and the returned Intent is fully constructed
and ready to roll.

Test: builds, boots
Bug: 64133169
Change-Id: I9b2775b7cba5313f517996870135eb4682082873
2018-01-04 16:11:51 -07:00
Cassie
661f63131b Migrate flag config_telephony_use_own_number_for_voicemail to Carrier
Config.

Bug: 65683508
Test: Basic telephony sanity
Change-Id: I74a24b60bfc0b527f7f0cb6d7084bb7b36aae6e5
2018-01-04 10:15:31 -08:00
Jake Wharton
695c53ee09 Correct Telephony source directory to match package.
Test: none
Bug: 71549250
Change-Id: I3e4c1d67240d83712f96d076d650af464a9c8277
2018-01-04 10:16:31 -05:00
Qingxi Li
dba6365966 Merge "Add API to get eUICC's OTA status" am: 15a410a75a
am: 412aecc2b0

Change-Id: I50ec4a84ddc30e5232bd0cabb8a721ebb7feca47
2018-01-04 02:09:32 +00:00
Malcolm Chen
51695b2647 Rename RadioNetworkConstants to NetworkConstants.
Rename RadioNetworkConstants to NetworkConstants and some classes
inside it.

Bug: 64132030
Test: Build
Change-Id: I5f3d2310e4f8e556aa32b00e6b6bbe6c4d709afb
2018-01-03 16:45:53 -08:00
Qingxi Li
cc6ad8cab7 Add API to get eUICC's OTA status
The function will return current eUICC's OTA status and requests calling
app has WRITE_EMBEDDED_SUBSCRIPTIONS.

Test: E2E
Bug: 37279356
Change-Id: I823ed7aa9d86530c4bebd4c0b1a00f0c607105ed
2018-01-03 12:42:01 -08:00
Malcolm Chen
2bac68a635 Merge "Move Ims related settings from global setting to subscription db." am: f2ebbd1356
am: 5bf5c028f7

Change-Id: Iab3a7a47da5961471bce7a8e29960ab75e68719b
2018-01-03 20:04:37 +00:00
Treehugger Robot
f2ebbd1356 Merge "Move Ims related settings from global setting to subscription db." 2018-01-03 19:42:24 +00:00
Qingxi Li
acaee9645b Merge "Add API to get eUICC's OTA status" 2018-01-02 23:30:52 +00:00
sqian
448c1fd15a Merge "Add ICCID_PREFIX column in CarridId DB" am: 73200d9ac9
am: 33395ea925

Change-Id: Ied8bb4b9302533bc13ebcd49c80cdd1ca6c0641d
2017-12-28 22:23:48 +00:00
Treehugger Robot
73200d9ac9 Merge "Add ICCID_PREFIX column in CarridId DB" 2017-12-28 22:07:25 +00:00
Jack Yu
e8f6d7cc27 Merge "Added AIDL for cell identity" am: 470ba9d471
am: a205f42172

Change-Id: I82ea2e0019e513a3404e8bde0cda6514203df7dc
2017-12-28 18:35:32 +00:00
Treehugger Robot
470ba9d471 Merge "Added AIDL for cell identity" 2017-12-28 18:17:34 +00:00
Jack Yu
23192ff57f Added AIDL for cell identity
Added AIDL for CellIdentityCdma, CellIdentityGsm, CellIdentityLte
and CellIdentityWcdma. This is the preliminary change for IWLAN
refactoring as network registration state will be moving into
system API.

Test: Build
bug: 64132030
Merged-In: I6763d4b6e51cf354b01ee5bfb5d37114394f3063
Change-Id: I6763d4b6e51cf354b01ee5bfb5d37114394f3063
(cherry picked from commit 31db18a4c0)
2017-12-27 23:29:49 -08:00
Malcolm Chen
372da16813 Move Ims related settings from global setting to subscription db.
Bug: 66699661
Test: Manual

Change-Id: Id0d7795401f120b6a8704304a368d926a6610395
Merged-In: Id0d7795401f120b6a8704304a368d926a6610395
2017-12-28 01:03:23 +00:00
Jack Yu
31db18a4c0 Added AIDL for cell identity
Added AIDL for CellIdentityCdma, CellIdentityGsm, CellIdentityLte
and CellIdentityWcdma. This is the preliminary change for IWLAN
refactoring as network registration state will be moving into
system API.

Test: Build
bug: 64132030
Change-Id: I6763d4b6e51cf354b01ee5bfb5d37114394f3063
2017-12-27 16:19:20 -08:00
sqian
642a8d2d10 Add ICCID_PREFIX column in CarridId DB
Bug: 64131637
Test: Treehugger runs providers/telephony/CarrierIdProviderTest.java

Change-Id: I0d118ab181dfe17a7976a0b654989a3662594d4a
Merged-In: I0d118ab181dfe17a7976a0b654989a3662594d4a
(cherry picked from commit 4fe8280dc6)
2017-12-27 15:28:06 -08:00
goneil
663150a708 Merge "Require that caller holds SEND_SMS and MODIFY_PHONES_STATE permissions" am: ee48176ad6
am: f220cdfca4

Change-Id: Ic809d19c8d5542b8f3a7d2a8b245a4db971165e3
2017-12-27 21:37:28 +00:00