Commit Graph

3979 Commits

Author SHA1 Message Date
Mathew Inwood
97157bfc5c Merge "Add @UnsupportedAppUsage annotations" 2018-08-15 11:44:29 +00:00
Xiangyu/Malcolm Chen
8b36248dd3 Merge "Add APIs in SubscriptionManager for opportunistic subscriptions" 2018-08-14 22:09:45 +00:00
Malcolm Chen
e6bb077804 Add APIs in SubscriptionManager for opportunistic subscriptions
Bug: 92796390
Test: unittest
Change-Id: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
2018-08-13 14:55:56 -07:00
Andy Chou
30ea9ba49e Merge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist" 2018-08-13 02:11:24 +00:00
Nathan Harold
17f7876403 Merge "Merge CellInfo TYPE Enums" am: d3395b08c2 am: d21d855932 am: d827e4b6ad
am: 0596ac4415

Change-Id: Ife84a2c737a0f790a334d8a9446053d63f465621
2018-08-10 19:45:02 -07:00
Nathan Harold
d827e4b6ad Merge "Merge CellInfo TYPE Enums" am: d3395b08c2
am: d21d855932

Change-Id: I6c6ac9d9d7808997d62130afa20ac3f9c088c4d7
2018-08-10 19:08:11 -07:00
Nathan Harold
d3395b08c2 Merge "Merge CellInfo TYPE Enums" 2018-08-10 23:56:54 +00:00
Youming Ye
fec4d718aa Merge "Fix permission check for TelephonyManager#isTtyModeSupported." am: 2052fba20a am: f8f559fcd8 am: a648cac07f
am: b18b12176b

Change-Id: I2781eefd417f6b7f49e09061fbd6c9ce66d96b2b
2018-08-10 16:15:32 -07:00
Xiangyu/Malcolm Chen
31fa5f7049 Merge "Remove old SubscriptionInfo constructors." 2018-08-10 22:42:21 +00:00
Youming Ye
a648cac07f Merge "Fix permission check for TelephonyManager#isTtyModeSupported." am: 2052fba20a
am: f8f559fcd8

Change-Id: Ia612212ae54e5ca0e3f56b3d48f5d66a829f0b2c
2018-08-10 14:35:01 -07:00
Youming Ye
2052fba20a Merge "Fix permission check for TelephonyManager#isTtyModeSupported." 2018-08-10 18:21:25 +00:00
Mathew Inwood
6750f2e118 Add @UnsupportedAppUsage annotations
For packages:
  android.providers.settings
  android.provider

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Change-Id: I3865ac184fcb6f52c6bfab9729611b065b27722e
2018-08-10 09:29:25 +01:00
Hall Liu
a7cb9ccd59 Merge "Don't insert certain numbers into the call log" am: 01f0135ba4
am: e806a49791

Change-Id: I0d113a94a9b85b1725421dc29fe8898c36b9423e
2018-08-09 18:16:17 -07:00
Youming Ye
9b3eb9c9b5 Fix permission check for TelephonyManager#isTtyModeSupported.
TelephonyManager now calls TelecomManager#isTtySupported directly, instead of calling from its implementation PhoneInterfaceManager.

Bug: 79502396
Test: Manual
Change-Id: I686b93d31850103f1cfb7003fe0506d08a424f27
2018-08-09 17:32:11 -07:00
Malcolm Chen
e89e0ce167 Remove old SubscriptionInfo constructors.
Bug: 92796390
Test: build
Change-Id: Id5ce174b43934e690f6c1682e502b3b7e344a865
2018-08-09 17:08:41 -07:00
Nathan Harold
22b5747bee Merge "Construct NeighboringCellInfo from CellInfo" am: 9257722c5c am: 921acac430 am: 53adaf88b9
am: ebb44c10f0

Change-Id: I6094e1aaf773a48a650d0dc819b75d344b158c51
2018-08-09 16:51:33 -07:00
Hall Liu
01f0135ba4 Merge "Don't insert certain numbers into the call log" 2018-08-09 23:43:22 +00:00
Nathan Harold
ebb44c10f0 Merge "Construct NeighboringCellInfo from CellInfo" am: 9257722c5c am: 921acac430
am: 53adaf88b9

Change-Id: I67f198abdeaea2333fe693636ce5275273e1fe71
2018-08-09 16:39:14 -07:00
Nathan Harold
53adaf88b9 Merge "Construct NeighboringCellInfo from CellInfo" am: 9257722c5c
am: 921acac430

Change-Id: I0f28057985625446af9a978867c77ae1702e74b7
2018-08-09 16:28:54 -07:00
Nathan Harold
65c4b15d42 Merge CellInfo TYPE Enums
CellIdentity and CellInfo had redundant enums to
designate the structure type. This CL merges the
better-formatted enums from CellIdentity to
CellInfo, removing the set from CellIdentity.
For cases where the structure type must be determined
at runtime based on a CellInfo record, (where
polymorphic behavior isn't/shouldn't be supported),
this provides a consistent mechanism for determining
the type without using RTTI.
In addition, this CL fixes two other minor issues:
1) The constructor for CellInfoWcdma() provided the
   wrong parcel type to the parent class.
2) The TYPE_TDSCDMA had a typo in CellInfo and was
   written as TYPE_TDCDMA.

Bug: 112003199
Bug: 67711865
Test: runtest frameworks-telephony
Change-Id: I5ca3c2de1433dfcef264e1273a658d1a0fe864b6
2018-08-09 23:26:01 +00:00
Hall Liu
245305c263 Merge "IMS: Adding support for TIR/TIP permanent provisioning" am: 1a622a4215 am: 24fd6dd4d6 am: 430b670546
am: 6fd2776ec7

Change-Id: I4b6626fb369ba38e32675fbb4128622452d62bf4
2018-08-09 16:07:42 -07:00
Hall Liu
6fd2776ec7 Merge "IMS: Adding support for TIR/TIP permanent provisioning" am: 1a622a4215 am: 24fd6dd4d6
am: 430b670546

Change-Id: I7af08942269129a68a8948a6aea9d9fbe551c1fc
2018-08-09 15:53:31 -07:00
Hall Liu
430b670546 Merge "IMS: Adding support for TIR/TIP permanent provisioning" am: 1a622a4215
am: 24fd6dd4d6

Change-Id: Ibae3a2251f86ec60c54303fd274d8964d09a4393
2018-08-09 15:45:03 -07:00
Hall Liu
51c7daaa75 Don't insert certain numbers into the call log
For regulatory requirements, prevent certain sensitive numbers from
being logged in the call log. The numbers can either be specified in the
carrier config or in the mcc config for the device.

Bug: 111470439
Test: unit, manual
Change-Id: Icc4db12def802c2ce5485422a0ec199e3e7452fa
Merged-In: Icc4db12def802c2ce5485422a0ec199e3e7452fa
2018-08-09 21:57:57 +00:00
Nathan Harold
9257722c5c Merge "Construct NeighboringCellInfo from CellInfo" 2018-08-09 21:31:55 +00:00
Hall Liu
1a622a4215 Merge "IMS: Adding support for TIR/TIP permanent provisioning" 2018-08-09 20:24:18 +00:00
andychou
629196f41a Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist
Add ImsReasonInfo.CODE_SIP_TRANSACTION_DOES_NOT_EXIST and
PreciseDisconnectCause.SIP_TRANSACTION_DOES_NOT_EXIST
It will map by PRECISE_CAUSE_MAP in ImsPhoneCallTracker.java

Bug: 78204171
Test: local build pass
Change-Id: Iaa9673e4fa9568078161231df1b06735b862ca09
2018-08-09 14:49:42 +08:00
Ashit Sood
51832a756a IMS: Adding support for TIR/TIP permanent provisioning
- Adding ProvisionStatus to ImsSsInfo

Test: Manual
Bug: 79133104
Change-Id: I26bdfc573a64aaba7d853c1f9cd592fa95e294c0
2018-08-08 21:27:38 -07:00
Malcolm Chen
9e480c0492 Abstract set APIs in SubscriptionManager
Put common codes of set APIs in Subscription into an unified method.
So that later it's easier to add APIs.

Bug: 112167869
Test: unittest
Change-Id: Idd2312c98fc178f078c75937ba2d8c2e414f3c3a
2018-08-08 21:40:48 +00:00
Nathan Harold
45fb10525e Construct NeighboringCellInfo from CellInfo
As part of removing neighboring cell info this
CL adds support for constructing a NeighboringCellInfo
object from a CellInfo object.

Bug: 62490173
Test: tested manually using SL4A with both O-MR1 and current
    target SDKs
Change-Id: I278487e506b07ab97589da85f69f1188c73b6eb9
2018-08-08 11:02:28 -07:00
Hall Liu
577fa0555e Merge "Don't insert certain numbers into the call log" into pi-dev am: 4deb593808
am: 93b26da8d9

Change-Id: I5abc5b8073245ab6bb5fbc61ea9e19284be661e5
2018-08-06 21:24:35 -07:00
Hall Liu
93b26da8d9 Merge "Don't insert certain numbers into the call log" into pi-dev
am: 4deb593808

Change-Id: I95f8d5d9b8b218bed1b63cc44637bca9f663d1df
2018-08-06 16:26:48 -07:00
Hall Liu
e6e6ec4849 Don't insert certain numbers into the call log
For regulatory requirements, prevent certain sensitive numbers from
being logged in the call log. The numbers can either be specified in the
carrier config or in the mcc config for the device.

Bug: 111470439
Test: unit, manual
Change-Id: Icc4db12def802c2ce5485422a0ec199e3e7452fa
2018-08-06 11:33:46 -07:00
Nathan Harold
bb67bab55f Merge "Throw on revoked location permission - framework" 2018-08-02 22:16:07 +00:00
Svet Ganov
56c4148e41 Throw on revoked location permission - framework
When we fixed proper handling of location permisison gating
sensitive telephony calls we stopped throwing a security
exception when the permission is not held by the caller.
While this is not a security issue there is no reason to
change this behavior which is checked by CTS. This CL starts
throwing a security exception if the permission is not held.

Test: atest android.permission.cts.NoLocationPermissionTest

bug: 74074103

Merged-In: Ic891d62b408c692f84a345f24503f7f25d583e35
Change-Id: Ic891d62b408c692f84a345f24503f7f25d583e35
(cherry picked from commit 33b1509375)
2018-08-02 11:35:00 -07:00
Nathan Harold
2a21769d4e Merge "Pass SdkVersion to getNeighboringCellInfo" am: cec3f1fafb am: 8f4fdd4e78 am: 3193926e6a
am: 6493efa705

Change-Id: Iad2aeea8faf434ab41202bf82d30b3f88dc19690
2018-08-01 17:20:43 -07:00
Nathan Harold
3193926e6a Merge "Pass SdkVersion to getNeighboringCellInfo" am: cec3f1fafb
am: 8f4fdd4e78

Change-Id: I1397d457efe3c1758795aace2f05ed330a92e596
2018-08-01 16:13:48 -07:00
Nathan Harold
8f4fdd4e78 Merge "Pass SdkVersion to getNeighboringCellInfo"
am: cec3f1fafb

Change-Id: I46ede415a660852938506b9bd4eebff409da5929
2018-08-01 15:51:30 -07:00
Malcolm Chen
9afe59bf1c Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-31 18:43:01 -07:00
Nathan Harold
3892d05850 Pass SdkVersion to getNeighboringCellInfo
Bug: 62490173
Test: tested manually with SL4A (P and P+ SDK)
Change-Id: I65bae72ab8379f996486e7f4326eddf1b305658a
2018-07-30 17:19:59 -07:00
Malcolm Chen
05ab439039 Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-30 17:08:27 -07:00
Treehugger Robot
c14a4be799 Merge "Have proper permission check in getConfigForSubId" 2018-07-30 19:49:20 +00:00
Malcolm Chen
6cc64f7244 Have proper permission check in getConfigForSubId
In CarrierConfigManager, add pass context in constructor, so that
when calling CarrierConfigLoader#getConfigForSubId, it can pass
callingPackage.

Bug: 73136824
Test: regression
Change-Id: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
Merged-In: I4bbff4ea30e2d5473c14d24d6833bf3ca3c595ec
2018-07-28 01:41:06 +00:00
Hall Liu
84bac8eae3 Merge "Add carrier config for auto redialing 911" am: b91316f203 am: 9e76e3acb9 am: 36af741ace
am: c99da79bde

Change-Id: Ibafa3ab93c00e53bd648a0da5973dee6f27287e4
2018-07-26 19:27:31 -07:00
Hall Liu
36af741ace Merge "Add carrier config for auto redialing 911" am: b91316f203
am: 9e76e3acb9

Change-Id: I9713fcc0f73f98bf41cd95517f5031f325a92c03
2018-07-26 18:05:23 -07:00
Hall Liu
9e76e3acb9 Merge "Add carrier config for auto redialing 911"
am: b91316f203

Change-Id: Ie77021a09bb896faaa5fc5686563b0ddbf645d48
2018-07-26 17:52:16 -07:00
Hall Liu
b91316f203 Merge "Add carrier config for auto redialing 911" 2018-07-26 20:22:03 +00:00
Hall Liu
f31f38562f Add carrier config for auto redialing 911
Bug: 111235453
Test: manual (modify IMS stack locally to always return the 380 error
when dialing in airplane mode)

Change-Id: I029d2227ce62bb11fa91e9d5338a667d6e3dd59b
2018-07-25 18:48:55 -07:00
Nathan Harold
e0be144536 Merge "Merge "Access Identity and SignalStrength from CellInfo" am: c99ced9db8 am: 232487ff44 am: dabe94f353" into pi-dev-plus-aosp
am: 983d3ed295

Change-Id: Ifb97a479572d12717dabd2c1003342246dc80f00
2018-07-23 18:51:29 -07:00
Nathan Harold
dabe94f353 Merge "Access Identity and SignalStrength from CellInfo" am: c99ced9db8
am: 232487ff44

Change-Id: I5602c4c6ef7287c7549ca35533c7f3dbc6856b49
2018-07-23 16:01:30 -07:00