Commit Graph

9 Commits

Author SHA1 Message Date
Will Greenberg
4e862841b3 serial: use vendored rusb 2024-10-22 14:46:40 -07:00
will
78d33b2cff serial: claim USB interface
Without doing this, it seems macOS can't use any interface endpoints.
Also disconnect any kernel extensions that're using the interface,
since that can cause issues on macOS as well.
2024-10-18 09:43:12 -07:00
Will Greenberg
7cbb3369d8 serial: when rooting, don't panic if device is already rooted 2024-08-05 09:57:09 -07:00
Will Greenberg
65e1cd4967 serial: split out --root process, don't wait for reboot, update usage text
We need to wait for atfwd_daemon to startup before sending any AT
commands, and I can't think of a way to reliably do that within rust.
So, instead of trying to switch the device to command mode before
executing a command, require the user to run the "--root" step
beforehand, and then start executing AT commands.
2024-08-05 09:57:09 -07:00
Cooper Quintin
5c4bd161fa fix timeout bug in rooting script and update docs 2024-08-02 14:45:55 -07:00
Cooper Quintin
0ad60ef8bb starting docs 2024-02-02 16:31:24 -08:00
Matthew Garrett
23edacc877 Make more idiomatic 2024-01-10 20:28:14 -08:00
Matthew Garrett
ea84d74f9d Some fixes
Ensure the mode switch works, and handle broken pipe failures. Also handle
devices that are in diag+rndis mode.
2024-01-10 15:13:28 -08:00
Matthew Garrett
4d39248bf9 Add bootstrapping support
Add tools for launching a root shell on the device, and for sending
serial commands to the device. Extend the make.sh script to push those
and configure a root shell. Commands can now be executed as root via:

adb shell rootshell -c \"touch /tmp/test\"

allowing automatic configuration of the tooling.
2024-01-07 19:45:15 -08:00