Device or resource busy- Motorola g9 plus - General Topics

when i am trying to change mac address with command busybox ifconfig wlan0 hw ether + new mac it says Device or resource busy,Does anyone know how to change or what is the correct command to make the change? Thanks.

Related

[SOLVED] Change wifi MAC Address

I have succesfully changed wifi mac address of my optimus.
We have to just insert a line "macaddr=XX:XX:XX:XX:XX:XX" in the nvram.txt
Here is how I did it:
You require:
1.)Rooted phone.
2.)anroid sdk
1.)First pull the nvram.txt file from /etc/wl to sdcard:
in cmd(windows) goto android-sdk-windows\tools and type
adb shell
2.)Copy nvram.txt from /etc/wl to sdcard
cp /etc/wl/nvram.txt /sdcard/nvram.txt
3.) Using text editor in phone add following line at the end:
macaddr=XX:XX:XX:XX:XX:XX (replace XX:XX:.... with desired mac addr.)
4.)Save file and copy it to /etc/wl from adb shell
cp /sdcard/nvram.txt /etc/wl/nvram.txt
5.)Reboot and it is done.
To restore orignal mac address just delete the macaddr line.
Note:
1.) Tested only in stock LG rome with GNM OC kernel. In other roms or kernel the location of nvram.txt may differ according to the parameter using which driver module (wireless.ko or bcm4325.ko) just find that file and use the above process. It will work.
2.) The file cannot be edited in windows as windows has different new line character than linux. It has to be edited in some linux compactible file editor like Programmers Notepad.
y wud u wanna change ur mac?
B'Coz I can access free Internet by doing this.....
Nice one
And to change hostname? Any ideas?
I changed it, and in phone it appears to be changed. But my router doesn't say the same... Has original hostname...
Yup thats worked with me thanks for sharing
Sent from my LG-P500 using XDA App
Yea bcoz android does'nt use hostname to connect with router. I'm trying to figure out the configuration file for that.....
how to find mac address
how to find the mac address in lg optimus one???
Thats why my optimus one can not take the ip from some puplic networks??
make this thread sticky
not working on Acer Liquid E ! !!
how can I change my mac !!??!!
1st step i already duno how to do T_T
know the pull things from nvram.txt file from /etc/wl to sdcard which require me to root my phone 1st then only can pull out
but after that in cmd(windows) goto android-sdk-windows\tools and type
adb shell
my computer can't detect that was a file in computer,and what is the android-sdk ?
Screw android-sdk ..LOLz..Do this install root explorer on your phone ..navigate to that file on your phone using root explorer , click on mount r/w button ,then long press and select open in text editor, then go to the end of the file and add this
macaddr=xx:xx:xx:xx:xx:xx
replace xx with a combination of hex letter i.e. 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
example DB:12:3F:4F:11:AA
Save and exit
Reboot
You are all done check phone status in settings
sarfaraz1989 said:
Screw android-sdk ..LOLz..Do this install root explorer on your phone ..navigate to that file on your phone using root explorer , click on mount r/w button ,then long press and select open in text editor, then go to the end of the file and add this
macaddr=xx:xx:xx:xx:xx:xx
replace xx with a combination of hex letter i.e. 1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
example DB:12:3F:4F:11:AA
Save and exit
Reboot
You are all done check phone status in settings
Click to expand...
Click to collapse
after root my phone using z4root/gingerbreak,then download the root explorer from here is it ??
https://market.android.com/details?id=com.speedsoftware.rootexplorer&feature=search_result
if correct navigate to which file ??
sry android newbie here T_T
How about IMEI in some other file.
Wohhh atom bomb.
Sent from my LG-P500 using XDA Premium App
arrgh need solve my wifi problem ASAP
already more than 2week can't connect wifi in my college wifi T_T
Awesome, I've been looking for this everywhere. I can verify this method also works on stock rooted LG Optimus V.
whant's next
i've been change macaddr 'but nothing happen .device not connet wifi.it sitll ask password
you said you can access free internet.
i was just curious that how?
i mean free internet from the service provider or from where???
i too want to use it.
does that mean that if there is any wifi network then i will be able to use it without any pass???
Its simple to change your wifi mac address xD
Root you phone
install busybox (market.android. com/details?id=stericson.busybox) remove the space in link
download Terminal Emulator (market.android. com/details?id=jackpal.androidterm)
in terminal emulator
type -
su
then
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether wlan0 xx:xx:xx:xx:xx:xx
busybox ifconfig wlan0 up
YOU'RE DONE
DONT FORGET THE THANKS BUTTON
vermilion871 said:
Root you phone
install busybox (market.android. com/details?id=stericson.busybox) remove the space in link
download Terminal Emulator (market.android. com/details?id=jackpal.androidterm)
in terminal emulator
type -
su
then
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether wlan0 xx:xx:xx:xx:xx:xx
busybox ifconfig wlan0 up
YOU'RE DONE
DONT FORGET THE THANKS BUTTON
Click to expand...
Click to collapse
is there a way to revert this?
I mean get back to the original hardware mac?

[Q] How change MAC ADDRESS on Samsung Galaxy Ace

Hi guys. I have a rooted samsung galaxy ace and i want to change my mac address so i've tried the following command (but i got an error):
Code:
su
busybox ifconfig wlan0 down
busybox ifconfig wlan0 hw ether 00:11:22:33:44:55
ifconfig: SIOCSIFHWADDR: Operation not supported
Is there someone that knows how i can solve this problem? thnx in advance
I have a Moto XT300/Spice.
Enabling the wireless and not have it connect automatically to the configured network, had to forget the network, I was able to run:
Code:
su
busybox ifconfig eth0 hw ether 00:11:22:33:44:55
and it worked, confirmed with
Code:
busybox ifconfig eth0
though I wasn't able to connect to a WPA network anymore, complained that the key was wrong.
Disabling wireless and enabling once more got reset the mac but enabled me to connect again.
And yes, my wireless interface is eth0.
I was tinkering around on my android and found the section where wifi info is specified, including mac address. Did a quick google search and found the article:
http://androidforums.com/t-mobile-g1/3506-changing-spoofing-mac-address.html
Basically you must change the file /data/misc/wifi/nvram.txt, at the end of the file is the mac addr...
Apparently it is bad to reboot with different mac... who knows. I haven't tested it.
snakerdlk said:
I was tinkering around on my android and found the section where wifi info is specified, including mac address. Did a quick google search and found the article:
hxxp://androidforums.com/t-mobile-g1/3506-changing-spoofing-mac-address.html
Basically you must change the file /data/misc/wifi/nvram.txt, at the end of the file is the mac addr...
Apparently it is bad to reboot with different mac... who knows. I haven't tested it.
Click to expand...
Click to collapse
Ok, i will try that method although it seems strange that the ipconfig command doesn't work :-/
It is probably the fault of the driver that ifconfig wlan0 hw ether does not work.

[Q]Spoofing MAC on Galaxy Ace [Details&attempts listed]

Hey all,
I'm trying to spoof my MAC address on the Galaxy Ace, though nothing seems to be working. [Details and attempts listed below]
Phone Details:
Samsung Galaxy Ace GT-S5830
OS: Stock Gingerbread 2.3.5
Rooted
Installed Software:
Superuser
ES File Explorer (with show hidden (. prefix) files turned on & up to root enabled, root R/W)
Busybox (Free)
Android Terminal Emulator
(all with Superuser permissions)
What I've tried:
First I cleared the phone's IP DCHP lease in the router.
In Terminal on the phone whist not connected to a network, but wifi turned on I:
su
ifconfig wlan0 down
ifconfig wlan0 hw ether 112233445566
ifconfig wlan0 up
iplink show wlan0
Click to expand...
Click to collapse
also tried
su
ifconfig wlan0 down
iplink set wlan0 address 11:22:33:44:55:66
-->At which point I get (even with busybox prefixed)
iplink: SIOCSIFHWADDR: Operation not supported
Click to expand...
Click to collapse
The first code I quoted gave me no errors and appeared to execute successfully, but iplink show wlan0, the router (once the phone had connected), and several other tools (to see if ANY could see the change) also displayed the phone's default MAC.
(I also tired: ifconfig wlan0 hw link 112233445566, offsetting the existing MAC by only 1, and prefixing commands with busybox - busybox ifconfig wlan0 hw ether 112233445566 -resulted in ifconfig: SIOCSIFHWADDR: Operation not supported)
Looking for /data/misc/wifi/nvram.txt. Can see /data/misc/wifi/nvram.info containing my MAC. Have edited this and tried joining network again, but no MAC change is showing. Have read it's a rather bad idea to restart the phone before changing the MAC in files back, [Why?] so am yet to do a restart to test the file change...
Various apk tools (preceded by clearing DHCP lease for phone's IP & proceeded by checking router & iplink show wlan0) including:
Wireless MAC Changer - Osama Abukmail
Mac Address Ghost - diewland
MAC Spoofer for HD2 - Ian Kim (as the description stated although for a HD2, there was a change it may work for other types [later found out mine doesn't use/have /system/etc/calibration])
(all with super permissions)
Does anyone know of, or have any other ideas that may work?
Is this possible with only Custom ROM's?
Much thanks in advance,
Blue
MAC address spoofing is a type of discussion that XDA does not allow. For that reason, thread closed.

Tubuntu + net-install problem

Hi, I have SBKv2 TF101.
I am using Tubuntu, with Net-Install Ubuntu (V0.7).
I have updated my kernel with 2.6.36.4.img as mentioned in Tubuntu installation guide.
Now my problem is I cannot connect to the internet to download stuff.
When the terminal is opened "ifconfig" command only shows l0 interface. Furthermore "ifconfig wlan0 up" gives No such device error.
When i type setup and get into configuring wpa_gui. I do not see any adapters. I get "could not get status from wpa_supplicant" error. I have seen a few people getting this message but could not find any actual post telling step by step what to do. I don't know how to configure wpa_supplicant.
Any help is appreciated!
Thanks!
Did you check this guide? They have steps to make wpa work.
Other than that... I don't have linux running on the device right now, but in some linux distributions unconfigured devices won't appear in ifconfig, you have to "ifconfig -a" to see them. Otherwise, in a console try something like:
sudo dmesg |grep -iE 'wpa|network'
and see if that returns any results/errors/etc. Sorry I can't be of obvious help, like if it's a known issue or whatnot other than the original post I referred you to.
Lethe6 said:
Did you check this guide? They have steps to make wpa work.
Other than that... I don't have linux running on the device right now, but in some linux distributions unconfigured devices won't appear in ifconfig, you have to "ifconfig -a" to see them. Otherwise, in a console try something like:
sudo dmesg |grep -iE 'wpa|network'
and see if that returns any results/errors/etc. Sorry I can't be of obvious help, like if it's a known issue or whatnot other than the original post I referred you to.
Click to expand...
Click to collapse
at this step:
"7. Execute this command: wpa_supplicant -B -c/etc/wpa_supplicant.con -iwlan0" I get an error of wlan0 which is "no such device"
"ifconfig -a" does not show any wireless related devices too...
sarpk said:
at this step:
"7. Execute this command: wpa_supplicant -B -c/etc/wpa_supplicant.con -iwlan0" I get an error of wlan0 which is "no such device"
"ifconfig -a" does not show any wireless related devices too...
Click to expand...
Click to collapse
I updated my guide. Can you try the command again only this time make sure it says wpa_supplicant.conf
I missed the f at the end of conf. Let me know.

Unable to change MAC Address in rooted Moto G with Kit Kat 4.4.4

Hi guys,
trying to spoof my Moto G's MAC for Ethical Hacking purposes, I haven't been able to find a way.
I've tried with some of the different apps in the market, as MAC Spoofer, Mac Address Ghost, ChameleMAC and zANTI. With none of them could do it.
Neither using a terminal plus busybox.
Using the terminal I found out that isn't possible to modify the MAC when the Wi-Fi is off, as this is the way it's done in some Linux distributions (busybox ifconfig wlan0 down + busybox ifconfig wlan0 hw eth XX:XX:XX:XX:XX:XX)
I've also found information in Inet about problems with some devices spoofing MAC with Kit Kat.
Any advice? Thank you in advance!
K_Tico locate your WiFi file in / partition of your device than you can edit your Mac copy that file in SDcard then open that file in your PC using Hex editor enter desired Mac from column 4 to 9 do not edit others...
---------- Post added at 04:12 AM ---------- Previous post was at 04:10 AM ----------
K_Tico said:
Hi guys,
trying to spoof my Moto G's MAC for Ethical Hacking purposes, I haven't been able to find a way.
I've tried with some of the different apps in the market, as MAC Spoofer, Mac Address Ghost, ChameleMAC and zANTI. With none of them could do it.
Neither using a terminal plus busybox.
Using the terminal I found out that isn't possible to modify the MAC when the Wi-Fi is off, as this is the way it's done in some Linux distributions (busybox ifconfig wlan0 down + busybox ifconfig wlan0 hw eth XX:XX:XX:XX:XX:XX)
I've also found information in Inet about problems with some devices spoofing MAC with Kit Kat.
Any advice? Thank you in advance!
Click to expand...
Click to collapse
Check my reply.... on your post

Categories

Resources