OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add APIs to EuiccCardManager." am: a5bc474e2c
Holly Jiuyu Sun [Thu, 18 Jan 2018 04:14:54 +0000 (04:14 +0000)]
Merge "Add APIs to EuiccCardManager." am: a5bc474e2c
am: f07319a6df

Change-Id: I71b5ea764f306a8a852f08a99f6a7247109e3511

6 years agoMerge "Add "not congested" network capability." am: ffaddf73de
Jeff Sharkey [Thu, 18 Jan 2018 04:10:00 +0000 (04:10 +0000)]
Merge "Add "not congested" network capability." am: ffaddf73de
am: abb158f712

Change-Id: I2c7276bd657f5805c0b6492a216435270023a3c6

6 years agoMerge "Add basic resolution of Private DNS hostname" am: a3bf36f050
Erik Kline [Thu, 18 Jan 2018 04:02:46 +0000 (04:02 +0000)]
Merge "Add basic resolution of Private DNS hostname" am: a3bf36f050
am: 4218c522a7

Change-Id: Ifc776c67025925fbeb2c13038ae78061c32567f5

6 years agoMerge "Add APIs to EuiccCardManager."
Holly Jiuyu Sun [Thu, 18 Jan 2018 04:01:59 +0000 (04:01 +0000)]
Merge "Add APIs to EuiccCardManager."
am: a5bc474e2c

Change-Id: Ib0653ef73bb59f5dba2396bde20d1f29b107da86

6 years agoMerge "Add "not congested" network capability."
Jeff Sharkey [Thu, 18 Jan 2018 03:58:13 +0000 (03:58 +0000)]
Merge "Add "not congested" network capability."
am: ffaddf73de

Change-Id: I02ea25610df63b40547c3114c0f9a9ef59560e90

6 years agoMerge "Add basic resolution of Private DNS hostname"
Erik Kline [Thu, 18 Jan 2018 03:54:50 +0000 (03:54 +0000)]
Merge "Add basic resolution of Private DNS hostname"
am: a3bf36f050

Change-Id: I9ce3476d80b05c140a02aaf1c21d4da2a68a8909

6 years agoMerge "Add APIs to EuiccCardManager."
Holly Jiuyu Sun [Thu, 18 Jan 2018 03:32:22 +0000 (03:32 +0000)]
Merge "Add APIs to EuiccCardManager."

6 years agoMerge "Add "not congested" network capability."
Jeff Sharkey [Thu, 18 Jan 2018 03:28:34 +0000 (03:28 +0000)]
Merge "Add "not congested" network capability."

6 years agoMerge "Add public API methods for private DNS." am: aacb56a7c0
Lorenzo Colitti [Thu, 18 Jan 2018 03:27:51 +0000 (03:27 +0000)]
Merge "Add public API methods for private DNS." am: aacb56a7c0
am: f193c6d37d

Change-Id: I8d5a5b72c128231cca1dfb00bc00e887b5fbfc53

6 years agoMerge "Add public API methods for private DNS."
Lorenzo Colitti [Thu, 18 Jan 2018 03:21:02 +0000 (03:21 +0000)]
Merge "Add public API methods for private DNS."
am: aacb56a7c0

Change-Id: If2bdfb05fcb235888bf272e4cfddb14619fc3f78

6 years agoMerge "Add basic resolution of Private DNS hostname"
Treehugger Robot [Thu, 18 Jan 2018 02:44:53 +0000 (02:44 +0000)]
Merge "Add basic resolution of Private DNS hostname"

6 years agoMerge "Added internal API getMaxConnectedAudioDevices()" am: 877cbe1dc2
Pavlin Radoslavov [Thu, 18 Jan 2018 02:18:03 +0000 (02:18 +0000)]
Merge "Added internal API getMaxConnectedAudioDevices()" am: 877cbe1dc2
am: 18606e1601

Change-Id: I58199a6c70bfa03fc515c573b936c78ec34d61ac

6 years agoMerge "Added internal API getMaxConnectedAudioDevices()"
Pavlin Radoslavov [Thu, 18 Jan 2018 02:10:31 +0000 (02:10 +0000)]
Merge "Added internal API getMaxConnectedAudioDevices()"
am: 877cbe1dc2

Change-Id: Ifb7b28f3993e3d8967886bdff006bcd2679d3277

6 years agoMerge "Reland: Move zygote's seccomp setup to post-fork" am: 7839672e22
Victor Hsieh [Thu, 18 Jan 2018 01:23:32 +0000 (01:23 +0000)]
Merge "Reland: Move zygote's seccomp setup to post-fork" am: 7839672e22
am: 4249466562

Change-Id: Idbf4d7add5e41d2d01f4a3c2ff6e8f1b1735faeb

6 years agoMerge "Add public API methods for private DNS."
Lorenzo Colitti [Thu, 18 Jan 2018 01:17:17 +0000 (01:17 +0000)]
Merge "Add public API methods for private DNS."

6 years agoMerge "Reland: Move zygote's seccomp setup to post-fork"
Victor Hsieh [Thu, 18 Jan 2018 01:15:05 +0000 (01:15 +0000)]
Merge "Reland: Move zygote's seccomp setup to post-fork"
am: 7839672e22

Change-Id: I93275a50938ed1514fc690fe2e1390054748d361

6 years agoMerge "Bluetooth in band ring" am: dbfaf31357
Joseph Pirozzo [Thu, 18 Jan 2018 01:09:30 +0000 (01:09 +0000)]
Merge "Bluetooth in band ring" am: dbfaf31357
am: 8c73ee91f5

Change-Id: I1972da1da7bc0c001dc4525858bdb0e8bd5dd530

6 years agoMerge "Bluetooth in band ring"
Joseph Pirozzo [Thu, 18 Jan 2018 01:02:14 +0000 (01:02 +0000)]
Merge "Bluetooth in band ring"
am: dbfaf31357

Change-Id: I24b9169afc67e376a22c99f8a1ae7117549401f8

6 years agoMerge "Added internal API getMaxConnectedAudioDevices()"
Treehugger Robot [Thu, 18 Jan 2018 00:46:57 +0000 (00:46 +0000)]
Merge "Added internal API getMaxConnectedAudioDevices()"

6 years agoAdd APIs to EuiccCardManager.
Holly Jiuyu Sun [Fri, 22 Dec 2017 02:44:59 +0000 (18:44 -0800)]
Add APIs to EuiccCardManager.

The CL contains parts of the EuiccCard APIs. getEid() is sync. All the
other APIs are async.
Move ResetOptions from EuiccCard to EuiccCardManager.
The other APIs will be added in a follow-up CL.

Bug: 38206971
Test: test on phone
Change-Id: Iba098ee779b8ea4e244e0e4cf7318139666cc94b

6 years agoMerge "Watchdog: add media.metrics" am: 6cb33a1b54
Andy Hung [Thu, 18 Jan 2018 00:02:14 +0000 (00:02 +0000)]
Merge "Watchdog: add media.metrics" am: 6cb33a1b54
am: 701c4cd1cc

Change-Id: If5fb8cfe18e7fad089b5aec8e3168dab940826ec

6 years agoMerge "Reland: Move zygote's seccomp setup to post-fork"
Treehugger Robot [Wed, 17 Jan 2018 23:58:10 +0000 (23:58 +0000)]
Merge "Reland: Move zygote's seccomp setup to post-fork"

6 years agoMerge "Watchdog: add media.metrics"
Andy Hung [Wed, 17 Jan 2018 23:55:25 +0000 (23:55 +0000)]
Merge "Watchdog: add media.metrics"
am: 6cb33a1b54

Change-Id: I24992a0a7e4e4a67fba1c5202fc4e741a3952794

6 years agoMerge "Bluetooth in band ring"
Treehugger Robot [Wed, 17 Jan 2018 23:48:40 +0000 (23:48 +0000)]
Merge "Bluetooth in band ring"

6 years agoMerge "Add APIs to EuiccCardManager and EuiccCardController." am: 0797f4be58
Holly Jiuyu Sun [Wed, 17 Jan 2018 23:25:13 +0000 (23:25 +0000)]
Merge "Add APIs to EuiccCardManager and EuiccCardController." am: 0797f4be58
am: f09db036e5

Change-Id: Ifcd39da6aafb4cd1e0b6e9e1baa38342a590fb91

6 years agoMerge "Added data service interface" am: 3965e3bbc6
Jack Yu [Wed, 17 Jan 2018 23:18:21 +0000 (23:18 +0000)]
Merge "Added data service interface" am: 3965e3bbc6
am: 5f12e2c76d

Change-Id: Iac4b6e1b86cdfa2e3285a086220b7c7aa921d7ff

6 years agoMerge "Integrate IMS Registration API" am: 1f00565433
Brad Ebinger [Wed, 17 Jan 2018 23:13:46 +0000 (23:13 +0000)]
Merge "Integrate IMS Registration API" am: 1f00565433
am: f4d3a4d110

Change-Id: I19e812368d0afd5bd7934b4e3a2aa575d0c1d3a3

6 years agoMerge "Add APIs to EuiccCardManager and EuiccCardController."
Holly Jiuyu Sun [Wed, 17 Jan 2018 23:07:54 +0000 (23:07 +0000)]
Merge "Add APIs to EuiccCardManager and EuiccCardController."
am: 0797f4be58

Change-Id: Ie96bf09b698718705971bd94cd44f55e74700223

6 years agoMerge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants." am: b760295764
yuemingw [Wed, 17 Jan 2018 23:05:16 +0000 (23:05 +0000)]
Merge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants." am: b760295764
am: 10f60a740f

Change-Id: I7e00f153a147c906fe853c1f98e492a0c381850a

6 years agoMerge "Added data service interface"
Jack Yu [Wed, 17 Jan 2018 23:04:57 +0000 (23:04 +0000)]
Merge "Added data service interface"
am: 3965e3bbc6

Change-Id: I7543aff2abadb4c6b2556f37cd5e763cb5a8c08c

6 years agoMerge "Integrate IMS Registration API"
Brad Ebinger [Wed, 17 Jan 2018 23:01:03 +0000 (23:01 +0000)]
Merge "Integrate IMS Registration API"
am: 1f00565433

Change-Id: I1bbbdbe612a154c9d13dd5d162e2149d3f94a958

6 years agoMerge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants."
yuemingw [Wed, 17 Jan 2018 22:57:50 +0000 (22:57 +0000)]
Merge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants."
am: b760295764

Change-Id: Ib7ff0f0854c164eb5044649a63bb113ec473609c

6 years agoMerge "Watchdog: add media.metrics"
Andy Hung [Wed, 17 Jan 2018 22:33:53 +0000 (22:33 +0000)]
Merge "Watchdog: add media.metrics"

6 years agoMerge "Add APIs to EuiccCardManager and EuiccCardController."
Holly Jiuyu Sun [Wed, 17 Jan 2018 22:26:58 +0000 (22:26 +0000)]
Merge "Add APIs to EuiccCardManager and EuiccCardController."

6 years agoMerge "Added data service interface"
Jack Yu [Wed, 17 Jan 2018 22:12:29 +0000 (22:12 +0000)]
Merge "Added data service interface"

6 years agoMerge "Add metric for anomaly detection" into oc-mr1-dev
jackqdyulei [Wed, 17 Jan 2018 21:21:57 +0000 (21:21 +0000)]
Merge "Add metric for anomaly detection" into oc-mr1-dev
am: 9b1211b353  -s ours

Change-Id: I1c7830ed2c956ed22682e7d0d03860f5fa7c7886

6 years agoMerge "new carrier id APIs" am: 3d23b90874
Chen Xu [Wed, 17 Jan 2018 20:49:04 +0000 (20:49 +0000)]
Merge "new carrier id APIs" am: 3d23b90874
am: 7537309843

Change-Id: I8b64968ddb59304543eee89eb1e2dcb4d66517e3

6 years agoAdd public API methods for private DNS.
dalyk [Wed, 17 Jan 2018 19:20:55 +0000 (14:20 -0500)]
Add public API methods for private DNS.

Test: Small modifications to LinkProperties test.
Bug: 71828272
Change-Id: Id2f5acb5469132ec4a917837739f42085c71498e

6 years agoMerge "IpSec - API Tweak for removeTransportModeTransform" am: 6725ff729b
nharold [Wed, 17 Jan 2018 20:39:29 +0000 (20:39 +0000)]
Merge "IpSec - API Tweak for removeTransportModeTransform" am: 6725ff729b
am: d58b237445

Change-Id: Id9e9ab09669a53f53f03e5a6e0e4757434c3f3f3

6 years agoMerge "new carrier id APIs"
Chen Xu [Wed, 17 Jan 2018 20:38:27 +0000 (20:38 +0000)]
Merge "new carrier id APIs"
am: 3d23b90874

Change-Id: Ifaa9e4e2f4ec3ef9703c4bf58e8452a9920b350a

6 years agoMerge "Add metric for anomaly detection" into oc-mr1-dev
TreeHugger Robot [Wed, 17 Jan 2018 20:36:06 +0000 (20:36 +0000)]
Merge "Add metric for anomaly detection" into oc-mr1-dev

6 years agoMerge "IpSec - API Tweak for removeTransportModeTransform"
nharold [Wed, 17 Jan 2018 20:31:15 +0000 (20:31 +0000)]
Merge "IpSec - API Tweak for removeTransportModeTransform"
am: 6725ff729b

Change-Id: I0ed7128014bbca8973f84d719449dcf70da45fa2

6 years agoMerge "Integrate IMS Registration API"
Brad Ebinger [Wed, 17 Jan 2018 20:29:54 +0000 (20:29 +0000)]
Merge "Integrate IMS Registration API"

6 years agoMerge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants."
Treehugger Robot [Wed, 17 Jan 2018 19:50:40 +0000 (19:50 +0000)]
Merge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants."

6 years agoMerge "Skip SystemUI check in BluetoothServiceManager if noHome." am: fc3b50e9b6
Arthur Hsu [Wed, 17 Jan 2018 19:21:39 +0000 (19:21 +0000)]
Merge "Skip SystemUI check in BluetoothServiceManager if noHome." am: fc3b50e9b6
am: 65d0549fde

Change-Id: Ia42f33a0d7becd5a4f3f3f81fc077d13863f94ed

6 years agoMerge "Skip SystemUI check in BluetoothServiceManager if noHome."
Arthur Hsu [Wed, 17 Jan 2018 19:15:47 +0000 (19:15 +0000)]
Merge "Skip SystemUI check in BluetoothServiceManager if noHome."
am: fc3b50e9b6

Change-Id: Icf53fb7a223e64a3f73cea475fb0a522b3f96ece

6 years agoMerge "new carrier id APIs"
Chen Xu [Wed, 17 Jan 2018 19:09:34 +0000 (19:09 +0000)]
Merge "new carrier id APIs"

6 years agoMerge "IpSec - API Tweak for removeTransportModeTransform"
nharold [Wed, 17 Jan 2018 19:07:10 +0000 (19:07 +0000)]
Merge "IpSec - API Tweak for removeTransportModeTransform"

6 years agoAdd APIs to EuiccCardManager and EuiccCardController.
Holly Jiuyu Sun [Fri, 22 Dec 2017 02:44:59 +0000 (18:44 -0800)]
Add APIs to EuiccCardManager and EuiccCardController.

Move CancelReason from EuiccCard to EuiccCardManager.
part 2.

Bug: 38206971
Test: test on phone
Change-Id: Iab61be59b7130a5336dffbc965eefefcfa3eccf6

6 years agoAdded data service interface
Jack Yu [Tue, 28 Nov 2017 01:36:29 +0000 (17:36 -0800)]
Added data service interface

The interface for mobile data service. This is the base class
for vendor or first party data service provider to implement
the data service for cellular or IWLAN data support.

Test: Manual
bug: 64132030
Change-Id: I3e5f48b88905f4533cac60975802d4da3746e7f8

6 years agoMerge "Skip SystemUI check in BluetoothServiceManager if noHome."
Treehugger Robot [Wed, 17 Jan 2018 17:33:41 +0000 (17:33 +0000)]
Merge "Skip SystemUI check in BluetoothServiceManager if noHome."

6 years agoReland: Move zygote's seccomp setup to post-fork
Victor Hsieh [Mon, 8 Jan 2018 20:43:00 +0000 (12:43 -0800)]
Reland: Move zygote's seccomp setup to post-fork

Before this change, seccomp filter setup is as early as in zygote's main
function.  To make it possible to split app and system server's filter,
this postpone the setup to after fork.  It also starts to call app
specific and system server specific setup function.

The filter setup is done in Zygote's ForkAndSpecializeCommon.  This is
because adding a seccomp filter must be done when either the caller has
CAP_SYS_ADMIN or after the PR_SET_NO_NEW_PRIVS bit is set.  Given that
setting PR_SET_NO_NEW_PRIVS breaks SELinux domain transition
(b/71859146), this must be done after Zygote forks but before
CAP_SYS_ADMIN is droppped.

Test: (cts) -m CtsSecurityTestCases -t android.security.cts.SeccompTest
Test: no selinux denial flood in dmesg with selinux enforced
Test: debuggerd -b `pidof com.android.phone`  # logcat shows tombstoned
      received crash request
Bug: 63944145
Bug: 71859146

Change-Id: I8215c8530d3d0de504a270488f8e29635805e8b0

6 years agonew carrier id APIs
fionaxu [Tue, 28 Nov 2017 06:53:42 +0000 (22:53 -0800)]
new carrier id APIs

1. New telephony APIs to getCurrentCarrierId
and getCurrentCarrierName
2. New broadcast intent to notify carrier id changed

Bug: 64131637
Test: Build
Change-Id: I9a240ba7df313ad701f98bb3982f29c3d5317da8
(cherry picked from commit fff6f59a63304be50e7a251fb4fca38ae0090fc4)
Merged-in: I9a240ba7df313ad701f98bb3982f29c3d5317da8

6 years agoMerge "Pass targetSdkVersion to installd" am: 106a915256
David Brazdil [Wed, 17 Jan 2018 14:17:59 +0000 (14:17 +0000)]
Merge "Pass targetSdkVersion to installd" am: 106a915256
am: 77ba6baab5

Change-Id: Ic0b3323ee46e0bacffd62bd763da15e3256da783

6 years agoAdd basic resolution of Private DNS hostname
Erik Kline [Thu, 11 Jan 2018 12:07:29 +0000 (21:07 +0900)]
Add basic resolution of Private DNS hostname

Test: as follows
    - built
    - flashed
    - booted
Bug: 34953048
Bug: 64133961
Change-Id: I0a2289ea51a9294352c91d2ead23730d9b0333a5

6 years agoMerge "Pass targetSdkVersion to installd"
David Brazdil [Wed, 17 Jan 2018 14:10:54 +0000 (14:10 +0000)]
Merge "Pass targetSdkVersion to installd"
am: 106a915256

Change-Id: If9622d593591a4a270e0bb1a16ed3a0c91d43f43

6 years agoMerge "Pass targetSdkVersion to installd"
David Brazdil [Wed, 17 Jan 2018 13:42:29 +0000 (13:42 +0000)]
Merge "Pass targetSdkVersion to installd"

6 years agoAdd URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants.
yuemingw [Tue, 16 Jan 2018 19:48:10 +0000 (19:48 +0000)]
Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants.

Test: manual
Bug: 68208245
Change-Id: I9416526f4a6e014dae66a936d6d1eb60309ef8ab

6 years agoAdded internal API getMaxConnectedAudioDevices()
Pavlin Radoslavov [Wed, 17 Jan 2018 10:09:53 +0000 (02:09 -0800)]
Added internal API getMaxConnectedAudioDevices()

The API can be used to obtain the maximum number of connected
devices for A2DP or HFP.

Test: Manual
Bug: 64767509
Change-Id: I80b8a1c85e33ae0b23fdc4812f8991a4202d9abc

6 years agoMerge "Prevent Closure of Underlying Socket FDs" am: 3cff120fcb
nharold [Wed, 17 Jan 2018 10:02:51 +0000 (10:02 +0000)]
Merge "Prevent Closure of Underlying Socket FDs" am: 3cff120fcb
am: 31f05d66ca

Change-Id: I1ecac95dc1c4be573d5411a335f94c6a6511d4bd

6 years agoMerge changes from topic "ipsec-oneway-transform" am: 809bcfc45e
nharold [Wed, 17 Jan 2018 09:53:37 +0000 (09:53 +0000)]
Merge changes from topic "ipsec-oneway-transform" am: 809bcfc45e
am: f2074ea62a

Change-Id: I58fe595ff14e3ee6be5191171367e8a2f7fad6da

6 years agoMake Transforms Unidirectional am: a25233123b
Nathan Harold [Wed, 17 Jan 2018 09:50:37 +0000 (09:50 +0000)]
Make Transforms Unidirectional am: a25233123b
am: f4fc2714c2

Change-Id: Ie3ca37e14d977fd255a7791ae3332ddda29ab37e

6 years agoMerge "Prevent Closure of Underlying Socket FDs"
nharold [Wed, 17 Jan 2018 09:47:49 +0000 (09:47 +0000)]
Merge "Prevent Closure of Underlying Socket FDs"
am: 3cff120fcb

Change-Id: I2f8e445f9a12e95cf8d81d63e02fad7ecc17ad36

6 years agoMerge changes from topic "ipsec-oneway-transform"
nharold [Wed, 17 Jan 2018 09:42:03 +0000 (09:42 +0000)]
Merge changes from topic "ipsec-oneway-transform"
am: 809bcfc45e

Change-Id: If98285e2bd41e2eedaf81f1ff0e5f2b2d3827f91

6 years agoMake Transforms Unidirectional
Nathan Harold [Wed, 17 Jan 2018 09:37:57 +0000 (09:37 +0000)]
Make Transforms Unidirectional
am: a25233123b

Change-Id: I7e80c75b3b227fdd16479120d8b7203cc5f28d1c

6 years agoAdd "not congested" network capability.
Jeff Sharkey [Wed, 17 Jan 2018 04:27:03 +0000 (13:27 +0900)]
Add "not congested" network capability.

Can be used by a network to indicate when it's congested, meaning that
apps should defer network traffic that could be done at a later time.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.,com.android.server.connectivity.VpnTest,com.android.server.ConnectivityServiceTest
Bug: 64133169
Change-Id: I8a60b6f02dd0f42268b59690556c16335d34e220

6 years agoIpSec - API Tweak for removeTransportModeTransform
Nathan Harold [Wed, 17 Jan 2018 09:00:20 +0000 (01:00 -0800)]
IpSec - API Tweak for removeTransportModeTransform

Because IpSecTransforms are now unidirectional,
and because the only mechanism for removing Transforms
removes it from both directions, the API can no longer
use the Transform parameter to meaningfully validate
that the caller had applied a transform. Since that
functionality was as-yet unimplemented and is now
infeasible, the transform parameter is removed.

Bug: 72079356
Test: cts - IpSecManagerTest; runtest frameworks-net
Change-Id: If19b0d34bdc6daf31a40d6d62bff326dcbca08c0

6 years agoMerge "Prevent Closure of Underlying Socket FDs"
nharold [Wed, 17 Jan 2018 08:45:29 +0000 (08:45 +0000)]
Merge "Prevent Closure of Underlying Socket FDs"

6 years agoMerge changes from topic "ipsec-oneway-transform"
nharold [Wed, 17 Jan 2018 08:40:37 +0000 (08:40 +0000)]
Merge changes from topic "ipsec-oneway-transform"

* changes:
  Update IpSecService UnitTests
  Make Transforms Unidirectional

6 years agoMerge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a
nharold [Wed, 17 Jan 2018 06:59:39 +0000 (06:59 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a
am: 03dafac495

Change-Id: I3c0e13153a347e6ef79cfee9f00a6ee6694425d9

6 years agoMerge "Update documentation for KEY_CARRIER_NAME_STRING"
nharold [Wed, 17 Jan 2018 06:51:38 +0000 (06:51 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING"
am: fa6187510a

Change-Id: I50fe5f4ea30b6923e7ca5c0fe3eb62fa9db3dabf

6 years agoPrevent Closure of Underlying Socket FDs
Nathan Harold [Tue, 16 Jan 2018 20:08:43 +0000 (12:08 -0800)]
Prevent Closure of Underlying Socket FDs

The version of applyTransportModeTransform() and
removeTransportModeTransform() that accepted
Socket and DatagramSocket were closing the underlying
FDs upon return. It's unclear whether this is due to
a behavior change elsewhere in ParcelFileDescriptor,
but either way, converting to using getFileDescriptor$
and then calling dup() explicitly rather than relying
on ParcelFileDescriptor seems like a better idea anyway.

Bug: 72047396
Test: CTS - IpSecManagerTest.testCreateTransform()
Change-Id: Ia2f02564e1289f25bf113dbb861fcfd2240537a7

6 years agoMerge "Update documentation for KEY_CARRIER_NAME_STRING"
nharold [Wed, 17 Jan 2018 03:39:44 +0000 (03:39 +0000)]
Merge "Update documentation for KEY_CARRIER_NAME_STRING"

6 years agoUpdate IpSecService UnitTests
Nathan Harold [Wed, 17 Jan 2018 03:34:01 +0000 (19:34 -0800)]
Update IpSecService UnitTests

The IpSecService Unit tests relied on the
directionality of the IpSecConfig and previously
did not specify a source address. Unit tests
updated without functional change other than to
address these two requirements.

Bug: 71717213
Test: runtest frameworks-net
Change-Id: Iedbed735bc50fd4fdfe985f9e173956062a7b0d1

6 years agoMerge "Handle onBindingDied in notification manager" am: a13201a99b
Ryan Lothian [Wed, 17 Jan 2018 01:59:09 +0000 (01:59 +0000)]
Merge "Handle onBindingDied in notification manager" am: a13201a99b
am: d69921cc9a

Change-Id: I91f5642cb8f2d740e8acbbb739fc42f6a2f1bc63

6 years agoMerge "Handle onBindingDied in notification manager"
Ryan Lothian [Wed, 17 Jan 2018 01:51:02 +0000 (01:51 +0000)]
Merge "Handle onBindingDied in notification manager"
am: a13201a99b

Change-Id: I01d3d65fcc6032d5de17f84cdc8eb5119aaeeadf

6 years ago[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables...
Android Build Merger (Role) [Tue, 16 Jan 2018 23:54:53 +0000 (23:54 +0000)]
[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables skipped: cee125012a am: 9b90490d1d
am: 17ef28c5e2

Change-Id: I7e2e495eb815655db3ea365e44d069dfb6227a5a

6 years ago[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables...
Android Build Merger (Role) [Tue, 16 Jan 2018 23:42:30 +0000 (23:42 +0000)]
[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables skipped: cee125012a am: 9b90490d1d

Change-Id: If121edaf0d2edac5688ff2aa4ed48da1d5e1c1c7

6 years ago[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables...
Android Build Merger (Role) [Tue, 16 Jan 2018 23:42:24 +0000 (23:42 +0000)]
[automerger skipped] RESTRICT AUTOMERGE Preventing recursive referrence in drawables skipped: cee125012a

Change-Id: Ie180da5d659b106e1c5299b0a46b6cbf24548ae0

6 years agoRESTRICT AUTOMERGE Preventing recursive referrence in drawables
Sunny Goyal [Wed, 1 Nov 2017 18:58:13 +0000 (11:58 -0700)]
RESTRICT AUTOMERGE Preventing recursive referrence in drawables

Bug: 68706673
Bug: 66498711
Test: Added CTS tests

Change-Id: I8034f49d16f9a7bc1749714fd6d6231bba5088d0
(cherry picked from commit I8034f49d16f9a7bc1749714fd6d6231bba5088d0)
Merged-In: I8034f49d16f9a7bc1749714fd6d6231bba5088d0

6 years agoMerge "Handle onBindingDied in notification manager"
Ryan Lothian [Tue, 16 Jan 2018 23:31:41 +0000 (23:31 +0000)]
Merge "Handle onBindingDied in notification manager"

6 years agoHandle onBindingDied in notification manager
Ryan Lothian [Mon, 4 Dec 2017 16:56:58 +0000 (11:56 -0500)]
Handle onBindingDied in notification manager

On Android, if the process containing the service being bound to
crashes before the bind succeeds, the app doing the binding won't
get a success or failure callback.

When that happens in this code, this leaves notif. manager thinking
that a binding is in progress, so it never attempts to rebind until
the device is rebooted.

Bug: 69064494
Test: original CL was manually tested --
      crashed listener on proc start, verified not unbound forever
Change-Id: Id2082744208e21a709d9453365f282449a2e9407
(cherry picked from commit 4a86a51b672617b02994fc812e4f96342daf424e)

6 years agoPass targetSdkVersion to installd
David Brazdil [Tue, 16 Jan 2018 20:01:47 +0000 (20:01 +0000)]
Pass targetSdkVersion to installd

Dex2oat now accepts targetSdkVersion as a parameter to determine
whether ART should treat the app as "legacy" and allow or restrict
access to private APIs.

We also bump arguments of otapreopt to v4 to accommodate the new value.

Bug: 64382372
Test: manual
Change-Id: Iae3867325dfaf8deaba51626ab04b97ad797d3b6

6 years agoMerge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a
Ivan Lozano [Tue, 16 Jan 2018 21:49:36 +0000 (21:49 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds." am: 05284b6c6a
am: b327eb682e

Change-Id: I109a08b8ae94cbeca28044f2c64c885a586f680a

6 years agoMerge "Fix doFadingAnimationLocked in sanitized builds."
Ivan Lozano [Tue, 16 Jan 2018 21:42:07 +0000 (21:42 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds."
am: 05284b6c6a

Change-Id: I5822b920fe1dec72f0f49af35256bfbf6d9474fa

6 years agoMerge "Fix doFadingAnimationLocked in sanitized builds."
Ivan Lozano [Tue, 16 Jan 2018 20:27:36 +0000 (20:27 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds."

6 years agoMerge "ActivityThread: Attempt to attach agent with app's classloader" am: f779d7e3be
Andreas Gampe [Tue, 16 Jan 2018 19:59:02 +0000 (19:59 +0000)]
Merge "ActivityThread: Attempt to attach agent with app's classloader" am: f779d7e3be
am: 9f1f950c31

Change-Id: I0df113aff5a54c5a1dbc5f968679bb9d4f8ea158

6 years agoMerge "ActivityThread: Attempt to attach agent with app's classloader"
Andreas Gampe [Tue, 16 Jan 2018 19:46:36 +0000 (19:46 +0000)]
Merge "ActivityThread: Attempt to attach agent with app's classloader"
am: f779d7e3be

Change-Id: Id5ae3b90ca4b75046419fb1a6c02ef556d225f77

6 years agoMake Transforms Unidirectional
Nathan Harold [Sat, 6 Jan 2018 03:25:13 +0000 (19:25 -0800)]
Make Transforms Unidirectional

Convert the IpSecTransform from being a bi-directional
pair of SAs to a unidirectional single SA. This CL
also removes the concept of "direction from SAs meaning
that a IpSecTransform may now be applied to a socket
in either direction.

-Make transforms unidirectional
-Add Convert allocateSpi() to use destination rather
 than direction and remote address
-Remove directionality from builders for IpSecTransform
-Change applyTransportModeTransform() to take a
 direction in which to apply the transform object.
-Additional minor naming updates
-Restrict IpSecConfig to only print keys on eng builds
-Move DIRECTION constants to IpSecManager
-Add sourceAddress parameter to IpSecTransform to provide
 additional guarantees about the source address of data;
 (explicit failure rather than implicit failure).
-Move SPI to the build() method of IpSecTransform

Bug: 71717213
Test: runtest frameworks-net, CTS - IpSecManagerTest
Change-Id: I0824b37f443f4b8c62536d9801238c63ed8f2a1c

6 years agoMerge changes I0d0c0fac,Ifb9b00b6 am: c3a209382c
Lorenzo Colitti [Tue, 16 Jan 2018 18:41:46 +0000 (18:41 +0000)]
Merge changes I0d0c0fac,Ifb9b00b6 am: c3a209382c
am: bfaf963337

Change-Id: Ie943428132fbcfcc565d54b46830ed297227ef35

6 years agoMerge changes I0d0c0fac,Ifb9b00b6
Lorenzo Colitti [Tue, 16 Jan 2018 18:32:39 +0000 (18:32 +0000)]
Merge changes I0d0c0fac,Ifb9b00b6
am: c3a209382c

Change-Id: If8f81cc1906668c82c2393e37600a7697cba2a05

6 years agoMerge "ActivityThread: Attempt to attach agent with app's classloader"
Treehugger Robot [Tue, 16 Jan 2018 18:25:32 +0000 (18:25 +0000)]
Merge "ActivityThread: Attempt to attach agent with app's classloader"

6 years agoIntegrate IMS Registration API
Brad Ebinger [Thu, 14 Dec 2017 22:22:27 +0000 (14:22 -0800)]
Integrate IMS Registration API

Integrates the new IMS Registration API into the framework
and add two APIs for feature parity.

1) Moves ImsRegistrationImplBase to the android.telephony.ims
namespace
2) Expose ImsRegistration AIDL in TelephonyManager as hidden
API.
3) Adds onVoicemailCountUpdate and
onSubscriberAssociatedUriChanged APIs for feature parity.

Bug: 63987047
Test: Telephony unit tests, manual IMS tests
Merged-In: I51a8ae5cf58b81708c21adc1b26a9eb59f6280fd
Change-Id: I51a8ae5cf58b81708c21adc1b26a9eb59f6280fd

6 years agoMerge changes I0d0c0fac,Ifb9b00b6
Treehugger Robot [Tue, 16 Jan 2018 14:25:13 +0000 (14:25 +0000)]
Merge changes I0d0c0fac,Ifb9b00b6

* changes:
  Split updateCapabilities into two methods.
  More strictly check NetworkCapabilities callbacks.

6 years agoMerge "Update netId to nethandle mapping in NetworkTest." am: a04d0cc72f
Lorenzo Colitti [Tue, 16 Jan 2018 13:34:46 +0000 (13:34 +0000)]
Merge "Update netId to nethandle mapping in NetworkTest." am: a04d0cc72f
am: 503135596b

Change-Id: I5e8e57f38580742eae38f63f43e37cc647412212

6 years agoMerge "Update netId to nethandle mapping in NetworkTest."
Lorenzo Colitti [Tue, 16 Jan 2018 13:23:05 +0000 (13:23 +0000)]
Merge "Update netId to nethandle mapping in NetworkTest."
am: a04d0cc72f

Change-Id: Ie4524e17f1839bae832d03248a2208693b1b1e95

6 years agoSplit updateCapabilities into two methods.
Lorenzo Colitti [Mon, 15 Jan 2018 15:52:07 +0000 (00:52 +0900)]
Split updateCapabilities into two methods.

This makes the code a bit easier to follow.

Test: ConnectivityServiceTest continues to pass
Change-Id: I0d0c0facc1e3ba07b53542b35da40ddc096ff92e

6 years agoMerge "Update netId to nethandle mapping in NetworkTest."
Treehugger Robot [Tue, 16 Jan 2018 12:23:02 +0000 (12:23 +0000)]
Merge "Update netId to nethandle mapping in NetworkTest."

6 years agoMerge "Replace legacy-test with android.test.base in bp files" am: 2285630e4b
Paul Duffin [Tue, 16 Jan 2018 11:40:57 +0000 (11:40 +0000)]
Merge "Replace legacy-test with android.test.base in bp files" am: 2285630e4b
am: caacf3e7c4

Change-Id: I0fa822af057afc2f4efb6285404653fe57bcd742

6 years agoMerge "Replace legacy-test with android.test.base in bp files"
Paul Duffin [Tue, 16 Jan 2018 11:29:21 +0000 (11:29 +0000)]
Merge "Replace legacy-test with android.test.base in bp files"
am: 2285630e4b

Change-Id: If956b45e21b7d576daf5dcece9c1acea35d952a0