zoukankan      html  css  js  c++  java
  • adb命令

    adb devices 查看设备编号
    adb install 路径 安装apk
    adb uninstall 包名 卸载apk
    adb shell pm list packages 罗列出所有的包
    -s 系统包名
    -3 三方的包名
    adb shell dumpsys cpuinfo 查看当前移动端的cpu的使用率
    -包名 查看当前app cpu的使用率
    adb shell getprop | findstr dalvik 查看本机内存使用率
    adb shell dumpsys meminfo +包名 查看当前app 内存的使用率
    adb shell dumpsys activity | findstr "mFocusedActivity" 查看当前的app的包名以及启动项


    adb locat 查看手机日志

    logcat -v time process >C:/log/aa.txt 打印日志并保存到本机

    adb -s 设备名称 logcat -v time process >C:/log/aa.txt 指定设备进行打印

    V —— Verbose(最低,输出得最多)
    D —— Debug
    I —— Info
    W —— Warning
    E —— Error
    F —— Fatal
    S —— Silent(最高,啥也不输出)
    adb logcat *:W 过滤日志 含w以及w以上的日志

    adb -s 设备名称 logcat *:w -v time process >C:/log/aa.txt 指定设备进行打印

  • 相关阅读:
    scp远程文件传输
    ssh远程登录
    PHP PDO使用
    Linux引导流程
    Samba服务器搭建
    linux ftp服务器搭建
    NfS服务的搭建
    Discuz! X2.5数据库字典【转载】
    javaSctipt基础
    压缩文件 compress files 以7z 格式及解压 或者别的格式
  • 原文地址:https://www.cnblogs.com/wangxudong01/p/14066147.html
Copyright © 2011-2022 走看看