Hi,
I got the error message like that:
[ 31% 22712/71284] build out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
fAILED: out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c “(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/policy_2.conf || ( echo “” 1>&2; echo “sepolicy-analyze failed. This is most likely due to the use” 1>&2; echo “of an expanded attribute in a neverallow assertion. Please fix” 1>&2; echo “the policy.” 1>&2; exit 1 ) ) && (touch out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/hikey970/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows )”
device/linaro/hikey/sepolicy/hostapd.te:4:ERROR ‘unknown type hostapd’ at token ‘;’ on line 50922:
typeattribute hostapd data_between_core_and_vendor_violators;
hostapd no longer directly accesses /data outside /data/vendor.
checkpolicy: error(s) encountered while parsing configuration
20:43:13 ninja failed with: exit status 1
Is there anybody has a solution ?
It happend when I was compile from AOSP.
It confused me for 3days . Googled but nothing help.