[Desire General] Dog909:
Hello all :)

A little bit of background info:

I have owned my Desire for over 2 years now & recently decided to s-off/root/flash (primarily to gain some memory space- the only real short coming of the Desire in my opinion).

I went from stock Gingerbread 2.3.7 to Cyanogenmod 7.1 & so have taken my first step into a larger world!

In that world I encountered problems - no signal, no gps, no bluetooth, radio flashing etc. - all of which I managed to find solutions for by reading the excellent resources of xda-developers.

So having collated the enormous & varying wealth of info & getting my Desire fully functional - I wanted to give something back.

It's not much (though I haven't seen it anywhere as a solution?), but it may help someone somewhere :fingers-crossed:

## If you just want to cut to the chase- the procedure that worked for me is at the end of the post! ##

About my phone:

Android version 2.3.7

Cyanogenmod version 7.1.0

Baseband Version 32.56.00.32u_5.17.05.23

Kernel Version 2.6.37.6-cyanogenmod-geb50077

As stated, gps & signal were fixed with a simple radio flash from 5..11.05.14 - 5.17.05.23

but bluetooth remained unable to connect. My 2 devices were in the list showing as 'Paired but not connected'

Clicking on them they would say 'connecting' but that process would end with no error or message & no connection made.

The only long press option on them was 'unpair' - so no option to delete & try again.

I then found a potential fix which is I assume is fairly well known BUT I could not get it to run:

SOLUTION (copied from external site)

I ran the Terminal app and entered

'su'

(App requests root permissions, grant them). Then I went to the device's bluetooth settings with

'cd /data/misc/bluetoothd'

(Note the 'd' at the end). There I found a directory named by the bluetooth chip's ID, in my case '38:E7:B8:45:21:a4'. I renamed this directory

'mv 3* hidden'

Turned bluetooth off and back on and could use bluetooth again.

Every time I ran the terminal I could get su to work, with permissions granted as confirmed in the toast message that would pop up- BUT whenever I typed 'cd /data/misc/bluetoothd' I only ever got 'Permission Denied'.

All the fix posts I read about this pointed towards root & su permissions not working correctly but mine certainly were. I had tried all the usual fixes of un-applying/re-applying SU permissions, root etc.

I also tried the same commands through adb, all with the same result.

It then occurred to me that the Terminal was only changing a folder property so I used 'ROM Toolbox Pro' -> 'Root Browser' to find the folder in question ('38:E7:B8:45:21:a4' in my case).

It became apparent that the path given in the 'fix' was incorrect (for my Desire GSM at least).

The folder I was looking for was actually in 'd/data/bluetoothd' - so the 'permission denied' error was because the path was incorrect, not that SU permissions were not granted!

Before I actually tried that correct path though- I noticed that to make files hidden the '.' (full stop) prefix is added to the start of the file or folder name.

I used Root Browser to long-press on the '38:E7:B8:45:21:a4' folder & then 'rename' from the menu - making the folder name '.38:E7:B8:45:21:a4' (note the full stop at the start.)

I then re-enabled bluetooth - this time noticing that both my paired devices were no longer there (this is good!). I made the Desire discoverable then did a scan...success!

Both my devices paired & connected exactly as they should. I now notice in Root Browser that the file structure has also changed with there being no 'bluetoothd' folder at all.

I also imagine that entering the correct folder path in terminal or adb would produce the same results, though I cannot confirm this as the procedure described had already worked for me. :)

So, long story short:

1. Make sure bluetooth is turned OFF then open Rom Toolbox Pro -> Root Browser (or any root browser with su permissions I guess?)

2. Navigate to the folder d/data/bluetoothd/38:E7:B8:45:21:a4 (#Note: your '38:E7:B8:45:21:a4' folder will probably be named differently)

3. Long press on the '38:E7:B8:45:21:a4' folder. (or whatever yours is called)

4. From the pop up menu - select 'Rename'

5. Add a full stop '.' at the beginning of the folder name Eg '.38:E7:B8:45:21:a4' (Keep the rest of the name as it was)

6. Turn on Bluetooth - in 'Bluetooth settings' make your device discoverable & note that if any paired devices were present, they should now be gone from the list.

7. Scan for bluetooth devices, obviously making sure they are also switched on & discoverable! (if it doesn't automatically)

8. Your devices should now show up, ask to pair, ask for pin numbers if needed & then connect automatically.

If this has been covered elsewhere please accept my apologies, & delete the post if it's deemed as clutter- I was merely trying to help :)