title: Can I intercept audio on a rooted Android?
body: <p>I understand it is not possible to redirect the audio output from a pre-existing Android app - say Spotify - to a USB sound card or a file for instance. I believe this may have had something to do with privacy and recording telephone calls. </p>
  
  <p>I do not understand Linux very well but know that it is very flexible and often read about piping the output of one program to the input of another. I also see that in the dev directory of some Androids some “files” with names like “audio”.</p>
  
  <p>My question is - do any of these correspond to the raw audio output and if the tablet/phone was rooted could the stream be intercepted with some Linux magic?</p>
  
  <p>My motivation is to provide a higher quality audio output than the basic speaker / headphone / bluetooth options.</p>