Fake Incoming Call on Android Device

Is there any way to fake calls for Android devices that I connected via usb? What is the way to call an adb call? If so, how to do it?

It seems to me that this may be a duplicate question, but I can not find the SO question for it. This is the closest question , but it only applies to the emulator.

Here are some things I've tried. I would like to link back to the following command:

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

Like the other guy, in the question I linked above. Except that I would like to do this on a device, not in an emulator. For the work that I do, the emulator is not enough to test phone calls, I can run my tests only on real devices. Our "solution" does not support the emulator.

So normally I would connect telnet to the local host using the emulator port, but I cannot do this, so can I connect to the connected telnet device? Is there any way to fake an incoming call on a connected device?

To explain why I would like to do this, I am making changes to AOSP. At the moment, we have not modified the emulator to work with our changes, but we are making changes to telephony. Ultimately, getting the emulator to work will be important, but at this time it would be ideal if we could test telephony using fake calls using devices that we have access to.

It is possible that this is even impossible, but if someone has experience with this, I would love to know. I feel that there should be some tests somewhere to fake phone calls on devices before they release the device to the public.

+8
android telephony adb
source share
1 answer

Telnet to Android device

As an alternative to adb, you can also use telnet to connect to the device. This allows you to simulate certain things, for example. incoming call, changing network connection, setting current geocodes, etc. Use "telnet localhost 5554" to connect to your simulated device. To exit a console session, use the quit or exit command.

for example

 # connects to device telnet localhost 5554 # set the power level power status full power status charging # make a call to the device gsm call 012041293123 # send a sms to the device sms send 12345 Will be home soon # set the geo location geo fix 48 51 
0
source share

All Articles