Add aconfig flags for Connectivity FlaggedAPI annotations
Bug: 321624552 Test: TH Change-Id: Idbec5e8af0f3764b5bf432e3dd5e6ba7f35aa81f
This commit is contained in:
parent
94192b136b
commit
3a586fc095
3 changed files with 69 additions and 1 deletions
|
|
@ -19,6 +19,10 @@ package {
|
|||
default_applicable_licenses: ["Android-Apache-2.0"],
|
||||
}
|
||||
|
||||
// This is a placeholder comment to avoid merge conflicts
|
||||
// as the above target may not exist
|
||||
// depending on the branch
|
||||
|
||||
// The library requires the final artifact to contain net-utils-device-common-struct.
|
||||
java_library {
|
||||
name: "connectivity-net-module-utils-bpf",
|
||||
|
|
@ -43,5 +47,7 @@ java_library {
|
|||
apex_available: [
|
||||
"com.android.tethering",
|
||||
],
|
||||
lint: { strict_updatability_linting: true },
|
||||
lint: {
|
||||
strict_updatability_linting: true,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
22
common/FlaggedApi.bp
Normal file
22
common/FlaggedApi.bp
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
//
|
||||
// Copyright (C) 2024 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.
|
||||
//
|
||||
|
||||
aconfig_declarations {
|
||||
name: "com.android.net.flags-aconfig",
|
||||
package: "com.android.net.flags",
|
||||
srcs: ["flags.aconfig"],
|
||||
visibility: ["//packages/modules/Connectivity:__subpackages__"],
|
||||
}
|
||||
40
common/flags.aconfig
Normal file
40
common/flags.aconfig
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
package: "com.android.net.flags"
|
||||
|
||||
# This file contains aconfig flags for FlaggedAPI annotations
|
||||
# Flags used from platform code must be in under frameworks
|
||||
|
||||
flag {
|
||||
name: "forbidden_capability"
|
||||
namespace: "android_core_networking"
|
||||
description: "This flag controls the forbidden capability API"
|
||||
bug: "302997505"
|
||||
}
|
||||
|
||||
flag {
|
||||
name: "set_data_saver_via_cm"
|
||||
namespace: "android_core_networking"
|
||||
description: "Set data saver through ConnectivityManager API"
|
||||
bug: "297836825"
|
||||
}
|
||||
|
||||
flag {
|
||||
name: "support_is_uid_networking_blocked"
|
||||
namespace: "android_core_networking"
|
||||
description: "This flag controls whether isUidNetworkingBlocked is supported"
|
||||
bug: "297836825"
|
||||
}
|
||||
|
||||
flag {
|
||||
name: "basic_background_restrictions_enabled"
|
||||
namespace: "android_core_networking"
|
||||
description: "Block network access for apps in a low importance background state"
|
||||
bug: "304347838"
|
||||
}
|
||||
|
||||
flag {
|
||||
name: "register_nsd_offload_engine"
|
||||
namespace: "android_core_networking"
|
||||
description: "The flag controls the access for registerOffloadEngine API in NsdManager"
|
||||
bug: "294777050"
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue