Ip over bluetooth - Android Q&A, Help & Troubleshooting

Hi all
i'm working on a linux box which have a bluetooth dongle, and i want to make an ip link between linux and an android phone (Galaxy S2)
my link is ok , but i can't set the IP adress on the android side, the only thing i can do is set it with a terminal (ifconfig bnep0 10.0.0.2) and then the link is ok.
My question : is there any way to set this ip adress with an apps or other ?
i can't say to the user root your phone and open a terminal ....
thank in advance
Damien

Related

[Q] How to change the Wifi MAC address of Galaxy S2 ?

Hi,
Can someone please help me in changing the Wifi Mac address on my Galaxy S2. It is running 4.0.3 and I am rooted. I have the latest version of busybox installed. I tried to follow the post here
http://forum.xda-developers.com/showthread.php?t=1385577
but this does not help. When I do a
Code:
busybox iplink show eth0
it gives me the new mac address but I cannot connect with this to the router. Also in Settings -> Wifi -> Advanced still the old (original) mac address is shown ?
Please help...
Spoofing MAC addresses is borderline dodginess/and the legality of doing same is questionable at best. Every "How do I spoof MAC address ?" thread I've seen in the 8 mths I've been here has been closed in short order.
Thread closed
For the reasons mentioned above, this thread is closed.

[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

[Q] Archos Familypad 2

Hello Guys,
I have a big Problem, with my Archos FamilyPAD2 when i Reconnect my Wifi than have a new Mac Adress, and by a New Start too.
So i have this rooted an i find many Mac Adress´es
when i use the Mac Changer says:
Interface Wlan0++ can´t change MAC Adress
so now I do not know what to do.
anyone happen to know how I find the interface wlan0.
I think with the terminal, but whether he would change by command.
If I find a solution I have to filter out side the MAC address can be in my Fritzbox 7270,
System.:
Archos FamilyPAD 2 tablet
Rooted by Subroo

[Q] Wifi mac address

I ROOTED MY ANDROID 4.1.1 AND LOST MAC ADDRESS AND IP ADRESS CAN ANYONE GIVE ME SIMPLE STEP BY INSTRUCTION ON HOW TO REPAIR THIS IN PHONE STATUS SHOWING MAC ADDRESS UNAVAILIBLE AND IP ADRESS UNAVAILIBLE PLEASE HELP JUS BOUGHT THIS THING
MADSHERMAN said:
I ROOTED MY ANDROID 4.1.1 AND LOST MAC ADDRESS AND IP ADRESS CAN ANYONE GIVE ME SIMPLE STEP BY INSTRUCTION ON HOW TO REPAIR THIS IN PHONE STATUS SHOWING MAC ADDRESS UNAVAILIBLE AND IP ADRESS UNAVAILIBLE PLEASE HELP JUS BOUGHT THIS THING
Click to expand...
Click to collapse
Your post doesn't indicate if you are still able to access a WiFi network. If you can, do so on a network that you can enter the router and see what is listed for the Mac under the "attached devices" tab.
Once you have that info, I think I remember seeing a post RE editing Mac adds somewhere.
MADSHERMAN said:
I ROOTED MY ANDROID 4.1.1 AND LOST MAC ADDRESS AND IP ADRESS CAN ANYONE GIVE ME SIMPLE STEP BY INSTRUCTION ON HOW TO REPAIR THIS IN PHONE STATUS SHOWING MAC ADDRESS UNAVAILIBLE AND IP ADRESS UNAVAILIBLE PLEASE HELP JUS BOUGHT THIS THING
Click to expand...
Click to collapse
1. the ip address of your smartphone is given by your locale oder mobile network, depending on what you are running!
2. your mac address if deleted is hard to recover, so most new devices don't have them hard coded or hardware based, biut in the rom of your mobile chipset.. so try a mac address changer from the play store maybe, if you have root
Sent from my Nexus 4 using xda app-developers app

m8s (suspected clone) IP/MAC address change for eth0 on reboot bug.(other issues too)

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:

Categories

Resources