Jump to content


Photo

Need help with changing MAC address for Tethering


  • Please log in to reply
36 replies to this topic

#1 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 11 January 2014 - 11:50 AM

I'd like to change MAC addresses for this purpose and this purpose only: gaming.
 
 
According to that thread, Android phones have their Wi-Fi configurations in these directories.

/system/etc/wifi/nvram.txt
/data/misc/wifi/config
/data/.nvmac.info
/factory/wifi/.mac.info
/data/etc/wlan_macaddr
However, none of these paths contain those configurations.
These two paths exist on my phone: /system/etc/wifi/ and /data/misc/wifi/ but do not have any MAC address configurations.
 
Is there another directory where the MAC configurations are located? Is it even possible to change the MAC address on the Razr?


#2 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 11 January 2014 - 03:05 PM

Have you tried any of the MAC changing apps in the play store?



#3 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 11 January 2014 - 07:14 PM

I've tried MAC Address Ghost and a few Wi-Fi Tethering apps, but they fail. I assume they look into those paths and try to find a file for where the MAC address is stored, but couldn't find one.



#4 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 09:44 AM

Do ROMs with a different kernel have different Wi-Fi configurations?



#5 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 10:36 AM

After long days of searching, I'm one step closer (I hope) in finding how to change the MAC Address on my Droid RAZR.
 
Using a terminal, I type in these commands:
su
busybox ifconfig wlan0 down hw ether 4E:53:50:4F:4F
ifconfig wlan up
I check it with a simple "busybox ifconfig wlan0" and it states that the MAC Address is changed to the desired one.
 
However, this only works when the Wi-Fi setting is switched on. When I turn on tethering, it switches the Wi-Fi setting off, thus reverting the MAC Address to the original one.
What I want to do is have the MAC Address spoofed only when the hotspot tethering is on. I don't want to connect to other devices, I want other devices to connect to mine
 
Any suggestions on how to change the MAC Address while having hotspot tethering on?
Note, that spoofing apps aren't useful to me as the Droid Razr isn't too hacking friendly. I've tried.

 



#6 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 11:18 AM

Tethering and Hotspot to me are two different things. Tethering is using a wire via the usb port and Hotspot is all wifi and then connecting to the service via cellular. So which is it that you are trying? If its the second, it sounds like the issue would be setting the MAC on the cellular side of the house. 



#7 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 11:23 AM

I replied to your other thread......in answer here, I wouldnt think they should be too different.



#8 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 11:31 AM

lazy I am going to move/merge this into your other thread, since that seems a more appropriate place, since its not specifically device related.

 

EDIT: MERGED. and sort of merged your Topics. Change as you see fit, or I can if you think something different is better.


  • livinginkaos likes this

#9 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 11:42 AM

I suppose what I meant was turning on 4G LTE and turning wireless tethering on (the phone acts as a wireless router).

 

Would you happen to know how to set the MAC Address according to "the cellular side of the house"?



#10 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 11:47 AM

I do not lazy, but does that sound correct what I was asking? Your device is a wireless router so the "internet" sees the cellulars MAC for all the connections running through it, which is what I think the problem is with the gaming stuff. Its seeing all your connections with whatever MAC and you want to change it, if I understood correctly.

 

I can poke around for an answer, but others may have ideas or answers. Some searches I was doing earlier had people on stackflow doing some coding, but I didnt dig to deep.



#11 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 11:58 AM

I see a file /data/misc/wifi/softap.conf that looks like it has a MAC address in it, but I think that would be for the wifi side. I guess it couldnt hurt to try it...



#12 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:04 PM

I saw what you tried on xda, but heres another one I found:

 

I don't think this is permanent however. I did find another guide on Android Forums that seems to be permanent:

After your rooted head into terminal emulation type su and go into /data/misc/wifi

Look for a file called nvram.txt

Copy it to your sdcard and then to your cpu desktop open it with notepad and at the bottom of nvram.txt is the mac address

This i was able to verify and test on android Citrus Ciena

Edit that mac address and save it as nvram1.txt onto sdcard

Now go back to data wifi misc and copy nvram.txt to nvram.bak

Head into gui and then settings then wifi then turn on the wifi but don't connect to any wifi

turn off the wifi,switch back to terminal

Copy the nvram1.txt to data misc wifi

remove the original (make sure you got it backed up)

Rename nvram1.txt to nvram.txt

head back into gui and then settings then wifi

Now for me it immediately stated unable to turn on wifi

Ignore it and try to turn it on anyways

When it turns on your newly edited mac address will take effect

Connect to your AP

NOW B4 REBOOTING YOU MUST CHANGE NVRAM BACK TO THE ORIGINAL!



#13 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:07 PM

I dont have the above nvram files on my 912, so dont think thats the answer...



#14 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 12:22 PM

I appreciate your help, cmh. If I could find where the MAC address is stored in the 912, this would be so simple.

I don't even know where the sneaky phone developers hid it.



#15 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:26 PM

try and change the softap.conf file and try that see if it might work



#16 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 12:31 PM

I opened the softap.conf file with Notepad, and this is what I get.

    attwifi                   192.168.43.1 192.168.43.2 192.168.43.254

These are just IP addresses. No MAC address. That "attwifi" is the SSID that I'm using, however.

 

There are three folders named "wifi" in XT912, and opening the files with Notepad, I none of them have MAC address values.



#17 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:32 PM

hmm, on the verizon 912, its a mac not IP's......keep looking around



#18 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:36 PM

Maybe try and grep for the MAC address.....with and without colons



#19 lazy9090

lazy9090

    n00b

  • Members
  • Pip
  • 19 posts

Posted 12 January 2014 - 12:37 PM

That's strange. What does your softap.conf file look like? Does it have SSID and the MAC address? Does it look similar to what I posted?



#20 cmh714

cmh714

    Tech Service & Beyond

  • Smod
  • 3,272 posts
  • LocationSoCal
  • Current Device(s):Nexus 6

Posted 12 January 2014 - 12:44 PM

No, on both my 912 and 926 with Verizon have the SSID I want and then the MAC address and thats it. Example:

 

AndroidAP 1277fe63ed21 

 

EDIT: I guess I meant yes, ssid and mac :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users