Adb Obtenha o número IMEI

# 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
Clean Capybara