Phone call, recording

637 views
Skip to first unread message

kiro

unread,
Sep 23, 2009, 7:08:39 AM9/23/09
to android-ndk
Hi!
i'm using android SDK 1.6 and and it doesn't provide api to work with
call stream.

Did latest NDK provide functions to record phone calls?

David Turner

unread,
Sep 23, 2009, 4:29:02 PM9/23/09
to andro...@googlegroups.com
No, I'm not even sure this is possible from Java anyway.
 


Dianne Hackborn

unread,
Sep 23, 2009, 5:18:25 PM9/23/09
to andro...@googlegroups.com
I don't think it is possible with the current hardware the platform maintainers have worked on (G1, myTouch, etc).
--
Dianne Hackborn
Android framework engineer
hac...@android.com

Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails.  All such questions should be posted on public forums, where I and others can see and answer them.

kiro

unread,
Sep 24, 2009, 2:34:20 AM9/24/09
to android-ndk
this not a spam;) i'm just redirected


>Mark Murphy
>> And how about NDK?

>That would be a good question to ask on the [android-ndk] Google Group.



On Sep 23, 11:29 pm, David Turner <di...@android.com> wrote:

kiro

unread,
Sep 24, 2009, 2:35:07 AM9/24/09
to android-ndk
So, as i understand, at the future sdk's it will possible?

On Sep 24, 12:18 am, Dianne Hackborn <hack...@android.com> wrote:
> I don't think it is possible with the current hardware the platform
> maintainers have worked on (G1, myTouch, etc).
>
>
>
> On Wed, Sep 23, 2009 at 1:29 PM, David Turner <di...@android.com> wrote:
>
> > On Wed, Sep 23, 2009 at 4:08 AM, kiro <cih.exe...@gmail.com> wrote:
>
> >> Hi!
> >> i'm using android SDK 1.6 and and it doesn't provide api to work with
> >> call stream.
>
> >> Did latest NDK provide functions to record phone calls?
>
> >> No, I'm not even sure this is possible from Java anyway.
>
> --
> Dianne Hackborn
> Android framework engineer
> hack...@android.com

Dianne Hackborn

unread,
Sep 24, 2009, 2:37:08 AM9/24/09
to andro...@googlegroups.com
How does "hardware does not support it" at all imply that it can be supported by a future SDK??

Maybe some day, sure, it might be supported.  I don't believe there are any plans to do so, but I don't know what if any upcoming hardware can even do it.
hac...@android.com

Tim Hutt

unread,
Sep 24, 2009, 5:56:40 AM9/24/09
to andro...@googlegroups.com
2009/9/24 Dianne Hackborn <hac...@android.com>:

> How does "hardware does not support it" at all imply that it can be
> supported by a future SDK??
>
> Maybe some day, sure, it might be supported.  I don't believe there are any
> plans to do so, but I don't know what if any upcoming hardware can even do
> it.

How can the hardware not support it? Does the phone audio go directly
from the radio chip to the speakers or something? Not through ALSA and
so on?

Local call recording would be a very cool feature. Probably one of
those features that everyone except the phone user hates though, like
tethering.

Chris Stratton

unread,
Sep 24, 2009, 9:06:09 AM9/24/09
to android-ndk
On Sep 24, 5:56 am, Tim Hutt <tdh...@gmail.com> wrote:
> 2009/9/24 Dianne Hackborn <hack...@android.com>:
>
> > How does "hardware does not support it" at all imply that it can be
> > supported by a future SDK??
>
> > Maybe some day, sure, it might be supported.  I don't believe there are any
> > plans to do so, but I don't know what if any upcoming hardware can even do
> > it.
>
> How can the hardware not support it? Does the phone audio go directly
> from the radio chip to the speakers or something? Not through ALSA and
> so on?

Apparently it goes through the other cpu, not the one running linux.

Tim Hutt

unread,
Sep 24, 2009, 9:29:58 AM9/24/09
to andro...@googlegroups.com
2009/9/24 Chris Stratton <cs0...@gmail.com>:

That's really lame. What about the microphone? Is that inaccessible
too? Here's a list of cool things you could do with access to the
audio streams. Are they all impossible (even with a rooted phone)?

* Call recording
* Voice-changing (i.e. gender changing, hollywood effects, etc.)
* Local voicemail
* Telemarketing filter (i.e. for unknown numbers they have to type
your name or something)
* Custom 'busy' messages (e.g. "Sorry, I am in a meeting at the
moment, I'll call you back.").
* Feeding the voice streams to other devices, e.g. hi-fi & microphone.
* I'm sure there are others I haven't thought of...

Actually if you can't get access to the streams how are bluetooth
headsets implemented?

Chris Stratton

unread,
Sep 24, 2009, 10:53:20 AM9/24/09
to android-ndk
On Sep 24, 9:29 am, Tim Hutt <tdh...@gmail.com> wrote:

> > Apparently it goes through the other cpu, not the one running linux.
>
> That's really lame. What about the microphone? Is that inaccessible
> too?

Obviously you can get at the speaker or microphone (at least when not
on a call) but what you apparently cannot do is get in between the
speaker/microphone and the "phone" function, because that path does
not seem to run through the linux portion of the device.

> Actually if you can't get access to the streams how are bluetooth
> headsets implemented?

Apparently the audio data must bypass the linux portion of the system,
too.

kiro

unread,
Sep 25, 2009, 3:00:28 AM9/25/09
to android-ndk
At the phone calling, app will be paused...

did android provide api for background running of applications?

On Sep 24, 4:29 pm, Tim Hutt <tdh...@gmail.com> wrote:
> 2009/9/24 Chris Stratton <cs07...@gmail.com>:

David Turner

unread,
Sep 25, 2009, 4:12:02 AM9/25/09
to andro...@googlegroups.com
There is an API to run background services. What is paused is your activity.

Dianne Hackborn

unread,
Sep 25, 2009, 12:58:34 PM9/25/09
to andro...@googlegroups.com
What "being paused" means is just that your onPause() method was called.

niko20

unread,
Oct 1, 2009, 10:53:47 AM10/1/09
to android-ndk
You know, correct me if I'm wrong, but last I knew, recording a phone
call without the other party's permission first is illegal.


-niko

Tim Hutt

unread,
Oct 1, 2009, 11:10:40 AM10/1/09
to andro...@googlegroups.com
2009/10/1 niko20 <nikola...@yahoo.com>:

> You know, correct me if I'm wrong, but last I knew, recording a phone
> call without the other party's permission first is illegal.

Not in the UK. From http://www.retellrecorders.co.uk/legal/home.htm

"Can I record telephone conversations on my home phone?

Yes. The relevant law, RIPA, does not prohibit individuals from
recording their own communications provided that the recording is for
their own use. Recording or monitoring are only prohibited where some
of the contents of the communication - which can be a phone
conversation or an e-mail - are made available to a third party, ie
someone who was neither the caller or sender nor the intended
recipient of the original communication. For further information see
the Home Office website where RIPA is posted.

Do I have to let people know that I intend to record their telephone
conversations with me?

No, provided you are not intending to make the contents of the
communication available to a third party. If you are you will need the
consent of the person you are recording. "

Not that its legality is really relevant to this discussion.

tommymorgan

unread,
Nov 13, 2009, 2:17:38 PM11/13/09
to android-ndk
In Texas as long as one party is aware the call is being recorded it
is legal. Even if the only party who knows is the one doing the
recording.


On Oct 1, 8:53 am, niko20 <nikolatesl...@yahoo.com> wrote:
> You know, correct me if I'm wrong, but last I knew, recording a phonecallwithout the other party's permission first is illegal.
>
> -niko

Kevin

unread,
Nov 20, 2009, 7:25:22 PM11/20/09
to android-ndk
I am pushing for better audio support in the NDK, see Android Bug
3434.
http://code.google.com/p/android/issues/detail?id=3434

Kevin

HeHe

unread,
Nov 20, 2009, 7:53:56 PM11/20/09
to android-ndk
i am a newbie on audio recording. could anybody teach me what
"recording from raw PCM buffer" means and its difference from
recording from MIC?

thanks a lot!!
Reply all
Reply to author
Forward
0 new messages