I just bought and flashed my device, but USB tethering is not working after installing Rayhunter. I have tethering enabled in the device settings, and I ran this command from the guide: ./installer util shell "echo 9 > /usrdata/mode.cfg", which returns the below error:
error: unexpected argument 'echo 9 > /usrdata/mode.cfg' found
Usage: installer util shell
For more information, try '--help'.
Instead, I was able to drop a shell to the device by running ./installer util --orbic-shell --admin-password 'mypassword', then run echo 9 > /usrdata/mode.cfg and rebooting the device. When it restarts, USB tethering is not working. I really want to get USB tethering to work so I can completely disable WiFi on my device to save some battery and keep from broadcasting a WiFi network everywhere I go.
Edit: I THINK my issue is due to an older firmware version that may not work with tethering. On the other hand, if you flash your device in USB mode and have ADB installed, you can use the below command to forward port 8080 to your local device so you can still access the webUI while plugged in to USB.
adb forward tcp:8080 tcp:8080
Then just go to localhost:8080 in your browser.
if you installed orbic using
./installer orbic(notorbic-usb) that FAQ entry is not relevant. USB tethering should already work out of the box, but if it doesn’t then that’s an issue with the stock device that we can’t do much about.I fixed the docs in https://github.com/EFForg/rayhunter/pull/844
Thanks for the doc update! I read somewhere that tethering requires software version 1.2.1 or later, but my device shipped with version 1.2.0. Would updating the firmware to 1.2.1 cause any compatibility issues with Rayhunter?
no, i don’t think so
Well, the update utility didn’t work for me. Apparently it has to specifically be on version 1.1.5 for the utility to work. Otherwise, you have to have an active data connection so you can download the update over LTE. In my testing, even though I flashed the device over WiFi, I am able to run
adb forward tcp:8080 tcp:8080to tunnel the webUI over USB to my laptop, which is good enough for me. The issue is, when I runadb shellto get a shell on the device, then run/bin/rootshell -c "sed -i 's/<wlan><Feature><state>1<\/state>/<wlan><Feature><state>0<\/state>/g' /usrdata/data/usr/wlan/wlan_conf_6174.xml && reboot"to try and disable WLAN, I get this error:/bin/sh: /bin/rootshell: not found, presumably since I didn’t flash the device with ADB in the first place. Not sure how to go about switching to ADB mode, as when I run the installer with theorbic-usboption, I get an error.if you used the orbic installer then you are already root. you can run the sed and reboot commands directly
When I run the SED command in
adb shellI get this error.I have also tried to edit the file directly in VI, but I get a permission denied message when trying to save it.
can you try to remount the system partition like so:
mount -o remount,rw /system– or maybe the/path.I must be root.
oh this is adb shell. you’d have to run that over
./installer util orbic-shellwhere you will infact be rootI tried running the SED command from the
orbic-shellas well, but it didn’t work. Since that shell doesn’t give you feedback, I went back to the adb shell and looked at the file and confirmed that it had not changed.Also, if I disable the WLAN while connected to the WLAN, and being connected to the WLAN is the only way to re-enable WLAN, that would be a bit of an issue. I don’t really ever plan on using the WLAN on the device, but I think I would need that access to update Rayhunter in the future.
I uninstalled Rayhunter, then reinstalled using USB mode so I could get a root ADB shell. It would be nice if there was a way to “upgrade” from the standard WiFi installer to USB mode. Best I can tell, all it really does extra is copy over the
rootshellfile into/bin. Right now, if you run the USB installer, you just get an error.I THINK my issue is my older firmware version. I am on version 1.2.0, and I came across an article that mentioned that USB tethering is only possible in version 1.2.1 and newer. Verizon has a webpage that mentions a firmware update tool, but that tool appears to specifically only work if your device is on version 1.1.5, which must be the case because it repeatedly failed for me, and it is Windows only (barf). Since my device does not have an active cellular connection, I am unable to use the built in tools to update the firmware. If anyone knows of an alternate way to update that does not require a cellular connection, please let me know. Otherwise, I did order a SIM from Telnyx, mainly to use for nfty, but I was going to try upgrading the firmware that way (likely at great expense, since data is charged per-mb).