Fix the model fetching

This commit is contained in:
walking-octopus 2022-07-31 10:28:20 +00:00 committed by GitHub
parent 5cab401189
commit a1e99aa0d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1244,7 +1244,7 @@ get_distro() {
get_model() {
case $os in
Linux)
if [[ -d /usr/bin/system-image-cli || -d /system/app/ ]]; then
if [[ -d /android/system/ || -d /system/app/ ]]; then
model="$(getprop ro.product.brand) $(getprop ro.product.model)"
elif [[ -f /sys/devices/virtual/dmi/id/board_vendor ||