Thinking in XiaoQiang
          世人皆有悲哀,只有你不明白
          posts - 56,comments - 150,trackbacks - 0

          Android Debug Bridge version 1.0.18

           -d <device number>            - directs command to a specific device
           -p <product name or path>     - simple product name like 'sooner', or
                                           a relative/absolute path to a product
                                           out directory like 'out/target/product/sooner'.

                                           If -p is not specified, the ANDROID_PRODUCT_OUT

                                           environment variable is used, which must
                                           be an absolute path.
           devices                       - list all connected devices

          device commands:
            adb update DATAOPTS <file>   - Flash the specified update file.
                                           If file is not passed, update.zip is used.
            adb push <local> <remote>    - copy file/dir to device
            adb pull <remote> <local>    - copy file/dir from device
            adb sync [ <localdir> ]      - copy host->device only if changed
                                           (see 'adb help all')
            adb shell                    - run remote shell interactively
            adb shell <command>          - run remote shell command
            adb logcat [ <filter-spec> ] - View device log
            adb forward <local> <remote> - forward socket connections
                                           forward specs are one of:
                                             tcp:<port>
                                             local:<unix domain socket name>
                                             dev:<character device name>
                                             jdwp:<process pid> (remote only)
            adb jdwp                     - list PIDs of processes hosting a JDWP transport

            adb install <app>            - push this app to the data partition
            adb bugreport                - return all information from the device
                                           that should be included in a bug report.

            adb help                     - show this help message
            adb version                  - show version num

          DATAOPTS:
           (no option)                   - don't touch the data partition
            -w                           - wipe the data partition
            -d                           - flash the data partition

          bootloader commands:
            adb flashall DATAOPTS        - reflash the device from the build output tree
            adb flash [<name>] [<file>]  - write to flash
            adb send <name> <file>       - write to ram
            adb debug                    - listen to bootloader debuglog
            adb bl <command>             - send raw bootloader command

          scripting:
            adb wait-for-bootloader      - block until bootloader is online
            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 get-state                - prints: offline | bootloader | device
            adb get-product              - prints: <product-id>
            adb get-serialno             - prints: <serial-number>

          networking:
            adb ppp <tty> [parameters]   - Run PPP over USB.
           Note: you should not automatically start a PDP connection.
           <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
           [parameters] - Eg. defaultroute debug dump local notty usepeerdns

          adb sync notes: adb sync [ <localdir> ]
            <localdir> can be interpreted in several ways:

            - If it not specified, both /system and /data partitions will be updated.

            - If it is "system" or "data", only the corresponding partition
              is updated.

            - If it is a path to a local directory, the name is examined to see if
              it points to a directory named ".../system" or ".../data", or if
              the directory contains subdirectories with those names.  If so, it pushes
              the appropriate directory/ies to the device.

            - If the name of the local directory does not match ".../system" or
              ".../data", it is treated like an "system" directory.

            - If <localdir> points to a nonexistent directory, adb sync will fail.

          posted on 2008-06-03 17:36 小強 閱讀(1051) 評論(0)  編輯  收藏 所屬分類: google-android
          主站蜘蛛池模板: 隆安县| 九寨沟县| 黔江区| 绥中县| 乌鲁木齐市| 新邵县| 中西区| 芷江| 巴青县| 保德县| 河西区| 文水县| 济阳县| 瑞昌市| 山西省| 棋牌| 随州市| 嫩江县| 四川省| 崇明县| 盐源县| 浦江县| 武鸣县| 观塘区| 孝义市| 德州市| 毕节市| 阳高县| 金寨县| 南充市| 班玛县| 化德县| 尚志市| 双鸭山市| 祁阳县| 普定县| 遂宁市| 阜阳市| 新沂市| 福贡县| 泸定县|