I want to trigger a Skype call (possibly to the Echo/ Sound Test Service) via adb.
So far I was able to open skype via the following command
"adb shell am start -n com.skype.raider/com.skype4life.MainActivity"
but I could not progress further. Does anybody have any insights?
Use
adb shell am start -a android.intent.action.VIEW -d skype:echo123?call
I tried and it works.
Related
I am running an application from ADB commands as follow:
adb shell am start -n com.example.someapp.app/.SimpleActivity
The main screen in this app will have two buttons, how can press one of these buttons from ADB Shell?
It looks like the adb shell input command might work for you. You might need to have a rooted device to allow adb simulated touch input to work.
Here's a link to a blog containing a write up on adb input:
https://grymoire.wordpress.com/2014/09/17/remote-input-shell-scripts-for-your-android-device/
You'd normally tap the button (if you know the coordinates):
adb shell input tap <x> <y>
To find coordinates, enable pointer location, then tap the button location on your device:
adb shell settings put system pointer_location 1
No need to root phone.
Tested on Android 10 API 29
I'm making a node.js app that control calls in android phone, I'm using the npm mudule ADB and was able to make calls as bellow:
adb -s <serialno> shell am start -a android.intent.action.CALL -d tel:123-456
Unfortunately I was not able to manage the audio and control it from my app.
My question is:
Is there a way to send and receive the voice between my application and the phone (Without using any third party like twilio)?
Any help will be appreciated.
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?
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.
I have been exploring various options with adb by connecting to real device. Went thru the android documents.
By reading random documents, i found out that i can open a webpage directly by adb using
adb shell am start -a android.intent.action.VIEW -d http://www.wikipedia.org
or i can send BT turn On request using
adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
I am wondering, if i can find all such functions at one place or how to explore more about what all could be done using adb.
Here is a collection of ADB commands , i am collected from various sites & books
Please go through this . Feel free to ask any doubts regarding these commands
How to find what service running on background on Android?
like input method service, ....
Using adb or terminal on android device ?
Could I use "top" or "ps" command?
Maybe I have to ask in another way?
Does the service be presented as one "process", then we can use "ps" or "top" command to find it?
A more precise way to show running services is by using dumpsys.
To get a list of all running services:
adb shell dumpsys activity services
To show the status of a particular service:
adb shell dumpsys activity services <partial-service-name>
For example, if your service name is com.example.MyService:
adb shell dumpsys activity services MyService
If you are running the emulator or have a connected device, you can launch adb with 'adb shell' from the command line and you can run all those linux binaries like top and ps.