From 24f81ca19fce1d82caa1bdea392bb8a550befc64 Mon Sep 17 00:00:00 2001 From: Raphael Mounier Date: Mon, 1 May 2023 16:09:32 +0200 Subject: [PATCH] add support of kirin710 model (huawei) Allows all phone models that have a kirin 710 processor to be seen as huawei branded phones. The following persist.sys.overlay.huawei property will be set to yes if the ro.hardware property or the ro.vendor.build.fingerprint property contains kirin710. persist.sys.overlay.huawei is used in the rw-system.sh file (for the NFC conf), in the huawei overlay and also at the trebleapp level --- vndk-detect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vndk-detect b/vndk-detect index 1f4caf4e6..a0002e523 100644 --- a/vndk-detect +++ b/vndk-detect @@ -16,11 +16,11 @@ if [ -d /sys/module/five ];then elif [ -f /sbin/adbd ];then mount -o bind /system/bin/adbd /sbin/adbd fi -if ( getprop ro.hardware | grep -qE '(kirin970|hi3660|hi6250|hi3670)' );then +if ( getprop ro.hardware | grep -qE '(kirin710|kirin970|hi3660|hi6250|hi3670)' );then FOUND_HUAWEI=1 fi -if getprop ro.vendor.build.fingerprint |grep -qiE '(huawei|honor|hi3660)';then +if getprop ro.vendor.build.fingerprint |grep -qiE '(huawei|honor|kirin710|kirin970|hi3660|hi6250|hi3670)';then FOUND_HUAWEI=1 fi