📅  最后修改于: 2022-03-11 14:50:23.658000             🧑  作者: Mango
# get device IMEI
adb shell "service call iphonesubinfo 1 | cut -c 52-66 | tr -d '.[:space:]'"
# get device phone number
adb shell "service call iphonesubinfo 18 | cut -c 52-66 | tr -d '.[:space:]+'"
# get Android ID
adb shell settings get secure android_id
# get device Serial Number
adb shell getprop ro.serialno
#Note: No root is needed for any of the above commands