OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Expand seccomp whitelist"
Paul Lawrence [Tue, 7 Feb 2017 22:59:34 +0000 (22:59 +0000)]
Merge "Expand seccomp whitelist"
am: 10e7aed13f

Change-Id: I8060b31a8ac20ddd77b7139c5a3bbd8d146dbc27

7 years agoMerge "Expand seccomp whitelist"
Paul Lawrence [Tue, 7 Feb 2017 22:50:43 +0000 (22:50 +0000)]
Merge "Expand seccomp whitelist"

7 years agoMerge "Perform camera permission and app ops check when setting camera for VT."
Brad Ebinger [Tue, 7 Feb 2017 22:33:05 +0000 (22:33 +0000)]
Merge "Perform camera permission and app ops check when setting camera for VT."
am: ed5c217fc0

Change-Id: I0fd4ed2260a9654e2889121022192f62f86a3d0c

7 years agoMerge "Perform camera permission and app ops check when setting camera for VT."
Brad Ebinger [Tue, 7 Feb 2017 22:26:43 +0000 (22:26 +0000)]
Merge "Perform camera permission and app ops check when setting camera for VT."

7 years agoExpand seccomp whitelist
Paul Lawrence [Tue, 7 Feb 2017 16:18:03 +0000 (08:18 -0800)]
Expand seccomp whitelist

Bug: 34979910
Test: System boots, app runs
Change-Id: I8b60a24ac855679251e73edcdec57eb4af4a5610

7 years agoMerge "Fixes Treble marshaling of strings embedded in structures from Java"
Andreas Huber [Mon, 6 Feb 2017 23:45:53 +0000 (23:45 +0000)]
Merge "Fixes Treble marshaling of strings embedded in structures from Java"
am: 97fca8c035

Change-Id: Iac2492ccc736b83d6ae46022b643fd229c2c307e

7 years agoMerge "Fixes Treble marshaling of strings embedded in structures from Java"
Treehugger Robot [Mon, 6 Feb 2017 23:41:27 +0000 (23:41 +0000)]
Merge "Fixes Treble marshaling of strings embedded in structures from Java"

7 years agoMerge "Add a mechanism to configure the default A2DP codec priorities"
Pavlin Radoslavov [Mon, 6 Feb 2017 23:12:23 +0000 (23:12 +0000)]
Merge "Add a mechanism to configure the default A2DP codec priorities"
am: acf34d8b62

Change-Id: I8a97b344bb09f4bded076ea81875b3b78dc50bea

7 years agoMerge "Hotspot Tile: longclick should open Tethering settings"
Jason Monk [Mon, 6 Feb 2017 23:03:24 +0000 (23:03 +0000)]
Merge "Hotspot Tile: longclick should open Tethering settings"
am: 96c4f1a21e

Change-Id: I42b701c8d390333f6d121bea2ee6c3284e646e9c

7 years agoMerge "Add a mechanism to configure the default A2DP codec priorities"
Treehugger Robot [Mon, 6 Feb 2017 22:59:50 +0000 (22:59 +0000)]
Merge "Add a mechanism to configure the default A2DP codec priorities"

7 years agoMerge "Remove uncessary dependency of libhwui"
Miao Wang [Mon, 6 Feb 2017 22:56:58 +0000 (22:56 +0000)]
Merge "Remove uncessary dependency of libhwui"
am: df36be5f17

Change-Id: I5ccce1f195a43ff00b9bd7fc350d7ae915c566d7

7 years agoMerge "Hotspot Tile: longclick should open Tethering settings"
Jason Monk [Mon, 6 Feb 2017 22:53:58 +0000 (22:53 +0000)]
Merge "Hotspot Tile: longclick should open Tethering settings"

7 years agoPerform camera permission and app ops check when setting camera for VT.
Tyler Gunn [Wed, 9 Nov 2016 18:19:23 +0000 (10:19 -0800)]
Perform camera permission and app ops check when setting camera for VT.

When a calling InCallService attempts to use the setCamera API on the
VideoCall, Telecom will perform a permission check to ensure that the
caller has the correct camera permission and passes the app-ops camera
check.  A failure to set the camera will result in a callback via the
call session event API.

This got a little messy as the app ops package name needs to come from the
InCallService, and handler usage in the VideoProvider API means we had to
pass around the uid/pid of the caller, obtained before we trampoline onto
the handler.

Test: Unit tests added, manual testing performed.
Bug: 32747443
Change-Id: I555a04f9c3fb45e60bb811f64ba855ccf2e3b0e2

7 years agoMerge "Remove uncessary dependency of libhwui"
Miao Wang [Mon, 6 Feb 2017 22:47:15 +0000 (22:47 +0000)]
Merge "Remove uncessary dependency of libhwui"

7 years agoMerge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged"
Jack Yu [Mon, 6 Feb 2017 22:47:05 +0000 (22:47 +0000)]
Merge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged"
am: 84f97e21b2

Change-Id: Ib35393c60b0800d21507bd5d8ffe35345e6e6926

7 years agoMerge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged"
Treehugger Robot [Mon, 6 Feb 2017 22:41:10 +0000 (22:41 +0000)]
Merge "Renamed voiceNetworkStateChanged and dataNetworkStateChanged"

7 years agoMerge "Self managed CS implementation."
Tyler Gunn [Mon, 6 Feb 2017 22:40:39 +0000 (22:40 +0000)]
Merge "Self managed CS implementation."
am: d736a6b2c2

Change-Id: I9c1a84cade87a208f2e509fb0f32457c64014147

7 years agoMerge "Self managed CS implementation."
Tyler Gunn [Mon, 6 Feb 2017 22:32:13 +0000 (22:32 +0000)]
Merge "Self managed CS implementation."

7 years agoMerge "Framework fixes to support VoLTE conf calls via RemoteConnectionServices."
Brad Ebinger [Mon, 6 Feb 2017 22:10:26 +0000 (22:10 +0000)]
Merge "Framework fixes to support VoLTE conf calls via RemoteConnectionServices."
am: ed839943e0

Change-Id: Ib8ed5dbf927300503aba1d97af25703b380c56a4

7 years agoRenamed voiceNetworkStateChanged and dataNetworkStateChanged
Jack Yu [Thu, 26 Jan 2017 20:45:57 +0000 (12:45 -0800)]
Renamed voiceNetworkStateChanged and dataNetworkStateChanged

The misleading voiceNetworkStateChanged should be renamed
to networkStateChanged to reflect either voice or data
network changes will trigger this indication.
And dataNetworkStateChanged should be renamed to
dataCallListChanged as well.

Test: Build
Merged-In: Icf20ceb3718794f7aa62650816714ac8679d101a
Change-Id: Icf20ceb3718794f7aa62650816714ac8679d101a

7 years agoMerge "Framework fixes to support VoLTE conf calls via RemoteConnectionServices."
Brad Ebinger [Mon, 6 Feb 2017 22:03:29 +0000 (22:03 +0000)]
Merge "Framework fixes to support VoLTE conf calls via RemoteConnectionServices."

7 years agoAdd a mechanism to configure the default A2DP codec priorities
Pavlin Radoslavov [Sun, 5 Feb 2017 23:45:06 +0000 (15:45 -0800)]
Add a mechanism to configure the default A2DP codec priorities

Previously, the relative codec priorities were hard-codec internally.
The new mechanism uses the following configurable resources in
packages/apps/Bluetooth/res/values/config.xml to re-assign the
default codec priorities per device, or to explicitly disable a codec.

 - a2dp_source_codec_priority_sbc
 - a2dp_source_codec_priority_aac
 - a2dp_source_codec_priority_aptx
 - a2dp_source_codec_priority_aptx_hd
 - a2dp_source_codec_priority_ldac

Those values are assigned on startup.
Also, they can be changed per device by using an overlay:
device/<VENDOR>/<DEVICE>/overlay/packages/apps/Bluetooth/res/values/config.xml

Test: Manually streaming to a headset
Change-Id: Ic4da3a51ac73f00cbae731156cb7878c8fadee06

7 years agoMerge "Expand whitelist"
Paul Lawrence [Mon, 6 Feb 2017 20:52:49 +0000 (20:52 +0000)]
Merge "Expand whitelist"
am: 006065fee4

Change-Id: I8e370c7afddc4911e3860d62809fd007bac40a0b

7 years agoMerge "Expand whitelist"
Treehugger Robot [Mon, 6 Feb 2017 20:43:01 +0000 (20:43 +0000)]
Merge "Expand whitelist"

7 years agoFramework fixes to support VoLTE conf calls via RemoteConnectionServices.
Tyler Gunn [Mon, 17 Oct 2016 22:48:19 +0000 (15:48 -0700)]
Framework fixes to support VoLTE conf calls via RemoteConnectionServices.

Fixing some issues with the addExistingConnection and addConference APIs
on ConnectionService.  When a connection manager relays the addition of
an existing connection or a conference to Telecom, it will assign a new
ID to the new connection/conference.  Due to how RemoteCSes work, the
Connection/Conf will be added directly via TelephonyConnectionService and
also via the connection manager's connection service.  Because the ID
changes, we ended up adding these twice. Conferences weren't a problem in
the GSM conference case because the TElephonyConnectionService's
ConnectionServiceWrapper didn't know of the IDs for the children of the
conference.  However, due to how the existing connections work its not the
case for VoLTE conferences.  To mitigate this, I'm passing the original
connection/conference ID to the connection manager via extras (ugh) and
using this to ensure that when the new existing connection/conference is
added to telecom that the same ID is used.  This ensures that we can
properly de-dupe the requests from TelephonyConnectionService and the
connection manager.

Also, there was some missing code in RemoteConnectionService which would
cause it to not properly track existing connections.

Bug: 31464792
Change-Id: I436f4438fd000ea48ebea7ceb75105bd3f456e46

7 years agoRemove uncessary dependency of libhwui
Miao Wang [Wed, 1 Feb 2017 01:26:52 +0000 (17:26 -0800)]
Remove uncessary dependency of libhwui

  - libRS.so is not directly used. It is accessed by libRScpp.so.

Test: mm, and boot-up test on sailfish
Change-Id: I5742d2ee3b34ef09bcb997524408affce1ace8fd
(cherry picked from commit 629fd3d48ba1dbedc6e84e91a26f72fb1fba0e22)

7 years agoFixes Treble marshaling of strings embedded in structures from Java
Andreas Huber [Mon, 6 Feb 2017 19:49:26 +0000 (11:49 -0800)]
Fixes Treble marshaling of strings embedded in structures from Java

Bug: 35038064
Test: hidl_test_java
Change-Id: Ibfdeae06fdf3982d226a7fa87d4c23feeb8e766e

7 years agoMerge changes from topic 'debuggerd_ambient'
Josh Gao [Mon, 6 Feb 2017 18:53:04 +0000 (18:53 +0000)]
Merge changes from topic 'debuggerd_ambient'
am: 0784e51163

Change-Id: I842b682377d92f1b140fe442073d7b97d5090208

7 years agozygote: make all capabilities inheritable.
Josh Gao [Mon, 6 Feb 2017 18:44:46 +0000 (18:44 +0000)]
zygote: make all capabilities inheritable.
am: 45dab78e98

Change-Id: I1983899a771bb82f644c75c0fe3e38342aab8402

7 years agoRevert "zygote: don't drop CAP_SYS_PTRACE from the bounding set."
Josh Gao [Mon, 6 Feb 2017 18:44:03 +0000 (18:44 +0000)]
Revert "zygote: don't drop CAP_SYS_PTRACE from the bounding set."
am: 0a2d61505a

Change-Id: I38d9ec4b7be41b5ed7b3d9c30bce1c09315a5135

7 years agoMerge changes from topic 'debuggerd_ambient'
Josh Gao [Mon, 6 Feb 2017 18:37:54 +0000 (18:37 +0000)]
Merge changes from topic 'debuggerd_ambient'

* changes:
  zygote: make all capabilities inheritable.
  Revert "zygote: don't drop CAP_SYS_PTRACE from the bounding set."

7 years agoExpand whitelist
Paul Lawrence [Mon, 6 Feb 2017 18:16:38 +0000 (10:16 -0800)]
Expand whitelist

Bug: 35034743
Test: Builds, boots
Change-Id: I5ab77554d23a8498cf32953d447534742683deb8

7 years agoSelf managed CS implementation.
Tyler Gunn [Tue, 31 Jan 2017 18:49:05 +0000 (10:49 -0800)]
Self managed CS implementation.

Add required AIDL changes to pass along connection fails.

Test: Manual
Bug: 34159263
Merged-In: I0a24ff786b2867aa4e19ac79959df54a04983251
Change-Id: I0a24ff786b2867aa4e19ac79959df54a04983251

7 years agoMerge "Add tile information to ACTION_QS_TILE_PREFERENCES intent"
Jason Monk [Mon, 6 Feb 2017 15:43:04 +0000 (15:43 +0000)]
Merge "Add tile information to ACTION_QS_TILE_PREFERENCES intent"
am: ff1d8da55e

Change-Id: I173b94730ae02f3e9b0638aac9f43972b59e10f3

7 years agoMerge "Add tile information to ACTION_QS_TILE_PREFERENCES intent"
Jason Monk [Mon, 6 Feb 2017 15:34:37 +0000 (15:34 +0000)]
Merge "Add tile information to ACTION_QS_TILE_PREFERENCES intent"

7 years agoMerge "MethodHandles: Expose additional API."
Narayan Kamath [Mon, 6 Feb 2017 14:15:48 +0000 (14:15 +0000)]
Merge "MethodHandles: Expose additional API."
am: 869141fef7

Change-Id: I73b9867bc1973dd4661470cebb0d9086666593aa

7 years agoMerge "MethodHandles: Expose additional API."
Narayan Kamath [Mon, 6 Feb 2017 14:09:45 +0000 (14:09 +0000)]
Merge "MethodHandles: Expose additional API."

7 years agoMerge "Add bytecodes for invoke-polymorphic"
Orion Hodson [Mon, 6 Feb 2017 10:30:40 +0000 (10:30 +0000)]
Merge "Add bytecodes for invoke-polymorphic"
am: ef59955f58

Change-Id: If95860a3680dc8857b54a864917d5074eba57c9a

7 years agoMerge "Add bytecodes for invoke-polymorphic"
Orion Hodson [Mon, 6 Feb 2017 10:21:53 +0000 (10:21 +0000)]
Merge "Add bytecodes for invoke-polymorphic"

7 years agoAdd tile information to ACTION_QS_TILE_PREFERENCES intent
Akira Oshimi [Tue, 24 Jan 2017 07:50:53 +0000 (16:50 +0900)]
Add tile information to ACTION_QS_TILE_PREFERENCES intent

One application can provide two or more custom Quick Settings tiles.
But there is no way to know which tile is long-pressed from application
side because ACTION_QS_TILE_PREFERENCES intent that is sent when
long-pressed doesn't have any additional information. So the component
name and state of the tile should be added to the intent.

Bug: 34832801
Test: manual - long press a custom tile

Change-Id: Iaa884cd944f19a2f007cbde645e8f8b1198bffb7

7 years agoHotspot Tile: longclick should open Tethering settings
Jake Whatley [Fri, 3 Feb 2017 01:25:12 +0000 (20:25 -0500)]
Hotspot Tile: longclick should open Tethering settings

Change-Id: I96729a1d74b3552a3b17a31f04043f75d3ace41d
Signed-off-by: Jake Whatley <jacob.whatley91@gmail.com>
7 years agoMerge "Add ShadowShaderAnimation benchmark DO NOT MERGE"
Chris Craik [Fri, 3 Feb 2017 21:53:26 +0000 (21:53 +0000)]
Merge "Add ShadowShaderAnimation benchmark DO NOT MERGE"
am: 6678d34133  -s ours

Change-Id: I841f908f57d94ee91c72ef2c6d428cc1f14a5690

7 years agoMerge "Add ShadowShaderAnimation benchmark DO NOT MERGE"
Chris Craik [Fri, 3 Feb 2017 21:44:34 +0000 (21:44 +0000)]
Merge "Add ShadowShaderAnimation benchmark DO NOT MERGE"

7 years agoMerge "Expand whitelist"
Paul Lawrence [Fri, 3 Feb 2017 21:23:55 +0000 (21:23 +0000)]
Merge "Expand whitelist"
am: fe88a5e81d

Change-Id: I9bc80af8b045edb667840828fc84f2e0ab12863b

7 years agoMerge "Expand whitelist"
Paul Lawrence [Fri, 3 Feb 2017 21:16:59 +0000 (21:16 +0000)]
Merge "Expand whitelist"

7 years agoMerge "Add "wifi lost" disconnect cause."
Tyler Gunn [Fri, 3 Feb 2017 21:10:39 +0000 (21:10 +0000)]
Merge "Add "wifi lost" disconnect cause."
am: 802b0c8fd1

Change-Id: I2f1ac8f8d8874f30720790888fa4e6beabc03c91

7 years agoMerge "Add "wifi lost" disconnect cause."
Tyler Gunn [Fri, 3 Feb 2017 21:03:22 +0000 (21:03 +0000)]
Merge "Add "wifi lost" disconnect cause."

7 years agoMerge "Optimize seccomp"
Paul Lawrence [Fri, 3 Feb 2017 20:19:11 +0000 (20:19 +0000)]
Merge "Optimize seccomp"
am: 7e812616c9

Change-Id: I6061c25fe18b136d9a4920acd3f54043c44abe4a

7 years agoMerge "Optimize seccomp"
Paul Lawrence [Fri, 3 Feb 2017 20:14:14 +0000 (20:14 +0000)]
Merge "Optimize seccomp"

7 years agoAdd ShadowShaderAnimation benchmark DO NOT MERGE
Chris Craik [Thu, 2 Feb 2017 23:41:58 +0000 (15:41 -0800)]
Add ShadowShaderAnimation benchmark DO NOT MERGE

Bug: 34809371
Test: manual

New benchmark uses several levels of overdraw from just shadows to benchmark
shadow shader performance.

Tessellation workload is minimal, due to simple rect caster shape.

Change-Id: I572476bd54e04566851f39027ada7254597b37f8

7 years agoAdd "wifi lost" disconnect cause.
Tyler Gunn [Mon, 30 Jan 2017 17:52:55 +0000 (09:52 -0800)]
Add "wifi lost" disconnect cause.

New disconnect cause used when wifi call is dropped due to loss of wifi
connection.

Test: Manual, unit.
Merged-In: Iedaa9f54ff6dbfe90a6ce01fc9eb0aad126d05f0
Bug: 32571209
Change-Id: Iedaa9f54ff6dbfe90a6ce01fc9eb0aad126d05f0

7 years agoExpand whitelist
Paul Lawrence [Fri, 3 Feb 2017 18:10:32 +0000 (10:10 -0800)]
Expand whitelist

Bug: 34908783
Test: Device boots. Unable to test app due to Fake OEM error
Change-Id: I2a0f5646fa39f95875ecb661599d76f4b28a43ac

7 years agoOptimize seccomp
Paul Lawrence [Thu, 2 Feb 2017 20:42:02 +0000 (12:42 -0800)]
Optimize seccomp

Bug: 34946764
Test: Make sure boots, seccomp still blocks, and is faster
Change-Id: I2b4da512f8a9eb8a32f4435561285d42e4b0395f

7 years agoMerge "wifi: WifiConfiguration: add isHomeProviderNetwork field"
Peter Qiu [Thu, 2 Feb 2017 19:37:50 +0000 (19:37 +0000)]
Merge "wifi: WifiConfiguration: add isHomeProviderNetwork field"
am: e724f82b3d

Change-Id: I250566dbd8dff8c50692e47b1b3e9bb7568bb8b4

7 years agoMerge "wifi: WifiConfiguration: add isHomeProviderNetwork field"
Treehugger Robot [Thu, 2 Feb 2017 19:29:51 +0000 (19:29 +0000)]
Merge "wifi: WifiConfiguration: add isHomeProviderNetwork field"

7 years agoMerge "Install seccomp into zygote not init"
Paul Lawrence [Thu, 2 Feb 2017 18:18:15 +0000 (18:18 +0000)]
Merge "Install seccomp into zygote not init"
am: ba9bbd8517

Change-Id: I989c34f133e37b68dbd387b263dc5191ac8d6215

7 years agoInstall seccomp into zygote not init
Paul Lawrence [Thu, 2 Feb 2017 18:18:08 +0000 (18:18 +0000)]
Install seccomp into zygote not init
am: ef85477470

Change-Id: I22745a759cc4f9797cb3c806bbdd4d69d6cccdcb

7 years agoMerge "Compile native network functionis into libandroid_net."
Alex Deymo [Thu, 2 Feb 2017 18:16:45 +0000 (18:16 +0000)]
Merge "Compile native network functionis into libandroid_net."
am: b1cb60d920

Change-Id: Ia0cf31b962cd26b9c7d1d4917b3523e7f3fbfa2c

7 years agoCompile native network functionis into libandroid_net.
Alex Deymo [Thu, 2 Feb 2017 18:11:40 +0000 (18:11 +0000)]
Compile native network functionis into libandroid_net.
am: f3b7411060

Change-Id: Ib01eaf11caacb35ba905012f06d0777d237dd2d1

7 years agoMerge "Install seccomp into zygote not init"
Paul Lawrence [Thu, 2 Feb 2017 18:09:17 +0000 (18:09 +0000)]
Merge "Install seccomp into zygote not init"

7 years agoMerge "Compile native network functionis into libandroid_net."
Treehugger Robot [Thu, 2 Feb 2017 17:59:52 +0000 (17:59 +0000)]
Merge "Compile native network functionis into libandroid_net."

7 years agoInstall seccomp into zygote not init
Paul Lawrence [Tue, 31 Jan 2017 17:54:31 +0000 (09:54 -0800)]
Install seccomp into zygote not init

Bug: 34710876
Test: Boots, correct size filter installed, blocks unallowed calls

Change-Id: I3e66e8724ace37f7d30451b98a5e574766252ea0

7 years agoMerge "Add ConnectivityManager.networkCapabilitiesForType()"
Erik Kline [Thu, 2 Feb 2017 07:22:05 +0000 (07:22 +0000)]
Merge "Add ConnectivityManager.networkCapabilitiesForType()"
am: c313123afe

Change-Id: I0ad50fbf38f11b383fd889dc598cfddd47051477

7 years agoMerge "Add ConnectivityManager.networkCapabilitiesForType()"
Treehugger Robot [Thu, 2 Feb 2017 07:15:03 +0000 (07:15 +0000)]
Merge "Add ConnectivityManager.networkCapabilitiesForType()"

7 years agoMerge "Define Network notification proto constants."
Hugo Benichi [Thu, 2 Feb 2017 06:42:32 +0000 (06:42 +0000)]
Merge "Define Network notification proto constants."
am: 05550d9ed8

Change-Id: I3a169ace694ed42c59f3d818f007b638fdf4969f

7 years agoMerge "Define Network notification proto constants."
Hugo Benichi [Thu, 2 Feb 2017 06:36:21 +0000 (06:36 +0000)]
Merge "Define Network notification proto constants."

7 years agoMerge "Add test for repeated calls to registerMobileUpstreamRequest()"
Erik Kline [Thu, 2 Feb 2017 05:15:23 +0000 (05:15 +0000)]
Merge "Add test for repeated calls to registerMobileUpstreamRequest()"
am: 603eefd5d5

Change-Id: I6b2a0d6df70df028ef9b8ff5d689c5a627d8daf8

7 years agoMerge "Add test for repeated calls to registerMobileUpstreamRequest()"
Treehugger Robot [Thu, 2 Feb 2017 05:07:22 +0000 (05:07 +0000)]
Merge "Add test for repeated calls to registerMobileUpstreamRequest()"

7 years agoAdd ConnectivityManager.networkCapabilitiesForType()
Erik Kline [Thu, 26 Jan 2017 09:08:28 +0000 (18:08 +0900)]
Add ConnectivityManager.networkCapabilitiesForType()

This static method returns a NetworkCapabilities instance with
transports and capabilities set according to the given legacy type.

Also:
    - add NetworkRequest.Builder.setCapabilities(), to be able to use
      the NetworkCapabilities instances returned from the above
    - update UpstreamNetworkMonitor to make immediate use of this

Test: as follows
    - build (bullhead)
    - flashed
    - booted
    - runtest frameworks-net passes
    - WiFi to DUN upstream tethering works
Bug: 32163131

Change-Id: Idfe1ddd2815c355cbf27cf29eb0e3de177de84e9

7 years agozygote: make all capabilities inheritable.
Josh Gao [Wed, 1 Feb 2017 22:56:09 +0000 (14:56 -0800)]
zygote: make all capabilities inheritable.

Set CapInh to the full set of permitted capabilities, so that the crash
handler can raise ambient capabilities to allow crash_dump to ptrace
zygote-descended children without needing CAP_SYS_PTRACE. CapInh is
restricted by filesystem capabilities if the ambient capability set
hasn't been raised, so this should only have an effect when ambient
capabilities are modified.

Bug: http://b/34853272
Test: debuggerd -b `pidof system_server`
Change-Id: I27d2aa4ab4fc47a183ce2b254be178de4d58840c

7 years agoRevert "zygote: don't drop CAP_SYS_PTRACE from the bounding set."
Josh Gao [Wed, 1 Feb 2017 21:19:56 +0000 (13:19 -0800)]
Revert "zygote: don't drop CAP_SYS_PTRACE from the bounding set."

This reverts commit 59972218f8c0d397fc50400a2b8b9be92ceeaf93.

Bug: http://b/34853272
Test: debuggerd -b `pidof system_server`
Change-Id: I440932210b6e84647c2848bab2e082a58338fb1e

7 years agoMerge "Cleanup hwbinder getService code."
Steven Moreland [Wed, 1 Feb 2017 20:53:24 +0000 (20:53 +0000)]
Merge "Cleanup hwbinder getService code."
am: 9be24a3040

Change-Id: Idb75f2c41e6e0fd9c2eb03ef4960e40cb6556308

7 years agoMerge "Cleanup hwbinder getService code."
Treehugger Robot [Wed, 1 Feb 2017 20:46:45 +0000 (20:46 +0000)]
Merge "Cleanup hwbinder getService code."

7 years agoMerge "Turn off Dynamic IMS switching for now"
Brad Ebinger [Wed, 1 Feb 2017 19:44:55 +0000 (19:44 +0000)]
Merge "Turn off Dynamic IMS switching for now"
am: 2bb0d95e91

Change-Id: Ie74b53ca5f0b6463b371368608c793d402878d50

7 years agoMerge "Turn off Dynamic IMS switching for now"
Brad Ebinger [Wed, 1 Feb 2017 19:36:47 +0000 (19:36 +0000)]
Merge "Turn off Dynamic IMS switching for now"

7 years agoMerge "Adds @hide permission granting API for ImsServices"
Brad Ebinger [Wed, 1 Feb 2017 19:30:41 +0000 (19:30 +0000)]
Merge "Adds @hide permission granting API for ImsServices"
am: 390ec27f9d

Change-Id: I0f3d38811925884681d11cf18e12f1b0574d64c6

7 years agoMerge "Adds @hide permission granting API for ImsServices"
Treehugger Robot [Wed, 1 Feb 2017 19:24:10 +0000 (19:24 +0000)]
Merge "Adds @hide permission granting API for ImsServices"

7 years agoCleanup hwbinder getService code.
Steven Moreland [Wed, 1 Feb 2017 17:58:00 +0000 (09:58 -0800)]
Cleanup hwbinder getService code.

- Remove memory leaks.
- Make sure proper errors are getting thrown.
- Avoid SIGABRT

Test: hidl_test_java
Change-Id: Ia5680fd0ebf83d0f174bf0d8109bf60327be5f9d

7 years agoAdd bytecodes for invoke-polymorphic
Orion Hodson [Wed, 1 Feb 2017 12:02:16 +0000 (12:02 +0000)]
Add bytecodes for invoke-polymorphic

Bug: 30550796
Test: make
Change-Id: Iacdf0f6553556f04723fd31f76642cabd74a3553

7 years agoAdd test for repeated calls to registerMobileUpstreamRequest()
Erik Kline [Mon, 23 Jan 2017 10:05:28 +0000 (19:05 +0900)]
Add test for repeated calls to registerMobileUpstreamRequest()

Test: as follows
    - built
    - flashed
    - booted
    - runtest framework-net passes
Bug: 32163131

Change-Id: I6d2519601b7a9dcfda2917118214a7ceb9dbbb7f

7 years agoMerge "Fix a use-of-uninitialized-value warning"
George Burgess IV [Wed, 1 Feb 2017 07:15:00 +0000 (07:15 +0000)]
Merge "Fix a use-of-uninitialized-value warning"
am: 53873df5fe

Change-Id: I102fb345244f922cb41a5ce31b2de0af8e68bf97

7 years agoMerge "Fix a use-of-uninitialized-value warning"
Treehugger Robot [Wed, 1 Feb 2017 07:09:50 +0000 (07:09 +0000)]
Merge "Fix a use-of-uninitialized-value warning"

7 years agoMerge "hotspot2: implement hashCode() for classes with equals() function"
Peter Qiu [Wed, 1 Feb 2017 03:19:27 +0000 (03:19 +0000)]
Merge "hotspot2: implement hashCode() for classes with equals() function"
am: 2ac992fcad

Change-Id: I15cec4598a8a97b25c6b8ce62864ccb6b240bfde

7 years agoMerge "hotspot2: implement hashCode() for classes with equals() function"
Treehugger Robot [Wed, 1 Feb 2017 03:12:12 +0000 (03:12 +0000)]
Merge "hotspot2: implement hashCode() for classes with equals() function"

7 years agoMerge "Print the package name and creator UID in dump()."
Jeremy Joslin [Wed, 1 Feb 2017 02:50:25 +0000 (02:50 +0000)]
Merge "Print the package name and creator UID in dump()."
am: cf7f9dd6a1

Change-Id: Ifd7812ff0acba03544a05a3fcea7721da8fe7d0f

7 years agoMerge "hotspot2: update PasspointConfiguration APIs"
Peter Qiu [Wed, 1 Feb 2017 02:46:39 +0000 (02:46 +0000)]
Merge "hotspot2: update PasspointConfiguration APIs"
am: 59da9b24ca

Change-Id: Ide7fa5aee33295bf813dd647fffcb69ce5edf9d8

7 years agoMerge "Print the package name and creator UID in dump()."
Treehugger Robot [Wed, 1 Feb 2017 02:40:59 +0000 (02:40 +0000)]
Merge "Print the package name and creator UID in dump()."

7 years agoMerge changes If420bd66,Icbb161ca,Ida190e5a,Iae75781f
Lorenzo Colitti [Wed, 1 Feb 2017 02:39:35 +0000 (02:39 +0000)]
Merge changes If420bd66,Icbb161ca,Ida190e5a,Iae75781f
am: 2ec8b8bcb6

Change-Id: I2dd27a886aabfe0b4733ee9559886f917ccd921e

7 years agoConnectivityServiceTest: remove remaining poll loops.
Lorenzo Colitti [Wed, 1 Feb 2017 02:39:30 +0000 (02:39 +0000)]
ConnectivityServiceTest: remove remaining poll loops.
am: d2706127d0

Change-Id: I675096683c8ed4bc0e540491c0ff6aa828114313

7 years agoRemove assertEventuallyTrue as it's unnecessary.
Lorenzo Colitti [Wed, 1 Feb 2017 02:38:30 +0000 (02:38 +0000)]
Remove assertEventuallyTrue as it's unnecessary.
am: 30145d755c

Change-Id: Id574b27b40e35fbccac49910867e9735c03118d4

7 years agoRename AvoidBadWifiTracker to MultinetworkPolicyTracker
Lorenzo Colitti [Wed, 1 Feb 2017 02:37:31 +0000 (02:37 +0000)]
Rename AvoidBadWifiTracker to MultinetworkPolicyTracker
am: 58ebe1c6f1

Change-Id: I7615c9128deed7011eb9ab6f2efdcfe2e237a1a5

7 years agoAttempt to make waitForIdleHandler reliable.
Lorenzo Colitti [Wed, 1 Feb 2017 02:36:22 +0000 (02:36 +0000)]
Attempt to make waitForIdleHandler reliable.
am: ae3ce81cc3

Change-Id: Id7e23c3a2c885ff239efa577a8d366d3df6ca9a2

7 years agoMerge "hotspot2: update PasspointConfiguration APIs"
Treehugger Robot [Wed, 1 Feb 2017 02:35:19 +0000 (02:35 +0000)]
Merge "hotspot2: update PasspointConfiguration APIs"

7 years agoMerge changes If420bd66,Icbb161ca,Ida190e5a,Iae75781f
Lorenzo Colitti [Wed, 1 Feb 2017 02:25:42 +0000 (02:25 +0000)]
Merge changes If420bd66,Icbb161ca,Ida190e5a,Iae75781f

* changes:
  ConnectivityServiceTest: remove remaining poll loops.
  Remove assertEventuallyTrue as it's unnecessary.
  Rename AvoidBadWifiTracker to MultinetworkPolicyTracker
  Attempt to make waitForIdleHandler reliable.

7 years agoMerge "Post runnables instead of sending messages."
Jeremy Joslin [Wed, 1 Feb 2017 01:34:16 +0000 (01:34 +0000)]
Merge "Post runnables instead of sending messages."
am: 71317f4a6c

Change-Id: I13cb1fd38262f869b99245678c89f45b834210c8

7 years agoMerge "Post runnables instead of sending messages."
Treehugger Robot [Wed, 1 Feb 2017 01:26:04 +0000 (01:26 +0000)]
Merge "Post runnables instead of sending messages."

7 years agoFix a use-of-uninitialized-value warning
George Burgess IV [Tue, 24 Jan 2017 23:59:19 +0000 (15:59 -0800)]
Fix a use-of-uninitialized-value warning

This is the result of running ./gen after applying
I90bea0c94cf8d7f92a0d9a4db4e64e7e563bfb09.

Bug: None
Test: Still builds; warning is now gone.
Change-Id: Ibcd5e8dcec96406b529c5790ba0a2822dace25c2

7 years agoTurn off Dynamic IMS switching for now
Brad Ebinger [Tue, 31 Jan 2017 23:36:53 +0000 (15:36 -0800)]
Turn off Dynamic IMS switching for now

The new ImsService implementations must be in place before
ImsResolver/ImsManager can use the new Dynamic ImsService switching
system.

Test: Manual
Change-Id: Ie6454aec08a3f1ebd92271f1c0554c16dc57a868

7 years agoPrint the package name and creator UID in dump().
Jeremy Joslin [Tue, 31 Jan 2017 21:48:21 +0000 (13:48 -0800)]
Print the package name and creator UID in dump().

Add a little more info to help differentiate the registered score
caches during a dump.

Test: adb shell dumpsys network_score
Change-Id: I59cb877b3237aaa85cb564795fb8a41c3d95e315

7 years agohotspot2: implement hashCode() for classes with equals() function
Peter Qiu [Wed, 25 Jan 2017 20:27:08 +0000 (12:27 -0800)]
hotspot2: implement hashCode() for classes with equals() function

According to API guideline, classes that override equals()
function should override hashCode() as well.  Make it so.

Bug: 34198926
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I4c3afed78a2fc06cdc26dd04d076f579b3472139