AT commands to set MAC Address of WiFi and Bluetooth on LG G4 - G4 Q&A, Help & Troubleshooting

Hi there!
I've heard there are AT commands that sets WiFi and Bluetooth MAC Addresses on G4 (LG-H818P), without the need of root.
Do you have these commands or know where can I get them?
Thank you!
Lucas Bracher.

AT Commands Location
The AT commands can be found in older models firmware, like the G3 in /bin/atd HEX. Just open up file 'atd' with a hex editor and search AT+ or AT% and you should find something. Looking at the LG AT commands I have available, there seems to be only one AT command for MAC being: AT%MAC which displays the MAC address. Bluetooth address is displayed with: AT%BTAD
Good luck!

Related

Spoof Mac Address

Hey guys,
does anyone know how to spoof the mac address on your phone? I'm testing a vendor blocking system and i need to be able to spoof my mac.
Thanks,
Cryous
Open terminal type in "ip link show" to find your WLAN card; mine was eth0 so I will use that as an example. Enter the following:
ip link set eth0 address XX:XX:XX:XX:XX:XX
To confirm that it switched, type in:
ip link show eth0
and it should show the new mac address. I haven't tested if it works on a MAC-filtered router, but I think it should work.
Found this on another thread seems to work. I was able to connect to my router after changing.
Its says access is denied, even when I use sudo
Sent from my ADR6300 using XDA App
The command works for me but i noticed its changing the wrong thing.
what do you mean its changing the wrong thing? It appears to change the right value
search "network spoofer" in the market. I'm just sure if it can spoof mac addresses or not

Change Mac address

these commands work with the epic????
http://forum.xda-developers.com/showthread.php?t=715525
i need to change the mac address

Spoof Mac Address

Hi, is there anyway to spoof the MAC address on an m8 running 4.4.3 all the apps in the play store seem to end in an authentication error once the mac is changed by an app. This also happens when using a terminal and busybox with ifconfig, iplink etc.
Thanks.
Lothandyr said:
Hi, is there anyway to spoof the MAC address on an m8 running 4.4.3 all the apps in the play store seem to end in an authentication error once the mac is changed by an app. This also happens when using a terminal and busybox with ifconfig, iplink etc.
Thanks.
Click to expand...
Click to collapse
Have you tried Pri-Fi?
Pry Fi causes an authentication error once the mac is spoofed, so the phone won't reconnect to the AP.
Does anyone have a solution for this??
This is would be a huge help if someone could find or has found a way to implement this. Ive tried the apps Mac Spoof and Mac Address Ghost with no luck. I went digging around in the system and found some files that I was denied access to (Searching terms like 'wlan' in ES File Explorer) and the ones I did dig through didn't contain any info. The /persist folder also contains nothing, which a few different posts lead me to check. I'm on a Rooted and S-Off Verizon HTC One M8 Stock before the update bringing power saver if its any help.

[Q] Change MAC address

Hi
I've got one problem. I was trying to change my MAC address on Samsung Galaxy S3 Mini. That operation was successful.
I changed it by commands
Code:
su
ip link set wlan0 ADDRESS 00:00:00:00:00:00
And I also tried app "MAC Spoofer" . Both successful. But after changing MAC address I can't connect to WiFi. There is a problem with authentication. So I was looking for a solution on XDA. I found it http://forum.xda-developers.com/showpost.php?p=51072203&postcount=214 but I don't understand it. Could anyone tell me what should I do step by step?
Regards,
maciek1235
P.S. I also checked that thread http://forum.xda-developers.com/showthread.php?t=917684 but it didn't work for me

[TUTORIAL] How to Change MAC Address of the Nexus 5X

Hey guys!
I have created an app that can conveniently change your MAC address and a lot more! I strongly encourage you to use it instead:
nMAC - Nexus MAC Changer
Code:
[B]/persist/[/B]
bdaddr.txt : interface 0 (main) MAC address
wlan_mac.bin : interface 0-3 MAC addresses
Code:
[B]/system/etc/firmware/wlan/qca_cld/[/B]
WCNSS_qcom_cfg.ini : lines 46-50; interface 0-3 MAC addresses
WCNSS_cfg.dat : nothing I could find
Note that the addresses in WCNSS_qcom_cfg.ini are "Assigned MAC Addresses - will be used until NV items are in place".
To change your MAC, change the first interface in wlan_mac.bin.
Click to expand...
Click to collapse
Thanks to @Thargorsson for pointing out that this method indeed worked!
Enjoy
Nobody interested at all?
Would be interested with how you end up resolving the problem
Ej guy just some notice.
First if you change you're MAC address your Router won't recognize your phone anymore. You have to give in you're password once more otherwise it won't work.
Second take a look at the persist and efs image in your /dev folder more correctly.
OK after all i want to make an executable for that process (I've done it on my s3 neo successful) and create a topic in the general forum. You will also be credited
Thargorsson said:
Ej guy just some notice.
First if you change you're MAC address your Router won't recognize your phone anymore. You have to give in you're password once more otherwise it won't work.
Second take a look at the persist and efs image in your /dev folder more correctly.
OK after all i want to make an executable for that process (I've done it on my s3 neo successful) and create a topic in the general forum. You will also be credited
Click to expand...
Click to collapse
Do you mind explaining further? I didn't find anything in the EFS image (from first glance, at school). I also did put my password again for the WiFi, the phone just can't connect to anything. How did you succeed doing this on your phone? I'm really curious to get it working on my 5X. Thanks!
ViRb3 said:
Do you mind explaining further? I didn't find anything in the EFS image (from first glance, at school). I also did put my password again for the WiFi, the phone just can't connect to anything. How did you succeed doing this on your phone? I'm really curious to get it working on my 5X. Thanks!
Click to expand...
Click to collapse
I can confirm that it is working on my Nexus 5X.
But you cannot use any MAC address you think of.
The mac address is calculated by an algorithm from the kernel and youre wireless router also won't accept any Mac address that isn't compatible with any pattern it has. For example 00:00:00:00:00:00 won't work. (Tested it).
Try to change one or two numbers/letters of your max address and check if it works.
I think you're fault is that you have changed the Organizationally Unique Identifier. (OUI)
That cause you're router (my router does idk if yours too) don't recognize your phone.
Try this mac: 88:9b:39:12:a9:2e
I hoped that helped.
Thargorsson said:
I can confirm that it is working on my Nexus 5X.
But you cannot use any MAC address you think of.
The mac address is calculated by an algorithm from the kernel and youre wireless router also won't accept any Mac address that isn't compatible with any pattern it has. For example 00:00:00:00:00:00 won't work. (Tested it).
Try to change one or two numbers/letters of your max address and check if it works.
I think you're fault is that you have changed the Organizationally Unique Identifier. (OUI)
That cause you're router (my router does idk if yours too) don't recognize your phone.
Try this mac: 88:9b:39:12:a9:2e
I hoped that helped.
Click to expand...
Click to collapse
I changed only the last one digit of my original MAC and I couldn't connect anywhere. The OUI is the first 3 digits AFAIK. How exactly did you make it work?
I did this:
copied the wlan_Mac.bin from /persist to sdcard.
Changed one number. Pushed it back.
Rebooted phone.
Actually I'm on dirty unicorns ROM.
Thargorsson said:
I did this:
copied the wlan_Mac.bin from /persist to sdcard.
Changed one number. Pushed it back.
Rebooted phone.
Actually I'm on dirty unicorns ROM.
Click to expand...
Click to collapse
Wow, indeed it worked! I have no clue what I had messed up last time when I did the same thing...
A phone reboot is not needed, you can just toggle airplane mode on then off.
After a full day of coding an app is now ready: http://forum.xda-developers.com/nex...-nmac-nexus-mac-changer-t3374430/post66746231
will this work for bluetooth address change?
Hi, your app does not change my mac at all. The app seems do what it does when change button is pressed. Display the set mac address. Change the bin file (i looked at it) but the WIfi MAc address in settings is still 02:00:00:00:00:00. DO you know anywhere else i could have messed up my 5x on 7.0?
arviverona said:
Hi, your app does not change my mac at all. The app seems do what it does when change button is pressed. Display the set mac address. Change the bin file (i looked at it) but the WIfi MAc address in settings is still 02:00:00:00:00:00. DO you know anywhere else i could have messed up my 5x on 7.0?
Click to expand...
Click to collapse
Which rom? Kernel ?
Thargorsson said:
Which rom? Kernel ?
Click to expand...
Click to collapse
Kernel: 3.10.73
Build: OPM3.171019.016
Pretty much stock oreo.
Happen to my 5x. It works fine at 6.0.1. but at newer room mac address shown like that and wifi toogle wont turn on but searching bar move

Categories

Resources