Utilize high_priority_deps in autogenerated filesystem modules

The auto generated prebuilt_* module will be listed in
high_priority_deps property of the auto generated filesystem module if
it is listed in the allowlist. The allowlist is empty in aosp, but will
be extended in internal via a soong plugin.

Test: m nothing
Bug: 375053752
Change-Id: Iaa7291bebf8732f47f8da70421a787dfd275b621
diff --git a/fsgen/filesystem_creator.go b/fsgen/filesystem_creator.go
index 766176d..61848eb 100644
--- a/fsgen/filesystem_creator.go
+++ b/fsgen/filesystem_creator.go
@@ -228,8 +228,9 @@
 }
 
 type packagingPropsStruct struct {
-	Deps     []string
-	Multilib multilibDepsStruct
+	High_priority_deps []string
+	Deps               []string
+	Multilib           multilibDepsStruct
 }
 
 func fullyQualifiedModuleName(moduleName, namespace string) string {
@@ -305,12 +306,16 @@
 	})
 }
 
+var HighPriorityDeps = []string{}
+
 func generateDepStruct(deps map[string]*depCandidateProps) *packagingPropsStruct {
 	depsStruct := packagingPropsStruct{}
 	for depName, depProps := range deps {
 		bitness := getBitness(depProps.Arch)
 		fullyQualifiedDepName := fullyQualifiedModuleName(depName, depProps.Namespace)
-		if android.InList("32", bitness) && android.InList("64", bitness) {
+		if android.InList(depName, HighPriorityDeps) {
+			depsStruct.High_priority_deps = append(depsStruct.High_priority_deps, fullyQualifiedDepName)
+		} else if android.InList("32", bitness) && android.InList("64", bitness) {
 			// If both 32 and 64 bit variants are enabled for this module
 			switch depProps.Multilib {
 			case string(android.MultilibBoth):