zoukankan      html  css  js  c++  java
  • android-adb

    ADB  

    Android Debug Bradge

    参考:http://developer.android.com/tools/help/adb.html

    命令

      adb devices 设备列表

      adb version adb版本

      adb logcat

      adb install [-lrtsd] <file>

      adb install-multiple [-lrtsdp] <file...>

                                   - push this package file to the device and install it

                                     (-l: forward lock application)

                                     (-r: replace existing application)

                                     (-t: allow test packages)

                                     (-s: install application on sdcard)

                                     (-d: allow version code downgrade)

                                     (-p: partial application install)

      adb uninstall [-k] <package> - remove this app package from the device

                                     ('-k' means keep the data and cache directories)

     

      adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port

      adb wait-for-device          - block until device is online

      adb start-server             - ensure that there is a server running

      adb kill-server              - kill the server if it is running

      adb forword

     

    命令:
    adb forward tcp:6100 tcp:7100 // PC上所有6100端口通信数据将被重定向到手机端7100端口server上

    或者
    adb forward tcp:6100 local:logd // 
    PC上所有6100端口通信数据将被重定向到手机端UNIX类型socket上

    Wireless usage

    $ adb tcpip 5555
    $ adb connect <device-ip-address>
    $ adb devices
    List of devices attached
    <device-ip-address>:5555 device

  • 相关阅读:
    最大连续子数组问题之一维数组
    敏捷开发读后感
    第一次作业总结
    OS X(10.10) python3.4 matplotlib的安装
    XCODE 6.1.1 配置GLFW
    python装饰器(decorator)
    Android实现Service永久驻留
    软件项目管理第2次作业:豆瓣测评
    软件项目管理第1次作业:四则运算生成器
    软件项目管理第0次作业:如果一定要改变世界的话,为什么不用最酷的方式呢
  • 原文地址:https://www.cnblogs.com/wjw334/p/4949961.html
Copyright © 2011-2022 走看看