[Q] Bluetooth address in Android build - HD2 Android Q&A, Help & Troubleshooting and Genera

Does anyone know why most of the builds here don't pick up the ACTUAL bluetooth address from the hardware? I installed the same build for me and my wife and both have the same bluetooth address. This prevents us from connect to the car since both have the same address, no matter what phone name I have.
Please help

This is a known issue.Thanks to mdebeljuh you can change your bt and wifi mac address from startup.txt
http://forum.xda-developers.com/showthread.php?t=819819
This patch is included in latest kernels from hastarin and mdjaey

clio94 said:
This is a known issue.Thanks to mdebeljuh you can change your bt and wifi mac address from startup.txt
http://forum.xda-developers.com/showthread.php?t=819819
This patch is included in latest kernels from hastarin and mdjaey
Click to expand...
Click to collapse
Wow! That was fast and this solved my problem. Thank you very much.

Related

evo kernel with different wifi mac address

Hello.I have compile an evo based kernel with different wifi mac address,since many people have 2 hd2 and cannot connect in the same wifi network same time.
Unfortunatelly i didnt make any magic to correct this issue into git tree.Before compiling kernel i go to arch/arm/mach-msm find the file board-htcleo-wifi-nvs.c and in the line static unsigned char *hardcoded_nvs =
"macaddr=00:11:22:33:44:55\n"\
i change manually the mac address
But i see something strange.The original board-htcleo-wifi-nvs.c that you can find in http://www.gitorious.com/linux-on-wince-htc is like this
static unsigned char *nvs_mac_addr = "macaddr=00:11:22:33:44:55\n";
static unsigned char *hardcoded_nvs =
and wifi mac change doesnot work.
So i used the file from nexus based kernel which i include into the rar file
i have upload
Also found that in evo based kernel in drivers/net/wireless/bcm4329_204/proto in the file 802.11.h there is a line #define BRCM_PROP_OUI "\x00\x90\x4C" these digits are the first three of same wifi mac address we have in evo kernel.I put there other random numbers but wifi tried to connect,without success.
Hope that someone can combine the things and find a permanent solution without the need of building other kernel.
I have included 2 kernels with different wifi mac address and the latest fix for music stuttering.They are based into hastarins-linux tree without overclock or undervolt patch.
http://rapidshare.com/files/427143719/evo_kernel_mac_addr.rar
mirror
http://www.filefactory.com/file/b3he4cd/n/evo_kernel_mac_addr.rar
Also i see that maybe wifi N is not enabled in evo based kernel.I compared code here http://git.linuxtogo.org/?p=groups/...it;h=54e627b77ef4bf0e30c0b5a7ac390e8c8b207fec
and made the changes in evo kernel files.If someone can test this if works.
Thanks to all developers for your work.You give new life to our hd2
Hey do you know you can set wifi.mac by startup.txt
sample here:
Code:
set cmdline "rel_path=Android nand_boot=0 wifi.mac=04:1E:64:2F:E2:2f"
But currently it effect only R11 kernel.
Other kernel don't read this property
Yes but michyprima R11 kernel is a nexus one based kernel.
I have made a similar thing for evo kernel. Can you please test my patch:
h__p://forum.xda-developers.com/showthread.php?p=8827583#post8827583
Yes i`ll try this you are super
im sorry but im kind of a newbie... calio94 can you plz help me on how to change this settings????... im really confused with that description you gave.. plz help ... thank you in advanced ;]
hastarin has released 7.7 with mdebeljuh's patch to set mac address in startup.txt
Code:
set cmdline "wifi.mac_address=00:11:22:33:44:55"
jibbz said:
im sorry but im kind of a newbie... calio94 can you plz help me on how to change this settings????... im really confused with that description you gave.. plz help ... thank you in advanced ;]
Click to expand...
Click to collapse
There is nothing to change if you are not compiling a kernel
Yesterday i wrote this post and today another member found a better solution.
This why i like xda community
As shadiku said hastarin made a kernel with patch to set mac address in startup.txt which is more easier and comfortable the way i described

[Q] Ad-hoc wifi with x8 ?

So finaly i succseed with this, its working! With jerpelea's latest rom i can connect to the laptop via ad-hoc, created by windows 7. Need to set static ip adress, and use wep security. If you have quessions, i will help you.
Can you make a wiki? Thnks
Yes, it'd be nice if you wrote some guide, so I could incorporate it into a general wifi-N topic: http://forum.xda-developers.com/showthread.php?t=1019371 - with giving you credits, of course

WiFi MAC address collisions

I know that your first reaction will probably be hey this has been resolved quite a while ago. Not again??
Well, I have been using NAND builds for a while now, but never got the WiFi MAC address collisions problem resolved. The access points at work keep throwing me, and others, with the famous loop of "searching"----> "connecting"--->"disconnect".
Where I work, the company cellphone is (you guessed…) HTC HD2. And many of us switched to Android… Every now and then, I see that different phones are assigned with the very same WiFi MAC address. This drives the access points crazy and they disconnect phones with identical MACs immediately.
I tried most of the suggested ideas in different threads here, none really helped for my NAND builds. The standard Linux terminal emulator commands simply don't exist in Android.
I explored a bit Tytung's Kernel code and I think I found the reason. Since the Kernel has no access to the original MAC, it has to generate one. It does it by running a CRC32 function over the MSM ID (internal QCOM's modem chip ID), which is unique. But since the IDs of a phone series are sequential, the only actual difference you get is in the last part of the MAC address. E.g., 00:23:76:aa:bb:xx. So you see that all phones have the same prefix, and the only difference is in the xx part. This practically leaves a very small space of 256 numbers. But even worse - because of the CRC32 function, it narrows to an even smaller number of optional combinations… the bottom line is that the WiFi MAC address generated by the Kernel is not unique
Even with latest tytung's kernel r12.4, problem still persists. The only change Tytung did was to switch to HTC allocated prefix 00:23:76. Well, it did help, till all users started switching to new builds based on latest Tytung's Kernels. And collisions started again…
I'm aware that the community can't let everyone choose their own WiFi MAC address. It's un-safe. Nevertheless, till QCOM opens the original MAC address to the developers, there must be a way to add another level of randomization to the number the Kernel generates. Maybe allow the user, through some file, to add a number that will be used in turn for further randomization?
Right now many of us can't use at work the beautiful builds xda community offers just because of that
In some ROMs you can put your original mac address into the calibration file and it works. Of course if you have it written down somewhere
Sent from my HTC HD2 using XDA App
Thanks greg17477.
I looked for the calibration file in few NAND builds with no luck. Any specific ROM you can refer me to? Where should the calibration file be located anyway in case it's included?
In many sense roms you can put your wifi mac address.you can change Mac address if calibration file is in /system/etc.if it is in /proc/calibration you can't change it.another way if you want to use aosp or cm rom is to compile your kernel with your wifi Mac address
Sent from my HD2 using Tapatalk
bump!
Issue becoming a big nuisance as more and more HD2 users at work switch to Android that uses Taytung's kernel.
tried a different kernel instead?
Richy99 said:
tried a different kernel instead?
Click to expand...
Click to collapse
Interesting. Is the Android build kernel independent?
I'm using MIUI-1.12.23, which uses tytung_r12.4
Which Kernel would you recommend trying instead?
im using r14 of tytungs kernel but there are others available for use
arikm said:
Interesting. Is the Android build kernel independent?
I'm using MIUI-1.12.23, which uses tytung_r12.4
Which Kernel would you recommend trying instead?
Click to expand...
Click to collapse
All other kernels have the same issue except Rafpigna's one... but ALL other kernels are better. (no offence Rafpigna... xD )
...
Hello
Wifi & bluetooth Mac seem nailed (for HD2).
Please follow this topic and help confirm it.
http://forum.xda-developers.com/showthread.php?p=26579738
Franck
Have you tried any of these? They seem to work great on my Dorimanx ROM with his kernel, which is derived from tytung.

Changing Wifi Mac Adress??

Hi,
can somebody tell me if its possible to change the Wifi Mac Adress on a HTC HD2 running Android??
Regards
Alex
Each ROM/build has it's own way of changing the MAC address.
some just require a small txt file placed in a specific location and others require more work. I'm not sure if all ROMs/builds support MAC address change
It's better to look up the answer in the main page of the ROM/build you're using, and ask about it if you don't find any answer.
The problem is that I'm not allowed to place my question in the ROM Threat because I don't have the necessary posts (10 I think) to place it there So I have to spam here to have them

[Q] wifi mac address

Hi,
I installed this ROM Phonerty CyanogenMod 9.1 - 28 November 2012 on my HTC HD mini and wifi mac address has changed but I very need the native one Please can you help me a little? How can I change or set native? Thanks
This will auto set M.A.C Address, and if you want to change it, here are many tutorials and apps that you may search it, here is an example: https://play.google.com/store/apps/details?id=diewland.changemac&hl=en

Categories

Resources