By default, you can get a remote shell on you smartwatch with SSH over RNDIS. On some smartwatches, it is also possible to use SSH with Wi-Fi.

By default, USB Moded set up udhcpd so that your watch gets the 192.168.2.15 IP address on its rndis interface. You can then connect to your watch from your computer with the following command:

ssh ceres@192.168.0.133

Dropbear is already running on the watch so we just need an IP address configured to connect.

Ensure wireless drivers are enabled for the watch.

Build your asteroid-image with iproute2 and wpa-supplicant. In meta-{watch}-hybris/conf/machine/{watch}.conf add iproute2 and wpa-supplicant to IMAGE_INSTALL:

IMAGE_INSTALL += "android-tools android-system msm-fb-refresher brcm-patchram-plus iproute2 wpa-supplicant"

Once your image is installed on the watch, open up an adb shell:

# mkdir /etc/wpa_supplicant
# cp /etc/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-wlan0.conf
# systemctl enable --now wpa_supplicant@wlan0
# wpa_cli
> scan
> scan_results
> add_network
> set_network X ssid "MYSSID"
> set_network X psk "MYPSK"
> enable_network X
> select_network X
> save_config
# ip a show dev wlan0

The watch should automatically get an IPv6 address from your network or you can set a static IPv4. You can disconnect from adb and connect via SSH.

By default, there is no root or ceres password, and no firewall rules.