Skip to content

Instantly share code, notes, and snippets.

@U039b
Created April 9, 2018 16:35
Show Gist options
  • Save U039b/5e596a2dda5c935b6f2f29d2dd799599 to your computer and use it in GitHub Desktop.
Save U039b/5e596a2dda5c935b6f2f29d2dd799599 to your computer and use it in GitHub Desktop.
#!/bin/bash
./adb shell service call iphonesubinfo 17 |awk -F "'" '{print $2}'|sed '1 d'|tr -d '.'|awk '{print}' ORS=|awk '{print "Phone number: "$1}'
./adb shell service call iphonesubinfo 1 |awk -F "'" '{print $2}'|sed '1 d'|tr -d '.'|awk '{print}' ORS=|awk '{print "IMEI: "$1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment