From 098af60c4503ad4a8f53486ff11c5919889ee49e Mon Sep 17 00:00:00 2001 From: Sahaj Sarup Date: Tue, 18 Dec 2018 23:25:11 +0530 Subject: [PATCH] fixed build issue with aosp master branch fix based on: https://android-git.linaro.org/device/linaro/dragonboard410c.git/commit/?h=dragonboard&id=dbe30cae1ef227860089e1840aeb1cd140c0003a hostapd: Add HIDL interface and remove deprecated sepolicies Add hostapd HIDL interface and remove deprecated hostapd sepolicies since AOSP no longer have a predefined hostapd domain and we run into "ERROR 'unknown type hostapd'" build error instead. Signed-off-by: Sahaj Sarup --- manifest.xml | 9 +++++++++ sepolicy/hostapd.te | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 sepolicy/hostapd.te diff --git a/manifest.xml b/manifest.xml index fb88f0dc..e15f51b7 100644 --- a/manifest.xml +++ b/manifest.xml @@ -62,4 +62,13 @@ default + + android.hardware.wifi.hostapd + hwbinder + 1.0 + + IHostapd + default + + diff --git a/sepolicy/hostapd.te b/sepolicy/hostapd.te deleted file mode 100644 index 86b985ae..00000000 --- a/sepolicy/hostapd.te +++ /dev/null @@ -1,11 +0,0 @@ -# TODO(b/36657258): Remove data_between_core_and_vendor_violators once -# hostapd no longer directly accesses /data outside /data/vendor. -typeattribute hostapd data_between_core_and_vendor_violators; -# hostapd can read and write WiFi related data and configuration. -allow hostapd wifi_data_file:file rw_file_perms; -r_dir_file(hostapd, wifi_data_file) - -# hostapd wants to create the directory holding its control socket. -allow hostapd hostapd_socket:dir create_dir_perms; -# hostapd needs to create, bind to, read, and write its control socket. -allow hostapd hostapd_socket:sock_file create_file_perms;