• appium 启动日志命令分析


    获取系统api版本

    adb shell getprop ro.build.version.sdk

    获取系统版本

    adb shell getprop ro.build.version.release

    获取手机分辨率

    adb shell wm size

    获取屏幕密度

      adb shell wm density

    获取手机型号

    adb shell getprop ro.product.model

    查看手机厂商

    adb shell getprop ro.product.manufacturer

    停止应用

    adb shell am force-stop io.appium.uiautomator2.server

    列出所有关于指定的包 

    adb shell pm list packages io.appium.uiautomator2.server

    获取安装包的信息

    adb shell dumpsys package io.appium.uiautomator2.server

    列出手机中已安装的instrumentation  

    adb shell pm list instrumentation

    等待设备连接上

    adb wait-for-device

    输出ping 

    adb shell echo ping

    查看手机里正在运行的进程

    adb shell ps

    adb shell am start -W -n io.appium.settings/.Settings -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000

    adb shell appops set io.appium.settings android:mock_location allow

    安装包 adb insatll 包

    获取系统默认输入法

    adb shell settings get secure default_input_method

    adb shell ime enable io.appium.android.ime/.UnicodeIME

    adb shell ime set io.appium.android.ime/.UnicodeIME

    pc上所有8200端口重定向到手机的6790端口 

    adb forward tcp:8200 tcp:6790

    删除json文件

    adb shell rm -rf /data/local/tmp/strings.json

    列出对应包名的所在位置

    adb shell pm path com.xueqiu.android

    将指定包拷贝到指定pc的临时目录下

    adb pull /data/app/com.xueqiu.android-2/base.apk C:\Users\ADMINI~1\AppData\Local\Temp\com.xueqiu.android.apk

    将pc上的json文件推送到手机上 

    adb push C:\Users\ADMINI~1\AppData\Local\Temp\com.xueqiu.android\strings.json /data/local/tmp

    清除数据和缓存

    adb shell pm clear com.xueqiu.android

    adb shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner

    获取当前活动窗口的信息

    adb shell dumpsys window

    获取设备上Unix域套接字信息 

    adb shell cat /proc/net/unix

  • 相关阅读:
    zoj 3279 线段树 OR 树状数组
    fzu 1962 树状数组 OR 线段树
    hdu 5057 块状链表
    hdu3487 Play with Chain
    bzoj 1588营业额统计(HNOI 2002)
    poj2823 Sliding Window
    poj2828 Buy Tickets
    poj2395 Out of Hay
    poj3667 Hotel
    poj1703 Lost Cows
  • 原文地址:https://www.cnblogs.com/xiaoyii/p/9832677.html
Copyright © 2020-2023  润新知