Untitled

Anonymous
plain_text
11/10/2023 9:52 AM
584 B
18
Indexable
#!/bin/bash

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

# Duyệt qua từng thiết bị và in ra build number
echo "Danh sách build number của các thiết bị:"
while read -r device_info; do
  build_number=$(echo "$device_info" | awk '{print $3}')
  echo "Build number của thiết bị là: $build_number"
done <<< "$devices"
Editor is loading...