Note: The other answer involves using
adb, but actually there is no need to use
adb at all or any other tools. This is with Android 12.
Here are the steps:
- Connect your tablet to your PC via the USB cable.
- On your tablet USB settings select "USB Tethering" (as opposed to "USB for file transfer")
- On your linux machine, use
ifconfig to find the ip address for your PC on the USB tether network, it should look something like this (in this case the ip address is
usb0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.246.113 netmask 255.255.255.0 broadcast 192.168.246.255
- Start Weylus
- On your tablet connect to the ip address from above and port
1701, for example
Pro-tip: if your tablet is connected via
usb0, you can get Weylus to automatically display the QR code for the correct ip address with
weylus --bind-address $(ifconfig usb0 | grep -oP 'inet \K[^ ]+').