How to set wifi to Android Things without an ethernet cable or adb [closed]

放肆的年华 提交于 2019-11-28 10:09:48

You should be able to add your wifi configuration at the end of /data/misc/wifi/wpa_supplicant.conf.

network={
    ssid="SSID"
    key_mgmt=WPA-PSK
    psk="PASSPHRASE"
}

This should be located on the data (ext4) partition of the sdcard (for me /dev/sdb15)

You can use:

adb connect Android.local

to connect to Android Things PC (Raspberry PI3) and then just set up your WiFi like described in Android Things tutorial:

$ adb shell am startservice \
    -n com.google.wifisetup/.WifiSetupService \
    -a WifiSetupService.Connect \
    -e ssid <Network_SSID> \
    -e passphrase <Network_Passcode>

https://developer.android.com/things/hardware/raspberrypi.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!