omni: Add aconfig flags extension for AP2A
Our ap2a.scl extends build/release's ap2a.scl to include our aconfig
value set.
Change-Id: I76c4eceaa1d37f479bd53922766175832d3abb5f
Signed-off-by: danielml <daniel@danielml.dev>
diff --git a/release/aconfig/ap2a/Android.bp b/release/aconfig/ap2a/Android.bp
new file mode 100644
index 0000000..f795b9e
--- /dev/null
+++ b/release/aconfig/ap2a/Android.bp
@@ -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-omnirom-ap2a",
+ values: [
+ "aconfig-values-ap2a-com.android.systemui.flags-all",
+ ],
+}
diff --git a/release/aconfig/ap2a/com.android.systemui/Android.bp b/release/aconfig/ap2a/com.android.systemui/Android.bp
new file mode 100644
index 0000000..0e857bb
--- /dev/null
+++ b/release/aconfig/ap2a/com.android.systemui/Android.bp
@@ -0,0 +1,23 @@
+//
+// 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-ap2a-com.android.systemui.flags-all",
+ package: "com.android.systemui",
+ srcs: [
+ "*.textproto",
+ ],
+}
diff --git a/release/aconfig/ap2a/com.android.systemui/systemui_flags.textproto b/release/aconfig/ap2a/com.android.systemui/systemui_flags.textproto
new file mode 100644
index 0000000..a58e9ba
--- /dev/null
+++ b/release/aconfig/ap2a/com.android.systemui/systemui_flags.textproto
@@ -0,0 +1,6 @@
+flag_value {
+ package: "com.android.systemui"
+ name: "notification_throttle_hun"
+ state: ENABLED
+ permission: READ_ONLY
+}
diff --git a/release/build_config/ap2a.scl b/release/build_config/ap2a.scl
new file mode 100644
index 0000000..abf0099
--- /dev/null
+++ b/release/build_config/ap2a.scl
@@ -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-omnirom-ap2a"),
+ # keep-sorted end
+]
diff --git a/release/release_config_map.mk b/release/release_config_map.mk
new file mode 100644
index 0000000..aa016cd
--- /dev/null
+++ b/release/release_config_map.mk
@@ -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, ap2a, $(local_dir)build_config/ap2a.scl)
+
+local_dir :=