From 9d7af7d2568a52ca6e2bccfaecfc44d549f786ed Mon Sep 17 00:00:00 2001 From: VionFrancois <78816256+VionFrancois@users.noreply.github.com> Date: Wed, 1 Oct 2025 16:56:09 +0200 Subject: [PATCH] Update IMEI and chipname adb commands --- android_triage.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android_triage.sh b/android_triage.sh index b1103a0..eab12fa 100644 --- a/android_triage.sh +++ b/android_triage.sh @@ -154,6 +154,9 @@ info_collect () { NAME=$($SHELL_COMMAND getprop ro.product.name) PRODUCT_CODE=$($SHELL_COMMAND getprop ro.product.code) CHIPNAME=$($SHELL_COMMAND getprop ro.chipname) + if [[ -z ${CHIPNAME} ]]; then + CHIPNAME=$($SHELL_COMMAND getprop ro.hardware ro.hardware.chipname) + fi SERIAL_NUMBER=$($SHELL_COMMAND getprop ril.serialnumber) BASEBAND_VERSION=$($SHELL_COMMAND getprop gsm.version.baseband) COUNTRY_CODE=$($SHELL_COMMAND getprop ro.csc.country_code) @@ -176,6 +179,9 @@ info_collect () { if [[ -z ${IMEI} ]]; then IMEI=$(${ADB} shell service call iphonesubinfo 1 | awk -F "'" '{print $2}' | sed '1 d' | tr -d '.' | awk '{print}' ORS=) fi + if [[ -z ${IMEI} ]]; then + IMEI=$(${ADB} shell service call iphonesubinfo 1 s16 com.android.shell | cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g') + fi if [[ $(adb shell id) =~ "root" ]] || [[ $(adb shell su -c id) =~ "root" ]];then ROOT="Device is ROOTED!"