linux - Can I intercept audio on a rooted Android? -
i understand not possible redirect audio output pre-existing android app - spotify - usb sound card or file instance. believe may have had privacy , recording telephone calls.
i not understand linux know flexible , read piping output of 1 program input of another. see in dev directory of androids “files” names “audio”.
my question - of these correspond raw audio output , if tablet/phone rooted stream intercepted linux magic?
my motivation provide higher quality audio output basic speaker / headphone / bluetooth options.
short answer yes, might able hack together. audio implementation on particular handset manufacturer there no guarantee. unlikely simple think. there no one-line command line magic it.
android doesn't use usual linux alsa user space code can not generalize linux , "if can in linux can on rooted android".
i think android implementations use tinyalsa not requirement. if case might able recompile tinyalsa own intercept logic or interpose device other way. if running android mod built source modify intercept audio @ other levels such in audio flinger or @ interface hal. less practical if using rooted device since manufacturers modify system elements customization might make difficult interpose , intercept (just because don't know substitute if api has been modified).
much of info in answer gleaned reading andraudio mailing list. can check archives learn more.
Comments
Post a Comment