[Q] Accessing call stream - How to? / Is it possible? - Android Software/Hacking General [Developers Only]

Hi all,
The effect I'm looking for:
While an open phone call, I'd like to be able to play sounds into the call stream so that (similiarly to the in-call DTMF tones) the sounds would be heard by the other party.
My questions:
1) Is this possible without modifying phone.apk (or what ever system .apk needed to gain access to the call stream)? Does it help if the device is rooted?
2) If not, is it at all possible? What would it take to achieve such an effect?
Any help would be much appreciated.

Need a solution too, looking into reflection.
This is rather old but I was wondering if there's any news? I searched for anything related to call, stream, DTMF etc. in XDA and everywhere else I could think of.
So far I found nothing. Is there really no way to send tones up the call stream?
I'm looking into the source code to see whether I can use some reflection, even just to see if it works. The best bet seems like CallManager..
It has 'SendDtmf' and 'StartDtmf' that automatically goes to the active call, gets the active phone from it and shoots up the tones.
HOWEVER I got stuck. Both methods keep returning false. Digging into it you see that both methods check whether there are any active calls before sending anything. So I tested it myself and here lies the issue - 'HasActiveFGCalls' (and HasActiveBgCalls too) returns false no matter what.
In fact, getting the full call list (getForegroundCalls) always gives me an empty list.
I tested it on my phone (SGS, CM7) and on the emulator on several versions. Same results - always no active calls regardless of whether the phone is in a call or not.
I'm at a loss here. Seems like this is as far as I can go with my knowledge at the moment.
So... anyone has any clue regarding this?

Related

Using a phone through my pc

I didnt really know where to put this, but here goes anyway
I have a HTC S710 with a broken screen. Im currently using it through MyMobiler, but this is really slow and then theres a number of smaller problems with it too.
I was wondering if there was any program which means you can use the resources avaliable on my phone, sms, calls etc, through my pc. Maybe a faster program similar to mymobiler. I think it would be great if it showed a popup when there was a text or an incoming call?
I have searched and not come up with anything usefull.
also, another thing i want to know is if there is any way to make my phone turn on speakerphone automatically upon answering a call?
Thanks, Cris
There are a few diffrenet apps available, but MyMobiler is the best, especially since it's free. There is an app here as well for turning on the speaker during an incoming call as well.
Just a question though, why wouldn't get a replacement device. Seems odd to only control it through your PC.
well, i dont want to replace it simply because im a student, therefore i cant really afford it. Secondly i just like this phone, so it seems a waste to not use it at all any more when it still functions as a phone even if i cant see whos calling.
There is an app here as well for turning on the speaker during an incoming call as well.
Click to expand...
Click to collapse
I dont suppose you have a link to this app do you?
SpeakerPhone v1.05 (cab attached) when an incoming call is received, the speakerphone of your device will automatically turn ON when you receive a call.
Here is the LINK for further info...
thanks
thank you reaper

[Q] Record input and output audio during a call?

I'm looking to hack myself together a call recorder for Android which will work better than all of the other solutions in the market. I've tried them all, and they all surprisingly don't work for me on my Nexus One. I'm going to essentially start an open source fork so I can simply record the input and output of calls (effectively recording the whole call as-is) and I'll probably submit it to Cyanogenmod upstream so they can choose to include it or not.
I was told to essentially look into the Dialer app and modify stuff there to get access to recording things, but I'm looking through the Git branch right now and not seeing anything important. Does anyone know how I could make this happen? Is there a way I could simply expose a device like in linux and simply `cat /dev/phone_audio` to a file? If I can simply record PCM from a phone call, I'd be golden. I don't really care what avenue I have to take to make this work, whatever it takes works for me. Can anyone recommend where to start? Where can I get access to the telephony stack and the two streams (audio/mic in, audio/speaker out)?
how about starting here...
http://forum.xda-developers.com/showthread.php?p=11304620
or
http://forum.xda-developers.com/showthread.php?t=967297
I have an infuse and I would pay for this ability. Hopefully someone can get it working, but I think that it would have to be done on a phone by phone basis. It looks like the file that would control this is /system/lib/libaudiopolicy.so
Good luck!

[Q]Please Help! Microphone not working on incoming calls..

Hello, i need some serious help over here
What's the problem:
I own a galaxy 3 since June, a week ago i started noticing the internal mic wasn't working on some incoming calls.
Details:
First of all the problem began for no apparent reason (the phone works fine otherwise and no major updates / new apps were installed)
This started happening on the official froyo ROM which was an excuse for me to flash the Kyrillos 9.4 ROM (wiped all data / formatted sd card in the process). The problem still occurs on Kyrillos 9.4 ROM suggesting that this is not a ROM issue
I thought it was a hardware issue but the caller can hear me perfectly if i connect the headset or use the speaker Also the internal mic works fine on some incoming calls and ALL outgoing ones!
Upon further investigation i came upon 2 threads on other forums (unfortunately i can't post the urls as i am a new user, if needed pm me or search google for "Microphone not working on incoming calls") which point out that the same problem incurs on HTCs and XPERIAs. Also it happens on replacement phones (original unit shipped back after this problem), on different providers, on official and custom ROMs, on clean phones (only the stock apps installed).
This seems to happen when the phone is idle for a set period of time (unconfirmed). Fast Reboot app / manual reboot / removing battery don't fix this, however making an outgoing call seems to enable the internal mic temporarily (even if the outgoing call never connects)
When this happens apart from the mic not working on incoming calls it becomes also unresponsive for other apps (Tape-a-Talk, Skype, Soundhound etc.)
Conclusion:
It seems to me that there is bug in froyo that keeps the incoming call code from activating the microphone or perhaps there is a conflict of sorts that keeps the microphone blocked. It is highly unprobable i think that the microphone would randomly start to fail on different android phones in the exact same way, so this shouldn't be a hardware issue.
Question:
Does anyone know/guess or can produce a possible solution for this? If not, could you please suggest further testing steps to help reproduce 100% this problem in an attempt to solve it?
Any help would be greatly appreciated as this is a pain in the neck for me (and others i guess?!)
PS: Excuse the thread form, i 'm really bored of writing / reading long posts
PS 2: This is my first post, hello xda community!
samsung vibrant
I have the same problem. I flashed the phone from android 2.1 TO cyanogen 2.3 and from it TO ice cream. I had this problem even to cyanogen and only in incoming call,never in other situation.
Googling I found same information but no solution. Anyone here knows something?
Anyway I found a stupid solution....try switching to 2g( I know that it's not a solution but...). It works for me!
that's ridiculous! how can network state have anything to do with the microphone of the device? can this be related to service providers maybe a more techish member could tell us.
anyway i am on 2g already as i don't have a usim card and this happens even if data network mode is deactivated. glad you found a way out but is it really a solution? i mean you have to ditch 3g for the phone to be actually a phone...
Since we seem to be the only ones among so many to be having this problem i am seriously thinking of taking back the phone for a replacement and hope for the best...
just an update, i lost functionallity of the microphone completely earlier today. That is with outgoing / incoming calls and any app i can think of, so i thought i 'd try changing the network data setting to 3g only since i was already on 2g...
WOW!!! that had an instant effect,it works seamlessly now,didn't even have to reboot.fingers crossed it will last.
that is one nasty and very strange bug. Please any of the developers could you take a closer look at this?
much appreciated
Sent from my GT-I5800 using XDA App

question about calling

Hello Guys and Girls....every so often when i'm checking out custom roms...i will come across an option that will allow me to video call someone. Everytime i tried it out...i hear the phone ringing, see myself and then it hangs up. What is this program about? And what are the proper uses for it? I'm sorry but i don't know the exact name for the program, it's pretty much the standard phone dial pad but with a video feature.

Samsung galaxy s8 plus audio problem during videocalls

Hello!
I have a major issue during videocalls using google duo, skype where if there are any background noise around me, i can't hear the person i am talking to. The audio cuts off. It has to be silent around me in order for me to hear the person i am talking to. Is there any fix to this problem? I have already reset the phone but the problem is still there.
mic (over) sensitivity? perhaps some will stop by and know the file and file entry to edit.
any of this type setting elsewhere (Settings, the app itself, and sound modification yo have installed, eg Viper, etc... that you can check/get to?
I have no sound modification installed. I checked the settings but there seems to be no part adressing this issue. The same problem happens when i use different apps like skype, google duo and signal. Could it be a hardware problem? The microphone works fine when i record a video or recording audio.
Maybe.
Rooted? If so, and you've done a full, clean install, and sure that the install is working ok, maybe try another custom ROM.
Normal calls work, as I get you it's (just) video calls? Another possibility, I'd consider looking up mic sensitivity and ways to decrease it. On the OnePlus One I am aware there was a configuration file folks could mess with to try and resolve that phone's mics over sampling. That was a common issue for many.
Have you tried turning the volume down and see if that has any effect?
Wish I could offer more ideas, I have used video calls maybe 3 times in 8 years.
The phone is not rooted. This problem occurs only when i use internet based videocalls (skype, google duo). The volyme is not usually high when i call. Thank you for your time, hopefully i will find a solution soon.
Frustrating. Good luck.

Categories

Resources