[Nexus 5X Q&A, Help & Troubleshooting] Dininthedrider:
I have constant "bluetooth keeps stopping" issue with every custom ROM (oreo, pie, 10) I have tried.

My phone is a refurbished H790 with a bootloader that can not be unlocked. I followed these instructions to flash the ROM, but the bluetooth issue persists.

https://xdaforums.com/showpost.php?p=82500827&postcount=197

I have the official firmware 8.1.0 (OPM7.181205.001, Dec 2018)

With the suggested boot.img: https://xdaforums.com/att...3&d=1543866430

Log from the crash report with Bliss rom V12.7 shows Build fingerprint: 'google/bullhead/bullhead:8.1.0/OPM3.171019.014/4503998:user/release-keys'

https://del.dog/peryphamyr.txt

On Nexus ROM A10, the same:

06-10 17:36:54.960 D/AdapterState(5351): make() - Creating AdapterState
06-10 17:36:54.964 I/bt_btif (5351): init: start restricted = 0 ; niap = 0
06-10 17:36:54.966 I/ (5351): [0610/173654.966057:INFO:message_loop_thread.cc(175)] Run: message loop starting for thread bt_stack_manager_thread
06-10 17:36:54.966 I/AdapterState(5351): OFF : entered
06-10 17:36:54.966 D/AdapterProperties(5351): Setting state to OFF
06-10 17:36:54.968 I/bt_stack_manager(5351): event_init_stack is initializing the stack
06-10 17:36:54.969 I/ (5351): [0610/173654.969875:INFO:btif_config.cc(756)] hash_file: Disabled for multi-user
06-10 17:36:54.970 I/ (5351): [0610/173654.969994:INFO:btif_config.cc(784)] read_checksum_file: Disabled for multi-user
06-10 17:36:54.970 E/bt_btif_config(5351): Config is missing adapter section
06-10 17:36:54.970 W/bt_btif_config(5351): init unable to load config file: /data/misc/bluedroid/bt_config.conf; using backup.
06-10 17:36:54.970 I/ (5351): [0610/173654.970230:INFO:btif_config.cc(756)] hash_file: Disabled for multi-user
06-10 17:36:54.970 I/ (5351): [0610/173654.970278:INFO:btif_config.cc(784)] read_checksum_file: Disabled for multi-user
06-10 17:36:54.970 E/bt_btif_config(5351): Config is missing adapter section
06-10 17:36:54.970 W/bt_btif_config(5351): init unable to load backup; attempting to transcode legacy file.
06-10 17:36:54.970 E/bt_btif_config_transcode(5351): btif_config_transcode unable to load XML file '/data/misc/bluedroid/bt_config.xml': 3
06-10 17:36:54.970 E/bt_btif_config(5351): init unable to transcode legacy file; creating empty config.
06-10 17:36:54.970 W/ (5351): [0610/173654.970600:WARNING:btif_config.cc(164)] read_or_set_metrics_salt: Failed to read metrics salt from config
06-10 17:36:54.970 I/ (5351): [0610/173654.970644:INFO:btif_config.cc(175)] read_or_set_metrics_salt: Metrics salt is not invalid, creating new one
06-10 17:36:54.972 I/bt_osi_thread(5351): run_thread: thread id 5374, thread name alarm_default_ca started
06-10 17:36:54.973 I/bt_osi_thread(5351): run_thread: thread id 5375, thread name alarm_dispatcher started
06-10 17:36:54.977 I/bt_btif_core(5351): btif_init_bluetooth entered
06-10 17:36:54.978 I/bt_stack_config(5351): init attempt to load stack conf from /etc/bluetooth/bt_stack.conf
06-10 17:36:54.978 I/ (5351): [0610/173654.978847:INFO:message_loop_thread.cc(175)] Run: message loop starting for thread bt_jni_thread
06-10 17:36:54.979 I/bt_btif_core(5351): btif_init_bluetooth finished
06-10 17:36:54.979 I/bt_stack_manager(5351): event_init_stack finished
06-10 17:36:54.979 I/bt_osi_wakelock(5351): wakelock_set_os_callouts set to non-native
06-10 17:36:54.979 I/bt_btif (5351): get_profile_interface: id = socket
06-10 17:36:54.981 I/bt_btif (5351): get_profile_interface: id = sdp
06-10 17:36:54.982 E/bt_btif_storage(5351): btif_storage_get_adapter_property: Controller not ready! Unable to return Bluetooth Address
06-10 17:36:54.982 E/BluetoothServiceJni(5351): adapter_properties_callback: Status 1 is incorrect
06-10 17:36:54.983 D/BluetoothManagerService(799): Bluetooth Adapter name changed to Nexus 5X
06-10 17:36:54.984 D/AdapterProperties(5351): Name is: Nexus 5X
06-10 17:36:54.984 D/BluetoothManagerService(799): Stored Bluetooth name: Nexus 5X
06-10 17:36:54.984 D/AdapterProperties(5351): BT Class:5a020c
06-10 17:36:54.986 I/BluetoothAdapterService(5351): Phone policy enabled
06-10 17:36:54.990 D/BluetoothActiveDeviceManager(5351): start()
06-10 17:36:55.001 D/BluetoothActiveDeviceManager(5351): onAudioDevicesAdded
06-10 17:36:55.001 D/BluetoothActiveDeviceManager(5351): Audio device added: Nexus 5X type: 1
06-10 17:36:55.001 D/BluetoothActiveDeviceManager(5351): Audio device added: Nexus 5X type: 2
06-10 17:36:55.001 D/BluetoothActiveDeviceManager(5351): Audio device added: Nexus 5X type: 18
06-10 17:36:55.001 D/BluetoothActiveDeviceManager(5351): Audio device added: Nexus 5X type: 15
06-10 17:36:55.001 D/BluetoothActiveDeviceManager(5351): Audio device added: Nexus 5X type: 15
06-10 17:36:55.001 D/BluetoothActiveDeviceManager(5351): Audio device added: Nexus 5X type: 18
06-10 17:36:55.013 D/BluetoothDatabase(5351): start()
06-10 17:36:55.016 D/BluetoothDatabase(5351): Load Database
06-10 17:36:55.018 D/BluetoothAdapterService(5351): setAdapterService() - trying to set service to com.android.bluetooth.btservice.AdapterService@72a78b9
06-10 17:36:55.023 D/BluetoothAdapterService(5351): onBind()
06-10 17:36:55.025 D/BluetoothManagerService(799): BluetoothServiceConnection: com.android.bluetooth.btservice.AdapterService
06-10 17:36:55.025 D/BluetoothManagerService(799): MESSAGE_BLUETOOTH_SERVICE_CONNECTED: 1
06-10 17:36:55.027 D/BluetoothManagerService(799): Broadcasting onBluetoothServiceUp() to 5 receivers.
06-10 17:36:55.030 D/BluetoothAdapterService(5351): enable() - Enable called with quiet mode status = false
06-10 17:36:55.030 I/AdapterState(5351): BLE_TURNING_ON : entered
06-10 17:36:55.030 D/AdapterProperties(5351): Setting state to BLE_TURNING_ON
06-10 17:36:55.030 D/BluetoothManagerService(799): MESSAGE_GET_NAME_AND_ADDRESS
06-10 17:36:55.030 D/BluetoothAdapterService(5351): updateAdapterState() - Broadcasting state BLE_TURNING_ON to 1 receivers.
06-10 17:36:55.038 D/BluetoothManagerService(799): Stored Bluetooth name: Nexus 5X
06-10 17:36:55.038 D/BluetoothManagerService(799): MESSAGE_BLUETOOTH_STATE_CHANGE: OFF > BLE_TURNING_ON
06-10 17:36:55.039 D/BluetoothManagerService(799): Sending BLE State Change: OFF > BLE_TURNING_ON
06-10 17:36:55.044 I/BluetoothDatabase(5351): cacheMetadata
06-10 17:36:55.045 D/BluetoothAdapterService(5351): bleOnProcessStart()
06-10 17:36:55.045 I/AdapterProperties(5351): init(), maxConnectedAudioDevices, default=5, propertyOverlayed=5, finalValue=5
06-10 17:36:55.047 D/BluetoothAdapterService(5351): bleOnProcessStart() - Make Bond State Machine
06-10 17:36:55.048 D/BluetoothBondStateMachine(5351): make
06-10 17:36:55.058 I/BtGatt.JNI(5351): classInitNative(L876): classInitNative: Success!
06-10 17:36:55.061 D/BtGatt.DebugUtils(5351): handleDebugAction() action=null
06-10 17:36:55.061 D/BluetoothAdapterService(5351): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@72a78b9
06-10 17:36:55.062 I/BluetoothBondStateMachine(5351): StableState(): Entering Off State
06-10 17:36:55.064 I/bt_btif (5351): get_profile_interface: id = gatt
06-10 17:36:55.065 D/BluetoothAdapterService(5351): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@72a78b9
06-10 17:36:55.074 D/BluetoothAdapterService(5351): getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@72a78b9
06-10 17:36:55.076 I/bt_stack_manager(5351): event_start_up_stack is bringing up the stack
06-10 17:36:55.076 I/bt_core_module(5351): module_start_up Starting module "btif_config_module"
06-10 17:36:55.076 I/bt_core_module(5351): module_start_up Started module "btif_config_module"
06-10 17:36:55.077 I/bt_core_module(5351): module_start_up Starting module "btsnoop_module"
06-10 17:36:55.077 I/ (5351): [0610/173655.077544:INFO:btsnoop.cc(207)] start_up: Snoop Logs disabled
06-10 17:36:55.077 I/ (5351): [0610/173655.077628:INFO:btsnoop.cc(338)] delete_btsnoop_files: Deleting snoop logs if they exist. filtered = 1
06-10 17:36:55.077 I/ (5351): [0610/173655.077726:INFO:btsnoop.cc(338)] delete_btsnoop_files: Deleting snoop logs if they exist. filtered = 0
06-10 17:36:55.077 I/bt_core_module(5351): module_start_up Started module "btsnoop_module"
06-10 17:36:55.077 I/bt_core_module(5351): module_start_up Starting module "hci_module"
06-10 17:36:55.077 I/bt_hci (5351): hci_module_start_up
06-10 17:36:55.078 I/ (5351): [0610/173655.078383:INFO:message_loop_thread.cc(175)] Run: message loop starting for thread bt_hci_thread
06-10 17:36:55.079 I/bt_hci (5351): hci_initialize
06-10 17:36:55.079 D/bt_hci (5351): hci_module_start_up starting async portion
06-10 17:36:55.080 I/hwservicemanager(336): getTransport: Cannot find entry android.hardware.bluetooth@1.0::IBluetoothHci/default in either framework or device manifest.
06-10 17:36:55.086 I/bt_hci (5351): hci_initialize: IBluetoothHci::getService() returned 0x7896458820 (local)
06-10 17:36:55.086 I/android.hardware.bluetooth@1.0-impl(5351): BluetoothHci::initialize()
06-10 17:36:55.087 D/ (5351): get_local_address: Trying /persist/bdaddr.txt
06-10 17:36:55.087 F/android.hardware.bluetooth@1.0-impl(5351): Open: No Bluetooth Address!
06-10 17:36:55.087 F/libc (5351): Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5388 (bt_hci_thread), pid 5351 (droid.bluetooth)
06-10 17:36:55.150 I/crash_dump64(5392): obtaining output fd from tombstoned, type: kDebuggerdTombstone
06-10 17:36:55.151 I//system/bin/tombstoned(642): received crash request for pid 5388
06-10 17:36:55.151 I/crash_dump64(5392): performing dump of process 5351 (target tid = 5388)
06-10 17:36:55.172 F/DEBUG (5392): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-10 17:36:55.172 F/DEBUG (5392): Build fingerprint: 'google/bullhead/bullhead:8.1.0/OPM3.171019.014/4503998:user/release-keys'
06-10 17:36:55.172 F/DEBUG (5392): Revision: 'rev_1.0'
06-10 17:36:55.172 F/DEBUG (5392): ABI: 'arm64'
06-10 17:36:55.173 F/DEBUG (5392): Timestamp: 2020-06-10 17:36:55+0000
06-10 17:36:55.173 F/DEBUG (5392): pid: 5351, tid: 5388, name: bt_hci_thread >>> com.android.bluetooth <<<
06-10 17:36:55.173 F/DEBUG (5392): uid: 1002
06-10 17:36:55.173 F/DEBUG (5392): signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
06-10 17:36:55.173 F/DEBUG (5392): Abort message: 'Open: No Bluetooth Address!'
06-10 17:36:55.173 F/DEBUG (5392): x0 0000000000000000 x1 000000000000150c x2 0000000000000006 x3 00000078302bbab0
06-10 17:36:55.173 F/DEBUG (5392): x4 0000000000000000 x5 0000000000000000 x6 0000000000000000 x7 0000000000000080
06-10 17:36:55.173 F/DEBUG (5392): x8 00000000000000f0 x9 00000079248474e0 x10 0000000000000000 x11 0000000000000001
06-10 17:36:55.173 F/DEBUG (5392): x12 00000078302bbc40 x13 ffffffffffffffff x14 0000000000000008 x15 000539b4b6a6955f
06-10 17:36:55.173 F/DEBUG (5392): x16 00000079249158c0 x17 00000079248f3180 x18 000000782fb64020 x19 00000000000000ac
06-10 17:36:55.173 F/DEBUG (5392): x20 00000000000014e7 x21 00000000000000b2 x22 000000000000150c x23 00000000ffffffff
06-10 17:36:55.173 F/DEBUG (5392): x24 00000078302bd020 x25 00000078302bc100 x26 000000789641b878 x27 000000784147c178
06-10 17:36:55.173 F/DEBUG (5392): x28 0000000000000009 x29 00000078302bbb60
06-10 17:36:55.173 F/DEBUG (5392): sp 00000078302bba90 lr 00000079248a60f0 pc 00000079248a6120
06-10 17:36:55.219 F/DEBUG (5392):
06-10 17:36:55.219 F/DEBUG (5392): backtrace:
06-10 17:36:55.219 F/DEBUG (5392): #00 pc 0000000000083120 /apex/com.android.runtime/lib64/bionic/libc.so (abort+176) (BuildId: 81099f1ff92ff72047f8b4b79cca591a)
06-10 17:36:55.219 F/DEBUG (5392): #01 pc 0000000000008a74 /system/lib64/liblog.so (__android_log_assert+324) (BuildId: 45be8d051b837f9e105ec6dca8541999)
06-10 17:36:55.219 F/DEBUG (5392): #02 pc 00000000000085cc /vendor/lib64/hw/android.hardware.bluetooth@1.0-impl.so (_ZN7android8hardware9bluetooth4V1_014implementation15VendorInterface4OpenENSt3__18functionIFvbEEENS6_IFvRKNS0_8hidl_vecIhEEEEESE_SE_+1708) (BuildId: cba3124080580dcb96278375d5286ba2)
06-10 17:36:55.219 F/DEBUG (5392): #03 pc 0000000000007e30 /vendor/lib64/hw/android.hardware.bluetooth@1.0-impl.so (_ZN7android8hardware9bluetooth4V1_014implementation15VendorInterface10InitializeENSt3__18functionIFvbEEENS6_IFvRKNS0_8hidl_vecIhEEEEESE_SE_+584) (BuildId: cba3124080580dcb96278375d5286ba2)
06-10 17:36:55.219 F/DEBUG (5392): #04 pc 00000000000064f8 /vendor/lib64/hw/android.hardware.bluetooth@1.0-impl.so (android::hardware::bluetooth::V1_0::implementation::BluetoothHci::initialize(android::sp<android::hardware::bluetooth::V1_0::IBluetoothHciCallbacks> const&)+656) (BuildId: cba3124080580dcb96278375d5286ba2)
06-10 17:36:55.219 F/DEBUG (5392): #05 pc 0000000000013850 /system/lib64/android.hardware.bluetooth@1.0.so (android::hardware::bluetooth::V1_0::BsBluetoothHci::initialize(android::sp<android::hardware::bluetooth::V1_0::IBluetoothHciCallbacks> const&)+368) (BuildId: fbcf08d7b79aedc74e3b56ab4f4e8e28)
06-10 17:36:55.220 F/DEBUG (5392): #06 pc 000000000026dfc0 /system/lib64/libbluetooth.so (hci_initialize() [clone .cfi]+728) (BuildId: e948cd3b9855ec8501d9bae9d598dd9f)
06-10 17:36:55.220 F/DEBUG (5392): #07 pc 00000000000a08a0 /system/lib64/libchrome.so (base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask*)+184) (BuildId: 56596cc93fd3c6558542c3197135482d)
06-10 17:36:55.220 F/DEBUG (5392): #08 pc 00000000000c049c /system/lib64/libchrome.so (base::MessageLoop::RunTask(base::PendingTask*)+308) (BuildId: 56596cc93fd3c6558542c3197135482d)
06-10 17:36:55.220 F/DEBUG (5392): #09 pc 00000000000c0858 /system/lib64/libchrome.so (base::MessageLoop::DoWork()+496) (BuildId: 56596cc93fd3c6558542c3197135482d)
06-10 17:36:55.220 F/DEBUG (5392): #10 pc 00000000000c2060 /system/lib64/libchrome.so (base::MessagePumpDefault::Run(base::MessagePump::Delegate*)+184) (BuildId: 56596cc93fd3c6558542c3197135482d)
06-10 17:36:55.220 F/DEBUG (5392): #11 pc 00000000000e432c /system/lib64/libchrome.so (base::RunLoop::Run()+84) (BuildId: 56596cc93fd3c6558542c3197135482d)
06-10 17:36:55.220 F/DEBUG (5392): #12 pc 000000000019dc70 /system/lib64/libbluetooth.so (bluetooth::common::MessageLoopThread::Run(std::__1::promise<void>)+304) (BuildId: e948cd3b9855ec8501d9bae9d598dd9f)
06-10 17:36:55.220 F/DEBUG (5392): #13 pc 000000000019da18 /system/lib64/libbluetooth.so (bluetooth::common::MessageLoopThread::RunThread(bluetooth::common::MessageLoopThread*, std::__1::promise<void>) [clone .cfi]+48) (BuildId: e948cd3b9855ec8501d9bae9d598dd9f)
06-10 17:36:55.220 F/DEBUG (5392): #14 pc 000000000019dab4 /system/lib64/libbluetooth.so (_ZNSt3__114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEPFvPN9bluetooth6common17MessageLoopThreadENS_7promiseIvEEESA_SC_EEEEEPvSG_.cfi+100) (BuildId: e948cd3b9855ec8501d9bae9d598dd9f)
06-10 17:36:55.220 F/DEBUG (5392): #15 pc 00000000000e446c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 81099f1ff92ff72047f8b4b79cca591a)
06-10 17:36:55.220 F/DEBUG (5392): #16 pc 0000000000084d18 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 81099f1ff92ff72047f8b4b79cca591a)
06-10 17:36:55.731 W/WindowManager(799): removeWindowToken: Attempted to remove non-existing token: android.os.Binder@48128ce
06-10 17:36:55.799 E//system/bin/tombstoned(642): Tombstone written to: /data/tombstones/tombstone_05
06-10 17:36:55.807 I/BootReceiver(799): Copying /data/tombstones/tombstone_05 to DropBox (SYSTEM_TOMBSTONE)
06-10 17:36:55.809 I/DropBoxManagerService(799): add tag=SYSTEM_TOMBSTONE isTagEnabled=true flags=0x2
06-10 17:36:55.834 I/ActivityManager(799): Showing crash dialog for package com.android.bluetooth u0
06-10 17:36:55.842 I/DropBoxManagerService(799): add tag=system_app_native_crash isTagEnabled=true flags=0x2
06-10 17:36:55.887 D/BluetoothManagerService(799): BluetoothServiceConnection, disconnected: com.android.bluetooth.btservice.AdapterService
06-10 17:36:55.887 E/BluetoothManagerService(799): MESSAGE_BLUETOOTH_SERVICE_DISCONNECTED(1)
06-10 17:36:55.888 D/BluetoothManagerService(799): Broadcasting onBluetoothServiceDown() to 4 receivers.
06-10 17:36:55.888 I/ActivityManager(799): Process com.android.bluetooth (pid 5351) has died: psvc PER

Does anyone have a suggestion how to fix this issue?

Thanks!