[Q] MAC Changing in GT-S5302 - Android Q&A, Help & Troubleshooting

I want to change the wifi mac address of my GT-S5302. I have tried many apps like Wireless Mac Address Changer but all failed.
Also tried:
Code:
busybox ifconfig //determine device usually eth0
busybox ifconfig eth0 down //shuts down eth0
busybox ifconfig eth0 hw ether 00:00:00:00:00:00 //sets eth0's mac to 00...
busybox ifconfig eth0 up //turn eth0 back on
busybox ifconfig //check to see if eth0 is set to new mac
After changing MAC when i execute "busybox ifconfig" the new mac is reflected but it is not letting me connect to my existing network. I have to restart wifi to get connected but it resets the mac address to the original one.
And also tried editing the ".nvmac.info" , "nvram.txt" ,"nvram_mfg.txt" but all in vain.
Can any one suggest me a working method to change WIFI MAC address for GT-S5302 ?
Thanx in advance :good:

Can anyone please tell me that why I'm disconnected from my existing network after executing these commands?
Code:
busybox ifconfig //determine device usually eth0
busybox ifconfig eth0 down //shuts down eth0
busybox ifconfig eth0 hw ether 00:00:00:00:00:00 //sets eth0's mac to 00...
busybox ifconfig eth0 up //turn eth0 back on
busybox ifconfig //check to see if eth0 is set to new mac

Related

[GUIDE] Reverse USB tethering from Debian GNU Linux to Transformer Prime

This is used when you wish to share a wired ethernet connection from a laptop/desktop to the Transformer Prime via the USB cable.
Ethernet -> Laptop -> USB -> Transformer Prime
All shell commands are issued from your Debian system.
This assume that your ethernet interface is eth1. You can find out this way:
Code:
/sbin/ifconfig -a
On the Transformer Prime activate USB Tethering
Settings > Wireless & Networks > More > Tethering & portable hotspot > USB tethering
On your Debian GNU Linux system:
Code:
su
ifconfig eth1 0.0.0.0
ifconfig usb0 0.0.0.0
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 usb0
ifconfig br0 up
dhclient br0
adb shell netcfg rndis0 dhcp
adb shell netcfg|grep rndis0
The final command should show your rndis0 interface with an IP address. Your Debian system will no longer have an IP for eth1, intead it will use br0
At this pont you should be able to browse the web from the Transformer Prime.
To shut down the bridge:
Code:
su
ifconfig eth1 down
ifconfig usb0 down
ifconfig br0 down
brctl delbr br0
ifconfig eth1 up
dhclient eth1
ifconfig eth1
You may now disable tethering on the Transformer Prime.
Script it
To make this easier you can simply put these commands in a bash script and execute the script.
Code:
# more tetheron
Code:
#!/bin/bash
# Enable reverse USB tethering
ifconfig eth1 0.0.0.0
ifconfig usb0 0.0.0.0
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 usb0
ifconfig br0 up
dhclient br0
adb shell netcfg rndis0 dhcp
adb shell netcfg
Code:
# more tetheroff
Code:
#!/bin/bash
# Disable reverse USB tethering
ifconfig eth1 down
ifconfig usb0 down
ifconfig br0 down
brctl delbr br0
ifconfig eth1 up
dhclient eth1
Know issues:
network-manager in GNOME wants to control the ethernet interface. I found it easiest to disable it.
Code:
service network-manager stop
Note - All of this knowledge is freely available via google although I did not find a specific reference to the Transformer Prime and the rndis0 interface.
Fantastic!
You seem like a great candidate for my question lol
Is there any way we could do this same thing but from another Android device?
I would love nothing more than to be able to use my phone to USB tether to my Prime so that I can avoid using up all my battery broadcasting WiFi.

[SOLVED] Change mac id of Live with walkman (WT19i)

how do i change mac id of my WT19i ?
You want to change the Wifi MAC ID Or Bluetooth MAC ID??
BRAiNCHiLD95 said:
You want to change the Wifi MAC ID Or Bluetooth MAC ID??
Click to expand...
Click to collapse
Wifi mac id
Root you phone
install busybox (market.android.com/details?id=stericson.busybox)
download Terminal Emulator (market.android.com/details?id=jackpal.androidterm)
in terminal emulator
type -
su
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether xx:xx:xx:xx:xx:xx
busybox ifconfig wlan0 up
done!!! check ur wifi mac id

How to change RAZR's mac address? Cant find a solution

Hi guys,
My phone is on stock vodafone 4.1.2. I have already tried:
1) terminal commands: (confirmed my phone is using wlan0, busybox updated)
su
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether b8:f9:34:6e:19:9f (showing error: device or resource busy)
busybox ifconfig wlan0 up
2) some related apps on google play
Any solutions for me, please? i really need to change the mac address on RAZR
Thank you!!
maybe
Cnorm said:
Hi guys,
My phone is on stock vodafone 4.1.2. I have already tried:
1) terminal commands: (confirmed my phone is using wlan0, busybox updated)
su
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether b8:f9:34:6e:19:9f (showing error: device or resource busy)
busybox ifconfig wlan0 up
2) some related apps on google play
Any solutions for me, please? i really need to change the mac address on RAZR
Thank you!!
Click to expand...
Click to collapse
I used rom named aokp4.2.2 that changed my mac adress. maybe it works for your phone , too. Try it.

[Q]How to Change Mac address

i used kindle fire HDX 7 with Nexus 2.0.1
other Android device can change MAC address by
using ADB shell with busybox
# ifconfig eth0 |grep HWaddr
# ifconfig wlan0 down
# ifconfig wlan0 hw ether 00:10:11:AB:CD:EF (Which i want to change MAC)
# ifconfig wlan0 up
but i doesn't work. with' SIOCSIFHWADDR : Operation net supported'
and there are no way to change Mac address?

reverse tethering - offline for some applications

I try to get internet on my phone from my computer without installing any tools.
In short when I try a ping to youtube.com it work but the youtube application on the phone
tells me I have no connection.
My configuration looks like :
Code:
mybox -----(Ethernet)------[my computer]------(USB)-----[the phone]
and my phone is in airplane mode to prevent wifi or mobile connections.
I enabled usb tethering so I have two interface on my computer : eth0 and usb0.
Then I have done on the computer:
Code:
sudo ifconfig eth0 0.0.0.0
sudo ifconfig usb0 0.0.0.0
sudo brctl addbr br0
sudo brctl addif br0 eth0
sudo brctl addif br0 usb0
sudo ifconfig br0 up
sudo dhclient br0
and on the phone :
Code:
su
netcfg rndis0 dhcp
After that i have the following configuration :
Code:
IP of rndis0 on the phone : 192.168.1.35/24
IP of br0(eth0 + usb0) on my computer : 192.168.1.17/24
IP of the box : 192.168.1.1/24
If i try to ping the ip adress 8.8.8.8 or any other adresse, it works.
But if I try with a domain it doesn't work :
Code:
[email protected]:/ # ping google.com
ping: unknown host google.com
It look like a DNS problem but i don't understand why because rndis0 give its address from dhcp which also give dns server address.
getprop | grep dns give me
Code:
[dhcp.wlan0.dns1]: [192.168.1.1]
[dhcp.wlan0.dns2]: []
[dhcp.wlan0.dns3]: []
[dhcp.wlan0.dns4]: []
[net.change]: [net.rndis0.dns2]
[net.dns1]: [fe80::8ef8:13ff:fe02:50ea]
[net.dns2]: [192.168.1.1]
[net.rndis0.dns1]: [192.168.1.1]
[net.rndis0.dns2]: []
I know these variables are ignored.
Then I try :
Code:
ndc resolver flushnet rndis0
ndc resolver clearnetdns rndis0
ndc resolver setnetdns rndis0 "" 8.8.8.8 8.8.4.4
and ping google.com now work. I don't understand why the dhcp doens't work...if you can explain.
If I try to connect to any website from google chrome application on my smartphone, it works !
But now when I try to use Youtube application on my smartphone it tell me "No connection".
Do you know why ?

Categories

Resources