Untitled
unknown
plain_text
2 years ago
438 B
3
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...