4

What is the sound architecture in Android. Is it the same as in Linux? I mean virtually every linux distributions use ALSA, so do android also use ALSA as sound driver?

1

1 Answer 1

6

Ok, so, I did a little bit of search and this is what I found.

Android, on the kernel level, uses ALSA or its alternative OSS (Open Sound System) to speak to the Hardware.

HAL (Hardware Abstraction Layer) sits on the top of Kernel which is a purely android implementation that communicates with the Kernel. Apparently, apps can't directly talk to ALSA/OSS as they do in Linux. Only HAL provides interfaces that audio services can call and work with.

And then there are few more frameworks and abstraction layer between HAL and the interface that the actual code of applications use. This layer is called Application framework.

This page has good illustration of the these layers.

2
  • 2
    Could you cite technical sources from where you gathered that information? That would be good. Thanks!
    – Firelord
    Commented Oct 7, 2015 at 14:22
  • Wondering if it is possible to use the kernel level through an android system app on a rooted device? Why asking, because I want to record internal audio? I believe(wishing) the kernel level enables me to do this.
    – blackkara
    Commented Jun 22, 2022 at 12:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .