[Lenovo Vibe K5 Plus ROMs, Kernels, Recoveries, & O] adinechin:
Hi, I've cloned all repositories and trying to build but I have two questions :

should I use Java 8 to build or a newer version ?

how to solve the "neverallow" errors on the build ?

[ 0% 44/62355] build /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/adinechin/android/ArrowOS-10/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/policy.conf ) && (/home/adinechin/android/ArrowOS-10/out/host/linux-x86/bin/sepolicy-analyze /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp neverallow -w -f /home/adinechin/android/ArrowOS-10/out/target/product/A6020/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 /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp ) && (mv /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows.tmp /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows )"
libsepol.report_failure: neverallow on line 3 of device/arrow/sepolicy/legacy-common/public/legacy-camera-hal1/mediaserver.te (or line 28200 of policy.conf) violated by allow cameraserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 3 of device/arrow/sepolicy/legacy-common/public/legacy-camera-hal1/mediaserver.te (or line 28200 of policy.conf) violated by allow cameraserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 2 of device/arrow/sepolicy/legacy-common/public/legacy-camera-hal1/mediaserver.te (or line 28191 of policy.conf) violated by allow cameraserver cameraserver_service:service_manager { add };
libsepol.report_failure: neverallow on line 5 of system/sepolicy/public/hal_camera.te (or line 15194 of policy.conf) violated by allow mediaserver hal_camera_hwservice:hwservice_manager { find };
libsepol.report_failure: neverallow on line 21 of system/sepolicy/public/cameraserver.te (or line 10465 of policy.conf) violated by allow mediaserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 20 of system/sepolicy/public/cameraserver.te (or line 10456 of policy.conf) violated by allow mediaserver cameraserver_service:service_manager { add };
libsepol.report_failure: neverallow on line 1 of system/sepolicy/public/camera_service_server.te (or line 10323 of policy.conf) violated by allow mediaserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.check_assertions: 7 neverallow failures occurred
Error while expanding policy
[ 0% 46/62355] build /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/adinechin/android/ArrowOS-10/out/host/linux-x86/bin/checkpolicy -M -c 30 -o /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/adinechin/android/ArrowOS-10/out/host/linux-x86/bin/sepolicy-analyze /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/adinechin/android/ArrowOS-10/out/target/product/A6020/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/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/adinechin/android/ArrowOS-10/out/target/product/A6020/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
libsepol.report_failure: neverallow on line 3 of device/arrow/sepolicy/legacy-common/public/legacy-camera-hal1/mediaserver.te (or line 29952 of policy.conf) violated by allow cameraserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 3 of device/arrow/sepolicy/legacy-common/public/legacy-camera-hal1/mediaserver.te (or line 29952 of policy.conf) violated by allow cameraserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 2 of device/arrow/sepolicy/legacy-common/public/legacy-camera-hal1/mediaserver.te (or line 29943 of policy.conf) violated by allow cameraserver cameraserver_service:service_manager { add };
libsepol.report_failure: neverallow on line 5 of system/sepolicy/public/hal_camera.te (or line 15616 of policy.conf) violated by allow mediaserver hal_camera_hwservice:hwservice_manager { find };
libsepol.report_failure: neverallow on line 21 of system/sepolicy/public/cameraserver.te (or line 10498 of policy.conf) violated by allow mediaserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.report_failure: neverallow on line 20 of system/sepolicy/public/cameraserver.te (or line 10489 of policy.conf) violated by allow mediaserver cameraserver_service:service_manager { add };
libsepol.report_failure: neverallow on line 1 of system/sepolicy/public/camera_service_server.te (or line 10356 of policy.conf) violated by allow mediaserver fwk_camera_hwservice:hwservice_manager { add };
libsepol.check_assertions: 7 neverallow failures occurred
Error while expanding policy

Thanks !