[Q] How to change NAND android WIFI and BT MAC address? - HD2 Android Q&A, Help & Troubleshooting and Genera

After flashing NAND Android, I found that the wifi mac address is : 00:11:22:33:44:55, and the BT mac address is :50:C3:00:00:00:00, any one can tell me how to change them ?
thx.

are u having wifi problems? i am.. i wanna change it too..

+1 for wifi
at home its fine, at work its a unusable mac address

believems said:
After flashing NAND Android, I found that the wifi mac address is : 00:11:22:33:44:55, and the BT mac address is :50:C3:00:00:00:00, any one can tell me how to change them ?
thx.
Click to expand...
Click to collapse
Sorry, accidently hit the Thanks button instead of Quote.
First: Wrong thread, this should be in Q&A.
Second: This is not possible yet, as the current version of MAGLDR doesn't have the possibility to pass parameters (other then AD SD DIR) to the kernel.
Hopefully, in a future update, Cotulla will add this to MAGLDR. For now, you can only use the fake MAC-address supllied with the NAND-builb.
MOD: Can you move this thread to the Q&A Section please?
Sincerely,
Mac

Apparently, there is a solution. I found this on one of the NAND build threads:
clio94 said:
guys this is a temporary way to change wifi mac address in 0.2 build
0.2 build is prerooted so we can change system files
install root explorer 2.13
go to /system/etc/ find file calibration and open it as view in text editor
in first line you will see the mac address
put your desired mac address,save and exit
and then make reboot
voila now you have new mac address
thanks to osm http://forum.xda-developers.com/showpost.php?p=9806811&postcount=17 for this trick
Click to expand...
Click to collapse
Sincerely,
Mac

Macelangelo77 said:
Apparently, there is a solution. I found this on one of the NAND build threads:
Sincerely,
Mac
Click to expand...
Click to collapse
but, BT mac address how to change?...

So, just NAND flashed my HD2 over to DFT's .2 release of Android. This gave me the infamous MAC address issue of 00:11:22:33:44:55 but the file given here doesn't exist. The location exists, but there's no file by the name of calibration in that location. I used Root Explorer to search my phone even for calibration and it didn't find a thing. Any ideas what it may actually be called?

I also need to change bluetooth mac...
Is there a chance to change it???

no one a idear?

WiFi MAC Address Workaround:
Must have Android Developer Kit installed
1. adb pull /system/etc/calibartion
2. open calibration file with wordpad. Not notepad.
3. change the line that says macaddr=00:11:22:33:44:55 to either your real mac or just increment the last digit
4. save file and close
5. adb push calibration /system/etc
6. reboot phone

smokey155193 said:
WiFi MAC Address Workaround:
Must have Android Developer Kit installed
1. adb pull /system/etc/calibartion
2. open calibration file with wordpad. Not notepad.
3. change the line that says macaddr=00:11:22:33:44:55 to either your real mac or just increment the last digit
4. save file and close
5. adb push calibration /system/etc
6. reboot phone
Click to expand...
Click to collapse
Not all builds have this file nor read this file.
Sent from my HD2 Droid (HD) using XDA App

and bluetooth mac?!

any one knows how to change BLUETOOTH mac address with NAND?

Related

[Q] solution for wifi conflict

My brother and I have two HD2 devices
but when we use the wifi in the android at the same time
a kind of conflict occurred and the last one who turn the wifi on can use the internet and the other is disconnected
so, is it kind of ip problem and how to solve it?
just to be sure: I guess when both are in WinMo all is working fine?
yes
yes they work great
kingo08 said:
yes they work great
Click to expand...
Click to collapse
I'm not a dev btw, just curious, sorry about bringing your hopes up
I searched some here as well as elsewhere, because I've read somewhere, a while ago something about changing the designated IP adress of the phone.
It sounds to me your router is try to give the phones the same IP. You could check the router for that. I'd first try and give each MAC adress a designated IP (a different one ofc).
Damn, I'm sure there's a post somewhere here about this, just can't find it...
Just found this:
http://ip208-100-42-21.static.xda-developers.com/showthread.php?p=8360637
In short: it's the MAC adress which is the same on the phones. You could try different build, but start with the mentioned thread first
This must be it:
"The only fix so far is run different kernels. That's what I've been doing."
and
http://forum.xda-developers.com/showpost.php?p=8455440&postcount=7397
Thanksssssssssssssssssssss
I really appreciate your efforts
as long as there is a solution somewhere here i will try to find it
Good!
Always willing to help
I surely hope it'll work!
I'm sure the problem is that you both use the same Mac address. Maybe the new desire hd & z use the original Mac address. So you both use the same android build and also use wifi
Sent from HD2
dusdus said:
Just found this:
http://ip208-100-42-21.static.xda-developers.com/showthread.php?p=8360637
In short: it's the MAC adress which is the same on the phones. You could try different build, but start with the mentioned thread first
This must be it:
"The only fix so far is run different kernels. That's what I've been doing."
and
http://forum.xda-developers.com/showpost.php?p=8455440&postcount=7397
Click to expand...
Click to collapse
hi
are u have that file for fixing mac address?
if u have it upload here .that link have problem
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
cma1032 said:
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
by this way can i change mac address from 00:90:4c:c5:00:34 to 00:11:22:33:44:55 ?
and i do that and any happening?
If you return it back to 00:11:22:33:44:55 will return that mac address. If there's 2 people with hd2 and an android rom will encounter a conflict because both will have 00:11:22:33:44:55.
cma1032 said:
To do this, you need superuser app and terminal. You also need to know your true wireless mac address.
1) open terminal and type su
2) type ifconfig eth0 hw ether [mac address]
This should change your mac address, but you have to do this every time you reboot.
Sent from my Nexus One using XDA App
Click to expand...
Click to collapse
Thanks for that cma. Is it possible to make this into a script which could then perhaps be run at startup?
I don't know how this could be done at startup because you need wifi activated first before running it.
Sent from my Nexus One using XDA App
Can you write how we must put the wifi mac address;
Do we need [ ] and : between the numbers; I am trying with both ways,but nothing changes

[SOLVED] openvpn on DHD? tun.ko?

Has anyone managed to get openvpn going? compiling custom tun.ko file for DHD?
It's probably possible, now that we have the source. Don't have a DHD just yet, so can't try
Sent from my HDfied HTC Desire
Thread moved to General.
hello
i'm interesting too for the kernel mod tun.ko for the DHD
any reponse ?
Hello,
i'm very interesting in this file too...
My NAS awaits the phone "call".
Hey everyone. First time poster, so hoping its a happy reply
Has anyone had any luck with this ? i also require the tun.ko file for DHD. been searching the net for hours
looking forward to your replies.
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Is it also linked to the radio version?
If we could have a link for kernel source, i might be able to follow tutorial and publish it here.
I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Lionel
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
thedji said:
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
Click to expand...
Click to collapse
Perfect! Thanks!!
Very thanks for the module.
DHD - tun.ko for 2.6.32.21-g66cfb7a
EFCAugure said:
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Click to expand...
Click to collapse
Yes. After trying other people's tun.ko modules, it wasn't until I checked the output of dmesg that I learnt this (got my first Android 3 weeks ago - so I'm still a n00b).
EFCAugure said:
If we could have a link for kernel source, i might be able to follow tutorial and publish it here. I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Click to expand...
Click to collapse
Lionel, it would appear that my Desire HD has the same kernel.
2.6.32.21-g66cfb7a
2.6.32 is the base kernel version
I assume 21 is the revision or build number.
The hex string on the end seems to vary by which ROM you have installed. This was what was stopping me from loading these other tun.ko modules - including the one posted by @thedji
I've just compiled the tun.ko module for 2.6.32.21-g66cfb7a (on a headless Pentium 2 400 MHz lol). It loads fine and can be seen in the output of lsmod. I've attached it below.
Edit: I was able to use this module successfully to connect to a Cisco VPN with vpnc.
Mike
@MikeMelbourne
Can you explain to me how and with what Software you connected to a Cisco VPN?
C.K. said:
Can you explain to me how and with what Software you connected to a Cisco VPN?
Click to expand...
Click to collapse
First - applications.
1) You're going to need a terminal/console app. I used one called Terminal Emulator.
2) You're going to want an app called "VPN Connections". I downloaded a patched APK in post #4 here:
hxxp://code.google.com/p/get-a-robot-vpnc/issues/detail?id=122&q=patch
Alternatively, you might get it from here: hxxp://code.google.com/p/get-a-robot-vpnc/downloads/list (although YMMV).
Second - setup.
1) You're phone needs to be rooted.
2) You need to have the appropriate tun.ko module (for your phone's kernel) loaded. Load up the Terminal Emulator then:
a) Type 'su' without quotes and hit enter.
b) Type 'insmod /path/to/tun.ko' without quotes and press enter. If your tun.ko is on your sdcard in the root, the path would be /mnt/sdcard/tun.ko
c) If the step above worked, you should be able to type 'lsmod' and see the tun module loaded.
Note: I didn't have any luck running the "VPN Connections" app directly - the connection kept failing (possible due to the configuration of the VPN I was connecting to). So I start it from the command line. You might want to try using the GUI first as it would make things so much easier if it works.
Third - connecting to the VPN by a command line.
1) The command to enter is quite long (and I got sick of typing it), so I put it into a file called 2.sh in the root of the sdcard.
2) Inside the file /mnt/sdcard/2.sh, I entered the following:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Note that the gateway is the IP address of the VPN you are connecting to. The username for me is just my username - it isn't prefixed by my company's active directory domain.
3) Open the Terminal Emulator.
4) Enter 'su' without quotes and press enter.
5) Enter 'sh /mnt/sdcard/2.sh' without quotes and press enter.
6) You will be asked to provide the group password, then the personal password for your username. Then it should attempt to connect.
You can change the debug value to 2 or 99 if you want to get more information (if it doesn't connect successfully).
If you want to know what command line options are available, enter the following at the Terminal Emulator:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --long-help
I think that's it - I hope this helps. After disconnecting I tend to do a long reboot (takes 1-2 minutes) to get the network back to the way it was; although I'm not sure this is necessary.
Mike
Edit: seems like you need to create a directory and a symbolic link. This is my working script:
Code:
mkdir /dev/net
insmod /mnt/sdcard/download/tun.ko
lsmod
ln -s /dev/tun /dev/net/tun
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
C.K. said:
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
Click to expand...
Click to collapse
Because the "VPN Connections" GUI app didn't connect for me, I had to resort to the script - you may not need to (depending upon the configuration of your Cisco VPN box).
I just need to run the final script (the 5 liner above) to connect to the VPN - good enough for the time being. You just need to modify the path to tun.ko, set your gateway server, groupid & username.
I hadn't worked with Android before the weekend just past - I've just rooted my first Android phone. It's all a learning experience - I guess it depends how badly you want VPN access? Hopefully it will get easier in time as the apps improve.
Good luck!
Mike
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
For me personally, I use VPN Connections to connect (successfully) but the traffic is routed down the wrong interface (i.e. not tun0).
After connecting I have to run
Code:
ip ru del table wifi
or
Code:
ip ru del table gprs
to fix the issue.
You should definitely try VPN Connections first. If that doesn't work, try the long method above.
thedji said:
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
Click to expand...
Click to collapse
GScript is a great idea - it will save me doing any typing to connect to the VPN.
Once I added these VPNC flags (--natt-mode cisco-udp --enable-1des) to "VPN Connections" I was able to successfully connect after running the script in GScript.
It doesn't say I'm connected, however my IP address has been assigned and I can Remote Desktop to my work PC. My routing already seems to be ok, so I don't to run the 'ip ru del' commands that you do.
I'm pretty satisfied with this now... no typing - just point and press.
-Mike-
What about tap.ko? (needed for OpenVPN bridge mode)
Exposure said:
What about tap.ko? (needed for OpenVPN bridge mode)
Click to expand...
Click to collapse
What kernel version are you running? If you have '2.6.32.21-g66cfb7a' I could compile tap.ko for you?

[Q] Same old MAC Address problem, different question?

It occurred to me that there must be some kind of really easy solution to the problem of cracking a windows phone and applying Android and ending up with the WiFi MAC Address conflict issues...
I have 00:90:4c:c5:00:34, but my "real" MAC address ends in :38...
My guess is, there is a string in some bit of code, somewhere, a config file or a boot file, or some hardware file that has this MAC address in it.
Wouldn't it be easy to just go into that line in the code or config files and change it?
Or am I making this too simple?
Is this some kind of default address handed out when a program fails to find a proper MAC Address (nand not working, etc)?
I have searched all day for a solution, and tried 3 or 4 that I found without success.
So my questions are:
1) If this "default" MAC Address (00:34) is in a config or other file, what file would that be?
or
2) is there a simple way to change the MAC Address some other way, so I can get all 3 of these devices on the same network?
I have Android 2.2, Kernel 2.6.32.15r8.4-gb02a70d (hastarin... #66), Build 2.29.405.2 CL263770, Software Sergio Core Droid Desire V0.8...
On an HTC HD2.
(maybe there is a better distribution that gives me this same kind of look and feel that might work better for this problem?)
Thanks in advance for your consideration and help.

[Guide] Spoof/change Xperia mac address

This guide is for users who want to change their device mac address. Mac address blocking can be a problem in public WiFi. Where the administrator can block your access to the internet using a mac filter !
The mac spoof apps on the play store wont work with xperias
Mac address handling varies with OEMs. So the trick which works on other devices, wont work on Xperias
This guide supports all Xperia devices (Zl /Z /Z1 /Z2 /Z3) on the latest KITKAT version (4.4.4)
Step 1
Copy the follwing from / data / etc
wlan_macaddr0
wlan_macaddr1
wlan_macaddr2
wlan_macaddr3
Step 2
Paste these files at /system/etc/firmware/wlan
Step 3
There will be files such as
macaddr0
macaddr1
macaddr2
macaddr3
Now rename all the above files to some other name. Like "macaddr0p" and so on..
Step 4
At /system/etc/firmware/wlan
You need to rename the files you have already copied
wlan_macaddr0 to macaddr0
wlan_macaddr1 to macaddr1
wlan_macaddr2 to macaddr2
wlan_macaddr3 to macaddr3
Edit the above files using text editor to the preferable mac address you wish to have and then REBOOT !. This is permanently change your mac address
Be careful while editing the mac address. Use numerals and first few alphabets till " f ". Otherwise the mac adress will change to 01:00:00:00:00:00 and WiFi might not work.
pjgowtham said:
This guide is for users who want to change their device mac address. Mac address blocking can be a problem in public WiFi. Where the administrator can block your access to the internet using a mac filter !
The mac spoof apps on the play store wont work with xperias
Mac address handling varies with OEMs. So the trick which works on other devices, wont work on Xperias
This guide supports all Xperia devices (Zl /Z /Z1 /Z2 /Z3) on the latest KITKAT version (4.4.4)
Step 1
Copy the follwing from / data / etc
wlan_macaddr0
wlan_macaddr1
wlan_macaddr2
wlan_macaddr3
Step 2
Paste these files at /system/etc/firmware/wlan
Step 3
There will be files such as
macaddr0
macaddr1
macaddr2
macaddr3
Now rename all the above files to some other name. Like "macaddr0p" and so on..
Step 4
At /system/etc/firmware/wlan
You need to rename the files you have already copied
wlan_macaddr0 to macaddr0
wlan_macaddr1 to macaddr1
wlan_macaddr2 to macaddr2
wlan_macaddr3 to macaddr3
Edit the above files using text editor to the preferable mac address you wish to have and then REBOOT !. This is permanently change your mac address
Be careful while editing the mac address. Use numerals and first few alphabets till " f ". Otherwise the mac adress will change to 01:00:00:00:00:00 and WiFi might not work.
Click to expand...
Click to collapse
u sure this will work and wont brick my device cause m really in a need to spoof my mac address
Somebody tried it? as there's no feedbacks... thanks a lot by advance =)
Hi,
First of all thanks for the info
On which version of Android did you tested ? Is it the same for all flavours of Android ?
Can this method be used on other devices or just Xperias ?
Solution under CM12 Lollipop:
http://forum.xda-developers.com/z3/help/change-mac-adress-permanently-t3037259
help!!!
I wanna change my mac address, i have z2 lollipop
And i dont get the explanation, can anybody help with simpler ways of changing my mac address

[Q] problem wifi and hotspot cm11. 20140907

Hi Please help help
I'm from asia Iran
I have a problem with wifi and hotspot
Wifi saved bat not connected
I installed cm-11-20140907-UNOFFICIAL-Blefish-u8800 After the android.2.3.5
I used cm11 bat wifi to fail mac adress In settings Phone show 00:00:00:00:00:00
Please help my . Thank you.
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
wifi problem cm11
Blefish said:
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
Click to expand...
Click to collapse
Use ideosx5settings app bat not connected
my use all rom this web bat Except rom port official in None not connected wifi
Please help Very Important
Blefish said:
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
Click to expand...
Click to collapse
Please help Please help
I want to help, but for me it's difficult to understand you
What have you done in IDEOS X5 Settings app? Did you change your WiFi MAC Address? Not all MAC Addresses are correct. Best use some kind of generator, like this for example.
wifi problem cm11
bat how use MAC Address Generator ?
Well, just click "generate Mac address", and you will get something like this: " 7B-31-DC-83-EB-25".
Write this into your device instead of 00-00-00-00-00-00 that you have now. And everything should work.
wifi problem cm11
Teg8 said:
Well, just click "generate Mac address", and you will get something like this: " 7B-31-DC-83-EB-25".
Write this into your device instead of 00-00-00-00-00-00 that you have now. And everything should work.
Click to expand...
Click to collapse
How Write this into your device instead of 00-00-00-00-00-00 that you have now a cm11
wifi problem cm11
Blefish said:
Use ideosx5settings app to set WiFi MAC address. Then reboot and it should work . Next time use the q/a thread.
Click to expand...
Click to collapse
Mr. Blefish
Why do not you help me!
1. Open IDEOS X5 Settings app
2. Enable "Custom HW address" option (third from the bottom)
3. Select "Wi-Fi MAC Address" option and write new MAC address
wifi problem cm11
Teg8 said:
1. Open IDEOS X5 Settings app
2. Enable "Custom HW address" option (third from the bottom)
3. Select "Wi-Fi MAC Address" option and write new MAC address
Click to expand...
Click to collapse
Thank you very much
The problem was solved
Thank you very much
Thank you very much
Thank you very much

Categories

Resources