Hard-code apex_available handling for the btservices apex

Bug: 236192423
Test: TH
Change-Id: Ie095ae22704a80e0ec171b1bb3fdc995f95a1c64
This commit is contained in:
Oriol Prieto Gasco
2022-06-17 19:44:25 +00:00
committed by Oriol Prieto Gascó
parent 489912283e
commit 8132fbf8c1
2 changed files with 31 additions and 0 deletions

View File

@@ -454,6 +454,7 @@ func CheckAvailableForApex(what string, apex_available []string) bool {
}
return InList(what, apex_available) ||
(what != AvailableToPlatform && InList(AvailableToAnyApex, apex_available)) ||
(what == "com.android.btservices" && InList("com.android.bluetooth", apex_available)) ||
(strings.HasPrefix(what, "com.android.gki.") && InList(AvailableToGkiApex, apex_available))
}