How to Fix 02:00:00 MAC Address in Android Custom ROMs

Some people have encountered an issue with flashing custom ROM suchs as LineageOS, OxygenOS, CyanogenMod, etc. to their Android device; after flashing the ROM, their MAC address becomes corrupted and displays as 20:00:00:00 or some other incorrect number.

This is effecting a range of devices, and it seems to be caused by devices that have random MAC generators built into the kernel code. Please note that I am only addressing incorrect MAC address after flashing a custom ROM – if you’re on stock ROM and have never flashed a custom ROM, yet your MAC address is faulty, it very well could be a hardware problem.

The Solution

First try this very simple solution:

Settings -> Backup and Reset -> Reset Network settings -> Reset

If that did not work, we will need to get a bit more technical, so follow me closely. There are several reasons why the MAC address may be corrupted, so we will try to address each one until your issue is resolved.

To continue troubleshooting, you should have ADB installed on your computer – please see “How to Install ADB on Windows” – Mac / Linux users have a far easier method that do not require a guide.

In any case, once you have ADB running on your PC, you should also grab a hex editor. I use Notepad++ with hex editor plugin, but other hex editor software should be fine.

With your phone connected to your PC, verify that ADB detects the USB connection by typing ‘adb devices’. If it displays a unique ID for your device, continue.

Type these following commands into ADB:

adb shell “su -c ‘dd if=/dev/block/bootdevice/by-name/misc of=/sdcard/misc.img'”
adb pull /sdcard/misc.img

Now you should be able to find misc.img in your ADB root folder. Open it with the hex editor software of your choice.

Find the hex offset 3000, and edit hex offsets 3000 to 3005 with your wifi MAC address – “00 90 3D F1 A2 31″ for example. Save and close the hex editor.

Now we’re going to push it back to your device through ADB, so type into ADB terminal:

adb push misc.img /sdcard/misc_edited.img
adb shell “su -c ‘dd if=/sdcard/misc_edited.img of=/dev/block/bootdevice/by-name/misc'”

Now type ‘adb reboot’ and after your phone restarts, check if the MAC address is okay. If not, lets continue.

The last step to try is to use a root file explorer to look inside persist/wifi/.macaddr and open .macaddr with a text editor. Add your MAC address inside this file, save it, and restart your device.

If none of these solutions worked for you, it very well likely could be a hardware problem – perhaps your WiFi antenna has become loose from the motherboard and needs to be soldered back on, or some related problem like that.

ABOUT THE AUTHOR

Kevin Arrows


Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.

Comments

13
    KL
    Klaus Aug 13, 2017

    Dear Kevin,
    thanks a lot for your manual how to fix the 00:00:00:00 … WLAN-MAC ADRESS problem. Your solution with editíng the misc.img file worked like a charm.

    Got the problem by burning lineageOs 14.1 on my LG-G4 ( H815 ) with stock Android 6.0 rooted and TWPR recovery system.
    Again, thank you for spreading your experience.

    AA
    Ali Anggia Dec 3, 2017

    sometimes maccaddr there, after restarting the device, maccaddr sometimes lost again. every sada revive the perangkan, no notice unfortunately system has stopped. I’ve tried several times to fix by flashing reset but still just like that. I use smartphone xiaomi redmi 3. i will try this way, hopefully can make my device back to normal.

    PA
    Paes Apr 2, 2018

    Hi Kevin, great instructions, what would you advice if there is no misc file in /dev/block/bootdevice/by-name/ ?

    HA
    Hamza Ali Aug 4, 2018

    Dear Kevin !
    Thanks for your knowledge but still facing issue with the first command
    adb shell “su -c ‘dd if=/dev/block/bootdevice/by-name/misc of=/sdcard/misc.img’”
    the system doesn’t show any expected response …
    need help ASAP.

    HA
    Hamza Ali Aug 4, 2018

    Dear Kevin !
    Thanks for your knowledge .
    But I’m still having problem in the first command as it is not showing any expected response.
    adb shell “su -c ‘dd if=/dev/block/bootdevice/by-name/misc of=/sdcard/misc.img’”

      HY
      Hady Yaseen Oct 23, 2018

      hi how are you i could not found the item but by using root explorer i found him and typed the command in the adb then it worked

      Reply
    JA
    John Glenn Cuña Adoptante Oct 13, 2018

    how to fix cherry mobile flare s5 that can even the setup cuz wifi network is not turn plz help :'(

    HY
    Hady Yaseen Oct 23, 2018

    i did this method but still my wifi doesn’t turm on my bluetooth is working

    MA
    Marcel Jul 24, 2019

    For anyone finding this thread with the same problem, I had to upgrade
    the firmware on my Xiaomi Poco F1 to version 10
    (beryllium-V10.3.5.0.PEJMIXM-9.0-vendor-firmware.zip).

    Reply
    SW
    Shane Warren Author Sep 22, 2019

    Can u elaborate? I didn’t understand your question

    SW
    Shane Warren Author Sep 29, 2019

    Install ADB Correctly and add it to the path, see this article:
    https://appuals.com/install-adb-windows-7-8-10/
    And make sure that you have the misc image in your SD card

    AM
    Alejandro Fernández San Miguel May 24, 2020

    My misc.img is entirely zeros, and can not fix the problem folowing this guide. Does anyone knows how to fill again that file?

    PC
    PT cakes Jul 18, 2022

    Hello Mr Arrows .I have the BT address 02:00……On my device I haven’t attempted to troubleshoot it yet.
    I would like to share my experience when I went to purchase this device.
    My first moto g. Was damaged .I went to Wal Mart to purchase the same exact model. In doing so The Manger Offered me what appeared to be the same model in the Display In the next slot there was just one .that had a tag of some sort attached to the box . Obviously to if you answer right diffidentrate from the identical models.
    So states that I can have that one for 50 % off. If I’m over 55. sounded good to me .He asks to see my ID . To verify my age I hand it over .at the same time a call comes in unrealated.So as he is taking the call I notice him set my ID on the register.
    “I m like dude can I have my ID back” he say oh I have to enter your information into the system.
    ‘No I don’t think so ! Give me my ID back.”
    Long story short he Tried everything to sell me this one phone For 50% off . Like he be makein a million dollar s .I flat refused
    An paid full on price for a original.
    Well I went to set the one I purchased it wouldn’t setup I returned the next day.
    an he slipped me the half price phone.
    An the system is loaded with a bunch of BS like Remote Desktop UI an other crap I can’t remove permissions from.
    Point being could this be the cause of the 02:00:00….. Problem?