aconfig:add system_ext in the platform list
system_ext is added back as a separate partition on the device. Missing
it from the list the generated code will use AconfigPackage instead of
the PlatforAconfigPackage to access the flag value.
Test: m com_android_launcher3_flags_lib and check the generated code
uses the right class
Bug: 402133645
Change-Id: Ibc0bce78ec4c540be12f32418d4d241e20aacbc5
diff --git a/tools/aconfig/aconfig/src/codegen/java.rs b/tools/aconfig/aconfig/src/codegen/java.rs
index 61802f2..d74e87a 100644
--- a/tools/aconfig/aconfig/src/codegen/java.rs
+++ b/tools/aconfig/aconfig/src/codegen/java.rs
@@ -59,7 +59,8 @@
let runtime_lookup_required =
flag_elements.iter().any(|elem| elem.is_read_write) || library_exported;
let container = (flag_elements.first().expect("zero template flags").container).to_string();
- let is_platform_container = matches!(container.as_str(), "system" | "product" | "vendor");
+ let is_platform_container =
+ matches!(container.as_str(), "system" | "system_ext" | "product" | "vendor");
let context = Context {
flag_elements,
namespace_flags,