• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root How do I permanently change my Bluetooth MAC Address?

Palmetto Fellow

Android Expert
I have a need to change my BlueTooth MAC address. I've done a little google searching, but I am not really sure if those methods would work for me. I saw some advice for people on CM7 with regards to a few lines of code, but I am not sure that the change is persistent after a reboot.

I'd mainly need this for Sense based ROMs, but I plan to run Jellybean off CM10.1 at some point as well. Each of my ROMs will require a different Bluetooth MAC address in order for everything to play nicely together.

Do I need some text in my init.d folder? Is there an app I can run that will do it?
 
This seems like a pretty good tutorial:
http://forum.xda-developers.com/showthread.php?t=1808903

Also I'm gonna novel this into the root section, I think you'll get more help there!

Thanks for the link and the migration to this forum. I debated where to put it myself, then figured I'd go general with it.

As for that procedure, I have to read through it a couple of times as a few parts don't apply to me like the six axis controller and motionjoy. If I ignore those two parts of the procedure, it looks like a command that gets entereted through ADB.

Would I just pull the BT file, change it, and then slap it back in there? It seems like this is the procedure:


1. cd c:/asdk/platform-tools
2. adb pull /esf/bluetooth/bt_addr
3. Change the MAC address
4. adb push bt_addr /esf/bluetooth/

Some questions:

Do I need to create the platform tools directory, and do I need to do anything such that the file is dumped there automatically?
Does this ONLY affect the specific ROM that I am on, or does this change the BT MAC address at a higher level which would then affect all ROMs?

My goal is to have a different BT MAC address for each ROM that I run. I don't need to change my BT MAC address to the same value for all ROMs. It must be different between ROMs or this will not help me.
 
I figured some wouldn't apply to you but it looks like you could can follow the steps you posted. The only thing is your number one... That just happens to be the directory for his. I'm pretty sure you installed sdk mini per the complete newbie's guide. If you followed those instructions your directory is likely: c:\sdk-tools

Don't create a new directory. Yours is just wherever your adb and fastboot are located. And when you pull the file it will automatically go into the directory you are running the command from and that's where you would find it on the pc.


As for the other questions,they are really out of my scope of knowledge... Let's see if anyone else jumps in, otherwise you may just have to do a little trial and error.

Also I forgot to mention that the guide was made for the s2. That blutooth file possibly doesn't exist and probably isn't in the same location. It may have a different name if it does exist. That guide I just skimmed and thought maybe there was useful information. It likely has to be tweaked though. I'll look and see if i can find a file like that on my phone
 
As for the other questions,they are really out of my scope of knowledge... Let's see if anyone else jumps in, otherwise you may just have to do a little trial and error.

I'll give it a day or so before I start trial and error testing.

I figure, worst case, if this does affect the BT MAC address at a higher level, and that change is persistent in all ROMs, then I'll need to run these commands for each ROM with a unique MAC address as I switch to them.

I don't really want to do that. Perhaps I can make a script out of it? Also, if it's a script, would I boot to each new ROM, have the script run, then reboot once after that script has run for the changes to take affect, or do these changes take place in real time?
 
Back
Top Bottom