Untitled

 avatar
unknown
plain_text
2 years ago
420 B
4
Indexable
#!/bin/bash

# Lấy danh sách các thiết bị
devices=$(adb devices | grep -E '^[0-9a-f]+[[:space:]]+device' | awk '{print $1}')

# Duyệt qua từng thiết bị và thực hiện lệnh adb shell
for device in $devices
do
  echo "IMEI của thiết bị $device:"
  adb -s $device shell "service call iphonesubinfo 1 | toybox cut -d \"'\" -f2 | toybox grep -Eo '[0-9]' | toybox xargs | toybox sed 's/\ //g'"
done
Editor is loading...