From ae4c7775e281d262056bdc6d7ab5c257762d62f5 Mon Sep 17 00:00:00 2001 From: Chalard Jean Date: Tue, 28 May 2019 06:01:54 -0700 Subject: [PATCH] Let the system server have CONNECTIVITY_USE_RESTRICTED_NETWORKS. Also : - Fix testUidFilteringDuringVpnConnectDisconnectAndUidUpdates that was failing on devices with a first released SDK >= Q - Add a test actually tests that the system has the permission, as the test was only testing what's in the mock Bug: 119770201 Test: New test making sure this stays true Merged-In: I74cf5f0fa17fcf818f1fed78c7e3e4375c20152e Change-Id: I0daa644fbad8e389ad7cfa66c0e3b3480c8bb50a (cherry picked from commit 629b49d58fe8d108a3d7d47a21471aff913c6b34) --- core/res/AndroidManifest.xml | 1 + .../connectivity/PermissionMonitorTest.java | 20 +++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index bff954d0695bf..ab7aed3644010 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1697,6 +1697,7 @@ @hide --> +