Mindaugas Brazionis
Mindaugas Brazionis

Reputation: 31

Start incoming call by adb on a real android device

My pc does not support android emulator and i need to make fake incoming calls from adb for testing. I've tried this line

adb shell am start -a android.intent.action.CALL -d tel:123456

but it creates outgoing calls and i need incoming. Is there a way to make incoming calls from adb on a physical device without emulator?

Upvotes: 2

Views: 2114

Answers (1)

TDG
TDG

Reputation: 6151

My solution was to connect 2 physical devices to the PC and make a call between them.
You can find their IDs by adb devices and then use
adb -s [ID1] shell am start -a android.intent.action.CALL -d tel:123456 where ID1 is the ID of the caller.

Upvotes: 1

Related Questions