Building with ninja failing


#21

after using chown to reset all ownership it starts to build but now I get this error :

ninja: Entering directory `.’
[ 0% 4/50476] build out/target/produc…bj/ETC/sepolicy_intermediates/sepolicy
FAILED: /bin/bash -c "(out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/kvim2/obj/ETC/sepolicy_intermediates/sepolicy.tmp out/target/product/kvim2/obj/ETC/sepolicy_intermediates/policy.conf ) && (out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/kvim2/obj/ETC/sepolicy_intermediates//sepolicy.dontaudit out/target/product/kvim2/obj/ETC/sepolicy_intermediates/policy.conf.dontaudit ) && (out/host/linux-x86/bin/sepolicy-analyze out/target/product/kvim2/obj/ETC/sepolicy_intermediates/sepolicy.tmp permissive > out/target/product/kvim2/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains ) && (if [ “userdebug” = “user” -a -s out/target/product/kvim2/obj/ETC/sepolicy_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/kvim2/obj/ETC/sepolicy_intermediates/sepolicy.permissivedomains 1>&2; exit 1; fi ) && (mv out/target/product/kvim2/obj/ETC/sepolicy_intermediates/sepolicy.tmp out/target/product/kvim2/obj/ETC/sepolicy_intermediates/sepolicy )“
system/sepolicy/adbd.te:5:ERROR ‘unknown type su’ at token ‘;’ on line 6139:
allow adbd su:process dyntransition;
#line 5
checkpolicy: error(s) encountered while parsing configuration
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/kvim2/obj/ETC/sepolicy_intermediates/policy.conf
[ 0% 4/50476] make Image
FAILED: /bin/bash -c “(make -j2 -C common O=…/out/target/product/kvim2/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- modules Image.gz ) && (: ) && (rm out/target/product/kvim2/obj/t83x -rf ) && (mkdir -p out/target/product/kvim2/obj/t83x ) && (cp hardware/arm/gpu/midgard/r16p0/* out/target/product/kvim2/obj/t83x/ -airf ) && (echo “make mali module KERNEL_ARCH is arm64 current dir is $(pwd)” ) && (echo “MALI is hardware/arm/gpu/midgard/r16p0, MALI_OUT is out/target/product/kvim2/obj/t83x” ) && (echo “GPU_DRV_VERSION is r16p0” ) && (make -j2 -C $(pwd)/out/target/product/kvim2/obj/KERNEL_OBJ M=$(pwd)/out/target/product/kvim2/obj/t83x/kernel/drivers/gpu/arm/midgard ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- EXTRA_CFLAGS=”-DCONFIG_MALI_PLATFORM_DEVICETREE -DCONFIG_MALI_MIDGARD_DVFS -DCONFIG_MALI_BACKEND=gpu” CONFIG_MALI_MIDGARD=m CONFIG_MALI_PLATFORM_DEVICETREE=y CONFIG_MALI_MIDGARD_DVFS=y CONFIG_MALI_BACKEND=gpu modules ) && (mkdir -p out/target/product/kvim2/system/lib ) && (cp out/target/product/kvim2/obj/t83x/kernel/drivers/gpu/arm/midgard/mali_kbase.ko out/target/product/kvim2/system/lib/mali.ko ) && (echo “make mali module finished current dir is $(pwd)” ) && (make -j2 CROSS_COMPILE=aarch64-linux-gnu- -f device/khadas/common/wifi_driver.mk multiwifi ) && (mkdir -p out/target/product/kvim2/root/boot ) && (mkdir -p out/target/product/kvim2/system/lib ) && (cp out/target/product/kvim2/obj/KERNEL_OBJ/drivers/usb/dwc3/dwc3.ko out/target/product/kvim2/system/lib/ ; true ) && (cp out/target/product/kvim2/obj/KERNEL_OBJ/drivers/amlogic/usb/dwc_otg/310/dwc_otg.ko out/target/product/kvim2/system/lib/ ; true )"
make: Entering directory '/home/daitallica/Projects/Android/Vim2/common’
KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769
KBUILD_CFLAGS_MODULE:-DMODULE
GEN /home/daitallica/Projects/Android/Vim2/out/target/product/kvim2/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
KBUILD_CFLAGS_MODULE:-DMODULE -mfix-cortex-a53-843419 -mfix-cortex-a53-835769
GEN /home/daitallica/Projects/Android/Vim2/out/target/product/kvim2/obj/KERNEL_OBJ/Makefile
CHK include/generated/uapi/linux/version.h
/home/daitallica/Projects/Android/Vim2/common/kernel/Makefile:146: *** No X.509 certificates found ***
Using /home/daitallica/Projects/Android/Vim2/common as source for kernel
CHK include/generated/utsrelease.h
CALL /home/daitallica/Projects/Android/Vim2/common/scripts/checksyscalls.sh
:1232:2: warning: #warning syscall renameat2 not implemented [-Wcpp]
CHK include/generated/compile.h
/home/daitallica/Projects/Android/Vim2/common/kernel/Makefile:146: *** No X.509 certificates found ***
GZIP kernel/config_data.gz
CHK kernel/config_data.h
CC drivers/amlogic/tvin/bt656/bt656_601_in.o
In file included from /home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.c:45:0:
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.c: In function ‘reg_store’:
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:266:9: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return val;
^
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:263:6: note: ‘val’ was declared here
int val;
^
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:266:9: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return val;
^
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:263:6: note: ‘val’ was declared here
int val;
^
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:266:9: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return val;
^
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:263:6: note: ‘val’ was declared here
int val;
^
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.c: In function ‘am656in_isr’:
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:266:9: error: ‘val’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
return val;
^
/home/daitallica/Projects/Android/Vim2/common/drivers/amlogic/tvin/bt656/bt656_601_in.h:263:6: note: ‘val’ was declared here
int val;
^
cc1: all warnings being treated as errors
/home/daitallica/Projects/Android/Vim2/common/scripts/Makefile.build:308: recipe for target ‘drivers/amlogic/tvin/bt656/bt656_601_in.o’ failed
make[5]: *** [drivers/amlogic/tvin/bt656/bt656_601_in.o] Error 1
/home/daitallica/Projects/Android/Vim2/common/scripts/Makefile.build:455: recipe for target ‘drivers/amlogic/tvin/bt656’ failed
make[4]: *** [drivers/amlogic/tvin/bt656] Error 2
/home/daitallica/Projects/Android/Vim2/common/scripts/Makefile.build:455: recipe for target ‘drivers/amlogic/tvin’ failed
make[3]: *** [drivers/amlogic/tvin] Error 2
/home/daitallica/Projects/Android/Vim2/common/scripts/Makefile.build:455: recipe for target ‘drivers/amlogic’ failed
make[2]: *** [drivers/amlogic] Error 2
/home/daitallica/Projects/Android/Vim2/common/Makefile:857: recipe for target ‘drivers’ failed
make[1]: *** [drivers] Error 2
make[1]: *** Waiting for unfinished jobs…
Makefile:133: recipe for target ‘sub-make’ failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/daitallica/Projects/Android/Vim2/common’
ninja: build stopped: subcommand failed.
build/core/ninja.mk:148: recipe for target ‘ninja_wrapper’ failed
make: *** [ninja_wrapper] Error 1


#22

Is there no Vanilla Build of Android that passes Safetynet ?
i.e
no su installed and selinux set to enforce ?


#23

I’m sorry to reply for you so late. Now is Chinese Spring Festival and I’m not at company.
Why did you need to remove SU and set selinux to enforce?


#24

You can remove the file /system/xbin/su and /system/bin/su with adb command.
About the selinux, you can set the env EnableSelinux to enforcing with u-boot tftp command mode.


#25

If android fails the playstore safetynet netflix will only play in SD Quality.

I can remove su, but im having to set selinux to enforce on each boot.

An end user android would be perfect.
I wanted a media box but also play emulators. But so far I just cant get netflix to work in 1080p