Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

adb get imei number

# 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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #adb #imei #number
ADD COMMENT
Topic
Name
4+3 =