Commit Graph

3360 Commits

Author SHA1 Message Date
Michele Berionne
f9a69bc3f6 Merge "Add checks on multisim capabilities." am: 862821ede5
am: 811e1165c2

Change-Id: I37939825d83107fd45db6c1ffef8e28f2b48704c
2019-02-25 09:49:56 -08:00
Michele Berionne
862821ede5 Merge "Add checks on multisim capabilities." 2019-02-22 01:18:41 +00:00
Michele
c5e6e54a20 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
Merged-In: I20860c7a25b054b8312c144544726337e09559e2
2019-02-21 21:28:08 +00: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
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
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
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
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
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
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
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
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
chen xu
32993551f3 Add NR to preferred network type combination
This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.

Bug: 111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
(cherry picked from commit 8bcdc4cf66)
Merged-in: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
2019-02-04 20:20:29 -08:00
Chen Xu
996f047394 Merge "Add NR to preferred network type combination" 2019-02-02 01:24:00 +00:00
Amit Mahajan
d6a3556d48 Merge "Fix wrong userData length and excessive userData issues" am: 13d5d5a1c8
am: 487b123d6f

Change-Id: Iff63e14e601d32e6991ad651b4dc0917be6c11e7
2019-02-01 14:54:23 -08:00
Amit Mahajan
13d5d5a1c8 Merge "Fix wrong userData length and excessive userData issues" 2019-02-01 22:25:37 +00:00
Taesu Lee
c692ce761b Avoid NPE caused by null encodedBearerData in privateGetSubmitPdu
Just return without HexDump to avoid NPE.

Test: Manual

Change-Id: Ide705518be4e9d6391ae0b844d681ac9a1a97233
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-02-01 18:45:11 +09:00
Holly Jiuyu Sun
cf9b175dfb Merge "Handle permission check for multi-active SIMs devices." am: 2638587995
am: 44eb96b47c

Change-Id: Ied8f6ef53a701547f4c921e3b401838c5facf205
2019-01-31 20:43:46 -08:00
Holly Jiuyu Sun
2638587995 Merge "Handle permission check for multi-active SIMs devices." 2019-02-01 04:16:50 +00:00
Taesu Lee
309fc2d4a8 Fix wrong userData length and excessive userData issues
Added checking size excess in encodeUCS2() and an exception cause in
EncodeException to distinguish between unencodable char and size excess.
It will prevent wrong userData length and excessive userData issues
during encoding userData. Please see below one issue scenario.

stringToGsm7BitPackedWithHeader() throws an EncodeException when
septeCount > 255. The EncodeException is caught and encoding again
through encodeUCS2(). However, the length of encoded userData as UCS-2
is converted as Byte without checking size excess. Thus first byte of
userData will be wrong and total userData will exceed maximum User Data.

Test: Manual

Change-Id: Ib6df5484072d77548e8adcbcbd15ad7a401c99f8
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
2019-02-01 08:51:56 +09:00
Brad Ebinger
8bb813dcd7 Merge "Add new ImsException to better handle ImsService errors" am: 3811aba3a4
am: 0bfbfe5646

Change-Id: Ic3a0806cc5e1d6efb0c2d175fda77cd57466072a
2019-01-31 15:43:52 -08:00
Brad Ebinger
3811aba3a4 Merge "Add new ImsException to better handle ImsService errors" 2019-01-31 23:26:57 +00:00
chen xu
a143659d29 Add NR to preferred network type combination
This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.

Bug: 111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
(cherry picked from commit 8bcdc4cf66)
Merged-in: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
2019-01-31 00:44:52 -08:00
Nazanin Bakhshi
ce301951ae Merge "Add a method to determine if a reboot is required to alter the modem config" am: 3483983223
am: 215383a8c3

Change-Id: I07189ff44859e1e6e07f1bdaed5e9d4957897475
2019-01-30 21:56:34 -08:00
Holly Jiuyu Sun
a2c1da0847 Handle permission check for multi-active SIMs devices.
For download and switch, if the caller can manage (has carrier privilege)
on any active sub on any other slots && the caller can manage the active
sub on the target slot or there is no active sub on the target slot, we
allow the caller to continue download. Otherwise, we require user consent.
For getting EID, we now check whether the caller has privilege on the
target card with the given cardId.
Other logic including the logic for single-active slot still keep the
same.
Also, open disable sub (switch to empty sub) to privileged carrier apps
instead of just system.

Bug: 36260308
Bug: 120621262
Test: unit test, test on phone
Change-Id: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
Merged-In: Icfc0c9e9f4303876bceb1adbe217b39b538b347e
2019-01-30 20:33:31 -08:00
Nazanin Bakhshi
87da0245c0 Add a method to determine if a reboot is required to alter the modem config
Bug: 123101701
Test: sanity
Change-Id: I841b947efda0016c003f54ecf7853624582abab9
Merged-In: I841b947efda0016c003f54ecf7853624582abab9
(cherry picked from commit 7eca4afab4)
2019-01-31 04:17:18 +00:00
Nazanin Bakhshi
4101af509b Merge "Add telephony API to switch multi sim config" am: 602df1aa8c
am: 9fef7be245

Change-Id: Iad4a48b5117b11f63f3d086b42f879034fd415e3
2019-01-30 20:09:58 -08:00
Nazanin Bakhshi
458a474998 Add telephony API to switch multi sim config
Bug: 122115649
Test: sanity
Change-Id: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
Merged-In: Idace8ed7f3fe78a6ce831225bda499a58a34c80f
(cherry picked from commit 1e031bde1a)
2019-01-30 23:19:14 +00:00
Chen Xu
072ca6f94d Merge "new API for IMS call fail cause" am: ebad5a64d0
am: 634594fb41

Change-Id: Ie6362bc5a6e7c372e7e60277feb48436a852f610
2019-01-30 10:35:38 -08:00