m8s (suspected clone) IP/MAC address change for eth0 on reboot bug.(other issues too) - Android Stick & Console AMLogic based Computers

Good morning everyone. As per the thread title, My girlfreind has a TV box that I suspect is a clone (the update ROMs from chinagadget review wont flash from TWRP).
This device is connected to her ADSL router/modem via a LAN cable and everytime the device boots, the MAC address for the LAN interface is randomised, causing the router to issue a new IP address via DHCP. (I cannot get the device to communicate with static IP)
it's running a lollipop based ROM at the moment (LMY47V.20160505 TEST-KEYS) is reported in settings.
I haven't removed the case yet, to investigate the circuitboard/RAM manufacturer (and don;t know how to check via software, if the wifi/bt module is made by broadcom/atheros) but my gut feeling is screaming "it's a clone". (If it helps, the TWRP backup I performed has saved to a sub-folder called "k200")
She purchased the device from Amazon UK and the majority of apps on Play Store give "version isn;t compatible with this device" error. I've tried to spoof other device in build.prop and with an app called "market helper" but no joy yet.
Any help appreciated

Has anyone got any advoce for me?
CAn anyone point me to messages/threads on hoiw to spoof a MAC address on ethernet adaptor?
does anyone know how to spoof my device type so I can get Play Store to allow me to download/install apk's without needing to sicdeload

wodgey said:
Has anyone got any advoce for me?
CAn anyone point me to messages/threads on hoiw to spoof a MAC address on ethernet adaptor?
does anyone know how to spoof my device type so I can get Play Store to allow me to download/install apk's without needing to sicdeload
Click to expand...
Click to collapse
I also have this issue with my Kata Box 2 (Amlogic S905)
I was also very frustrated when I learned that the mac address was always set at random every time I reboot.
I've read that you need to use USB burning tool to hard code the mac address for your android box.
Here's what I did to solve this.
you need:
a rooted android box
busy box
Terminal emulator
1st method:
Make sure that the ethernet cable is unplugged.
Run terminal emulator.
Run these commands in lower case:
su
ip link set eth0 down
ip link set eth0 address 01:23:45:67:89:10 (change the values of your desired mac address)
ip link set eth0 up
2nd method:
su
busybox ifconfig eth0 down
busybox ifconfig eth0 hw ether 01:23:45:67:89:10 (change the values of your desired mac address)
busybox ifconfig eth0 up
You can run run these on startup using Script Manager.
I tried both method 1 and 2 and works very well.
To verify the if everything was set properly you can run these commands:
ip link show
And
busybox ifconfig
so far on my end its working great. Im now able to reserve the IP address via MAC address.

aperture;68526292Here's what I did to solve this..[/QUOTE said:
Thanks dude. I'll try this and report back.
Click to expand...
Click to collapse

aperture said:
I tried both method 1 and 2 and works very well.
Click to expand...
Click to collapse
For me, method 2 works. 1st method didn't change anything that I could see.
I have also added start/stop adbd and setprop tcp port to my script also so I can have adb over tcp upon boot, shich I was struggling to set as persistent.
Thanks again.

wodgey said:
For me, method 2 works. 1st method didn't change anything that I could see.
I have also added start/stop adbd and setprop tcp port to my script also so I can have adb over tcp upon boot, shich I was struggling to set as persistent.
Thanks again.
Click to expand...
Click to collapse
I'm glad it worked out well for you. :victory:

Related

Use PC internet connection on phone through USB!

USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Tried it and it's not working for me...
Or maybe i didn't setup squid right.
I'm not so good on ubuntu OS
I tried making a bridge connection on windows...the networks
The network seems to be connected but no internet connection...
Is it necessary to have Ubuntu OS?
Maybe some another how-to will help:
http://forum.xda-developers.com/showthread.php?t=793102
To setup squid to work:
type in:
sudo gedit /etc/squid/squid.conf
In that file find the section called
# ACCESS CONTROLS
Under the section find the line
#Recommended minimum configuration:
and add this line next to it
acl all src all
then find the section
# TAG: http_access
Under this section find the line
#Default:
and add the following line to look like
#Default:
http_access allow all
Close the file and restart squid as:
sudo start squid
That should setup squid to share your internet on all clients.
If required, reboot.
You can try out a similar approach on any other distro other than ubuntu.
i tried several searches about this topic, but none of them succeeded,
any update on this?
can i install ubuntu in my Win7?
syruz said:
can i install ubuntu in my Win7?
Click to expand...
Click to collapse
Well, you can virtualize it in Virtual box. It's free for personal use.
by the way what is the squid your talking about?
@ TS
maybe you can provide us with the link for ubuntu and squid?
Come on.. if you don't already know what ubuntu and squid are there's no point in trying this.
Ubuntu = Linux, that's another operating system. Squid is a proxy.
You ashould at least have the decency of Googling those for yourself..
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Hi guys,
Do you know why I wouldn't be able to see "USB tethering" option? No matter what I did so far, all I can see is the "Portable Wi-Fi hotspot" option and that works fine. But I need to use the USB Tethering!!!
Thanks for the help!
If someone is having the same problem as me (ie usb tethering mode not visible) just use a program called togglesettings lite. It can turn on the usb tethering for you. Now the reverse usb tethering works for me like a charm. Peace!
Sent from my LG-P500 using XDA App
harshaxdadevelopers said:
USB tethering on froyo works if you need to use the phone's internet on PC. Sometimes, we just need to do it the other way around (lets say the PC doesn't have a wireless card, or we only have ad-hoc networks that are not discoverable without patching) and use our PC's net on android through USB.
Few people have done it using bridges. I did it using squid proxy server on ubuntu.
1.) Install squid and allow http access to all required clients.
2.) Connect the phone with usb tethering on.
3.) Ubuntu detects it as usb0. Now change the ip of usb0 from 'Automatic DHCP' to 'Shared to other computers'.
4.) Fire up the terminal emulator and enter the following.
#su
#netcfg usb0 dhcp
If all went well, you should now be able to connect to the internet.
Click to expand...
Click to collapse
Thank you for sharing this trick. But i dont have netcfg utility, since i use ubuntu maverick 10.10, it is not in source list. is ther any other way to do "netcfg usb0 dhcp"?
This is by far the easiest solution I've found to reverse tether. Thanks!
jadeiceman said:
This is by far the easiest solution I've found to reverse tether. Thanks!
Click to expand...
Click to collapse
Sorry and wich is the solution ????
syruz said:
@ TS
maybe you can provide us with the link for ubuntu and squid?
Click to expand...
Click to collapse
sudo apt-get install squid
This should install squid.
netcfg is not there on recent ubuntu versions not even software list but you can configure via app indicator at right but still i can't use reverse tethering although i followed you pretty well.
netcfg is a utlility on the phone... u need to run that command at the terminal of the phone not on your computer. (get a terminal emulator from the market)
Wow I'm feeling stupid.Will give it a go now.

[Q] wifi change mac address

Firt, Great site very helpfull. Sorry my english.
I need to change my wifi mac adress on my huawei u8180 with ROM CyanogenMod 7.2.0-RC0 U8160 (thx is great).
I have try to change/modify nvram.txt but no good
Also try with softwares :
- com.jiaofamily.android.mac: change mac for huawei (it´s old). it can read the mac but can´t change it (unsuported device)
-Set MAC adress : cant read mac adress
both don´t ask root right.
Any idea?
You can spoof your MAC using busybox
For instance:
http://blog.thecodecracker.com/hacks/spoof-mac-address-in-android/
First, you need Busybox and Terminal Emulator installed. And you need root.
After you have that, open up Terminal Emulator and give it superuser permissions by typing
"su" (without quotes)
and press enter. You should be asked if you want to allow it to have superuser access. Press allow
Next, type in
"busybox ifconfig". (make sure your wifi is on first). Look for either eth0 or wlan0. Whichever one is on the list is your wifi device. Keep that in mind.
Next, type in
"busybox ifconfig wlan0(or eth0) hw ether XX:XX:XX:XX:XX:XX"
with the xx's being your MAC address you want to change it to.
Now, this is the important part!
It WILL NOT change your MAC address properly if your wifi is not off first! You must have it off, and then turn it on (through the status bar toggle) and then quickly hit enter! If it says no such device found you must press Volume Up+W to automatically reenter your last command and press enter again until it does not say no such device found.
I find it works best when I do Volume up+W and then hit enter multiple times.
To check if your MAC address has been changed, go to your wifi settings, click the menu key and select advanced. Your current MAC address will be under the MAC address section.
Good luck!
Sent from my GT-I9100
You can also do this without having to use Terminal Emulator by using the adb.
With your device properly setup for development on your pc just type adb shell in your terminal on your pc and then you can enter your busybox commands.This still does require that your root and have busybox installed!
thx
waylaidwanderer said:
First, you need Busybox and Terminal Emulator installed. And you need root.
After you have that, open up Terminal Emulator and give it superuser permissions by typing
"su" (without quotes)
and press enter. You should be asked if you want to allow it to have superuser access. Press allow
Next, type in
"busybox ifconfig". (make sure your wifi is on first). Look for either eth0 or wlan0. Whichever one is on the list is your wifi device. Keep that in mind.
Next, type in
"busybox ifconfig wlan0(or eth0) hw ether XX:XX:XX:XX:XX:XX"
with the xx's being your MAC address you want to change it to.
Now, this is the important part!
It WILL NOT change your MAC address properly if your wifi is not off first! You must have it off, and then turn it on (through the status bar toggle) and then quickly hit enter! If it says no such device found you must press Volume Up+W to automatically reenter your last command and press enter again until it does not say no such device found.
I find it works best when I do Volume up+W and then hit enter multiple times.
To check if your MAC address has been changed, go to your wifi settings, click the menu key and select advanced. Your current MAC address will be under the MAC address section.
Good luck!
Sent from my GT-I9100
Click to expand...
Click to collapse
I have done that and it work ...Thx. to all off course, but now I have an another question :
How can I make the wifi shutdown and start on the terminal?
My idea, it´s to make:
wifi off
wifi on
busybox ifconfig wlan0(or eth0) hw ether XX:XX:XX:XX:XX:XX
Any adeia?
trouble
Hi,
it changes my MAC, however I can’t connect to any wifi network! It always say that the password is bad, or in open networks, it hangs on retriving ip address.
But if I use:
busybox ip link set wlan0(or eth0) address XX:XX:XX:XX:XX:XX
It work at the first time or second.
Insted of turn the wifi off and on and quickly run the command.
I use the terminal with su:
svc wifi disable
svc wifi on
(need to wait 0.5s to proced)
busybox ip link set wlan0(or eth0) address XX:XX:XX:XX:XX:XX
and its done .
it will be great if an app developer can make an app to run this command automatically when we want to connect to wifi. it will make the mac address not permanent but almost.
noob pirate said:
I have done that and it work ...Thx. to all off course, but now I have an another question :
How can I make the wifi shutdown and start on the terminal?
My idea, it´s to make:
wifi off
wifi on
busybox ifconfig wlan0(or eth0) hw ether XX:XX:XX:XX:XX:XX
Any adeia?
Click to expand...
Click to collapse
no way
i am getting SIOCSIFHWADDR: Operation not supported... please help
You must have rooted device and busybox installed. First switch to su and type commands.
I have tried this it actually changed my mac address. I can able to connect open network and verify that. but when I'm trying to wps2 password protected network it gave authentication error "incorrect password" but i know the password I'm using is correct.

[Q] Wi-fi mac address spoofing in Android mobile phones

I need to spoof the wifi mac address of my phone to that of my Laptops. Then only I can use them at my workplace. In linux there is a software called macchanger for spoofing the mac address. By installing the mac changer software using the apt-get install macchanger command just spoofs the mac address. I just need to know whether this command works in terminal emulator. Or is there any software in android which changes the mac address of wifi via command line?? Please help me out...Thanks in advance..
tonyjoseph456 said:
I need to spoof the wifi mac address of my phone to that of my Laptops. Then only I can use them at my workplace. In linux there is a software called macchanger for spoofing the mac address. By installing the mac changer software using the apt-get install macchanger command just spoofs the mac address. I just need to know whether this command works in terminal emulator. Or is there any software in android which changes the mac address of wifi via command line?? Please help me out...Thanks in advance..
Click to expand...
Click to collapse
You can manually set any MAC address for a specific ethernet/wlan device in an Android terminal window, under the condition that you have rooted your phone and have a ifconfig binary installed. Use the hw ether parameters to do so. To check whether you have succeeded, use the netcfg command. To double-check it, use for example a packet sniffer and compare the MAC address with your set address in a ethernet packet to/from your Android device.
Btw: ...You are not breaking any of your company's security policies by using your phone?
i am getting SIOCSIFHWADDR: Operation not supported when i tried with both ifconfig and ip link... please help

About MAC address and changing it.

Hello friends,
I encountered today a nice method to spoof MAC address on a rooted device. It has to have Busybox installed as well.
They claim typing this code in a terminal will change my MAC address:
Code:
busybox ifconfig eth0 hw ether AA:AA:AA:AA:AA:AA
eth0 is my network adapter I guess. AA:AA is the MAC address that I want to be spoofed to (it will be seen as my MAC).
You must be a root user to execute that.
Now I have some questions. I hope you will be able to answer them all (if you can answer on less I would still appreciate that):
1. I can see at Settings>About device>Status, a thing called "WiFi MAC address". Is this what will be affected after executing of the command they provided me?
2. Is the commend legit? If so, how can I return to my original MAC address? Do I have to change it manually again or a reboot will fix it all?
3. Does my device uses this MAC address only when I am using a WiFi? Or it uses that same address for 4Gs?
Thanks a lot for whoever helps!

MT6582 MAC address lost - looking for permanent fix

Hi all. I recently goofed up my BLU Studio Energy that I use as my daily PMP. I didn't want to go through the hassle of flashing the stock KK rom from BLU and OTA'ing to their last release of LP (5.0.2) so I downloaded the Gionee M3 0202 T8425 build and flashed that. After doing so I had no IMEI information and the MAC was lost as well...
I fixed the IMEI issue using the MTK Engineering Mode app but for the MAC address issue it does nothing, the various Terminal based solutions online (with or without root/Busybox) do nothing and a few other apps for fixing your MAC don't change the MAC even if they say they successfully did so... The only app that has been successful at fixing the MAC address is Banana Studio's "Change My MAC - Spoof Wifi MAC" but this is only temporary, though, I can set a profile to load my MAC address when the device is booted.
Apps I've tried:
AMC - Advanced Mac Changer
ChameleMAC
Change My MAC - Spoof Wifi MAC
MTK Engineering Mode
Wifi Mac Changer
Terminal commands tried:
ifconfig wlan0 hw ether XX:XX:XX:YY:YY:YY --> results in "error: SIOCSIFADDR (Invalid argument)"
ip link set wlan0 XX:XX:XX:YY:YY:YY --> results in "Error: either "dev" is duplicate, or 'XX:XX:XX:YY:YY:YY' is a garbage."
busybox ifconfig wlan0 hw ether XX:XX:XX:YY:YY:YY --> results in "CANNOT LINK EXECUTABLE: cannot locate symbol 'stpcpy' referenced by 'busybox"
If you happen to know of a silver bullet could you please let me know. Thanks in advance!

Categories

Resources