Hi All,
I am following instructions here to build kernel and aosp for hikey970.
The kernel build goes through fine.
However the aosp build fails, here’s a snippet from the log.
`[ 33% 29428/87941] build out/target/product/hikey960/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallow
FAILED: out/target/product/hikey960/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c “(rm -f out/target/product/hikey960/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows ) && (ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/hikey960/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows out/target/product/hikey960/obj/ETC/sepolicy_neverallows_intermediates/policy.conf )”
device/linaro/hikey/sepolicy/hostapd.te:4:ERROR ‘unknown type hostapd’ at token ‘;’ on line 48127:
hostapd no longer directly accesses /data outside /data/vendor.
typeattribute hostapd data_between_core_and_vendor_violators;
checkpolicy: error(s) encountered while parsing configuration`
Has someone managed to solve this, if so can you post a solution?
Thanks