• adb调试小计


    adb pull <手机路径> <本机路径> 从手机中拉取信息到本地电脑上
    adb push <本机路径> <手机路径> 从本地电脑推送信息到手机上
    adb shell //登陆设备shell 亦可连用 如: adb shell cd /sdcard
    adb reboot [bootloader|recovery] //启动手机到bl或rec界面
    adb logcat|grep ActivityManager //操作手机捕获activity
    adb shell am start -n com.android.settings/com.android.settings.Settings //am 启动activity
    adb shell am start -a android.intent.action.VIEW -d http://www.baidu.com //打开某个网址
    -d <DATA_URI>
    -n 直接启动一个组件
    -t <MIME_TYPE> INTENT MIME TYPE
    -c [-c ] ...]:指定Intent category android.intent.category.APP_SEND
    adb shell dumpsys activity top //获取当前activity信息
    adb shell dumpsys window windows | findstr Current //获取长天activity信息
    adb shell input text test 9999 //输入9999文本
    adb shell input keyevent 4 //返回
    adb shell input keyevent 66//确定
    adb shell input keyevent 67//删除
    adb shell input keyevent 26//电源键
    adb shell input keyevent 224 //点亮屏幕
    adb shell input keyevent 223 //熄灭屏幕
    adb shell input tap 100 100 //点击坐标
    adb shell input swipe 100 100 700 100 //滑动
    adb shell input swipe 100 100 100 100 1000 //长按1秒 100,100
    su
    setprop service.adb.tcp.port 5555 //wlan连接adb 需root
    adb usb // 切换usb模式
    pm list packages //列出所有安装的应用 -s 系统 -3 第三方 -u 含卸载
    adb shell pm list packages nokia //筛选包含字符串
    adb install app.apk //安装应用 -r 应许覆盖 -s 到sdcard -g 授予全部运行权限
    adb shell pm clear <package name> //清除应用数据与缓存
    adb shell dumpsys activity activities | grep mFocusedActivity//查看当前activity
    adb shell pm path <package name>//查看应用安装路径
    adb pull <remote> <local>
    adb pull <local> <reomte> //设备间传文件
    adb shell rm <file or directory> //删除文件或目录 -f 强制 -r 强制+递归 -i 交互
    adb shell ping so.com -c 4 //ping so.com 四次
    adb shell ip -f inet addr show wlan0 //查看wifi ip -f 强调使用的协议种类(包括:inet、inet6或者link)
    adb shell wm size //输出设备分辨率
    adb shell dumpsys window displays //显示显示屏参数
    adb shell settings get secure android_id //查看设备id
    adb shell dumpsys iphonesubinfo //设备imei
    adb shell cat /sys/class/net/wlan0/address //查看设备mac
    adb shell getprop persist.sys.isUsbOtgEnabled //查看是否支持ogt
    adb shell settings put global policy_control <key-value>//控制状态栏和都导航栏隐藏
    key :
    immersive.full #同时隐藏
    immersive.status /#状态栏
    immersive.navigation #导航栏
    value :
    apps # 全部应用
    * #所有界面
    package-name #指定应用
    -package-name #排除应用可用 ',组合排除多个应用
    adb shell settings put global policy_control immersive.full=* //所有页面都隐藏状态栏和导航栏
    adb exec-out screencap -p > img.png //截图传回
    adb shell
    su
    cat /data/misc/wifi/*.conf //查看链接过的wifi密码
    adb root
    adb shell svc wifi <enable or disable> //开启或关闭wifi
    adb reboot recovery //重启到recovery模式
    adb reboot //由recovery 到 android
    adb reboot bootloader //启动到fastboot 模式
    adb sideload <path-to-update.zip> //rec模式推包更新系统

  • 相关阅读:
    passwd: Have exhausted maximum number of retries for service
    将单个文件上传到多机器工具
    leetcode-Jump game II
    LeetCode--Combination Sum --ZZ
    Leetcode- Find Minimum in Rotated Sorted Array-ZZ
    leetcode-permutation sequence
    leetcode-next permutation
    LeetCode-Subsets ZZ
    leetcode-Restore IP Addresses-ZZ
    leetcode-palindrome partitioning-ZZ
  • 原文地址:https://www.cnblogs.com/feiyucha/p/12943320.html
Copyright © 2020-2023  润新知