Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3672270
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:35:18+00:00 2026-05-19T02:35:18+00:00

I was wondering whether it is possible to capture audio data from other sources

  • 0

I was wondering whether it is possible to capture audio data from other sources like the system out, FM radio, bluetooth headset, etc. I’m particularly interested in capturing audio from the FM radio and already investigated all possibilities including trying to sniff the raw bluetooth communication between the phone and the radio device with no luck. It’s too bad Android only allows recording audio from the MIC.

I’ve looked at the Android source code and couldn’t find a backdoor to allow me to do that without rooting the device. Do you, at least, have any idea how to use other devices (maybe access somehow /dev/audio) say via NDK or even better – Java (maybe Reflection?) to trick the system to capture the audio stream from say, the FM radio. (in my case I’m trying to develop the app for the HTC Desire)

PS. And for those of you who are against using undocumented APIs, please don’t post here – I’m writing an app that will be for my personal use or even if I ever publish it I will warn the user of possible incompatibilities.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T02:35:18+00:00Added an answer on May 19, 2026 at 2:35 am

    I’ve spent quite some time deciphering the audio stack, and I think you may try to hijack libaudio. You’ll have trouble speaking directly to the hardware (/dev/*) because many devices use proprietary audio drivers. There’s no rule in this regard.

    However, the audio hardware abstraction layer (HAL) provided by /system/lib/libaudio.so should expose the API described at http://source.android.com/porting/audio.html

    The Android system, and especially audioflinger, uses this libaudio HAL to find available devices, deal with routing, and of course to read/write PCM data.

    So, you could hijack the interaction between audioflinger and libaudio, by renaming the later, and providing your own libaudio which decorates the real one. Doing so, you should be able to log what happens and very possibly intercept FM radio output, provided that this is not directly handled by the hardware.

    Of course, all this requires rooting. Please comment if you manage to do this, that interests me.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering whether something like this is possible (and relatively easy to do), and
I was wondering if it was possible to capture from both cameras simultaneously using
I was wondering whether it's possible to add/remove a where clause from a linq
I am wondering whether its possible to change/set/delete my session variable AS A USER.
I am wondering whether it is possible to create a hasMany Relationship in a
I was wondering whether it is possible to programmatically change the name of an
I was wondering whether in ASP.NET it is possible to change properties of bunch
I am using annoted Hibernate, and I'm wondering whether the following is possible. I
I was wondering whether it is possible to assign a value to an HTML
I am wondering whether it is possible to change the action of a Facebook

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.