Search code examples
androidadb

Check phone number from adb shell


One way of getting a phone number via the shell would be to dial anther phone using the

service call phone

Is there a way I could get the phone number using the adb shell on a rooted phone without having to call out?

For example, a scenario would be a pre-paid sim which has no balance, hence cannot call out. Therefore using a service to call would not work


Solution

  • This worked in my case: Nexus 5 rooted phone.

    service call iphonesubinfo 8