title: Bluez as standalone on Android
body: <p>I am trying to enable A2dp sink profile for Android phone and stream audio from another device. I know the process of how to do the same for bluedroid stack of Android . But I want to use Bluez stack .I got a link explaining to do it for Android 4.1 as from Android 4.2 bluez was replaced by bluedroid.<a href="https://stackoverflow.com/questions/15557933/receive-audio-via-bluetooth-in-android/15559902#15559902">Here</a></p>
  
  <p>But I wanted to know how to port bluez to Android versions > 4.1 without having to build the whole AOSP tree by replacing bluedroid ?
  As from Bluez 5.21 there is support for Android 4.4 and 5.0,5.1 but for it we have to build the Android source code again due to various dependencies.</p>
  
  <p>Is there anyway without replacing bluedroid and building whole thing ,we can disable bluedroid and place a bluez executable compatible with Android and use it ?
  <a href="https://forum.xda-developers.com/showthread.php?t=2640723" rel="nofollow noreferrer">Here is the link for porting bluez to Android by building whole thing</a></p>