Merge "Move permissions allowlist for Tethering" am: a828eb711c

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/1909681

Change-Id: Ib5243e699e97d008df879b754a8399e435553792
This commit is contained in:
Treehugger Robot
2022-02-15 04:54:44 +00:00
committed by Automerger Merge Worker
5 changed files with 64 additions and 3 deletions

View File

@@ -179,7 +179,7 @@ android_app {
// The permission configuration *must* be included to ensure security of the device // The permission configuration *must* be included to ensure security of the device
required: [ required: [
"NetworkPermissionConfig", "NetworkPermissionConfig",
"privapp_whitelist_com.android.networkstack.tethering", "privapp_allowlist_com.android.tethering",
], ],
apex_available: ["com.android.tethering"], apex_available: ["com.android.tethering"],
lint: { strict_updatability_linting: true }, lint: { strict_updatability_linting: true },
@@ -199,7 +199,7 @@ android_app {
// The permission configuration *must* be included to ensure security of the device // The permission configuration *must* be included to ensure security of the device
required: [ required: [
"NetworkPermissionConfig", "NetworkPermissionConfig",
"privapp_whitelist_com.android.networkstack.tethering", "privapp_allowlist_com.android.tethering",
], ],
apex_available: ["com.android.tethering"], apex_available: ["com.android.tethering"],
lint: { strict_updatability_linting: true }, lint: { strict_updatability_linting: true },

View File

@@ -74,7 +74,10 @@ apex {
apps: [ apps: [
"ServiceConnectivityResources", "ServiceConnectivityResources",
], ],
prebuilts: ["current_sdkinfo"], prebuilts: [
"current_sdkinfo",
"privapp_allowlist_com.android.tethering",
],
manifest: "manifest.json", manifest: "manifest.json",
key: "com.android.tethering.key", key: "com.android.tethering.key",
// Indicates that pre-installed version of this apex can be compressed. // Indicates that pre-installed version of this apex can be compressed.

View File

@@ -0,0 +1,28 @@
//
// Copyright (C) 2022 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
default_visibility: ["//packages/modules/Connectivity/Tethering:__subpackages__"],
}
prebuilt_etc {
name: "privapp_allowlist_com.android.tethering",
sub_dir: "permissions",
filename: "permissions.xml",
src: "permissions.xml",
installable: false,
}

View File

@@ -0,0 +1,2 @@
per-file *.xml,OWNERS = set noparent
per-file *.xml,OWNERS = file:platform/frameworks/base:/data/etc/OWNERS

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (C) 2021 The Android Open Source Project
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License
-->
<permissions>
<privapp-permissions package="com.android.networkstack.tethering">
<permission name="android.permission.BLUETOOTH_PRIVILEGED" />
<permission name="android.permission.MANAGE_USB"/>
<permission name="android.permission.MODIFY_PHONE_STATE"/>
<permission name="android.permission.READ_NETWORK_USAGE_HISTORY"/>
<permission name="android.permission.TETHER_PRIVILEGED"/>
<permission name="android.permission.UPDATE_APP_OPS_STATS"/>
<permission name="android.permission.UPDATE_DEVICE_STATS"/>
</privapp-permissions>
</permissions>