LoginSignup
6
10

More than 5 years have passed since last update.

adbコマンドでAndroidをWiFiに接続設定する

Last updated at Posted at 2017-07-20

adb connect でAndroidに接続する

$ adb connect Android.local
connected to Android.local:5555

adb shell で中に入る

$ adb shell

WiFiのSSIDを登録する

$ am startservice \
    -n com.google.wifisetup/.WifiSetupService \
    -a WifiSetupService.Connect \
    -e ssid xxxxxxxxx \
    -e passphrase xxxxxxxxx

xxxxxxxxxにはそれぞれ、SSIDとパスフレーズを設定します。

ipを確認

$ ip addr show
6
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
10