Connecting to WiFi using adb shell

前端 未结 6 755
Happy的楠姐
Happy的楠姐 2020-11-27 04:45

I have all the details to connect to a particular access point. I have to use that access point only, so all I require is the command to do it.

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 05:19

    super late but i hope this'll help anybody who may stumble upon this thread.

    if you're trying the adb pull method but received "remote object does not exist", try this:

    in the same command prompt box,

    • type adb root to restart adb as root. click enter.
    • Now type adb shell, click enter. makes sure the prompt shows root@[device]:
    • At the # prompt type cd /data/misc/wifi click enter.
    • Lastly type cat wpa_supplicant.conf click enter.

    this should dump data of WiFi you've previously connected to on your phone, to your pc screen.

    these commands worked on my unrooted device after running into the “remote object does not exist” issue.

提交回复
热议问题