[Galaxy S 4 i9505 Android Development] Bodenseematze:
I really like the ROM - altogether it's very stable (I now use the Aug 12th build together with an alucard kernel).

But I have bigger problems with bluetooth communication - these where already present with the July 9th build and are still there :(

After a fresh boot everything (seems) to be O.K. - bluetooth can be switched on and the sign in the upper status line is present.

But when I switch to flight mode (which I need to do very often) and then back, the bluetooth sign is not there and the bluetooth switch shows that it's switched off.

When I then try to switch it on via short press on the bluetooth switch - nothing visually happens, it keeps to be switched off.

When I go to the bluetooth settings menu by long pressing the bluetooth switch and then try to switch it on there, I can see that it tries to switch it on - but then the settings crashes ("Settings have been closed") and the bluetooth is still off.

When I reboot the device, I'm able again to switch it on...

BUT: even when it's switched on - when I try to use it, it also crashes:

I'm connected in my car via bluetooth - everything seems to be O.K.; the car shows me that the phone is connected and also shows me the radio strength.

It also tells me that it successfully downloaded / synchronized my contacts.

But when a phone call is coming in or I try to make a call myself, it suddenly crashes - same message as above.

To help finding the problem, I tried to record a log with catlog when trying to switch bluetooth on and the settings crashes.

I can see some java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothHeadsetClient$2@102c20d0

I would attach the catlog file - but I'm currently no allowed to attach any file here???

Any ideas?

Here's a part of the log file - hopefully the relevant part:

08-23 10:09:02.924 W/Settings(29852): Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.
08-23 10:09:02.934 E/bt_osi_config(3468): config_new unable to open file '/etc/bluetooth/ble_stack.conf': No such file or directory
08-23 10:09:02.964 E/BluetoothAdapterService(3468): checkA2dpState: returning
08-23 10:09:02.964 E/BluetoothAdapterService(3468): checkHidState: returning
08-23 10:09:02.964 E/BluetoothAdapterService(3468): checkHfpState: returning
08-23 10:09:03.014 W/BluetoothHeadsetServiceJni(3468): Cleaning up Bluetooth Handsfree Interface before initializing...
08-23 10:09:03.014 W/BluetoothHeadsetServiceJni(3468): Cleaning up Bluetooth Handsfree callback object
08-23 10:09:03.064 W/BluetoothAvrcpServiceJni(3468): Cleaning up Avrcp Interface before initializing...
08-23 10:09:03.064 W/BluetoothAvrcpServiceJni(3468): Cleaning up Avrcp callback object
08-23 10:09:03.074 E/AudioService(29607): Player: com.maxmpz.audioplayerLost Focus
08-23 10:09:03.074 E/AudioService(29607): Player entry present, no need to add
08-23 10:09:03.084 E/RemoteController(3468): Cannot set synchronization mode on an unregistered RemoteController
08-23 10:09:03.084 W/BluetoothA2dpServiceJni(3468): Cleaning up A2DP Interface before initializing...
08-23 10:09:03.084 W/BluetoothA2dpServiceJni(3468): Cleaning up A2DP callback object
08-23 10:09:03.094 W/BluetoothHidServiceJni(3468): Cleaning up Bluetooth HID Interface before initializing...
08-23 10:09:03.094 W/bt-btif (3468): cleanup: HH disabling or disabled already, status = 0
08-23 10:09:03.094 W/BluetoothHidServiceJni(3468): Cleaning up Bluetooth GID callback object
08-23 10:09:03.104 W/BluetoothHealthServiceJni(3468): Cleaning up Bluetooth Health Interface before initializing...
08-23 10:09:03.104 W/BluetoothHealthServiceJni(3468): Cleaning up Bluetooth Health callback object
08-23 10:09:03.125 W/ContentService(29607): Observer android.database.IContentObserver$Stub$Proxy@1fcd260f is already registered.
08-23 10:09:03.145 E/BTEventHandler(3468): A4WP is not supported
08-23 10:09:04.886 W/InputMethodManagerService(29607): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@a8bf69c attribute=null, token = android.os.BinderProxy@1bea1fde
08-23 10:09:06.378 E/auditd (12702): Failed on audit_set_pid with error: Protocol not supported
08-23 10:09:07.969 E/BluetoothAdapterState(3468): Error enabling Bluetooth
08-23 10:09:07.979 E/BluetoothPbap(5011):
08-23 10:09:07.979 E/BluetoothPbap(5011): java.lang.IllegalArgumentException: Service not registered: android.bluetooth.BluetoothPbap$2@4d29876
08-23 10:09:07.979 E/BluetoothPbap(5011):	at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:1030)
08-23 10:09:07.979 E/BluetoothPbap(5011):	at android.app.ContextImpl.unbindService(ContextImpl.java:1843)
08-23 10:09:07.979 E/BluetoothPbap(5011):	at android.content.ContextWrapper.unbindService(ContextWrapper.java:557)
08-23 10:09:07.979 E/BluetoothPbap(5011):	at android.bluetooth.BluetoothPbap$1.onBluetoothStateChange(BluetoothPbap.java:121)
08-23 10:09:07.979 E/BluetoothPbap(5011):	at android.bluetooth.IBluetoothStateChangeCallback$Stub.onTransact(IBluetoothStateChangeCallback.java:55)
08-23 10:09:07.979 E/BluetoothPbap(5011):	at android.os.Binder.execTransact(Binder.java:446)
08-2