android adb 常用命令

消除手机 wifi 感叹号

方法一

settings put global captive_portal_http_url https://www.google.cn/generate_204
settings put global captive_portal_https_url https://www.google.cn/generate_204
settings put global ntp_server 1.hk.pool.ntp.org

方法二

// (以下办法支持安卓8.1/8.0/7.1.2/7.1.1)
adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204

// (以下办法支持安卓7.1/7.0)
adb shell settings delete global captive_portal_server  
adb shell settings put global captive_portal_detection_enabled 0

// (以下办法支持安卓6.0/5.0)
adb shell settings put global captive_portal_server www.g.cn

查看手机内核架构

getprop ro.product.cpu.abi

获取所有 apk 包名

adb shell pm list package -f

获取当前页面包名

adb shell dumpsys activity activities
adb shell dumpsys window | findstr mCurrentFocus

adb 服务

// 结束adb服务
adb kill-server

// 启动adb服务
adb start-server

adb shell 常见问题

Read-only file system

重新挂载目录

// 设置为读写
mount -o remount rw /system

// 设置为只读
mount -o ro,remount /system

最后

持续收集,更新

暂无评论
本文作者:
本文链接: https://www.qinless.com/?p=367
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 qinless 的博客!
100

发表评论

返回顶部