Open Ingvarr71 opened 4 years ago
@Ingvarr71 dont build user for now , build eng or userdebug
@Ingvarr71 Fix ur sepolicy
@Ingvarr71 Use minimal sepolicy for now kek
dont build user for now , build eng or userdebug
iodine71@iodine71 ~/boot $ lunch
You're building on Linux
Lunch menu... pick a combo:
Which would you like? [aosp_arm-eng] 8
@Ingvarr71 Userdebug
@Ingvarr71 Userdebug
I collect userdebug and get this error
@Ingvarr71 seems you have an error in device/xiaomi/sdm660-common/sepolicy/vendor/hal_power_default.te, the defined rule allow hal_power_default debugfs_wlan:dir { open getattr read search ioctl lock };
seems have an unknown type debugfs_wlan
.
check inside sepolic/vendor/ for file.te
and look for something like :
type debugfs_wlan, file_type, sysfs_type
if you don't find it, means you have to define your own file_context
check this link
Hello! I am collecting 10 android, help solve the error.
[ 39% 49338/125733] build out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy FAILED: out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy /bin/bash -c "(ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp permissive > out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains ) && (if [ \"userdebug\" = \"user\" -a -s out/target/product/twolip/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 out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp out/target/product/twolip/obj/ETC/sepolicy.recovery_intermediates/sepolicy )" device/xiaomi/sdm660-common/sepolicy/vendor/hal_power_default.te:2:ERROR 'unknown type debugfs_wlan' at token ';' on line 88255:
line 2
allow hal_power_default debugfs_wlan:dir { open getattr read search ioctl lock }; checkpolicy: error(s) encountered while parsing configuration 05:50:13 ninja failed with: exit status 1
failed to build some targets (03:06:40 (hh:mm:ss))