I am trying to open the contact details for an Android phone contact by their phone number in ADB.
adb shell am start -a android.intent.action.VIEW content://contacts/people/
will open the contacts app, while
adb shell am start -a android.intent.action.VIEW content://contacts/people/1
will open up the contact details for the contact with CONTACT_ID equal to 1. I essentially want to do this same thing, only by passing in the contact's phone number, and not the contact ID. I suppose an error should be thrown, or the command should do nothing, if no contact exists with the given phone number.
I ask this because I am running certain adb commands on a KitKat device from an external testing suite, and do not have access to the Android API.
Is what I'm trying to do here even possible? Thanks!