Commit Graph

3599 Commits

Author SHA1 Message Date
Xiangyu/Malcolm Chen
24328b0c59 Merge "Don't return hidden subscription in getActiveSubIdList" 2019-02-22 00:54:17 +00:00
Malcolm Chen
d91d6b24f8 Don't return hidden subscription in getActiveSubIdList
Now getActiveSubscriptionInfoList will not return hidden
subscriptions. And getActiveSubIdList should be consistent
with it. In the mean time, internal SubscriptionController
API should have a way to specify if caller wants hidden
subscriptions or not.

Bug: 124690005
Test: manual
Change-Id: I46ccae88167c2988d71a6e07da2937bf9644a1f0
2019-02-22 00:49:37 +00:00
Michele Berionne
f8bfbbb96a Merge "Add checks on multisim capabilities." 2019-02-21 21:24:44 +00:00
Nathan Harold
e3d149bbdd Merge "Expose the Radio HAL Version for Test Purposes" am: a6dda25ac9 am: 225ef93d21
am: 0025fc3286

Change-Id: I3fb947c31e5a6fb46d0216fed77e8655ac43492f
2019-02-20 13:10:40 -08:00
Nathan Harold
0025fc3286 Merge "Expose the Radio HAL Version for Test Purposes" am: a6dda25ac9
am: 225ef93d21

Change-Id: Ie4b60e4ba25b69eaef298887ca803b428620e33d
2019-02-20 12:42:50 -08:00
Nathan Harold
a6dda25ac9 Merge "Expose the Radio HAL Version for Test Purposes" 2019-02-20 17:50:41 +00:00
Xiangyu/Malcolm Chen
ad44dd90b1 Merge "Adding validate before switch feature." am: f2cf09c945
am: 86ca0ba02f

Change-Id: Ib886edf8fc3d1fa1703adcc0f91e8dff606face0
2019-02-19 21:47:24 -08:00
Xiangyu/Malcolm Chen
f2cf09c945 Merge "Adding validate before switch feature." 2019-02-20 05:25:00 +00:00
Xiangyu/Malcolm Chen
1995aaf852 Merge "Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE" 2019-02-20 05:07:30 +00:00
Xiangyu/Malcolm Chen
4d67623dad Merge "Move getPhoneCount implementation back to TelephonyManager." am: 7d6e085229
am: 2938bf23f7

Change-Id: Id5d2e92feb2a40c8cd6cc3206d3b2a563abd4117
2019-02-19 19:24:11 -08:00
Malcolm Chen
d78dac0bd1 Adding validate before switch feature.
In CBRS DSDS mode, switching data to CBRS network will require
validation first. Adding a component of CellularNetworkValidator
to trigger the validation and pass the result back to PhoneSwitcher.

Bug: 118348832
Test: manual
Change-Id: I689aa494f031834b5cee76906922ebdafa9c77ed
Merged-In: I689aa494f031834b5cee76906922ebdafa9c77ed
2019-02-20 02:52:14 +00:00
Malcolm Chen
1a1689a32c Move getPhoneCount implementation back to TelephonyManager.
Moving it inside iTelephony creates problems. Some components call
getPhoneCount during initialization while iTelephony service is not
even running, which will cause phone process to crash.

Bug: 123667461
Test: manual
Change-Id: I51199eaf0bd87055c21fe61af50f4c353137d621
Merged-In: I51199eaf0bd87055c21fe61af50f4c353137d621
2019-02-20 00:49:58 +00:00
Malcolm Chen
026451d9fb Rename PREFERRED_DATA_SUBID_CHANGE to ACTIVE_DATA_SUB_CHANGE
Redefine a PhoneStateListener event so that it reflects which
subscription is currently being used for Internet data. It could
be default user data subscription or currently active opportunistic
subscription.

Bug: 124260187
Test: unittest
Change-Id: Icb90b5bd93845c29157cafddcd53335728638ec2
2019-02-19 14:48:17 -08:00
Michele
1b9e7d1f33 Add checks on multisim capabilities.
Rename method isMultisimCarrierRestricted to isMultisimSupported to
indicate extended scope that includes checks on the capabilities of the
hardware to support multi-SIM configuration.

Bug: 123537730
Test: Compilation, test application
Change-Id: I20860c7a25b054b8312c144544726337e09559e2
2019-02-16 00:36:15 -08:00
Nathan Harold
69e0ed19e1 Expose the Radio HAL Version for Test Purposes
To properly check that values are being populated by
devices supporting newer HALs, it is necessary to
avoid enforcement on devices using older HAL versions.
Exposing the HAL version for test purposes allows that.

Bug: 122834594
Test: compilation
Change-Id: Idadc2fc8dd4f7b4765af90d92b62eea3e017a843
2019-02-15 09:56:00 -08:00
Brad Ebinger
edf9cd7bc3 Merge "SMS: Add a compatible API getRecipientAddress for 3GPP2 SMS" am: ca2abcf735 am: e652e8dc45
am: 44f24957d4

Change-Id: Ibb9b8bb8a34e51b7f10815c2c338d7ac4b150c81
2019-02-14 22:04:30 -08:00
Brad Ebinger
44f24957d4 Merge "SMS: Add a compatible API getRecipientAddress for 3GPP2 SMS" am: ca2abcf735
am: e652e8dc45

Change-Id: I16cb92d7cc1b64dec6c4625643d92bb187137532
2019-02-14 17:47:52 -08:00
Brad Ebinger
ca2abcf735 Merge "SMS: Add a compatible API getRecipientAddress for 3GPP2 SMS" 2019-02-14 23:40:44 +00:00
Hall Liu
8c63ea5b54 Merge "Implement more location checks" am: a3aae9fe4b am: 8b98155789
am: 74c000a5ba

Change-Id: I3a75d4497453eb8284929e420f933332c792ef83
2019-02-13 17:16:08 -08:00
Hall Liu
74c000a5ba Merge "Implement more location checks" am: a3aae9fe4b
am: 8b98155789

Change-Id: Ic1ce05e5aab661de9fd461819c9b98f81ffa8763
2019-02-13 16:32:19 -08:00
Pengquan Meng
95abfa9328 Merge "Add getSlotsMapping to TelephonyManager" am: 600827273c
am: 0ccab45a19

Change-Id: Ia14126704a30a77a173cd307a48fb3261b317b1f
2019-02-13 15:43:47 -08:00
Hall Liu
a3aae9fe4b Merge "Implement more location checks" 2019-02-13 23:21:43 +00:00
Hall Liu
ee313737e9 Implement more location checks
Make the following modifications to APIs and required permissions.
Move the following APIs from checking coarse permission to fine
permission (except for apps targeting pre-Q):
TelephonyManager.getCellLocation()
(deprecated) TelephonyManager.getNeighboringCellInfo()
TelephonyManager.getAllCellInfo()
TelephonyManager.requestCellInfoUpdate()
PhoneStateListener#onCellLocationChanged
PhoneStateListener#onCellInfoChanged

Start checking for fine permission on the following APIs:
(Note -- these will only be logged, not denied until a future CL)
TelephonyManager.requestNetworkScan()
TelephonyScanManager.requestNetworkScan()
NetworkScanCallback#onResults

Start checking for coarse permission on the following APIs:
(Note -- these will only be logged, not denied until a future CL)
TelephonyManager#getAvailableNetworks
TelephonyManager#getServiceStateForSubscriber and #getServiceState
PhoneStateListener#onServiceStateChanged

Bug: 116258458
Test: manual via testapps
Change-Id: I45326ddacbcf538da50ca544d67eed12cf0c0861
2019-02-13 11:07:37 -08:00
Mengjun Leng
43c7335deb SMS: Add a compatible API getRecipientAddress for 3GPP2 SMS
The method getDisplayOriginatingAddress() return null for submit
pdu of 3GPP, it will cause applicatoin can not get address of sent
message. Thread ID is unable to be created for this invalid message
record.

Add an API getRecipientAddress() for SubmitPdu in SmsMessage.

Bug: 73012819
Change-Id: Ib3e98ad3f115038656db1ea7ff5b05491b28b85d
2019-02-12 19:54:05 -08:00
Brad Ebinger
f9fdd303e8 Merge "Telephony: Add 7bit Ascii support for long message" am: 76bc8cf927
am: abbb73a70a

Change-Id: I29e52f3b59472d801716c4b6828d780e868af707
2019-02-12 19:10:06 -08:00
Pengquan Meng
0c44939a95 Add getSlotsMapping to TelephonyManager
Bug: 123101769
Test: build
Merged-In: I416d741947b1a15e66ebf71b8104c4b2ec95e310
Change-Id: I416d741947b1a15e66ebf71b8104c4b2ec95e310
(cherry picked from commit 83e7b920de)
2019-02-12 16:24:22 -08:00
Brad Ebinger
76bc8cf927 Merge "Telephony: Add 7bit Ascii support for long message" 2019-02-12 23:55:32 +00:00
Brad Ebinger
342c633ce0 Merge "Telephony: Add 7bit Ascii support for long message" 2019-02-12 21:39:15 +00:00
Xiangyu/Malcolm Chen
30a48d7a09 Merge "Adding callback for setPreferredDataSubscriptionId." 2019-02-12 18:40:09 +00:00
Nazanin Bakhshi
1e843deee1 Merge "Make isRebootRequiredForModemConfigChange SystemApi" am: 55faf37439 am: 367a7baf96
am: a2cbf01609

Change-Id: I14564c836466694523eb25a352b0ec39c73e919e
2019-02-11 17:47:51 -08:00
Nazanin Bakhshi
a2cbf01609 Merge "Make isRebootRequiredForModemConfigChange SystemApi" am: 55faf37439
am: 367a7baf96

Change-Id: I23e289d24c918004596a465f3f572b63bb0f0879
2019-02-11 17:21:50 -08:00
Nazanin Bakhshi
55faf37439 Merge "Make isRebootRequiredForModemConfigChange SystemApi" 2019-02-12 00:37:43 +00:00
Xiangyu/Malcolm Chen
cfab2e7015 Merge changes from topics "118348832", "120945564" am: 52a31598e7
am: 0c15f98874

Change-Id: I52fa7a18545f5e5bee64314cd47f8f6cb026f0a3
2019-02-11 16:13:42 -08:00
Nazanin Bakhshi
0e3e93a07c Make isRebootRequiredForModemConfigChange SystemApi
Bug: 124074656
Test: build
Change-Id: I32c6b0786d32b05d690cea862e977e6a2b756c90
2019-02-11 10:37:45 -08:00
Michael Groover
6e96da2927 Tempoarily allow priv-apps access to device identifiers
Bug: 123646983
Test: Manually verified priv-apps could access identifiers
Change-Id: Ie39391a72202faf12c7b025006fab456e5231055
2019-02-08 12:42:43 -08:00
Malcolm Chen
b2b88b3735 Adding callback for setPreferredDataSubscriptionId.
The purpose is to provide a way to return success or failure upon
switching data to CBRS subscription.
The same callback is used for ONS to call internal API. Later it
will also be used by Carrier apps to call TelephonyManager#
setPreferredOpportunisticDataSubscription.

Bug: 122255288
Test: manual

Change-Id: Id3f43e024c902d6785017e7866f9e804a486b04f
2019-02-07 19:03:32 -08:00
Malcolm Chen
77b2b559e1 Add API to handle user's subscription selection changes.
When user selects a eSIM subscription, Settings app informs Telephony.
Telephony needs to take actions such as writting it into global
settings, switch profiles and notify registrants, for example
AlternativeNetworkAccessService.

Bug: 120945564
Test: unittest
Change-Id: I846d9444aac368d183e06744c9eb8aa0c08dfe6a
Merged-In: I846d9444aac368d183e06744c9eb8aa0c08dfe6a
2019-02-07 17:42:34 -08:00
Amit Mahajan
6eb4dab7cb Merge "Avoid NPE caused by null encodedBearerData in privateGetSubmitPdu" am: f552341204 am: 9776c4cce3
am: e6b6ea85f3

Change-Id: I23e068a8d3fb95966c34e7e5b2db4e2df4127ecb
2019-02-06 18:16:39 -08:00
Amit Mahajan
9e2b679121 Merge "Use correct PLMN info for an incoming CB-SMS" am: 74a0dd8092 am: 625155b12b
am: a162557ea4

Change-Id: I97a596cc733bc51630c41e9f3a4459d8a2bdbb12
2019-02-06 18:04:30 -08:00
Amit Mahajan
e6b6ea85f3 Merge "Avoid NPE caused by null encodedBearerData in privateGetSubmitPdu" am: f552341204
am: 9776c4cce3

Change-Id: Ie25b00f0eada559b2752cf9f15e4fd34634f3e24
2019-02-06 17:58:55 -08:00
Amit Mahajan
a162557ea4 Merge "Use correct PLMN info for an incoming CB-SMS" am: 74a0dd8092
am: 625155b12b

Change-Id: Ic80cc13e133ac1a7364819e6166476d9af8dddbe
2019-02-06 17:50:53 -08:00
Amit Mahajan
f552341204 Merge "Avoid NPE caused by null encodedBearerData in privateGetSubmitPdu" 2019-02-07 01:31:18 +00:00
Amit Mahajan
74a0dd8092 Merge "Use correct PLMN info for an incoming CB-SMS" 2019-02-07 01:30:09 +00:00
Hai Zhang
f28075bf00 Merge "Add flags parameter for managing role holders." 2019-02-06 23:04:44 +00:00
Sukanya Rajkhowa
6de48e4a86 Telephony: Add 7bit Ascii support for long message
Add 7bit Ascii encoding and decoding support for long messages

Bug: 37289589
Test: atest FrameworksTelephonyTests

Change-Id: I7c2cd91d0aef0d6436d250544db9bf2131e35075
2019-02-06 10:39:32 -08:00
Sahin Caliskan
67d3d8ba22 Merge "Implementation of RcsMessageStore APIs [base]" am: c4ed10103a am: c104c84af6
am: 15b3cf44a0

Change-Id: Ib33e25d4eae5c47a61b7dedca5c79f2b6d5bc477
2019-02-06 10:20:41 -08:00
Sahin Caliskan
15b3cf44a0 Merge "Implementation of RcsMessageStore APIs [base]" am: c4ed10103a
am: c104c84af6

Change-Id: I4a299e68b510fb2cc004844710c146e9c5bad429
2019-02-06 10:07:16 -08:00
Sukanya Rajkhowa
0f697a5647 Telephony: Add 7bit Ascii support for long message
Add 7bit Ascii encoding and decoding support for long messages

Bug: 37289589
Test: atest FrameworksTelephonyTests

Merged-In: I7c2cd91d0aef0d6436d250544db9bf2131e35075
Change-Id: I7c2cd91d0aef0d6436d250544db9bf2131e35075
2019-02-06 17:44:22 +00:00
Sahin Caliskan
f00a876893 Implementation of RcsMessageStore APIs [base]
This change adds the implementation of RcsMessageStore. Please see the
bug for the design and one-pager

Test: Added unit tests

Bug: 109759350
Change-Id: I6049dcf74ef9e19a38ce58148a89497992bc1c98
2019-02-06 15:49:16 +00:00
Michael Groover
4a0ca94109 Use StatsLog to log packages denied access to device identifiers
Bug: 123646983
Test: statsd_testdrive 146
Change-Id: I33836a4bad338316e092ebe4a4fce2a49f839696
2019-02-05 16:20:37 -08:00