[Android Q&A, Help & Troubleshooting] Ishgalad:
Hello everyone

I hope I am here in the right forum.

I wanted to build a custom rom for my device(a5y17lte).I have Ubuntu installed on my PC. I followed the instructions on Lineageo's wiki. And I added the Repository / TheMuppets file to the file andriod / lineage / .repo / local_manifests / roomservice.xml. But I get a bug later when I run brunch a5y17lte.

Error Message:

2 warnings generated.

[ 30% 28298/92918] build /home/artjom/...ows_intermediates/reqd_policy_mask.cil

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/reqd_policy_mask.conf

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: policy configuration loaded

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/reqd_policy_mask.cil

[ 30% 28305/92918] build /home/artjom/...lows_intermediates/plat_pub_policy.cil

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.conf

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: policy configuration loaded

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil.tmp

[ 30% 28325/92918] build /home/artjom/...ows_intermediates/sepolicy_neverallows

FAILED: /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows

/bin/bash -c "(rm -f /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows ) && (ASAN_OPTIONS=detect_leaks=0 /home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy -M -c	30 -o /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/policy.conf )"

libsepol.report_failure: neverallow on line 1404 of system/sepolicy/public/domain.te (or line 11101 of policy.conf) violated by allow system_server sysfs_mdnie_writable:dir { write add_name remove_name };

libsepol.report_failure: neverallow on line 1404 of system/sepolicy/public/domain.te (or line 11101 of policy.conf) violated by allow init sysfs:dir { write add_name remove_name };

libsepol.report_failure: neverallow on line 1385 of system/sepolicy/public/domain.te (or line 11044 of policy.conf) violated by allow macloader macloader:capability { dac_override };

libsepol.report_failure: neverallow on line 1385 of system/sepolicy/public/domain.te (or line 11044 of policy.conf) violated by allow wifiloader wifiloader:capability { dac_override };

libsepol.report_failure: neverallow on line 1385 of system/sepolicy/public/domain.te (or line 11044 of policy.conf) violated by allow cpboot-daemon cpboot-daemon:capability { dac_override };

libsepol.check_assertions: 5 neverallow failures occurred

Error while expanding policy

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy_neverallows_intermediates/policy.conf

[ 30% 28326/92918] build /home/artjom/...policy.recovery_intermediates/sepolicy

FAILED: /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy

/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy -M -c	30 -o /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/artjom/android/lineage/out/host/linux-x86/bin/sepolicy-analyze /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ "userdebug" = "user" -a -s /home/artjom/android/lineage/out/target/product/a5y17lte/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/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"

libsepol.report_failure: neverallow on line 1404 of system/sepolicy/public/domain.te (or line 11160 of policy.conf) violated by allow system_server sysfs_mdnie_writable:dir { write add_name remove_name };

libsepol.report_failure: neverallow on line 1404 of system/sepolicy/public/domain.te (or line 11160 of policy.conf) violated by allow init sysfs:dir { write add_name remove_name };

libsepol.report_failure: neverallow on line 1385 of system/sepolicy/public/domain.te (or line 11103 of policy.conf) violated by allow wifiloader wifiloader:capability { dac_override };

libsepol.report_failure: neverallow on line 1385 of system/sepolicy/public/domain.te (or line 11103 of policy.conf) violated by allow cpboot-daemon cpboot-daemon:capability { dac_override };

libsepol.report_failure: neverallow on line 1385 of system/sepolicy/public/domain.te (or line 11103 of policy.conf) violated by allow macloader macloader:capability { dac_override };

libsepol.check_assertions: 5 neverallow failures occurred

Error while expanding policy

/home/artjom/android/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/artjom/android/lineage/out/target/product/a5y17lte/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf

[ 30% 28338/92918] //external/selinux/...g cil/src/cil_tree.c [linux_glibc x86]

ninja: build stopped: subcommand failed.

19:11:05 ninja failed with: exit status 1

#### failed to build some targets (28:41 (mm:ss)) ####

Thanks in advance