Create wpa_supplicant vendor apex
Flag: build.RELEASE_GOOGLE_PIXEL_APEX_WPA_SUPPLICANT
Bug: 295805441
Change-Id: I618599c984dd90a14688075c45370658fe21ffae
diff --git a/hostapd/Android.bp b/hostapd/Android.bp
index 533a917..4753644 100644
--- a/hostapd/Android.bp
+++ b/hostapd/Android.bp
@@ -743,3 +743,16 @@
}
// End of non-cuttlefish section
+
+genrule {
+ name: "com.android.hardware.hostapd.rc-gen",
+ srcs: ["hostapd.android.rc"],
+ out: ["com.android.hardware.hostapd.rc"],
+ cmd: "sed -E 's@/vendor/bin@/apex/com.android.hardware.wpa_supplicant/bin@' $(in) > $(out)",
+}
+
+prebuilt_etc {
+ name: "com.android.hardware.hostapd.rc",
+ src: ":com.android.hardware.hostapd.rc-gen",
+ installable: false,
+}