lineage: Add aconfig flags extension for AP1A
Our ap1a.scl extends build/release's ap1a.scl to include our aconfig value set. Change-Id: I76c4eceaa1d37f479bd53922766175832d3abb5f Signed-off-by: danielml <daniel@danielml.dev>
This commit is contained in:
parent
3db0f47263
commit
0612158699
5 changed files with 94 additions and 0 deletions
21
release/aconfig/ap1a/Android.bp
Normal file
21
release/aconfig/ap1a/Android.bp
Normal file
|
@ -0,0 +1,21 @@
|
|||
//
|
||||
// Copyright (C) 2024 The LineageOS 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_value_set {
|
||||
name: "aconfig_value_set-lineage-ap1a",
|
||||
values: [
|
||||
"aconfig-values-ap1a-com.android.settingslib.media.flags-all",
|
||||
],
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
//
|
||||
// Copyright 2024 Google Inc. All rights reserved.
|
||||
//
|
||||
// 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_values {
|
||||
name: "aconfig-values-ap1a-com.android.settingslib.media.flags-all",
|
||||
package: "com.android.settingslib.media.flags",
|
||||
srcs: [
|
||||
"*_flag_values.textproto",
|
||||
],
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
flag_value {
|
||||
package: "com.android.settingslib.media.flags"
|
||||
name: "use_media_router2_for_info_media_manager"
|
||||
state: ENABLED
|
||||
permission: READ_WRITE
|
||||
}
|
23
release/build_config/ap1a.scl
Normal file
23
release/build_config/ap1a.scl
Normal file
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# Copyright (C) 2024 The LineageOS 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.
|
||||
|
||||
|
||||
load("//build/make/core/release_config.scl", "value")
|
||||
|
||||
values = [
|
||||
# keep-sorted start numeric=yes
|
||||
value("RELEASE_ACONFIG_VALUE_SETS", "aconfig_value_set-lineage-ap1a"),
|
||||
# keep-sorted end
|
||||
]
|
22
release/release_config_map.mk
Normal file
22
release/release_config_map.mk
Normal file
|
@ -0,0 +1,22 @@
|
|||
#
|
||||
# Copyright (C) 2024 The LineageOS 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.
|
||||
|
||||
# Get the directory for this file, and use that instead of a fixed path.
|
||||
local_dir := $(dir $(lastword $(MAKEFILE_LIST)))
|
||||
|
||||
# Attach the flag value definitions to the various release configurations.
|
||||
$(call declare-release-config, ap1a, $(local_dir)build_config/ap1a.scl)
|
||||
|
||||
local_dir :=
|
Loading…
Reference in a new issue