abd url scheme
adb shell am start -W -a android.intent.action.VIEW -d "URL Scheme" "包名"
模拟开机启动:
android 7.0以下:
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED
android 7.0以上:
adb shell sm set-emulate-fbe false
adb获取手机dns
adb shell getprop net.dns1
adb获取手机的ip
adb shell netcfg
adb 获取mac地址
adb shell cat /sys/class/net/wlan0/address
adb wifi调试
1、首先调试的设备连接上电脑的wifi,获取到wifi的IPv4的地址,比如说电脑的IPv4是192.168.1.5;
2、手机通过数据线连接电脑,在cmd上面adb devices确定设置以及连接;
3、输入adb tcpip 5555
4、再输入 adb connect 192.168.1.5
就能通过adb网络调试了