[Moto G5S Plus Questions & Answers] QkiZMR:
I'm trying to build AOSP Extended for Sanders but I'm facing problem during compiling stuff. I used:

Device repo: https://github.com/AospExtended-Devices/android_device_motorola_sanders

Kernel source: https://github.com/Jorg3Lucas/android_kernel_motorola_msm8953

Vendor repo: https://github.com/AospExtended-Devices/android_vendor_motorola_sanders

Problem:

[ 36% 29755/82171] build /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy
FAILED: /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy
/bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 /home/qkiz/android/out/host/linux-x86/bin/checkpolicy -M -c	30 -o /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (/home/qkiz/android/out/host/linux-x86/bin/sepolicy-analyze /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s /home/qkiz/android/out/target/product/sanders/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/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2;	exit 1;	fi ) && (mv /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy.recovery_intermediates/sepolicy )"
device/motorola/sanders/sepolicy/vendor/file.te:36:ERROR 'Duplicate declaration of type' at token ';' on line 78529:
# sysfs
type sysfs_adsp, fs_type, sysfs_type;
checkpolicy: error(s) encountered while parsing configuration

36% 29757/82171] build /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.conf /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: policy configuration loaded /home/qkiz/android/out/host/linux-x86/bin/checkpolicy: writing CIL to /home/qkiz/android/out/target/product/sanders/obj/ETC/sepolicy_neverallows_intermediates/plat_pub_policy.cil.tmp [ 36% 29758/82171] //frameworks/base/libs/services:libservices clang++ aidl/frameworks/base/core/java/com/android/internal/os/IDropBoxManagerService.cpp [ 36% 29759/82171] //frameworks/base/libs/services:libservices clang++ src/os/StatsLogEventWrapper.cpp [ 36% 29760/82171] //frameworks/base/libs/services:libservices clang++ src/os/StatsDimensionsValue.cpp [ 36% 29761/82171] //frameworks/base/libs/services:libservices clang++ src/os/DropBoxManager.cpp [ 36% 29762/82171] //frameworks/native/services/utils:libserviceutils clang++ PriorityDumper.cpp ninja: build stopped: subcommand failed. build/make/core/main.mk:21: recipe for target 'run_soong_ui' failed [0;31m#### failed to build some targets (44:39 (mm:ss)) ####[00m

Anyone facing similar problem. Or maybe I used wrong repos to build image.