Commit Graph

559692 Commits

Author SHA1 Message Date
Treehugger Robot
78a3fdfbed Merge "Revert "OMS: add tests for the OMS transactional API"" 2021-01-13 00:00:42 +00:00
Treehugger Robot
b294b8bc61 Merge "Revert "Push OverlayDeviceTests onto /system"" 2021-01-13 00:00:42 +00:00
Treehugger Robot
7facc4ec41 Merge "Revert "OMS: add transactional API"" 2021-01-13 00:00:42 +00:00
Tomasz Wasilczyk
c353781098 Merge "Keep Vehicle internal network always up" 2021-01-12 22:40:50 +00:00
Ken Chen
191e2d3c39 Merge "Let ConnectivityService control the socket closure" 2021-01-12 22:23:59 +00:00
Ryan Mitchell
0ad9a225d4 Revert "OMS: add tests for the OMS transactional API"
This reverts commit 2241956858.

Reason for revert: 177065099

Change-Id: Id47cc94591eefbc276f77ae8601bb6d52cfa2f63
2021-01-12 21:11:17 +00:00
Ryan Mitchell
118ddbccc9 Revert "Push OverlayDeviceTests onto /system"
This reverts commit 2b1b3b282f.

Reason for revert: b/177065099

Change-Id: I0ac8d525c9f36ace5e65ffb2305f75fef0b6dc65
2021-01-12 21:10:19 +00:00
Ryan Mitchell
295e0d7183 Revert "OMS: add transactional API"
This reverts commit ac6bbdb6b0.

Reason for revert: b/177065099

Change-Id: I11d8a498f25b3e734a28f160a6b65c5b5720a38d
2021-01-12 21:09:53 +00:00
Treehugger Robot
5be93c2823 Merge "Reland revert of "Added mitigation for b/122921367"""" 2021-01-12 20:32:17 +00:00
Adam Bookatz
da79da08f0 Merge "Add User* OWNERS file (part 2)" 2021-01-12 18:46:24 +00:00
Tomasz Wasilczyk
ab315c597d Keep Vehicle internal network always up
Bug: 171801262
Test: Boot with and without overlay set and check ifconfig
Change-Id: I1fd332caf3e09924abcfec9c2c137363be7873e4
2021-01-12 10:33:38 -08:00
Patrick Rohr
a96eeac8d6 Merge changes from topic "restricted-mode-cts"
* changes:
  Prevent clearing Restricted Mode uid state when other rules change
  Add shell command to query Restricted Mode state
  Add Restricted Mode settings observer to NetworkPolicyManagerService
2021-01-12 17:41:19 +00:00
Patrick Rohr
8591180dc5 Prevent clearing Restricted Mode uid state when other rules change
Bug: 157505406
Test: atest NetworkPolicyManagerServiceTest &&
      atest com.android.cts.net.HostsideRestrictBackgroundNetworkTests
Change-Id: I3437d222116a0860c8192d30b185560a73c043a7
2021-01-12 17:41:08 +00:00
Patrick Rohr
ce9f94d956 Add shell command to query Restricted Mode state
This will be used in the CTS test to query the state of the Restricted
Mode.

Test: adb shell cmd netpolicy get restricted-mode
Bug: 170323671
Bug: 175281879
Change-Id: Ic25b5835d48a4b54eb9f2b4817244651ea09bd60
2021-01-12 17:40:59 +00:00
Patrick Rohr
8b6082b585 Add Restricted Mode settings observer to NetworkPolicyManagerService
This allows to enable / disable restricted mode at runtime.

Test: adb shell settings put global restricted_networking_mode 1
Bug: 170322816
Bug: 157505406
Change-Id: Ie9456f6a0b8d6d4e8e4bdfc3f6954e247fd9c5fb
Merged-In: Ie9456f6a0b8d6d4e8e4bdfc3f6954e247fd9c5fb
2021-01-12 17:40:46 +00:00
Patrick Rohr
1ab1849ab2 Merge changes I0731fa84,Id31a60ad
* changes:
  Add Restricted Mode handling to NetworkPolicyManager
  Refactor updating rules for all apps in NetworkPolicyManagerService
2021-01-12 17:40:24 +00:00
Ken Chen
b2d17e81cc Let ConnectivityService control the socket closure
Netd currently calls maybeCloseSockets before adding/removing users for
network. The task should be moved from netd to CS. In this way, we can
handle WiFi lingering more easily in the future.

Test: atest HostsideVpnTests
Test: atest FrameworksNetTests
Change-Id: Icf8125e8552c89da367a67f48611ed193a1a343d
2021-01-12 23:50:28 +08:00
Benjamin Franz
458515e464 Merge "Add new overridable annotation to platform compat" 2021-01-12 15:38:01 +00:00
Patrick Rohr
048bc5ea80 Add Restricted Mode handling to NetworkPolicyManager
Adds Restricted Mode functionality to NetworkPolicyManager. When this
mode is turned on (via setting), only apps with
android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS will be able to
use the network. For all other apps, the network will be blocked by the
firewall. This is controlled by a new allowlist firewall chain
fw_restricted_mode.

As a first step, this implementation still requires a reboot after the
enabling / disabling the mode to take effect. I will provide the dynamic
configuration in the next CL.

Test: atest CtsHostsideNetworkTests && atest
NetworkPolicyManagerServiceTest
Bug: 170322816
Bug: 157505406
Bug: 170322455
Bug: 175281879

Exempt-From-Owner-Approval: Change already merged on internal gerrit.
Change-Id: I0731fa842c69683953baaf9ec3a9a03454f4c607
Merged-In: I0731fa842c69683953baaf9ec3a9a03454f4c607
2021-01-12 11:59:17 +00:00
Lorenzo Colitti
2982364969 Merge "Remove Vpn#isBlockingUid." 2021-01-12 10:20:33 +00:00
Paul Hu
158e8ae1f1 Merge "Replace NetworkPolicyManagerInternal#isUidNetworkingBlocked()" 2021-01-12 09:53:05 +00:00
Treehugger Robot
46c82c2739 Merge "[VCN02] Make LingerTimer takes request Id instead of NetworkRequest" 2021-01-12 08:59:04 +00:00
Patrick Rohr
e944af5bd6 Refactor updating rules for all apps in NetworkPolicyManagerService
This gives more flexibility to the user (e.g. will allow restricted
networking mode to update all firewall rules at once) and removes some
unnecessary code.

Bug: 170322816
Bug: 157505406
Test: atest NeworkPolicyManagerServiceTest
Change-Id: Id31a60ad37c280bfb4f5bacf63aafe9de28c5e62
Merged-In: Id31a60ad37c280bfb4f5bacf63aafe9de28c5e62
2021-01-12 09:25:06 +01:00
Treehugger Robot
e8cd6e4fef Merge "Improve error message when testing network factory" 2021-01-12 03:50:30 +00:00
paulhu
cb693f8e2c Replace NetworkPolicyManagerInternal#isUidNetworkingBlocked()
Connectivity service is going to become a mainline module which
will not able to access hidden APIs. NetworkPolicyManagerInternal
is a internal serivce that CS can't be access after be a mainline
module. Thus, replace NPMI#isUidNetworkingBlocked() to similar
method NPMS#isUidNetworkingBlocked() and create new API
NPM#isUidNetworkingBlocked() to support CS usage.

Bug: 170598012
Test: atest FrameworksNetTests
Test: atest FrameworksCoreTests:NetworkPolicyManagerTest
Test: atest FrameworksServicesTests:NetworkPolicyManagerServiceTest
Test: atest CtsNetTestCases
Test: atest CtsHostsideNetworkTests
Change-Id: Ic3427c71c395de787320f303c9513874b4d64f98
2021-01-12 10:53:05 +08:00
Remi NGUYEN VAN
2f0fafeb11 Merge "Revert^2 "Move service-connectivity to the tethering APEX"" 2021-01-12 01:35:30 +00:00
Remi NGUYEN VAN
5aec9c87e4 Merge "Revert^2 "Set setCurrentProxyScriptUrl as public"" 2021-01-12 01:34:53 +00:00
Adam Bookatz
6cd4cd01fb Add User* OWNERS file (part 2)
Part 1 was aosp/1546301.
Two parts are required due to b/175318571.

Test: N/A
Change-Id: I1a89f7d26da70dce36d1e891a8e8ebc4042dc56c
2021-01-12 01:03:39 +00:00
Adam Bookatz
d8782e1a11 Merge "Add User* OWNERS file (part 1)" 2021-01-12 01:00:38 +00:00
Jing Ji
3d4e998ee6 Merge "Add OWNERS coverage in package android.app" 2021-01-11 23:57:04 +00:00
Treehugger Robot
08763cddab Merge "Add additional biometrics OWNERS" 2021-01-11 23:46:09 +00:00
Pirama Arumuga Nainar
9254742566 Reland revert of "Added mitigation for b/122921367"""
This reverts commit 08ba820d9e.

Reason for revert: The original breakage of aosp_cf_x86_pasan should be fixed with the compiler update.

Change-Id: I551923330bd920e0645c62246801cc87a16402b2
2021-01-11 23:41:24 +00:00
Jakub Pawlowski
f04d2d58c2 Merge "gatt: Allow to set eatt support" 2021-01-11 22:28:49 +00:00
Kevin Chyn
835f50b21a Add additional biometrics OWNERS
Test: Builds
Change-Id: Ief8ea06dcc5803298294c639956cdfa97fa8be10
2021-01-11 13:43:29 -08:00
Dmitri Plotnikov
36a792091e Merge "Add PowerEstimators to the per-file OWNERS" 2021-01-11 20:43:52 +00:00
Peter Collingbourne
41e8a646cf Merge "Remove ANDROID_EXPERIMENTAL_MTE." 2021-01-11 20:42:44 +00:00
Adam Bookatz
512397276f Add User* OWNERS file (part 1)
Two parts are required due to b/175318571.

Test: N/A
Change-Id: I2bd2e1f71490e0d006ceeea177e2e5d5cd520a9a
2021-01-11 20:14:20 +00:00
Treehugger Robot
a04840d231 Merge "Include app hibernation OWNERS file in others" 2021-01-11 19:58:24 +00:00
Łukasz Rymanowski
9bf1c7c57c gatt: Allow to set eatt support
With this patch it is possible to enable eatt_support as a GATT Client
or GATT Server.

Tag: #feature
Bug: 159786353
Test: manually verified against device supporting EATT
Sponsor: jpawlowski@
Change-Id: I6835a2bbd1b0ab9d6d64ee2bac5dfc96c0563afd
2021-01-11 20:49:56 +01:00
Peter Collingbourne
b5de6041d5 Remove ANDROID_EXPERIMENTAL_MTE.
Now that the feature guarded by this flag has landed in Linux 5.10
we no longer need the flag, so we can remove it.

Bug: 135772972
Change-Id: I02fa50848cbd0486c23c8a229bb8f1ab5dd5a56f
2021-01-11 10:55:51 -08:00
Dmitri Plotnikov
f8248eb2eb Add PowerEstimators to the per-file OWNERS
Test: N/A
Change-Id: I7777551640227d7bfefbaa68f03e82167be39237
2021-01-11 10:50:28 -08:00
Jeff Sharkey
59df97be63 Merge "Add OWNERS for some tests" 2021-01-11 15:04:28 +00:00
Adrian Roos
9579132734 Merge "Add missing graphics/fonts OWNERS." 2021-01-11 13:43:43 +00:00
Treehugger Robot
163632b108 Merge "Cache bluetooth A2DP in AudioService callback thread" 2021-01-11 12:28:12 +00:00
Treehugger Robot
db50d542af Merge "Cache stream volumes to prevent ANR" 2021-01-11 12:20:02 +00:00
Sungsoo Lim
ca762cc0ad Cache bluetooth A2DP in AudioService callback thread
And replace an array map to sparse array.

Bug: 170327593
Test: manually
Change-Id: I791146f3ad87a35fac245bd159dd13b03e6f9e9f
2021-01-11 16:07:09 +09:00
Treehugger Robot
a1be0e120a Merge "Increase debounce time for DISCONNECT processing" 2021-01-11 04:57:17 +00:00
Lucas Lin
f0341dc38b Merge "Use netd-client instead of netd_aidl_interfaces-platform-java" 2021-01-11 01:49:12 +00:00
Sungsoo Lim
96d134d75a Cache stream volumes to prevent ANR
MediaRourter uses main thread for internal operations, and ANR could
happens if AudioService is not running when MediaRouter tried to get
stream volumes. This CL avoids such ANR by caching stream volumes.

Bug: 170327593
Test: manually
(cherry picked from internal master branch)

Change-Id: I7c00b26a3a25f17c877d3ec0e998905ab0b4af28
2021-01-11 10:04:08 +09:00
Suprabh Shukla
6dc36a56c0 Add OWNERS for some tests
Change-Id: I7a05307faf3789f942e25e90f305d6790705f184
Test: N/A
2021-01-09 19:26:16 +00:00