Declare framework-side hostapd (will be done by treble app)
Conflicts:
board-base.mk
Change-Id: I5f4d3912ddf03736cdf90ed8efdcfce135ae23a6
diff --git a/board-base.mk b/board-base.mk
index a51943b..9da7096 100644
--- a/board-base.mk
+++ b/board-base.mk
@@ -1,4 +1,6 @@
TARGET_SYSTEM_PROP := device/phh/treble/system.prop $(TARGET_SYSTEM_PROP)
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/phh/treble/bluetooth
TARGET_EXFAT_DRIVER := exfat
+DEVICE_FRAMEWORK_MANIFEST_FILE := device/phh/treble/framework_manifest.xml
+
BLISS_TREBLE_BUILD := true
\ No newline at end of file
diff --git a/framework_manifest.xml b/framework_manifest.xml
new file mode 100644
index 0000000..d0f6d40
--- /dev/null
+++ b/framework_manifest.xml
@@ -0,0 +1,12 @@
+<manifest version="1.0" type="framework">
+ <hal format="hidl">
+ <name>android.hardware.wifi.hostapd</name>
+ <transport>hwbinder</transport>
+ <version>1.0</version>
+ <interface>
+ <name>IHostapd</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>
+
diff --git a/sepolicy/treble_app.te b/sepolicy/treble_app.te
new file mode 100644
index 0000000..ae0271e
--- /dev/null
+++ b/sepolicy/treble_app.te
@@ -0,0 +1,5 @@
+allow system_app hal_wifi_hostapd_hwservice:hwservice_manager { add find };
+allow system_app hidl_base_hwservice:hwservice_manager { add };
+allow system_app wifi_data_file:dir create_dir_perms;
+allow system_app wifi_data_file:file create_file_perms;
+