[Android] ThatisJigen:
I'm trying to build Arrow/Lineage for mido but i have always similiar error:

FAILED: out/target/product/mido/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/mido/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/mido/obj/ETC/sepolicy_neverallows_intermediates/policy.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/mido/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f out/target/product/mido/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/mido/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv out/target/product/mido/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp out/target/product/mido/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows )"

device/xiaomi/mido/sepolicy/vendor/qti_init_shell.te:6:ERROR 'unknown type qti_init_shell' at token ';' on line 52154:

typeattribute qti_init_shell data_between_core_and_vendor_violators;

if i ignore neverallow i get

FAILED: /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy

/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/gianfranco/android/arrowos/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/gianfranco/android/arrowos/out/host/linux-x86/bin/sepolicy-analyze /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ]; then echo "==========" 1>&2; echo "ERROR: permissive domains not allowed in user builds" 1>&2; echo "List of invalid domains:" 1>&2; cat /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/gianfranco/android/arrowos/out/target/product/mido/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"

device/qcom/sepolicy/private/dataservice_app.te:59:ERROR 'unknown type netd_socket' at token ';' on line 49779:

allow dataservice_app netd_socket:sock_file write;

#line 59

checkpolicy: error(s) encountered while parsing configuration

I've tried to comment the files using the missing typedef but they appears in too much files.

What am I missing? I have qcom/sepolicy and lineage/sepolicy in /device synced with lineageos github and same thing with arrowos...