From 52f294cbc41c93926d2421ab74b0ef44ee5d7624 Mon Sep 17 00:00:00 2001 From: Motomu Utsumi <motomuman@google.com> Date: Thu, 15 Feb 2024 15:21:39 +0900 Subject: [PATCH] Update flags.aconfig to follow the current APIs This CL also specifies aconfig_declaration module in java_sdk_library register_nsd_offload_engine will be moved to the platform flags.aconfig in the followup CL. Test: TH Change-Id: I430a5f0b1e1ef2e3394cf6aa8efebbd46da41765 --- Tethering/common/TetheringLib/Android.bp | 3 ++ common/flags.aconfig | 42 ++++++++++++++++++++---- framework/Android.bp | 3 ++ 3 files changed, 41 insertions(+), 7 deletions(-) diff --git a/Tethering/common/TetheringLib/Android.bp b/Tethering/common/TetheringLib/Android.bp index 9c2a59dcd7..47227e38be 100644 --- a/Tethering/common/TetheringLib/Android.bp +++ b/Tethering/common/TetheringLib/Android.bp @@ -59,6 +59,9 @@ java_sdk_library { lint: { strict_updatability_linting: true, }, + aconfig_declarations: [ + "com.android.net.flags-aconfig", + ], } java_library { diff --git a/common/flags.aconfig b/common/flags.aconfig index 965354d8b3..8c448e6ffc 100644 --- a/common/flags.aconfig +++ b/common/flags.aconfig @@ -4,13 +4,6 @@ container: "system" # 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" @@ -52,3 +45,38 @@ flag { description: "The flag controls the access for the parcelable TetheringRequest with getSoftApConfiguration/setSoftApConfiguration API" bug: "216524590" } + +flag { + name: "request_restricted_wifi" + namespace: "android_core_networking" + description: "Flag for API to support requesting restricted wifi" + bug: "315835605" +} + +flag { + name: "net_capability_local_network" + namespace: "android_core_networking" + description: "Flag for local network capability API" + bug: "313000440" +} + +flag { + name: "support_transport_satellite" + namespace: "android_core_networking" + description: "Flag for satellite transport API" + bug: "320514105" +} + +flag { + name: "nsd_subtypes_support_enabled" + namespace: "android_core_networking" + description: "Flag for API to support nsd subtypes" + bug: "265095929" +} + +flag { + name: "register_nsd_offload_engine_api" + namespace: "android_core_networking" + description: "Flag for API to register nsd offload engine" + bug: "301713539" +} diff --git a/framework/Android.bp b/framework/Android.bp index 1356eea1ef..8fa336a771 100644 --- a/framework/Android.bp +++ b/framework/Android.bp @@ -195,6 +195,9 @@ java_sdk_library { lint: { baseline_filename: "lint-baseline.xml", }, + aconfig_declarations: [ + "com.android.net.flags-aconfig", + ], } platform_compat_config { -- GitLab