adb shell一些有用的命令

网络相关

WIFI相关

开启WIFI

1
adb shell cmd -w wifi set-wifi-enabled enabled

扫描WIFI

1
adb shell cmd -w wifi start-scan

列出WIFI扫描结果

1
adb shell cmd -w wifi list-scan-results

列出当前保存的WIFI列表

1
adb shell cmd -w wifi list-networks

连接指定的WIFI

1
adb shell cmd -w wifi connect-network home-wifi wpa2 password

移动安全相关

监控目录下文件事件

1
2
inotifywait -r -m /path/to/directory # 监控所有事件
inotifywait -r -m -e create /path/to/directory # 监控特定事件

使用Magisk root允许所有进程调试

参考:https://danylokos.github.io/0x02/

1
2
# magisk resetprop ro.debuggable 1
# stop; start
Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2015-2024 Kaisar
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信