[Android Software/Hacking General [Developers Only]] acetone802000:
Thank you very much for your guide.

My phone is an OnePlus 3 with no Treble support

i have some errors at the "brunch" command.

1) sudo apt update && sudo apt full-upgrade -y && sudo apt install -y bc build-essential ccache curl g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop m4 openjdk-8-jdk pngcrush repo rsync schedtool squashfs-tools xsltproc zip zlib1g-dev adb

2) mkdir -p ~/android/lineage && cd android/lineage

3) repo init -u https://github.com/LineageOS/android.git -b lineage-16.0

4) repo sync

5) i had to add email and name to the repo:

git config --global user.email email@example.com.

git config --global user.name name

(not sure that i used this commands but the good commands are shown first time i made an repo sync)

5) source build/envsetup.sh

6) Add the following to .repo/local_manifests/roomservice.xml: <project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" depth="1" />

7) repo sync

8) breakfast oneplus3 <--- No error

9) brunch oneplus3 <--- Many errors

please, have you any idea where i made an error ?

Thanks in advance

errors:

ninja: no work to do.

ninja: no work to do.

No need to regenerate ninja file

No need to regenerate ninja file

[ 0% 27/67485] Building Kernel Config

make*: on entre dans le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

make[1]*: on entre dans le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

GEN ./Makefile

#

# configuration written to .config

#

make[1]*: on quitte le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

make*: on quitte le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

make*: on entre dans le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

make[1]*: on entre dans le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

GEN ./Makefile

scripts/kconfig/conf --savedefconfig=defconfig Kconfig

make[1]*: on quitte le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

make*: on quitte le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

[ 0% 42/67485] build /home/francois/a...ows_intermediates/sepolicy_neverallows

FAILED: /home/francois/android/lineage/out/target/product/oneplus3/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows

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

libsepol.report_failure: neverallow on line 8 of system/sepolicy/private/performanced.te (or line 31049 of policy.conf) violated by allow system_app perfprofd:binder { call };

libsepol.report_failure: neverallow on line 139 of system/sepolicy/public/netd.te (or line 19444 of policy.conf) violated by allow system_app netd:binder { call };

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

libsepol.check_assertions: 3 neverallow failures occurred

Error while expanding policy

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

[ 0% 47/67485] build /home/francois/a...policy.recovery_intermediates/sepolicy

FAILED: /home/francois/android/lineage/out/target/product/oneplus3/obj/ETC/sepolicy.recovery_intermediates/sepolicy

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

libsepol.report_failure: neverallow on line 7 of system/sepolicy/private/perfprofd.te (or line 32707 of policy.conf) violated by allow system_app perfprofd:binder { call };

libsepol.report_failure: neverallow on line 139 of system/sepolicy/public/netd.te (or line 19619 of policy.conf) violated by allow system_app netd:binder { call };

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

libsepol.check_assertions: 3 neverallow failures occurred

Error while expanding policy

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

[ 0% 51/67485] Building Kernel

make*: on entre dans le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

make[1]*: on entre dans le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

GEN ./Makefile

scripts/kconfig/conf --silentoldconfig Kconfig

CHK include/config/kernel.release

GEN ./Makefile

CHK include/generated/uapi/linux/version.h

Using /home/francois/android/lineage/kernel/oneplus/msm8996 as source for kernel

CHK include/generated/utsrelease.h

CALL /home/francois/android/lineage/kernel/oneplus/msm8996/scripts/checksyscalls.sh

make[2]: «*include/generated/vdso-offsets.h*» est à jour.

make[2]: «*include/generated/vdso32-offsets.h*» est à jour.

CHK include/generated/compile.h

DTC arch/arm64/boot/dts/qcom/msm8996-v3-pmi8996-mtp_15801.dtb

DTC arch/arm64/boot/dts/qcom/msm8996pro-pmi8996-mtp_15811.dtb

CAT arch/arm64/boot/Image.gz-dtb

make[1]*: on quitte le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

make*: on quitte le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

Building DTBs

make*: on entre dans le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

make[1]*: on entre dans le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

CHK include/config/kernel.release

GEN ./Makefile

CHK include/generated/uapi/linux/version.h

Using /home/francois/android/lineage/kernel/oneplus/msm8996 as source for kernel

CHK include/generated/utsrelease.h

CALL /home/francois/android/lineage/kernel/oneplus/msm8996/scripts/checksyscalls.sh

make[2]: «*include/generated/vdso-offsets.h*» est à jour.

make[2]: «*include/generated/vdso32-offsets.h*» est à jour.

make[1]*: on quitte le répertoire «*/home/francois/android/lineage/out/target/product/oneplus3/obj/KERNEL_OBJ*»

make*: on quitte le répertoire «*/home/francois/android/lineage/kernel/oneplus/msm8996*»

ninja: build stopped: subcommand failed.

10:36:37 ninja failed with: exit status 1