`
isiqi
  • 浏览: 16483353 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

ADB Command

阅读更多

Android Debug Bridge version 1.0.20

-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s - directs command to the USB device or emulator with
the given serial number
-p - 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 push - copy file/dir to device
adb pull - copy file/dir from device
adb sync [ ] - copy host->device only if changed
(see 'adb help all')
adb shell - run remote shell interactively
adb shell - run remote shell command
adb emu - run emulator console command
adb logcat [ ] - View device log
adb forward - forward socket connections
forward specs are one of:
tcp:
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-l] [-r] - push this package file to the device and install it
('-l' means forward-lock the app)
('-r' means reinstall the app, keeping its data)
adb uninstall [-k] - remove this app package from the device
('-k' means keep the data and cache directories)
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

scripting:
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:
adb get-serialno - prints:
adb status-window - continuously print device status for a specified device
adb remount - remounts the /system partition on the device read-write

networking:
adb ppp [parameters] - Run PPP over USB.
Note: you should not automatically start a PDP connection.
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 [ ]
can be interpreted in several ways:

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

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

分享到:
评论

相关推荐

    adb command 1.0.32 in AndroidM

    在"adb command 1.0.32 in Android M"这个主题中,我们将深入探讨在这个特定版本的Android(即Android M,也称为Android 6.0)中,adb命令的更新和增强,以及附带的库文件如AdbWinApi.dll和AdbWinUsbApi.dll的作用。...

    adb command test script

    这个"adb command test script"很可能是一个用Python编写的脚本,用于自动化执行一系列adb命令,以测试Android设备或模拟器的状态、功能或性能。 在Android开发中,adb命令非常关键,它们可以实现以下功能: 1. **...

    adb command 1.0.32

    在"adb command 1.0.32 for windows PC"中,我们关注的是适用于Windows平台的adb版本1.0.32。这个版本包含了三个关键文件:AdbWinApi.dll、AdbWinUsbApi.dll和adb.exe。 AdbWinApi.dll和AdbWinUsbApi.dll是adb在...

    adb command 1.0.29

    总的来说,adb command 1.0.29是Android开发者必备的工具之一,它提供了丰富的功能来支持开发、调试和设备管理,而Windows PC版本的更新确保了在该平台上的良好运行效果。正确理解和熟练运用adb,能显著提高Android...

    adb command 1.4.0

    总结来说,adb command 1.4.0是针对Android N优化的一个版本,它提供了丰富的功能,让开发者能够高效地控制和调试Android设备。通过理解并熟练掌握adb的各种命令,开发者可以极大地提高工作效率,无论是日常开发、...

    android adb command

    10. **多设备管理**:如果你有多个设备连接,可以通过设备的序列号指定特定设备,如`adb -s SERIALNO command`。 以上只是ADB命令的一部分,实际上它包含的功能远不止这些,如调试网络、监控端口、远程调试等。熟练...

    adb command 1.0.31

    adb(Android Debug Bridge)是Android开发工具包中的一个重要组成部分,用于连接和管理Android设备或模拟器。1.0.31版本是adb的一个特定发行版,适用于Windows PC平台。这个版本可能包含了对某些功能的更新、修复...

    python 通过adb 查看Android系统状态脚本

    speed = run_adb_command("some adb command to get network speed") return speed while True: network_speed = get_network_speed() # 将网络速度发送到Wireshark.py send_to_wireshark(network_speed) ...

    ADB_Command_Tools

    echo ┃1 重启系统 adb reboot ┃ echo ┣━━━━━━━━━━━━━━━━━━━━━━┫ echo ┃2 重启至Recovery模式 adb reboot recovery ┃ echo ┣━━━━━━━━━━━━━━━━━━━━━━┫ echo ┃3 ...

    android_adb_command

    android adb桥连接命令.附件中是常用的android命令

    adb 1.0.41 and fastboot

    adb command 1.4.1 Android P(android 9.0), it's used for PC to control phone fastboot is used to flash SW image to the phone

    C#调用adb传输和推送数据到安卓设备上.zip

    throw new Exception($"ADB command failed with exit code: {process.ExitCode}"); } } } catch (Exception ex) { Console.WriteLine($"Error pushing file: {ex.Message}"); } } // 使用方法 ...

    Android代码-Mount

    App Mount mount/umount apps that you don't like on Android, without root. mount: available for use as normal. ...Run adb command below in your computer, once and for all: 在电脑上运行如下 adb

    易语言 调试安卓手机 adb简单实例 adb

    `adb -s <device_serial> <command>`命令允许你指定设备执行特定操作。通过`adb devices`列出所有连接的设备,然后根据序列号进行选择。 总的来说,易语言与ADB的结合,使得安卓设备的调试工作变得更加便捷。无论是...

    mobile_adb_command.exe

    edited by autoit, control the mobile phone, adb send command, no apk install.

    SuroADB Lite:Windows的简单ADB(Android调试桥)命令执行GUI。-开源

    https://github.com/nicamoq/SuroADB-Lite SuroADB Lite完全批量生产,是一种ADB Command Execution GUI,它以CMD新手可用的方式使用ADB Command Line程序。 最新更新:SuroADB Lite 2.6 [1/1/21]-添加了设置以输入...

    adb命令大全.zip

    1. **多设备管理**:当有多个设备连接时,可以使用`-s`选项指定目标设备,如`adb -s <device serial> <command>`。 2. **端口转发**:`adb forward <local> <remote>` 可以将本地端口的数据转发到设备上的远程端口,...

    WindowsXP平台下ADB的安装与使用

    "WindowsXP平台下ADB的安装与使用" 以下是关于WindowsXP平台下ADB的安装与使用的详细知识点: 1. 安装驱动:在安装ADB之前,需要将手机和电脑连接起来,并安装好USB驱动。在Android SDK包中,驱动位于usb_driver...

    adb1.0.41 (最新版)

    - 当连接多个设备时,可以通过设备序列号或设备名来指定特定设备,例如`adb -s <device_id> <command>`。 5. **无线连接**: - 如果需要无线连接设备,可以在设备和电脑上都开启相同网络,并通过`adb tcpip 5555`...

Global site tag (gtag.js) - Google Analytics