pradeep nandam
pradeep nandam

Reputation: 1

How to initiate & pick up a video call via pc by ADB command on android?

Can some one tell me how i can initiate & pickup a video call using adb? I want to automate some Video Telephony Testing and want to do this using adb_scripts. Is it possible at all?

I can see the following link in stackoverflow to initiate a voice only call using adb. I just cannot correlate the same to initiate video call.

How to make a call via pc by ADB command on android?

Thanks in advance.

Upvotes: 0

Views: 2984

Answers (2)

Naveen Jay
Naveen Jay

Reputation: 31

\\ To Initiate the Video call

adb shell am start -a android.intent.action.CALL -d tel:xxx-xxx-xxxx --ei android.telecom.extra.START_CALL_WITH_VIDEO_STATE 3**

\\ To auto answer on far end

adb shell setprop persist.sys.tel.autoanswer.ms 2000

Upvotes: 2

Empario
Empario

Reputation: 412

Have you tried this for setting up a call:

adb shell am start -a android.intent.action.CALL -d tel:+1-xxx-xxx-xxxx

This ends a call:

adb shell input keyevent 6

I have not tried this but it might answer a call:

adb shell input keyevent 5

Upvotes: 0

Related Questions