Extend processor detection on linux/android.

This commit is contained in:
abbie 2024-11-13 16:52:36 +00:00
parent 905e11c8fa
commit 06a4eb3876
Signed by: threeoh6000
GPG key ID: 801FE4AD456E922C

View file

@ -31,6 +31,8 @@ fi
if [ "$subtype" = "android" ]; then if [ "$subtype" = "android" ]; then
if [ -n "$(getprop ro.soc.manufacturer)$(getprop ro.soc.model)" ]; then if [ -n "$(getprop ro.soc.manufacturer)$(getprop ro.soc.model)" ]; then
processor="$(getprop ro.soc.manufacturer) $(getprop ro.soc.model)" processor="$(getprop ro.soc.manufacturer) $(getprop ro.soc.model)"
elif [ -n "$(getprop ro.hardware.chipname)" ]; then
processor="$(getprop ro.hardware.chipname)"
fi fi
fi fi
if [ "$hassed" -eq 1 ] && [ "$hasawk" -eq 1 ] && [ -n "$processor" ]; then if [ "$hassed" -eq 1 ] && [ "$hasawk" -eq 1 ] && [ -n "$processor" ]; then