diff options
author | 2024-07-01 09:46:55 +0200 | |
---|---|---|
committer | 2024-09-03 09:29:12 +0200 | |
commit | 37d295444aca10f92d9934eff744dfc8fb216f0c (patch) | |
tree | 12e7bfa8d4d7aa54c16daf144fa14e1964c4bbac /android-sdk-flags | |
parent | 2cf6816af362bbf2eb21434dfc264e9c39255cd8 (diff) |
Add android.sdk aconfig flags
Add the infrastructure for aconfig flags in the android.sdk package.
Also add the flag android.sdk.major_minor_versioning_scheme.
Bug: 350458259
Test: m nothing
Flag: EXEMPT no need to flag the introduction of new flags
Change-Id: I928b44dd802dc3d1351547d516d3c195329219a6
Diffstat (limited to 'android-sdk-flags')
-rw-r--r-- | android-sdk-flags/Android.bp | 30 | ||||
-rw-r--r-- | android-sdk-flags/flags.aconfig | 12 |
2 files changed, 42 insertions, 0 deletions
diff --git a/android-sdk-flags/Android.bp b/android-sdk-flags/Android.bp new file mode 100644 index 000000000000..79a0b9a4f273 --- /dev/null +++ b/android-sdk-flags/Android.bp @@ -0,0 +1,30 @@ +// 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. + +package { + default_applicable_licenses: ["frameworks_base_license"], +} + +aconfig_declarations { + name: "android-sdk-flags", + package: "android.sdk", + container: "system", + srcs: ["flags.aconfig"], +} + +java_aconfig_library { + name: "android-sdk-flags-java", + aconfig_declarations: "android-sdk-flags", + defaults: ["framework-minus-apex-aconfig-java-defaults"], +} diff --git a/android-sdk-flags/flags.aconfig b/android-sdk-flags/flags.aconfig new file mode 100644 index 000000000000..cfe298e187d1 --- /dev/null +++ b/android-sdk-flags/flags.aconfig @@ -0,0 +1,12 @@ +package: "android.sdk" +container: "system" + +flag { + name: "major_minor_versioning_scheme" + namespace: "android_sdk" + description: "Use the new SDK major.minor versioning scheme (e.g. Android 40.1) which replaces the old single-integer scheme (e.g. Android 15)." + bug: "350458259" + + # Use is_fixed_read_only because DeviceConfig may not be available when Build.VERSION_CODES is first accessed + is_fixed_read_only: true +} |