bt available hack

Introduce a hack to facilitate the creation of the com.android.bt apex
without the need to upload 100+ cl in a single topic

We now want to progressively delete com.android.btservices apex and
replace all the apex_available rules to target the new apex name

Bug: 383863941
Test: m .
Flag: Exempt
Change-Id: Ibfe5f99755cf03fc335f6da3feaf1f9806fc4f3c
diff --git a/android/apex.go b/android/apex.go
index db955b5..bbd6875 100644
--- a/android/apex.go
+++ b/android/apex.go
@@ -452,6 +452,10 @@
 		if strings.HasSuffix(apex_name, ".*") && strings.HasPrefix(what, strings.TrimSuffix(apex_name, "*")) {
 			return true
 		}
+		// TODO b/383863941: Remove once legacy name is no longer used
+		if (apex_name == "com.android.btservices" && what == "com.android.bt") || (apex_name == "com.android.bt" && what == "com.android.btservices") {
+			return true
+		}
 	}
 	return false
 }