Mac Address Changes with Each Rom flash - Galaxy Tab Q&A, Help & Troubleshooting

is there any way to keep a ROM flash from changing my mac address?
i've flashed 3 times since i've had teh tab and each time i get a new address. it wouldn't be a problem if i didn't have mac filters on my router.

never noticed that and dont know if you could stop it, but you could use busybox to set your mac to whatever you want.
then you could run a boot script to do it every time you reboot.
Sent from my SCH-I800 using XDA App

thanks for the tip. seems that's the route i'm going to have to take. just flashing a modem and i've got another new mac address.

not sure if this would work, but if you were to put the original file back in the directory, then it might be set.
In efs/imei/.nvmac.info
The hidden file .nvmac.info is your mac address.
The file bt.txt is the blue toothe mac address.

Related

Tun.Ko for Captivate

Has anyone been able to successfully re-compile a tun.ko for the captivate kernel?
Office still has old IPSEC group ID based vpn
Thanks.
[mods please move to development]
Trying my hand at building that module from the vanilla Eclair + Samsung code drop. Will let you know how it goes...
I used this tun.ko, installed openvpn with the openvpn installer from the market, and installed the VPN_Connections_v099.apk from code.google.com/p/get-a-robot-vpnc to manage the connections. I am able to connect to my cisco vpn concentrator with my captivate. Hope this helps...
where on the phone do we copy the tun.ko file?
I put mine in /system/lib/modules/ and openvpn in /system/bin/. I also installed openvpn settings from the market and enabled the "load tun kernel module" option and changed the "load module using" to insmod. For some reason it would not connect without this, I guess because the tun module is not being loaded correctly. Also you can manually load the module by typing “insmod /system/lib/modules/tun.ko” and check to see if it’s loaded by typing “lsmod” and you should see “tun 11088 0 - Live 0xbf195000”
This worked for me.
loaded it manually, not sure if it'll load automatically now or not, haven't tried it.
Can't get this working...
Do you have to start OpenVPN and manually load the tun before launching VPN Connections? Of course after all of these settings...
Still not working...
Okay, I can manually insert and load the tun.ko and installed the VPN Connections app to this version. Every time I try to connect, it INSTANTLY says 'failed to connect'. Any ideas? I have all the right things in all the right places...OpenVPN installed and configured (although I can't see how I need this with the tun.ko manually started and running). HELP! I really need VPN to work on this device or it is going back...
Great information in this thread. I have Busybox installed, Open VPN binaries installed and Open VPN settings installed as well as the Vpn_connection_99.apk file. One issue though!
HOW DO I MANUALLY DROP THE TUN.KO FILE INTO THE SYSTEM/LIB/MODULES FOLDER?
I tried to using Droidexplorer with no luck, so I copied it to the sd card and tried to copy paste it using Astro File Explorer with no luck either. How the hell do I get it into that folder? I'm rooted and running the JH7 captivate stock ROM.
I feel like once I get it in there, I can manually start the file and get this puppy up and going! I tried to put it into another folder and just point Open VPN settings to it there but it just won't work like that. It needs to be in the Modules folder!
Thanks in advance!
Ugh I've tried about everything and no luck with copying the tun.ko file into the system/lib/modules directory.
I've gained root access using adb shell and su commands and I don't receive any errors in the adb shell when I perform cp tun.ko system/lib/modules but it does not copy the file. I tried to chmod 777 the lib folder but was denied. I'm learning I may not have NAND unlocked for full root. I tried to manually start the module from my sd card but it won't work that way either.
Any suggestions?
EDIT: OK BIG IMPROVEMENT. I WAS ABLE TO WRITE THE TUN.KO FILE TO A DIFFERENT LOCATION IN XBIN AND POINT THE OPENVPN AT THIS. AFTER AN LSMOD CHECK I CONFIRMED IT'S RUNNING. CAN ANYONE HELP ME BUILD A VALID OPENVPN .OVPN FILE FOR CONNECTING TO MY VPN? IT'S A STANDARD CISCO ASA IPSEC VPN THAT HAS A GROUP NAME, GROUP KEY AND VPN ADDRESS.
Thanks!
Here is the link that got me able to install the module elsewhere for all you folks facing NAND issues and not able to install tun.ko in the system/lib/modules folder!
http://forum.xda-developers.com/showthread.php?t=793018&highlight=openvpn+config
Thread moved to Q&A.
OK. I've got true ipsec vpn working perfect on the captivate with the latest jh7 build. Cisco asa 5500 is the device being vpnd through.
Sent from my SAMSUNG-SGH-I897 using XDA App
Is anyone doing anything new and/or differently than what's been described in this thread to successfully connect to a Cisco VPN Concentrator? I know October is only two months back, but a lot can change in two months around here.
Also, there was a question on page 1 asking about whether the tun module had to be manually loaded each time or not. That was never answered. Can anyone shed some light on that, please?
Bunkaido said:
Is anyone doing anything new and/or differently than what's been described in this thread to successfully connect to a Cisco VPN Concentrator? I know October is only two months back, but a lot can change in two months around here.
Also, there was a question on page 1 asking about whether the tun module had to be manually loaded each time or not. That was never answered. Can anyone shed some light on that, please?
Click to expand...
Click to collapse
Give me til tomorrow morning. I have EXACTLY what you are looking for. Consider donating if it helps... . It does need to be loaded each time but in the video I point at 2 apps that will make loading it literally a 3-5 second process and not involve you having to use a pc to load it.
http://forum.xda-developers.com/showthread.php?t=871159
Reason for OpenVpn Settings
fixitsteve said:
Okay, I can manually insert and load the tun.ko and installed the VPN Connections app to this version. Every time I try to connect, it INSTANTLY says 'failed to connect'. Any ideas? I have all the right things in all the right places...OpenVPN installed and configured (although I can't see how I need this with the tun.ko manually started and running). HELP! I really need VPN to work on this device or it is going back...
Click to expand...
Click to collapse
The reason I use OpenVpn settings is because when you restart the phone you have to reload the tun.ko and OpenVpn settings is an easy way to do that, it also fixes the dns after you disconnect from the vpn by going to setting and fix dns. The process I use to start the vpn is (starting from a cold boot of the phone)
1. I ALWAYS leave the check box in OpenVPN settings UNCHECKED (OpenVPN off) unless I'm starting the tun.ko after a boot. After the phone boots I open OpenVPN settings and check the box next to OpenVPN and wait a few seconds, then uncheck it. This loads the tun.ko and only needs to be done after a reboot.
2. go to VPN connections and click and hold the vpn connection you made to your VPN concentrator and click connect. (you should be connected at this point)
3. after you disconnect the dns on the phone may not change back automatically from the VPN dns servers, so go to OpenVPN setting and click setting and Fix DNS. You should be able to get out to the Inet again.
Cognition 3.04
Has anyone gotten this to work on the Cognition 3.04 ROM? I keep getting:
fatal:cannot allocate TUN/TAP dev dynamically
K, I don't know what I'm missing here. There's not word one about config files or their format in this thread but, as far as I can tell, this is a fairly worthless collection of bits without one.
I've reviewed the thread 3 times and searched the forums, where can I find formats for these mysterious conf files?
Some custom roms have tun.ko built in. I use Paragon RC6, based on speedmod kernel. To activate tun.ko I rebooted into recovery mode, chose speedmod tweaks and activated tun.ko, rebooted and installed OpenVPN Installer and OpenVPN Settings from the market. Then had to adb some symbolic links (google is your friend). After d/l'ing conf files from my commercial OVPN supplier and some editing the setup works very well.
Sent from somewhere with my Cappy/ParagonROM/OpenVPN
visionlogic said:
Some custom roms have tun.ko built in. I use Paragon RC6, based on speedmod kernel. To activate tun.ko I rebooted into recovery mode, chose speedmod tweaks and activated tun.ko, rebooted and installed OpenVPN Installer and OpenVPN Settings from the market. Then had to adb some symbolic links (google is your friend). After d/l'ing conf files from my commercial OVPN supplier and some editing the setup works very well.
Sent from somewhere with my Cappy/ParagonROM/OpenVPN
Click to expand...
Click to collapse
If my ROM doesn't have tun.ko built in, is it possible to use from a different ROM?

Restore original Android ID?

I'm currently on Cog 2.2 B7 and have been having some wifi issues. A little reading has me thinking maybe it's the Android ID. I'd like to find out what the original is or how the whole ID thing works in general.
I understand when I bought my phone it had an ID set. Is this actually tied to the phone? As in, if I revert to stock firmware will I have the original ID back? Is there any way to generate that ID without flashing back to stock?
I know how to change it just not sure how to find the original.
Thanks!
EDIT: It appears this is being answered in another thread.
http://forum.xda-developers.com/showthread.php?t=810967
If you flash to stock, the original ID will be back. So far there isn't a way to generate the original with any other rom other than stock.
Someone also told me that if you had an older Nandroid backup file of your 2.1 setup, you could use Notepad++ to view the datadata.img file and find it there buy doing a search for "android_id".
I flashed back to stock and then wrote it down to change via Terminal Emulator. However I also learned that once you make a TiBu of a 2.2 setup, if you had changed your ID number to be the correct one, it will restore it back, so you don't have to keep changing it.
android id has absolutely nothing to do with wifi.
That said, it well be good knowledge for you to know how to do it. Unfortunately, flashing back to a stock rom is the only way to get it, unless you have a nandroid back up from when you were running stock. Somewhere posted in mass of the cog thread someone posted a method for extracting you id right from the back up. If I find that post again I'll post a link to it here.
I was having issues with wifi as well after flashing to cog 2.2 beta 7.
The fix that worked for me was giving my captivate a static IP.
Go into advanced settings in wifi and enter these for static IP.
IP: 192.168.2.4
Gateway: 192.168.2.1
subnet mask: 255.255.255.0
dns 1: 192.168.2.1
dns 2: blank
before doing this I couldn't connect to my home wifi at all. Now it connects just fine.
Demented71 said:
Someone also told me that if you had an older Nandroid backup file of your 2.1 setup, you could use Notepad++ to view the datadata.img file and find it there buy doing a search for "android_id".
Click to expand...
Click to collapse
This worked for me, Hope it is the right ID.
What exactly its the android id used for and is it important that I make sure it's unique on my phone?
Sent from my SAMSUNG-SGH-I897 using XDA App
Demented71 said:
Someone also told me that if you had an older Nandroid backup file of your 2.1 setup, you could use Notepad++ to view the datadata.img file and find it there buy doing a search for "android_id".
Click to expand...
Click to collapse
I had a backup from cwm, so tried this method. However, there are many different values, not sure which ones correct. some are all capital alphabets, some just numbers. Anyone know how to read it correctly?
Try using unyaffs to get it off your old datadata.img:
I outline how here.

any record of wifi mac address?

trying to find out what my phones mac address was before i sent it in for repair.
problem is my router/modem was replaced by bell since then, so i can't use that.
i do however have a backup of bml1-9, as well as my nv_data files from the efs partition and some z7logs, but haven't had any luck searching through those.
thanks
Settings => About phone => Status => Wi-Fi MAC address
Update: I just realize you have already sent out your device...
How about checking arp cache of other devices in your network? On windows or linux: arp -a
tried that, with no success.
I found a backup of my original rom i made with clockwork mod. datadata.img, cache.img, and some other files. might there be a record in one of those files?

[Q] Change MAC adress on S3 mini CM11

How can I change the MAC adress on my phone (with CM 11)
I tried in terminal
su
busybox iplink show wlan0
etc.
but I got iplink: applet not found
I installed busybox 1.22.1-Stericson
What should I do to change Mac adress on my phone?
EDIT
su
ip link set wlan0 address 00:00:00:00:00:00
That commad works but I have to turn on wi-fi before type it
Hi
su
ip link set wlan0 address 00:00:00:00:00:00
adrianopl said:
Hi
su
ip link set wlan0 address 00:00:00:00:00:00
Click to expand...
Click to collapse
It doesn't work
I get "Cannot find device "wlan0"
Why???
Please, could someone help me?
macieek1235 said:
How can I change the MAC adress on my phone (with CM 11)
I tried in terminal
su
busybox iplink show wlan0
etc.
but I got iplink: applet not found
I installed busybox 1.22.1-Stericson
What shoul I do to change Mac adress on my phone?
Click to expand...
Click to collapse
I can see my mac adress in "/efs/wifi/.mac.info" & "/efs/wifi/.mac.cob"
There is also something about mac in "/etc/wifi/nvram_net.txt" but it doesnt show same adress.
Isn't mac adress somehow coded in the hardware?
I suggest you make a full backup of efs and related partitions if you want to try to change anything, and also make sure you know how to restore them. Messing around with them can get your IMEI wiped.
tys0n said:
I can see my mac adress in "/efs/wifi/.mac.info" & "/efs/wifi/.mac.cob"
There is also something about mac in "/etc/wifi/nvram_net.txt" but it doesnt show same adress.
Isn't mac adress somehow coded in the hardware?
I suggest you make a full backup of efs and related partitions if you want to try to change anything, and also make sure you know how to restore them. Messing around with them can get your IMEI wiped.
Click to expand...
Click to collapse
yes it is coded in hardware but I think I can change it not in hardware but in software because a read about that many times but people did it on the other phones.
Do you think I should change mac adress in "/efs/wifi/.mac.info" & "/efs/wifi/.mac.cob"?
P.S. I haven,t got any problems with doing backup (including efs partition)
macieek1235 said:
yes it is coded in hardware but I think I can change it not in hardware but in software because a read about that many times but people did it on the other phones.
Do you think I should change mac adress in "/efs/wifi/.mac.info" & "/efs/wifi/.mac.cob"?
P.S. I haven,t got any problems with doing backup (including efs partition)
Click to expand...
Click to collapse
Yeah, I guess you can try but you're responsible for what you do with your phone
I doubt your IMEI will get wiped or anything by changing those, if it's even possible.

Problem with WiFi after mac adresse change to (02:xx:xx)

Hello
Can someone maybe help me with my problem ?
After i changed my mac address to 02:xx:xx my wifi doesn't turn on anymore and i have also no possibilities to change it again...
Phone: Red Magic 5G
Build: EN Common V8.11
Root: Yes (Magisk)
Android 10/Q
Any idea is welcome ! ^^
Best Regards
Akizuma
Have really no one the same problem ?
Or maybe a backup from a Red Magic 5G that still works ?
Why did you change your MAC address ?
You do NOT need to change your MAC address in Android 10, because you can choose for use a random MAC due privacy issues.
Your MAC address is shown only to system apps, all other apps, can NOT see your MAC address.
Android 10 masks your MAC address to 02:00:00:00 if any user app try to read MAC address.
Try my app and you can see it: https://forum.xda-developers.com/t/...ackage-com-vitaodoidao-vdinformacoes.4097379/
The problem is i can't start my wifi anymore or change it its not possible
And the next problem that i got is that i broke my persist folder so i have no possibilty anymore to see my screen (i need a original backup from a Red Magic 5G...)
I broke way to many things.....
Firstly, how did you change your MAC address ?
With a app from the google play store.
I started it and then pressed hard change.
After the restart my wifi was broken.
Then i tried with
Busybox to change it again but the wifi card doesnt show up so i looked up in the root explorer for the file where my mac was saved and i found it (it was wlan_mac.bin) the only problem i can't change it not even after i got all permission. (After many hour of tries i decides to delete it) but it still comes back with the same mac adresse.
So i decide to delete the folder and that was the moment where i dont get any screen signal from my phone anymore looks like in persist are files for calibration screen etc)
I'm really desperate right now, I don't know what to do.
Don't create multiple replies, if you need, edit your last reply.
Does this app was designed for Android 10 ?
Obviously, not.
Because Android 10 will never allow the user to change MAC address.
Your MAC resides in your NVRAM and NVDATA.
Once you format your data, your NVDATA is formatted and a new one is created.
And then, the NVRAM is copied again to NVDATA.
So, erasing NVDATA should fix your MAC.
(I've said to erasing NVDATA and not NVRAM. If you lost your NVRAM, you lost your MAC and IMEI forever.)
Probably, you need to wipe your data too, I'm not sure, so I suggest you to make backup first.
Good luck.

Categories

Resources