Skip to content

Uiautomator


#!/bin/bash
# Author: PGissleholm

adb shell input keyevent KEYCODE_CALL;
sleep 1;
input text '*#06#';
uiautomator dump --compressed /dev/stdout \
| tr ' ' '\n' \
| awk -F'"' '{print $2}' \
| grep "^[0-9]\{15\}$" \
| nl -w 1 -s':' \
| sed 's/^/IMEI/g'