no root, i 'm afraid. Any other way to edit the file? eg. from pc?
As GigiAUT pointed out you could use the ADK (Android Developer Kit) to do this as the shell will operate in root mode.
You will need to have the ADK setup on your pc
developer.android.com/sdk/index.html
Installing this thing and getting it setup is outside the scope of my reply, but you can refer to:
xdaforums.com/showthread.php?t=1241935
Which is fairly comprehensive.
Once you have the ADK installed, you will need to:
- Go to settings on your phone, developer options, enable USB debugging.
- Connect your phone to your pc set-up with ADK and wait for windows to do it's thing with the drivers. Your drivers should be successfully installed at this point. If not then you will have to research yourself how to get it to work with your phone.
- Confirm that your device is recognised by ADB:
You should see your device in the list.
- Next you will need to download the linkkeys file to your computer for edit:
Code:
adb pull /data/misc/bluetooth/linkkeys
This will download the file to your current working directory (i.e what it says to the left of your command prompt).
- Open this file up with notepad and perform the edits as per gigiAUT's instructions (post #192).
- Save this file and in your command shell type:
This will mount your system directory as writable. Then type
Code:
adb push linkkeys /data/misc/bluetooth/
To transfer your edited file back to your device.
Note: "linkkeys" part is assuming that the edited file is in your working directory. If not replace with "
path/to/file/linkkeys".
You might have to toggle your bluetooth or reboot for the changes to take effect.
Alternatively you can try rooting your device (I'm not sure if this tool supports the OneX, but I've had no issues with Galaxy and Transformer running ICS)
unlockroot.com/
It's free, it's quick. Install, plug in your phone (drivers need to be installed - refer to their documentation) click the big button and in about a minute your phone (with any luck) should reboot and it will now be rooted.
Good luck!