I'm trying to use the app 'Wifi TXPower'. It requires iwconfig which appears to be not installed.
Does anyone know where can I get it?
There are some downloads on the net and this forum. But I am unsure about whether they are correct for my device and system and about how trustworthy these sources are.
Edit: I can get it by installing 'Wireless Tether for Root Users' from Market, then copying the iwconfig executable to /system/xbin/.
But iwconfig shows strange values for Tx-Power. After doing 'iwconfig wlan0 txpower 4' it shows 'Tx-Power=398 dBm'.
Related
I have been using Connectbot to forward a local port (higher than 1024) to a remote mail server, on my Android phone, and it has worked well. After I rooted my Nook Tablet, I used the same settings as on my phone and it worked, but today it no longer works. I can connect to the remote SSH server but Connectbot is not forwarding the ports. I suspect it is a problem with permissions. Is there a way to fix the permissions for Connectbot so it can forward ports?
Another possible problem is that my Nook does not (it seems) know what 'localhost' means. I even tried 127.0.0.1 in a terminal and the terminal could not find it. This might be the actual problem causing port forwarding to fail, but it was working earlier and just stopped working.
BTW the same setup still works on the phone so I know the remote host is not the issue.
OK for fix permissions you could try the option for that in CWM recovery if you have it installed. You could change permissions by using root explorer or ES file explorer apps too but im not sure which files you should fix, but you can try giving more permissions to the Connectbot app and change owner to root aswell if you dont know how to do it check this how to made by me.
About the localhost address adfree app that i use to get rid of advertisings use 127.0.0.1 ip to install hosts, make sure you have installed busybox that means open busybox app and verify that you have busybox 19.x.x installed, if not then install it.
~ Veronica
I will check but I am almost certain I have Busybox installed. I went to a cafe and my setup works, it just does not work at the library where they do NOT block port 443 and I am able to do port forwarding at the library on Linux (OpenSSH) and also Windows (with Proxifier).
I think it might be a DNS problem which can be addressed within ConnectBot, and this setup was working last week at the library. I will check the things you mentioned in your reply. Thanks
BTW, it does not appear to be permissions related, since I am able to do port forwarding on ConnectBot when at an open access point (no credentialed login required).
[SOLVED]
Thanks for your help. I installed the "Hosts" host file editor and then added the localhost to it. I suspect that the ROM Toobox app might have removed the localhost when it added 3 addresses to the hosts file (at my request). When I used the hosts file editor to add "localhost", it removed those additions made by the ROM Toolbox. I will have to look into this and make sure that when I add entries, the old entries do not disappear.
ConnectBot is now forwarding ports again at the library, after this fix.
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.
My Samsung Galaxy S4 mini is rooted and I have terminal running successfully. Whereas on my linux VPS I would use the locate command to find things (such as the ping application in my case) but it does not work and I have no idea how I can find the ping executable. I want to make sure it can be run by other apps because I recently installed an app called Fing and it says if your phone is rooted to make sure ping is runnable, which I assume means doing a chmod so that everyone can execute it. But I cannot locate where it is and my googling has not turned up any path location data on the ping executable.
I would appreciate some info on this.
Thanks.
Ok trial and error I found the executable in /system/xbin but it's permissions are all rwx for all 3 types yet the app still cannot execute a ping. How do I make ping "runnable" without root?
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:
Hello all,
As I'm not allowed to post in development forum due to low post count, this seems to me the ideal place. I have a custom USB WiFi stick that I need to use with my Android phone. I was able to build to build the driver module in the kernel and the device drivers are detected as well. I have verified it using dmesg as well as there is a light on stick that turns green when the drivers are recognized and firmware is loaded.
However, I am unable to see the WiFi for the USB stick (which have it's own AP) in the list of available WiFis on my mobile device. I tried to Google it on the Internet, but there is limited help available. One possible solution I found is to disable wlan0 interface which I tried in adb shell using command:
ifconfig wlan0 down
However, I was unable to run this command in adb shell. Can someone tell how to disable or turn off wlan0 interface in Android using adb shell?
Also, are there any other possible solutions to the problem I stated?
Thank you.