Android
Package Manager
获取列表
$ adb shell pm list packages --user 0
获取 package 安装路径
$ adb shell pm path com.google.android.webview
Telnet
$ nc localhost 5554
Networking
$ network status
$ network speed 128 128
$ network delay 500
Screen Capture
$ adb exec-out screencap -p > `date +%Y%m%d%H%M%S`".png
Port Forward
查看
$ adb forward --list
配置
$ adb forward tcp:9999 tcp:8888
删除
$ adb forward --remove tcp:9999
Captive Portal
获取
$ adb shell "settings get global captive_portal_mode"
$ adb shell "settings get global captive_portal_http_url"
$ adb shell "settings get global captive_portal_https_url"
清理
$ adb shell "settings delete global captive_portal_mode"
$ adb shell "settings delete global captive_portal_http_url"
$ adb shell "settings delete global captive_portal_https_url"
禁用
$ adb shell "settings put global captive_portal_mode 0"
配置 URL
$ adb shell "settings put global captive_portal_http_url http://connectivitycheck.platform.hicloud.com/generate_204"
$ adb shell "settings put global captive_portal_https_url https://connectivitycheck.platform.hicloud.com/generate_204"