Hello,
I updated my Beelink GT King Pro and somehow lost the MAC address of the ethernet NIC, so the wired connection doesn't work now. Can you help me, please? I also tried another ROM from Aidan, Slimbox etc... with the same result. Thanks for any help and tips.
How to restore MAC and serial number using adb or Terminal:
Code:
su
echo "mac" > /sys/class/unifykeys/name
echo "AA:AA:AA:AA:AA:AA" > /sys/class/unifykeys/write
Replace AA:AA:AA:AA:AA:AA with what you have on the label.
mAtvXk said:
How to restore MAC and serial number using adb or Terminal:
Code:
su
echo "mac" > /sys/class/unifykeys/name
echo "AA:AA:AA:AA:AA:AA" > /sys/class/unifykeys/write
Replace AA:AA:AA:AA:AA:AA with what you have on the label.
Click to expand...
Click to collapse
Does it work if I haven't root?
Related
Hi guys,
I am looking for some info about how to enable Diag Mode, in order to get to the phone through QPST+QXDM. But until now, I got Nothing...
I read some post, but most of them refer to HTC devices. Does anybody knows if we can get connected to the Sony's Qualcomm Chipset? I am trying to do something similar to what ASCOM TEMS Invertigation kit does, but using Qualcomm environment.
Link Here!
Also this is the info that I have from Sony's Neo V chipset: Link Here!
Thanks!
Bonzi
http://forum.xda-developers.com/showthread.php?t=1248514
Maybe this?
JoHnNy08PL said:
http://forum.xda-developers.com/showthread.php?t=1248514
Maybe this?
Click to expand...
Click to collapse
Good info, but the path that it mentions is not available in my ROM, It also doesn't specify which Rom should we use. (I am using 4.0.4 Pureness)
adb shell, su, echo 1 > /sys/devices/virtual/usb_composite/modem/enable
[email protected]:/ # find / -iname *modem*
/system/usr/share/alsa/pcm/modem.conf
/sys/devices/virtual/android_usb/android0/f_modem >> /device >> Link a > /sys/devices/virtual/android_usb/android0/f_modem/device
/sys/class/android_usb/f_modem
/sys/module/smd_pkt/parameters/modem_wait_timeout
/sys/module/msm_rmnet/parameters/modem_wait
....
# find ./ -iname *enable*
./platform/chargalg/power_supply/chargalg/enable_monitoring_ambient_temp
./virtual/timed_output/vibrator/enable
./virtual/android_usb/android0/enable
....
I found the path in 2.3.4 but when I activated the adb link fails and I have to reboot the phone. Could it be because the BootLoader is Locked?
Any DEv that could help me ?
Also there is a Diag folder on /sys/devices/virtual/usb_composite/ folder. I changed the enable flag to 1 and the phone disconnect the adb session...
Thanks
Bonzi
bonzi22 said:
Good info, but the path that it mentions is not available in my ROM, It also doesn't specify which Rom should we use. (I am using 4.0.4 Pureness)
adb shell, su, echo 1 > /sys/devices/virtual/usb_composite/modem/enable
[email protected]:/ # find / -iname *modem*
/system/usr/share/alsa/pcm/modem.conf
/sys/devices/virtual/android_usb/android0/f_modem >> /device >> Link a > /sys/devices/virtual/android_usb/android0/f_modem/device
/sys/class/android_usb/f_modem
/sys/module/smd_pkt/parameters/modem_wait_timeout
/sys/module/msm_rmnet/parameters/modem_wait
....
# find ./ -iname *enable*
./platform/chargalg/power_supply/chargalg/enable_monitoring_ambient_temp
./virtual/timed_output/vibrator/enable
./virtual/android_usb/android0/enable
....
I found the path in 2.3.4 but when I activated the adb link fails and I have to reboot the phone. Could it be because the BootLoader is Locked?
Any DEv that could help me ?
Also there is a Diag folder on /sys/devices/virtual/usb_composite/ folder. I changed the enable flag to 1 and the phone disconnect the adb session...
Thanks
Bonzi
Click to expand...
Click to collapse
dears please explain about "adb shell, su, echo 1 > /sys/devices/virtual/usb_composite/modem/enable"
because in my case dont work, i have the same problem with you
Me too Suffering
while executing this
[email protected]:/ # find / -iname *modem*
gives
/system/framework/modemwarmup.jar
/sys/kernel/debug/smd/modem_err_f3
/sys/kernel/debug/smd/modem_err
/sys/kernel/debug/modem_notifier
/sys/module/smd_tty/parameters/modem_wait
/sys/module/msm_rmnet/parameters/modem_wait
/sys/fih_sw_info/fih_modem_crash_info
/data/data_test/modem_port_timeout
/data/data_test/modem_port_status
/data/dalvik-cache/[email protected]@[email protected]
/data/mlog/20160530_090325/modem_oemdbg_0_log.txt
/data/mlog/20160530_090325/modem_err_data_index01_log00.txt
/data/mlog/20160629_175250/modem_oemdbg_0_log.txt
/data/mlog/20160629_175250/modem_err_data_index01_log00.txt
/data/mlog/20160718_224803/modem_oemdbg_0_log.txt
/data/mlog/20160718_224803/modem_err_data_index01_log00.txt
/data/mlog/20160528_014415/modem_oemdbg_1_log.txt
/data/mlog/20160528_014415/modem_err_data_index01_log00.txt
/data/mlog/20160814_175808/modem_oemdbg_0_log.txt
/data/mlog/20160814_175808/modem_err_data_index01_log00.txt
/data/mlog/20160522_101125/modem_err_data_index01_log00.txt
/data/mlog/20160523_185156/modem_oemdbg_0_log.txt
/data/mlog/20160523_185156/modem_err_data_index01_log00.txt
and no such path shows in my phone (Sony ST21i, Android 4.0.4, MSM7225AA Chipset)
Hi all i have problem with driver and monitor mode in balcktrack 5.I try to use airmon but it fail.Can sombody help!Here is log:
> [email protected]:~# airmon-ng
>
>
> Interface Chipset Driver
>
> eth0 Unknown Unknown (MONITOR MODE NOT SUPPORTED)
denis5j said:
Hi all i have problem with driver and monitor mode in balcktrack 5.I try to use airmon but it fail.Can sombody help!Here is log:
> [email protected]:~# airmon-ng
>
>
> Interface Chipset Driver
>
> eth0 Unknown Unknown (MONITOR MODE NOT SUPPORTED)
Click to expand...
Click to collapse
Just to says that this is an Android galaxy player forum not backtrack wifi cracking forum. You would have better luck to find help in a linux or backtrack forum.
EDIT: Try this one: http://www.backtrack-linux.org/forums/forum.php?
I'm pretty sure about this; I've read around and found that monitor mode, as said in your catlog, isn't supported. I could be wrong tho.
hi all
i have an galaxy SIII
i am using script manager.
i want to write a script and i have 2 questions
- how to write a script who open an url with the web browser
- is there an function to send a ping to see if an local adress avalaible (192.168.1.X) if not avalaible is there an return error ?
(sorry to seem stupid but i am coming from windows and i am a bit lost for the moment )
thank u for giving me a your time
no suggestion ?
or advise
Google something like "android open browser from shell". You can do it using intents.
Also:
Code:
ping --help
this work in an script u put
am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity http://www.google.fr
for chrome i find this
am start -a android.intent.action.VIEW -n com.android.chrome/.Main -d http://xxxxxxxx
but i not find for opera if someone have it
finally
opera =
am start -a android.intent.action.VIEW -n com.opera.browser/com.opera.Opera -d http://www.google.xxxx
hope this help someone
lol now i really need help coz i found nothing
i want to know which ip is reachable from 192.168.1.(1 to 9)
in a script to automate that and give me wish is reachable for use it in a command to browser.
(i know ping from terminal emulator but it's not what i am looking for)
forgive my english i hope you understand what i want ant hope too u help me with this
kondronaute said:
i want to know which ip is reachable from 192.168.1.(1 to 9)
in a script to automate that and give me wish is reachable for use it in a command to browser...
Click to expand...
Click to collapse
That's easy, check:
Code:
for var in {1..9}
do
echo "Looking for 192.168.1.$var..." #optional... jejeje
if ping 192.168.1.$var -c 1 > /dev/null
then
#Reachable, put here your command
else
#Unreachable, you can show an error here
fi
done
RoberGalarga said:
That's easy, check:
Code:
for var in {1..9}
do
echo "Looking for 192.168.1.$var..." #optional... jejeje
if ping 192.168.1.$var -c 1 > /dev/null
then
#Reachable, put here your command
else
#Unreachable, you can show an error here
fi
done
Click to expand...
Click to collapse
but ping command is not reconized by script manager i can only do it with terminal emulator ....
Really? I didn't know that (weird, BTW). Check if you need to use another command with Script Manager, or if you need to add something.
I dunno another way to achieve your goal... only using ping
lol i have a headeach with this and find nothing
RoberGalarga said:
Really? I didn't know that (weird, BTW). Check if you need to use another command with Script Manager, or if you need to add something.
I dunno another way to achieve your goal... only using ping
Click to expand...
Click to collapse
finally i have possibility to run ping you must just in option of script manager chek "override $PATH"
after 2 or 3 aspirin this work for me
#!/system/bin/sh
for i in $(seq 2 10);
do
host="192.168.1.$i"
ping -c 1 -W 1 $host > /dev/null &&
am start -a android.intent.action.VIEW -n com.android.browser/.BrowserActivity http://$host ;
done
i dont know why i have error with else and if with android shell ????
i thank u again for your help and hope the masters here help us a bit to understand, it's difficult coz there are differences with simple linux and this for french using windows :laugh:
Try if this help.
i have this kind of probleme http://forum.xda-developers.com/showthread.php?t=1045006
but i am usin the script manager editor on my phone !!!!!
i have not Windows EOL formatting
please if u are guru of busybox your help is needed to use if else and fi in a script.
must i download another version of busybox or add a command ????
i am fully rooted the path in script manager is good
edit = after trying and googleing
after if you must put [[your code without space before and after]] and after then (yourcode) :laugh:
hope i find the rest...
kondronaute said:
i have not Windows EOL formatting
Click to expand...
Click to collapse
Are you sure? Because if you have created the script in windows, you have that EOL formatting (whatever that means :silly. Try this:
Open Terminal Emulator, and type
Code:
echo "hello there" > /sdcard/newScript.sh
This will create a new and clean script in your SD Card.
Then, go to Script Manager, and edit that script. You can start deleting the text ("hello there") and adding this:
Code:
testvar=1
if [ "$testvar" = "1" ] ; then
echo "All is right"
fi
Ok, run the script. If you can see the text "All is right", that's it, problem solved
RoberGalarga said:
Are you sure? Because if you have created the script in windows, you have that EOL formatting (whatever that means :silly. Try this:
Open Terminal Emulator, and type
Code:
echo "hello there" > /sdcard/newScript.sh
This will create a new and clean script in your SD Card.
Then, go to Script Manager, and edit that script. You can start deleting the text ("hello there") and adding this:
Code:
testvar=1
if [ "$testvar" = "1" ] ; then
echo "All is right"
fi
Ok, run the script. If you can see the text "All is right", that's it, problem solved
Click to expand...
Click to collapse
you save my last neuron
thanks
edit =
my fault is i create a text file under windows (easier and can copy and past easily) after i put the file on my phone and copy past the code in a new script.
i not think that when i just copy past i past the EOL formatting ( i dont know what is that but its a bad thing )
that's mean i must abandon windows and migrate totally to linux
anyway that make me crazy and i am happy to sort it.
you are very helpfull many thanks again
new edit = i understand now why they say notepad++ is necessary
I recently bought a Nexus 7 Flo tablet running the latest Android 4.4. I've since been trying to spoof a MAC address on it, but for some reason the wireless card seems to refuse to use the spoofed mac no matter what I do.
There's a more detailed discussion what I've tried in android.stackexchange.com/questions/57922/wifi-network-not-accessible-with-modified-mac-address (forum won't let me link), but I'll repeat the main points here. I have tried both ip link set wlan0 address XX:XX:XX:XX:XX:XX and busybox ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX. They both result in the MAC address being changed as far as I can tell from the output of ip link and busybox ifconfig, but when connecting to a network with MAC filtering with the spoofed MAC address being allowed, the device fails to connect. /sys/class/net/wlan0/address also shows the spoofed address. If I use the device's stock MAC and add this to the filter on the AP, then the device connects successfully.
Has anyone experienced anything similar on KitKat devices?
Jonhoo said:
Has anyone experienced anything similar on KitKat devices?
Click to expand...
Click to collapse
Haven't tried anything, yet. Just wondering if you've had any success with this since it's been a while. Thanx=)
pan.droid said:
Haven't tried anything, yet. Just wondering if you've had any success with this since it's been a while. Thanx=)
Click to expand...
Click to collapse
No, unfortunately not. I ended up buying a Samsung Galaxy S II where I can change the MAC successfully for demo purposes. I would still really like to get this working on an up-to-date tablet though..
Bummer. Okay, thanx.
---------- Post added at 03:54 PM ---------- Previous post was at 03:53 PM ----------
This is hopeful, but not a silver bullet... http://forum.xda-developers.com/showthread.php?t=2180809
pan.droid said:
This is hopeful, but not a silver bullet... http://forum.xda-developers.com/showthread.php?t=2180809
Click to expand...
Click to collapse
Interesting...
There seems to be a couple of suggestions here that I will try when I get back to work next week:
- Enable Airplane mode before changing the MAC, then turn airplane mode off again and your WiFi should work
- Deleting /persist/wifi before changing the MAC
- Using this spoofing app
Good news everyone!
/persist/wifi/.macaddr seems to be the key to changing the MAC, *and* it allows the MAC to be changed *permanently*!
Code:
$ adb shell
$ su
# cd /persist/wifi
# echo -n "112233445566" > .macaddr
# ^D
$ ^D
$ adb reboot
And voilà, MAC changed even after reboot, and connects without a problem!
Jonhoo said:
Good news everyone!
/persist/wifi/.macaddr seems to be the key to changing the MAC, *and* it allows the MAC to be changed *permanently*!
Code:
$ adb shell
$ su
# cd /persist/wifi
# echo -n "112233445566" > .macaddr
# ^D
$ ^D
$ adb reboot
And voilà, MAC changed even after reboot, and connects without a problem!
Click to expand...
Click to collapse
Hi,
I stumbled upon your post. I'm trying to do the same on my Nexus 5. I found your method works in changing my MAC address but it doesn't change to the string I put in the quotes. What I found is that the address I end up with is the unicode values of the first 6 characters. Is there some special format for this file?
Thanks!
tmagritte said:
I found your method works in changing my MAC address but it doesn't change to the string I put in the quotes. What I found is that the address I end up with is the unicode values of the first 6 characters. Is there some special format for this file?
Click to expand...
Click to collapse
Hmm, that's quite strange. From what I remember, simply using echo worked fine for me.
What you can do instead is this:
Code:
echo -ne '\x11\x22\x33\x44\x55\x66' > .macaddr
Let me know if it works!
Jonhoo said:
Hmm, that's quite strange. From what I remember, simply using echo worked fine for me.
What you can do instead is this:
Code:
echo -ne '\x11\x22\x33\x44\x55\x66' > .macaddr
Let me know if it works!
Click to expand...
Click to collapse
Brilliant!
Thanks so much!
---------- Post added at 01:31 PM ---------- Previous post was at 01:31 PM ----------
I'm guessing for some reason on the Nexus 7 it uses a text file but a binary file on the Nexus 5...
I also found a couple of ways to activate the new MAC address without requiring a reboot. This is useful if you want to be able to change MAC address dynamically using Tasker or similar.
The least obtrusive method I found is adding:
busybox ifconfig wlan0 down
busybox ifconfig wlan0 up
commands after the echo command. This will briefly turn off the WiFi adapter and when it comes back on it will have the new MAC address. I actually found the busybox ifconfig wlan0 up command isn't strictly necessary, at least on the Nexus 5, as it seems to get reactivated automatically after you take it down.
You can confirm the new MAC is in effect by opening a new terminal emulator window and running:
busybox ifconfig wlan0
Interestingly, if you go into Wifi Settings, under advanced settings it still shows the old MAC address but the WiFi adapter is clearly running with the new one as indicated by ifconfig and the ability to connect to a MAC filtered router.
Alternatively, toggling on then off airplane mode will also activate the new MAC and it even shows the new MAC under the advanced WiFi settings.
I like the first option as you'd be able to automate dynamic changes for a particular network without the risk of interrupting voice or cellular data connections when it happens.
tmagritte said:
The least obtrusive method I found is adding:
busybox ifconfig wlan0 down
busybox ifconfig wlan0 up
Click to expand...
Click to collapse
I tried using the approach above to reset the MAC on-the-fly, but it doesn't seem to work on my Nexus 5 4.4.4.
For now I'm sticking with "reboot" at the end of my .sh script, which works well. Any thoughts / advice are appreciated. Thanks!
great but
Jonhoo said:
Good news everyone!
/persist/wifi/.macaddr seems to be the key to changing the MAC, *and* it allows the MAC to be changed *permanently*!
Code:
$ adb shell
$ su
# cd /persist/wifi
# echo -n "112233445566" > .macaddr
# ^D
$ ^D
$ adb reboot
And voilà, MAC changed even after reboot, and connects without a problem!
Click to expand...
Click to collapse
helo i tried u r method and i succeed the problem its gaining random mac address not specified mac address i would like to copy iPhone mac address to my android but it is failed please help me
Hi everyone,
Does anyone know how to remove this method of mac change and go back to the original?
Many thanks!
plz tell me how to change mac address....
You're on ROOT?
nijom said:
You're on ROOT?
Click to expand...
Click to collapse
Yep, I had rooted My Moto E, and used the below commands in terminal :-
su //to get the root access
busybox ifconfig wlan0 hw ether 00:11:22:33:44:55 //to change the mac address
busybox ifconfig // It shows the mac changed
Now if I go to system -> Wireless mac address to crosscheck, it's still shows me the old one
I had rebooted the phone, and checked the mac address under terminal using "busybox ifconfig" - it's restored to old (real one) :crying:
Any suggestions, where I am doing it wrong ?
Thanks!
kamalpal said:
Yep, I had rooted My Moto E, and used the below commands in terminal :-
su //to get the root access
busybox ifconfig wlan0 hw ether 00:11:22:33:44:55 //to change the mac address
busybox ifconfig // It shows the mac changed
Now if I go to system -> Wireless mac address to crosscheck, it's still shows me the old one
I had rebooted the phone, and checked the mac address under terminal using "busybox ifconfig" - it's restored to old (real one) :crying:
Any suggestions, where I am doing it wrong ?
Thanks!
Click to expand...
Click to collapse
Check it out, this might help you http://forum.xda-developers.com/showthread.php?t=2286440