MT6582 MAC address lost - looking for permanent fix - Android Q&A, Help & Troubleshooting

Hi all. I recently goofed up my BLU Studio Energy that I use as my daily PMP. I didn't want to go through the hassle of flashing the stock KK rom from BLU and OTA'ing to their last release of LP (5.0.2) so I downloaded the Gionee M3 0202 T8425 build and flashed that. After doing so I had no IMEI information and the MAC was lost as well...
I fixed the IMEI issue using the MTK Engineering Mode app but for the MAC address issue it does nothing, the various Terminal based solutions online (with or without root/Busybox) do nothing and a few other apps for fixing your MAC don't change the MAC even if they say they successfully did so... The only app that has been successful at fixing the MAC address is Banana Studio's "Change My MAC - Spoof Wifi MAC" but this is only temporary, though, I can set a profile to load my MAC address when the device is booted.
Apps I've tried:
AMC - Advanced Mac Changer
ChameleMAC
Change My MAC - Spoof Wifi MAC
MTK Engineering Mode
Wifi Mac Changer
Terminal commands tried:
ifconfig wlan0 hw ether XX:XX:XX:YY:YY:YY --> results in "error: SIOCSIFADDR (Invalid argument)"
ip link set wlan0 XX:XX:XX:YY:YY:YY --> results in "Error: either "dev" is duplicate, or 'XX:XX:XX:YY:YY:YY' is a garbage."
busybox ifconfig wlan0 hw ether XX:XX:XX:YY:YY:YY --> results in "CANNOT LINK EXECUTABLE: cannot locate symbol 'stpcpy' referenced by 'busybox"
If you happen to know of a silver bullet could you please let me know. Thanks in advance!

Related

Infocus M2 cannot do Mac Address Spoofing

I use
busybox ifconfig wlan0 hw ether
and
ip link set wlan0 address
Both of them cannot change my Mac Address.
I use All of solution on the web.
My device shows me change Mac successfully, But my router still shows me the original Mac.
I've searched Google for a long time.
But still cannot change my Mac Address.
Plz Help me!
not able to change my wifi mac address in infocus m2
not able to change my mac address in infocus m2

m8s (suspected clone) IP/MAC address change for eth0 on reboot bug.(other issues too)

Good morning everyone. As per the thread title, My girlfreind has a TV box that I suspect is a clone (the update ROMs from chinagadget review wont flash from TWRP).
This device is connected to her ADSL router/modem via a LAN cable and everytime the device boots, the MAC address for the LAN interface is randomised, causing the router to issue a new IP address via DHCP. (I cannot get the device to communicate with static IP)
it's running a lollipop based ROM at the moment (LMY47V.20160505 TEST-KEYS) is reported in settings.
I haven't removed the case yet, to investigate the circuitboard/RAM manufacturer (and don;t know how to check via software, if the wifi/bt module is made by broadcom/atheros) but my gut feeling is screaming "it's a clone". (If it helps, the TWRP backup I performed has saved to a sub-folder called "k200")
She purchased the device from Amazon UK and the majority of apps on Play Store give "version isn;t compatible with this device" error. I've tried to spoof other device in build.prop and with an app called "market helper" but no joy yet.
Any help appreciated
Has anyone got any advoce for me?
CAn anyone point me to messages/threads on hoiw to spoof a MAC address on ethernet adaptor?
does anyone know how to spoof my device type so I can get Play Store to allow me to download/install apk's without needing to sicdeload
wodgey said:
Has anyone got any advoce for me?
CAn anyone point me to messages/threads on hoiw to spoof a MAC address on ethernet adaptor?
does anyone know how to spoof my device type so I can get Play Store to allow me to download/install apk's without needing to sicdeload
Click to expand...
Click to collapse
I also have this issue with my Kata Box 2 (Amlogic S905)
I was also very frustrated when I learned that the mac address was always set at random every time I reboot.
I've read that you need to use USB burning tool to hard code the mac address for your android box.
Here's what I did to solve this.
you need:
a rooted android box
busy box
Terminal emulator
1st method:
Make sure that the ethernet cable is unplugged.
Run terminal emulator.
Run these commands in lower case:
su
ip link set eth0 down
ip link set eth0 address 01:23:45:67:89:10 (change the values of your desired mac address)
ip link set eth0 up
2nd method:
su
busybox ifconfig eth0 down
busybox ifconfig eth0 hw ether 01:23:45:67:89:10 (change the values of your desired mac address)
busybox ifconfig eth0 up
You can run run these on startup using Script Manager.
I tried both method 1 and 2 and works very well.
To verify the if everything was set properly you can run these commands:
ip link show
And
busybox ifconfig
so far on my end its working great. Im now able to reserve the IP address via MAC address.
aperture;68526292Here's what I did to solve this..[/QUOTE said:
Thanks dude. I'll try this and report back.
Click to expand...
Click to collapse
aperture said:
I tried both method 1 and 2 and works very well.
Click to expand...
Click to collapse
For me, method 2 works. 1st method didn't change anything that I could see.
I have also added start/stop adbd and setprop tcp port to my script also so I can have adb over tcp upon boot, shich I was struggling to set as persistent.
Thanks again.
wodgey said:
For me, method 2 works. 1st method didn't change anything that I could see.
I have also added start/stop adbd and setprop tcp port to my script also so I can have adb over tcp upon boot, shich I was struggling to set as persistent.
Thanks again.
Click to expand...
Click to collapse
I'm glad it worked out well for you. :victory:

About MAC address and changing it.

Hello friends,
I encountered today a nice method to spoof MAC address on a rooted device. It has to have Busybox installed as well.
They claim typing this code in a terminal will change my MAC address:
Code:
busybox ifconfig eth0 hw ether AA:AA:AA:AA:AA:AA
eth0 is my network adapter I guess. AA:AA is the MAC address that I want to be spoofed to (it will be seen as my MAC).
You must be a root user to execute that.
Now I have some questions. I hope you will be able to answer them all (if you can answer on less I would still appreciate that):
1. I can see at Settings>About device>Status, a thing called "WiFi MAC address". Is this what will be affected after executing of the command they provided me?
2. Is the commend legit? If so, how can I return to my original MAC address? Do I have to change it manually again or a reboot will fix it all?
3. Does my device uses this MAC address only when I am using a WiFi? Or it uses that same address for 4Gs?
Thanks a lot for whoever helps!

How do we edit wcnss_mac_addr file?

I want to change my MAC Address.. Device redmi note 4 (Snapdragon) has rooted + supersu + twrp + busybox.
i tried many methods with miui roms and LOS/AOSP custom roms.. nothing works.
I tried a app "change my mac" which one working awsm with other devices. But when i trying to change MAC im getting reboot. And after rebnot nothing changed.
Even i found MAC Address path after many research and trying to change manually but no luck..
here is path
/sys/devices/soc/a000000.qcom,wcnss-wlan/wcnss_mac_addr
But, when i try to save after edit MAC, sometimes it saves but file automatically gets to his default Mac and sometimes its getting reboot, (same like "change my mac app")
There is another app called "WiFi Mac changer" by Osama abukmail which changes Mac address successfully but it is not changing Mac from "wcnss_mac_addr" so when try connect to wifi after changing my Mac from this app its says "" network selection disabled authentication rejection""
Anyone plz help me

How to preserve spoofed MAC address after reboot?

Some of my Android 9 and 10 devices do not come with "Randomize WiFi MAC Address" feature, but they do allow MAC address spoofing with "ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX" and it works. The problem is that spoofed MAC address resets back to original one after device reboot. There are some MAC-spoofing apps, but they don't address the issue of MAC addresses resetting back to natives one after device reboot. There doesn't appear to be a Magisk module for this purpose either.
Can someone can advice me on how to create a simple script that forces a specific wlan0 MAC address during device boot? It is important for the MAC address to be spoofed before any wlan0 connections occur. Therefore, it can't be one of those scripts that execute commands after the device is already booted because by then the device can connect to a WiFi network with native, non-spoofed MAC address.
I would actually prefer if someone could write the script for me or just create a Magisk module. I am very new to how Linux works.

Categories

Resources