BT stuff from AOSP
Fix BT
fix