精华内容
下载资源
问答
  • adb.rar解压到c盘根目录下,确保解压的2个文件在C:\adb目录下。 ...这时候重新打开命令行 进去点击adb shell进入Android 里面的输入首字母 按tab键 就可以补全对应字符了
  • Qt5开发安卓调试工具(adb shell input以及adb shell screencap应用) 文章目录Qt5开发安卓调试工具(adb shell input以及adb shell screencap应用)一、前言二、技术点三、技术点实现及坑点记录1、QProcess执行...
  • adb shell常用命令.txt

    2019-07-31 16:56:22
    adb常用的命令,希望可以帮助到更多的朋友
  • adb shell命令大全

    2018-05-28 09:10:50
    1.开发中实用的各种adb大全 ,附带例子讲解 2.各种不常见但是也会很有用的adb shell命令
  • 下载adb.rar解压到指定目录 在环境变量配置-->系统变量的Path 里面添加 ;xxx(目录)\adb(adb是解压的目录)
  • adb 旧版本,解决adb shell不兼容错误(adb server version (31) doesn't match this client (40); killing...)
  • adb shell 工具 iperf全平台工具(Android 、Windows、Linux)
  • ADBShell管道连接类

    2018-02-24 15:29:33
    ADBShell管道连接类_易语言模块_通过管道执行ADBShell命令并取回结果。 一个ADBShell管道连接类模块,实现对ADBShell命令的管道操作,并取回操作结果,不用每次都启动ADB.exe或者CMD.exe。
  • 一个用于在Android开发中 执行adb shell命令的类,可以以最高权限(su)执行。例如mount命令等
  • android执行adb shell命令源码

    千次下载 热门讨论 2014-02-18 13:27:56
    android执行adb shell命令源码,亲测可用!
  • Android adb shell命令详解及实例

    千次阅读 2020-07-21 08:51:09
    Android的内核本身就是Linux,所以Android本身也支持...在手机中执行Shell命令:1) 每次都加上adb shell来进行命令的发送与执行 adb shell <command> 2)获取模拟器所有包名 adb shell pm list packages 3

    Android的内核本身就是Linux,所以Android本身也支持Linux命令,但是因为是手机系统,所以进行了一定的删减,部分命令不支持,而不支持的部分,我们可以通过安装busybox这个软件进行填补。

    认识使用android adb命令详解实例

    手机执行Shell命令

    在手机中执行Shell命令:
    1) 每次都加上adb shell来进行命令的发送与执行

    adb shell <command>

    2)获取模拟器所有包名

    adb shell pm list packages

    3)获取模拟器所有包名并且包括APK路径

    adb shell pm list packages -f

    4)获取包名对应的APK路径

    adb shell pm path packageName

    5)清理应用数据

    adb shell pm clear packageName

    6)启动应用

    adb shell am start -n 包名/Activity类名

    例子:启动应用宝:

    adb shell am start -n com.tencent.android.qqdownloader/com.tencent.assistant.activity.SplashActivity

    指定模拟器启动动应用宝:

    adb -s 127.0.0.1:5555 shell am start -n com.tencent.android.qqdownloader/com.tencent.assistant.activity.SplashActivity

    7)关闭应用

    adb shell am force-stop 包名

    8)模拟输入

    adb shell input text 字符串(不支持中文)

    9)模拟按键

    adb shell input keyevent <keycode>键值

    10)模拟鼠标点击

    adb shell input tap X Y

    11)模拟鼠标滑动

    adb shell input swipe X1 Y1 X2 Y2

    12)截屏

    adb shell screencap -p /sdcard/sc.png
     
    adb shell screencap -p /sdcard/text.png

    可以使用 adb shell screencap -h 查看 screencap 命令的帮助信息,下面是两个有意义的参数及含义:

    参数	含义
    -p	指定保存文件为 png 格式
    -d display-id	指定截图的显示屏编号(有多显示屏的情况下)
    实测如果指定文件名以 .png 结尾时可以省略 -p 参数;否则需要使用 -p 参数。如果不指定文件名,截图文件的内容将直接输出到 stdout。

    13)屏幕录像
    例如,屏幕开始录像并且储存到/sdcard中,同时名字为demo.mp4,录制屏幕以 mp4 格式保存到 /sdcard:

    adb shell screenrecord /sdcard/demo.mp4

    需要停止时按 Ctrl-C,默认录制时间和最长录制时间都是 180 秒。
    可以使用 adb shell screenrecord --help 查看 screenrecord 命令的帮助信息,下面是常见参数及含义:

    参数	含义
    --size WIDTHxHEIGHT	视频的尺寸,比如 1280x720,默认是屏幕分辨率。
    --bit-rate RATE	视频的比特率,默认是 4Mbps。
    --time-limit TIME	录制时长,单位秒。
    --verbose	输出更多信息。

    14)关闭设备请求,开启设备

    adb shell stop
    adb shell start

    15)设备关机以及重启

    adb reboot
    adb shutdown

    16)设置手机IMEI/IMSI/手机号/SIM卡序列号(1.7之后版本)

    adb shell setprop phone.imei 865166023949731
    adb shell setprop phone.imsi 460000000000000
    adb shell setprop phone.linenum 13800000000
    adb shell setprop phone.simserial 89860000000000000000

    16)滑动解锁
    如果锁屏没有密码,是通过滑动手势解锁,那么可以通过 input swipe 来解锁。

    命令(参数以机型 Nexus 5,向上滑动手势解锁举例):

    adb shell input swipe 300 1000 300 500

    参数 300 1000 300 500 分别表示起 始点x坐标 起始点y坐标 结束点x坐标 结束点y坐标
    17)查看内核日志

    adb shell dmesg

    查看设备信息

    1)型号

    adb shell getprop ro.product.model

    2)电池状况

    adb shell dumpsys battery

    返回:

    > adb shell dumpsys battery
    Current Battery Service state:
      AC powered: true
      USB powered: false
      Wireless powered: false
      status: 1
      health: 1
      present: false
      level: 100
      scale: 100
      voltage: 0
      temperature: 295
      technology:

    其中 scale 代表最大电量,level 代表当前电量。上面的输出表示还剩下 100% 的电量。
    3)屏幕分辨率

    adb shell wm size

    输出示例:

    Physical size: 1080x1920

    该设备屏幕分辨率为 1080px * 1920px。
    4)屏幕密度

    adb shell wm density

    输出示例:

    Physical density: 420

    该设备屏幕密度为 420dpi。
    5)显示屏参

    adb shell dumpsys window displays

    输出示例:

     
    WINDOW MANAGER DISPLAY CONTENTS (dumpsys window displays)
      Display: mDisplayId=0
        init=1080x1920 420dpi cur=1080x1920 app=1080x1794 rng=1080x1017-1810x1731
        deferred=false layoutNeeded=false

    其中 mDisplayId 为 显示屏编号,init 是初始分辨率和屏幕密度,app 的高度比 init 里的要小,表示屏幕底部有虚拟按键,高度为 1920 - 1794 = 126px 合 42dp。
    6)android_id

    adb shell settings get secure android_id

    输出示例:

    51b6be48bac8c569

    7)IMEI
    在 Android 4.4 及以下版本可通过如下命令获取 IMEI:

    adb shell dumpsys iphonesubinfo

    输出示例:

    Phone Subscriber Info:
      Phone Type = GSM
      Device ID = 860955027785041

    其中的 Device ID 就是 IMEI。
    而在 Android 5.0 及以上版本里这个命令输出为空,得通过其它方式获取了(需要 root 权限):

    adb shell
    su
    service call iphonesubinfo 1

    输出示例:

     
    
    service call iphonesubinfo 1
    Result: Parcel(
      0x00000000: 00000000 0000000f 00360038 00310035 '........8.6.5.1.'
      0x00000010: 00360036 00320030 00380039 00330032 '6.6.0.2.9.8.2.3.'
      0x00000020: 00350031 00000033                   '1.5.3...        ')

    把里面的有效内容提取出来就是 IMEI 了,比如这里的是 865166029823153

    参考:adb shell dumpsys iphonesubinfo not working since Android 5.0 Lollipop
    8)Android 系统版本

    adb shell getprop ro.build.version.release

    9)Mac 地址

    adb shell cat /sys/class/net/wlan0/address

    返回:
    f8:a9:d0:17:42:4d
    9)CPU 信息

    adb shell cat /proc/cpuinfo

    10)内存信息

    adb shell cat /proc/meminfo

    其中,MemTotal 就是设备的总内存,MemFree 是当前空闲内存。

    更多硬件与系统属性

    设备的更多硬件与系统属性可以通过如下命令查看:

    1. adb shell cat /system/build.prop

    这会输出很多信息,包括前面几个小节提到的「型号」和「Android 系统版本」等。

    输出里还包括一些其它有用的信息,它们也可通过

    adb shell getprop <属性名> 命令单独查看

    列举部分返回属性:

    属性名	含义
    ro.build.version.sdk	SDK 版本
    ro.build.version.release	Android 系统版本
    ro.build.version.security_patch	Android 安全补丁程序级别
    ro.product.model	型号
    ro.product.brand	品牌
    ro.product.name	设备名
    ro.product.board	处理器型号
    ro.product.cpu.abilist	CPU 支持的 abi 列表
    persist.sys.isUsbOtgEnabled	是否支持 OTG
    dalvik.vm.heapsize	每个应用程序的内存上限
    ro.sf.lcd_density	屏幕密度

    查看连接过的 WiFi 密码

    注:需要 root 权限。
    命令:

    adb shell
    su
    cat /data/misc/wifi/*.conf

    输出示例:

    network={
        ssid="TP-LINK_9DFC"
        scan_ssid=1
        psk="1122334455"
        key_mgmt=WPA-PSK
        group=CCMP TKIP
        auth_alg=OPEN
        sim_num=1
        priority=13893
    }
     
    network={
        ssid="TP-LINK_F11E"
        psk="5544332211"
        key_mgmt=WPA-PSK
        sim_num=1
        priority=17293
    }

    ssid 即为我们在 WLAN 设置里看到的名称,psk 为密码,key_mgmt 为安全加密方式。

    设置系统日期和时间

    注:需要 root 权限。

    命令:

    adb shell
    su
    date -s 20171030.161600

    表示将系统日期和时间更改为 2017 年 10 月 30 日 16 点 16 分 00 秒。
    重启手机

    adb reboot

    检测设备是否已 root

    adb shell
    su

    此时命令行提示符是 $ 则表示没有 root 权限,是 # 则表示已 root。

    开启/关闭 WiFi

    注:需要 root 权限。

    有时需要控制设备的 WiFi 状态,可以用以下指令完成。

    开启 WiFi:

    adb root
    adb shell svc wifi enable

    关闭 WiFi:

    adb root
    adb shell svc wifi disable

    若执行成功,输出为空;若未取得 root 权限执行此命令,将执行失败,输出 Killed

    查看进程

    adb shell ps

    返回:

    USER     PID   PPID  VSIZE  RSS     WCHAN    PC        NAME
    root      1     0     9412   980   00000000 08073a60 S /init
    root      2     0     0      0     00000000 00000000 S kthreadd
    root      3     2     0      0     00000000 00000000 S ksoftirqd/0
    root      5     2     0      0     00000000 00000000 S kworker/0:0H
    root      7     2     0      0     00000000 00000000 S rcu_preempt
    root      8     2     0      0     00000000 00000000 S rcu_sched
    root      9     2     0      0     00000000 00000000 S rcu_bh
    root      10    2     0      0     00000000 00000000 S rcuop/0
    root      11    2     0      0     00000000 00000000 S rcuos/0
    root      12    2     0      0     00000000 00000000 S rcuob/0
    root      13    2     0      0     00000000 00000000 S migration/0
    root      14    2     0      0     00000000 00000000 S watchdog/0
    root      15    2     0      0     00000000 00000000 S watchdog/1
    root      16    2     0      0     00000000 00000000 S migration/1
    root      17    2     0      0     00000000 00000000 S ksoftirqd/1
    root      18    2     0      0     00000000 00000000 S kworker/1:0
    root      19    2     0      0     00000000 00000000 S kworker/1:0H

    列名 含义
    USER 所属用户
    PID 进程 ID
    PPID 父进程 ID
    NAME 进程名

    查看实时资源占用情况

    adb shell top

    输出返回:

      PID PR CPU% S  #THR     VSS     RSS PCY UID      Name
        7  1   0% S     1      0K      0K  fg root     rcu_preempt
     1530  0   0% S    75 1633276K 104552K  fg system   system_server
        3  0   0% S     1      0K      0K  fg root     ksoftirqd/0
        5  0   0% S     1      0K      0K  fg root     kworker/0:0H
        8  0   0% S     1      0K      0K  fg root     rcu_sched
        9  0   0% S     1      0K      0K  fg root     rcu_bh
       10  1   0% S     1      0K      0K  fg root     rcuop/0
       11  0   0% S     1      0K      0K  fg root     rcuos/0
       12  0   0% S     1      0K      0K  fg root     rcuob/0

    列名 含义
    PID 进程 ID
    PR 优先级
    CPU% 当前瞬间占用 CPU 百分比
    S 进程状态(R=运行,S=睡眠,T=跟踪/停止,Z=僵尸进程)
    #THR 线程数
    VSS Virtual Set Size 虚拟耗用内存(包含共享库占用的内存)
    RSS Resident Set Size 实际使用物理内存(包含共享库占用的内存)
    PCY 调度策略优先级,SP_BACKGROUND/SPFOREGROUND
    UID 进程所有者的用户 ID
    NAME 进程名

    其他

     
    命令	功能
    cat	显示文件内容
    cd	切换目录
    chmod	改变文件的存取模式/访问权限
    df	查看磁盘空间使用情况
    grep	过滤输出
    kill	杀死指定 PID 的进程
    ls	列举目录内容
    mount	挂载目录的查看和管理
    mv	移动或重命名文件
    ps	查看正在运行的进程
    rm	删除文件
    top	查看进程的资源占用情况

    参考:ADB Usage Complete / ADB 用法大全

             使用android adb命令详解实例

    原文:  Android adb shell命令详解及实例

    展开全文
  • 运用bat脚本打包logcat、adb shell语句等代码,并克服了进入shell后后续代码无法执行的问题
  • APK程序执行Adb shell 命令 shell与高级语言间的调用
  • 1.在命令行终端执行下面的命令: adb >adb.txt 2>&1 Android Debug Bridge version 1.0.31 -a - directs adb to listen on all interfaces for a connection -d -

    本文博客地址:http://blog.csdn.net/qq1084283172/article/details/64183248


    1.在命令行终端执行下面的命令:

    adb >adb.txt 2>&1


    Android Debug Bridge version 1.0.31
    
     -a                            - directs adb to listen on all interfaces for a connection
     -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 <specific device>          - directs command to the device or emulator with the given
                                     serial number or qualifier. Overrides ANDROID_SERIAL
                                     environment variable.
     -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.
     -H                            - Name of adb server host (default: localhost)
     -P                            - Port of adb server (default: 5037)
     devices [-l]                  - list all connected devices
                                     ('-l' will also list device qualifiers)
     connect <host>[:<port>]       - connect to a device via TCP/IP
                                     Port 5555 is used by default if no port number is specified.
     disconnect [<host>[:<port>]]  - disconnect from a TCP/IP device.
                                     Port 5555 is used by default if no port number is specified.
                                     Using this command with no additional arguments
                                     will disconnect from all connected TCP/IP devices.
    
    device commands:
      adb push [-p] <local> <remote>
                                   - copy file/dir to device
                                     ('-p' to display the transfer progress)
      adb pull [-p] [-a] <remote> [<local>]
                                   - copy file/dir from device
                                     ('-p' to display the transfer progress)
                                     ('-a' means copy timestamp and mode)
      adb sync [ <directory> ]     - copy host->device only if changed
                                     (-l means list but don't copy)
                                     (see 'adb help all')
      adb shell                    - run remote shell interactively
      adb shell <command>          - run remote shell command
      adb emu <command>            - run emulator console command
      adb logcat [ <filter-spec> ] - View device log
      adb forward --list           - list all forward socket connections.
                                     the format is a list of lines with the following format:
                                        <serial> " " <local> " " <remote> "\n"
      adb forward <local> <remote> - forward socket connections
                                     forward specs are one of: 
                                       tcp:<port>
                                       localabstract:<unix domain socket name>
                                       localreserved:<unix domain socket name>
                                       localfilesystem:<unix domain socket name>
                                       dev:<character device name>
                                       jdwp:<process pid> (remote only)
      adb forward --no-rebind <local> <remote>
                                   - same as 'adb forward <local> <remote>' but fails
                                     if <local> is already forwarded
      adb forward --remove <local> - remove a specific forward socket connection
      adb forward --remove-all     - remove all forward socket connections
      adb jdwp                     - list PIDs of processes hosting a JDWP transport
      adb install [-l] [-r] [-d] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
                                   - push this package file to the device and install it
                                     ('-l' means forward-lock the app)
                                     ('-r' means reinstall the app, keeping its data)
                                     ('-d' means allow version code downgrade)
                                     ('-s' means install on SD card instead of internal storage)
                                     ('--algo', '--key', and '--iv' mean the file is encrypted already)
      adb uninstall [-k] <package> - 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 backup [-f <file>] [-apk|-noapk] [-obb|-noobb] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
                                   - write an archive of the device's data to <file>.
                                     If no -f option is supplied then the data is written
                                     to "backup.ab" in the current directory.
                                     (-apk|-noapk enable/disable backup of the .apks themselves
                                        in the archive; the default is noapk.)
                                     (-obb|-noobb enable/disable backup of any installed apk expansion
                                        (aka .obb) files associated with each application; the default
                                        is noobb.)
                                     (-shared|-noshared enable/disable backup of the device's
                                        shared storage / SD card contents; the default is noshared.)
                                     (-all means to back up all installed applications)
                                     (-system|-nosystem toggles whether -all automatically includes
                                        system applications; the default is to include system apps)
                                     (<packages...> is the list of applications to be backed up.  If
                                        the -all or -shared flags are passed, then the package
                                        list is optional.  Applications explicitly given on the
                                        command line will be included even if -nosystem would
                                        ordinarily cause them to be omitted.)
    
      adb restore <file>           - restore device contents from the <file> backup archive
    
      adb help                     - show this help message
      adb version                  - show version num
    
    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-serialno             - prints: <serial-number>
      adb get-devpath              - prints: <device-path>
      adb status-window            - continuously print device status for a specified device
      adb remount                  - remounts the /system partition on the device read-write
      adb reboot [bootloader|recovery] - reboots the device, optionally into the bootloader or recovery program
      adb reboot-bootloader        - reboots the device into the bootloader
      adb root                     - restarts the adbd daemon with root permissions
      adb usb                      - restarts the adbd daemon listening on USB
      adb tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
    networking:
      adb ppp <tty> [parameters]   - Run PPP over USB.
     Note: you should not automatically start a PPP 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 [ <directory> ]
      <localdir> can be interpreted in several ways:
    
      - If <directory> is not specified, both /system and /data partitions will be updated.
    
      - If it is "system" or "data", only the corresponding partition
        is updated.
    
    environmental variables:
      ADB_TRACE                    - Print debug information. A comma separated list of the following values
                                     1 or all, adb, sockets, packets, rwx, usb, sync, sysdeps, transport, jdwp
      ANDROID_SERIAL               - The serial number to connect to. -s takes priority over this if given.
      ANDROID_LOG_TAGS             - When used with the logcat option, only these debug tags are printed.



    2.在命令行终端执行下面的命令:

    adb shell am >am.txt 2>&1


    usage: am [subcommand] [options]
    
    usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>]
    
                   [--R COUNT] [-S] [--opengl-trace]
    
                   [--user <USER_ID> | current] <INTENT>
    
           am startservice [--user <USER_ID> | current] <INTENT>
    
           am stopservice [--user <USER_ID> | current] <INTENT>
    
           am force-stop [--user <USER_ID> | all | current] <PACKAGE>
    
           am kill [--user <USER_ID> | all | current] <PACKAGE>
    
           am kill-all
    
           am broadcast [--user <USER_ID> | all | current] <INTENT>
    
           am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w]
    
                   [--user <USER_ID> | current]
    
                   [--no-window-animation] <COMPONENT>
    
           am profile start [--user <USER_ID> current] <PROCESS> <FILE>
    
           am profile stop [--user <USER_ID> current] [<PROCESS>]
    
           am dumpheap [--user <USER_ID> current] [-n] <PROCESS> <FILE>
    
           am set-debug-app [-w] [--persistent] <PACKAGE>
    
           am clear-debug-app
    
           am monitor [--gdb <port>]
    
           am hang [--allow-restart]
    
           am restart
    
           am idle-maintenance
    
           am screen-compat [on|off] <PACKAGE>
    
           am to-uri [INTENT]
    
           am to-intent-uri [INTENT]
    
           am switch-user <USER_ID>
    
           am stop-user <USER_ID>
    
           am stack create <TASK_ID> <RELATIVE_STACK_BOX_ID> <POSITION> <WEIGHT>
    
           am stack movetask <TASK_ID> <STACK_ID> [true|false]
    
           am stack resize <STACK_ID> <WEIGHT>
    
           am stack boxes
    
           am stack box <STACK_BOX_ID>
    
    
    
    am start: start an Activity.  Options are:
    
        -D: enable debugging
    
        -W: wait for launch to complete
    
        --start-profiler <FILE>: start profiler and send results to <FILE>
    
        -P <FILE>: like above, but profiling stops when app goes idle
    
        -R: repeat the activity launch <COUNT> times.  Prior to each repeat,
    
            the top activity will be finished.
    
        -S: force stop the target app before starting the activity
    
        --opengl-trace: enable tracing of OpenGL functions
    
        --user <USER_ID> | current: Specify which user to run as; if not
    
            specified then run as the current user.
    
    
    
    am startservice: start a Service.  Options are:
    
        --user <USER_ID> | current: Specify which user to run as; if not
    
            specified then run as the current user.
    
    
    
    am stopservice: stop a Service.  Options are:
    
        --user <USER_ID> | current: Specify which user to run as; if not
    
            specified then run as the current user.
    
    
    
    am force-stop: force stop everything associated with <PACKAGE>.
    
        --user <USER_ID> | all | current: Specify user to force stop;
    
            all users if not specified.
    
    
    
    am kill: Kill all processes associated with <PACKAGE>.  Only kills.
    
      processes that are safe to kill -- that is, will not impact the user
    
      experience.
    
        --user <USER_ID> | all | current: Specify user whose processes to kill;
    
            all users if not specified.
    
    
    
    am kill-all: Kill all background processes.
    
    
    
    am broadcast: send a broadcast Intent.  Options are:
    
        --user <USER_ID> | all | current: Specify which user to send to; if not
    
            specified then send to all users.
    
        --receiver-permission <PERMISSION>: Require receiver to hold permission.
    
    
    
    am instrument: start an Instrumentation.  Typically this target <COMPONENT>
    
      is the form <TEST_PACKAGE>/<RUNNER_CLASS>.  Options are:
    
        -r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT).  Use with
    
            [-e perf true] to generate raw output for performance measurements.
    
        -e <NAME> <VALUE>: set argument <NAME> to <VALUE>.  For test runners a
    
            common form is [-e <testrunner_flag> <value>[,<value>...]].
    
        -p <FILE>: write profiling data to <FILE>
    
        -w: wait for instrumentation to finish before returning.  Required for
    
            test runners.
    
        --user <USER_ID> | current: Specify user instrumentation runs in;
    
            current user if not specified.
    
        --no-window-animation: turn off window animations while running.
    
    
    
    am profile: start and stop profiler on a process.  The given <PROCESS> argument
    
      may be either a process name or pid.  Options are:
    
        --user <USER_ID> | current: When supplying a process name,
    
            specify user of process to profile; uses current user if not specified.
    
    
    
    am dumpheap: dump the heap of a process.  The given <PROCESS> argument may
    
      be either a process name or pid.  Options are:
    
        -n: dump native heap instead of managed heap
    
        --user <USER_ID> | current: When supplying a process name,
    
            specify user of process to dump; uses current user if not specified.
    
    
    
    am set-debug-app: set application <PACKAGE> to debug.  Options are:
    
        -w: wait for debugger when application starts
    
        --persistent: retain this value
    
    
    
    am clear-debug-app: clear the previously set-debug-app.
    
    
    
    am bug-report: request bug report generation; will launch UI
    
        when done to select where it should be delivered.
    
    
    
    am monitor: start monitoring for crashes or ANRs.
    
        --gdb: start gdbserv on the given port at crash/ANR
    
    
    
    am hang: hang the system.
    
        --allow-restart: allow watchdog to perform normal system restart
    
    
    
    am restart: restart the user-space system.
    
    
    
    am idle-maintenance: perform idle maintenance now.
    
    
    
    am screen-compat: control screen compatibility mode of <PACKAGE>.
    
    
    
    am to-uri: print the given Intent specification as a URI.
    
    
    
    am to-intent-uri: print the given Intent specification as an intent: URI.
    
    
    
    am switch-user: switch to put USER_ID in the foreground, starting
    
      execution of that user if it is currently stopped.
    
    
    
    am stop-user: stop execution of USER_ID, not allowing it to run any
    
      code until a later explicit switch to it.
    
    
    
    am stack create: create a new stack relative to an existing one.
    
       <TASK_ID>: the task to populate the new stack with. Must exist.
    
       <RELATIVE_STACK_BOX_ID>: existing stack box's id.
    
       <POSITION>: 0: before <RELATIVE_STACK_BOX_ID>, per RTL/LTR configuration,
    
                   1: after <RELATIVE_STACK_BOX_ID>, per RTL/LTR configuration,
    
                   2: to left of <RELATIVE_STACK_BOX_ID>,
    
                   3: to right of <RELATIVE_STACK_BOX_ID>,               
                   4: above <RELATIVE_STACK_BOX_ID>, 
                   5: below <RELATIVE_STACK_BOX_ID>
    
       <WEIGHT>: float between 0.2 and 0.8 inclusive.
    
    
    
    am stack movetask: move <TASK_ID> from its current stack to the top (true) or   bottom (false) of <STACK_ID>.
    
    
    
    am stack resize: change <STACK_ID> relative size to new <WEIGHT>.
    
    
    
    am stack boxes: list the hierarchy of stack boxes and their contents.
    
    
    
    am stack box: list the hierarchy of stack boxes rooted at <STACK_BOX_ID>.
    
    
    
    <INTENT> specifications include these flags and arguments:
    
        [-a <ACTION>] [-d <DATA_URI>] [-t <MIME_TYPE>]
    
        [-c <CATEGORY> [-c <CATEGORY>] ...]
    
        [-e|--es <EXTRA_KEY> <EXTRA_STRING_VALUE> ...]
    
        [--esn <EXTRA_KEY> ...]
    
        [--ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE> ...]
    
        [--ei <EXTRA_KEY> <EXTRA_INT_VALUE> ...]
    
        [--el <EXTRA_KEY> <EXTRA_LONG_VALUE> ...]
    
        [--ef <EXTRA_KEY> <EXTRA_FLOAT_VALUE> ...]
    
        [--eu <EXTRA_KEY> <EXTRA_URI_VALUE> ...]
    
        [--ecn <EXTRA_KEY> <EXTRA_COMPONENT_NAME_VALUE>]
    
        [--eia <EXTRA_KEY> <EXTRA_INT_VALUE>[,<EXTRA_INT_VALUE...]]
    
        [--ela <EXTRA_KEY> <EXTRA_LONG_VALUE>[,<EXTRA_LONG_VALUE...]]
    
        [--efa <EXTRA_KEY> <EXTRA_FLOAT_VALUE>[,<EXTRA_FLOAT_VALUE...]]
    
        [-n <COMPONENT>] [-f <FLAGS>]
    
        [--grant-read-uri-permission] [--grant-write-uri-permission]
    
        [--debug-log-resolution] [--exclude-stopped-packages]
    
        [--include-stopped-packages]
    
        [--activity-brought-to-front] [--activity-clear-top]
    
        [--activity-clear-when-task-reset] [--activity-exclude-from-recents]
    
        [--activity-launched-from-history] [--activity-multiple-task]
    
        [--activity-no-animation] [--activity-no-history]
    
        [--activity-no-user-action] [--activity-previous-is-top]
    
        [--activity-reorder-to-front] [--activity-reset-task-if-needed]
    
        [--activity-single-top] [--activity-clear-task]
    
        [--activity-task-on-home]
    
        [--receiver-registered-only] [--receiver-replace-pending]
    
        [--selector]
    
        [<URI> | <PACKAGE> | <COMPONENT>]
    
    
    
    
    
    Error: No intent supplied

    3.在命令行终端执行下面的命令:

    adb shell pm >pm.txt 2>&1


    usage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [--user USER_ID] [FILTER]
    
           pm list permission-groups
    
           pm list permissions [-g] [-f] [-d] [-u] [GROUP]
    
           pm list instrumentation [-f] [TARGET-PACKAGE]
    
           pm list features
    
           pm list libraries
    
           pm list users
    
           pm path PACKAGE
    
           pm dump PACKAGE
    
           pm install [-l] [-r] [-t] [-i INSTALLER_PACKAGE_NAME] [-s] [-f]
    
                      [--algo <algorithm name> --key <key-in-hex> --iv <IV-in-hex>]
    
                      [--originating-uri <URI>] [--referrer <URI>] PATH
    
           pm uninstall [-k] PACKAGE
    
           pm clear [--user USER_ID] PACKAGE
    
           pm enable [--user USER_ID] PACKAGE_OR_COMPONENT
    
           pm disable [--user USER_ID] PACKAGE_OR_COMPONENT
    
           pm disable-user [--user USER_ID] PACKAGE_OR_COMPONENT
    
           pm disable-until-used [--user USER_ID] PACKAGE_OR_COMPONENT
    
           pm block [--user USER_ID] PACKAGE_OR_COMPONENT
    
           pm unblock [--user USER_ID] PACKAGE_OR_COMPONENT
    
           pm grant PACKAGE PERMISSION
    
           pm revoke PACKAGE PERMISSION
    
           pm set-install-location [0/auto] [1/internal] [2/external]
    
           pm get-install-location
    
           pm set-permission-enforced PERMISSION [true|false]
    
           pm trim-caches DESIRED_FREE_SPACE
    
           pm create-user USER_NAME
    
           pm remove-user USER_ID
    
           pm get-max-users
    
    
    
    pm list packages: prints all packages, optionally only
    
      those whose package name contains the text in FILTER.  Options:
    
        -f: see their associated file.
    
        -d: filter to only show disbled packages.
    
        -e: filter to only show enabled packages.
    
        -s: filter to only show system packages.
    
        -3: filter to only show third party packages.
    
        -i: see the installer for the packages.
    
        -u: also include uninstalled packages.
    
    
    
    pm list permission-groups: prints all known permission groups.
    
    
    
    pm list permissions: prints all known permissions, optionally only
    
      those in GROUP.  Options:
    
        -g: organize by group.
    
        -f: print all information.
    
        -s: short summary.
    
        -d: only list dangerous permissions.
    
        -u: list only the permissions users will see.
    
    
    
    pm list instrumentation: use to list all test packages; optionally
    
      supply <TARGET-PACKAGE> to list the test packages for a particular
    
      application.  Options:
    
        -f: list the .apk file for the test package.
    
    
    
    pm list features: prints all features of the system.
    
    
    
    pm list users: prints all users on the system.
    
    
    
    pm path: print the path to the .apk of the given PACKAGE.
    
    
    
    pm dump: print system state associated w ith the given PACKAGE.
    
    
    
    pm install: installs a package to the system.  Options:
    
        -l: install the package with FORWARD_LOCK.
    
        -r: reinstall an exisiting app, keeping its data.
    
        -t: allow test .apks to be installed.
    
        -i: specify the installer package name.
    
        -s: install package on sdcard.
    
        -f: install package on internal flash.
    
        -d: allow version code downgrade.
    
    
    
    pm uninstall: removes a package from the system. Options:
    
        -k: keep the data and cache directories around after package removal.
    
    
    
    pm clear: deletes all data associated with a package.
    
    
    
    pm enable, disable, disable-user, disable-until-used: these commands
    
      change the enabled state of a given package or component (written
    
      as "package/class").
    
    
    
    pm grant, revoke: these commands either grant or revoke permissions
    
      to applications.  Only optional permissions the application has
    
      declared can be granted or revoked.
    
    
    
    pm get-install-location: returns the current install location.
    
        0 [auto]: Let system decide the best location
    
        1 [internal]: Install on internal device storage
    
        2 [external]: Install on external media
    
    
    
    pm set-install-location: changes the default install location.
    
      NOTE: this is only intended for debugging; using this can cause
    
      applications to break and other undersireable behavior.
    
        0 [auto]: Let system decide the best location
    
        1 [internal]: Install on internal device storage
    
        2 [external]: Install on external media
    
    
    
    pm trim-caches: trim cache files to reach the given free space.
    
    
    
    pm create-user: create a new user with the given USER_NAME,
    
      printing the new user identifier of the user.
    
    
    
    pm remove-user: remove the user with the given USER_IDENTIFIER,
    
      deleting all data associated with that user

    展开全文
  • 安卓 adb shell input keyevent 按键大全.txt
  • adb shell stop & adb shell start

    千次阅读 2019-10-17 16:17:32
    在调试的过程中,经常遇到需要修改系统属性值:setprop xxx.xxx.xxx,但是修改后,如果重启就没效啦。 而且如果没重启,会遇到属性值在代码中不生效,重启后,属性值又还原的矛盾;...adb shell stop...

    在调试的过程中,经常遇到需要修改系统属性值:setprop xxx.xxx.xxx,但是修改后,如果重启就没效啦。
    而且如果没重启,会遇到属性值在代码中不生效,重启后,属性值又还原的矛盾;
    且有时候又确实需要修改属性值后重启机器的需求,如修改了setenforce的值但是又想系统重启下重启则值会还原。
    那怎么办呢?
    使用下面两个命令来解决这个烦恼吧~可以打开新世界哦~
    adb shell stop;
    adb shell start;
    使用setprop xxx.xxx.xxx后,再使用adb shell stop;adb shell start;就可以啦~

     

     

     

     

     

     

     

    展开全文
  • ADB shell 命令列表

    2011-02-12 15:54:14
    ADB Shell 命令列表 仅包含命令列表, 具体用途, 需逐个尝试, 或根据命令名揣测:)
  • ADB Shell学习

    万次阅读 多人点赞 2016-07-13 15:25:28
    ADB Shell 学习 又是一个周末了,最怕闲来无事的周末,于是给自己找点事情做,ADB shell这一块一直没有系统的学习,正好趁此机会学习。 主要通过学习资料和adb –help文档学习怎么使用ADB shell命令首先找到Andorid...

    ADB Shell 学习

    又是一个周末了,最怕闲来无事的周末,于是给自己找点事情做,ADB shell这一块一直没有系统的学习,正好趁此机会学习。

    主要通过学习资料和adb –help文档学习

    怎么使用ADB shell命令

    首先找到Andorid的SDK安装路径或者单独安装ADB组件,sdk中adb路径在

    cd <adb-path>
    #执行adb命令
    adb shell

    Mac下

    #配置adb环境变量
    vi ~/.bash_profile
    #编辑该文件,添加你的adb路径
    export ADB_PATH= your_adb_path
    export PATH=${PATH}:${ADB_PATH}
    
    #退出保存再执行命令使得环境变量生效
    source .bash_profile

    ADB Debugging命令

    adb devices

    列出连接的设备

    adb devices [-l] ‘-l’

    参数用于指定需要列出的设备

    #打印连接的设备
    adb devices

    返回结果

    #执行命令返回设备的序列数字和状态
    2b70fc6a        device

    adb forward

    重定向连接,需要开启设备的USB debugging模式

    adb forward <local> <remote>
    adb froward –no-rebind <local> <remote>作用同上,但是如果已经连接就会失败

    adb forward –remove <local>删除指定连接的设备

    adb forward –remove-all

    #映射本地的8000端口到设备的端口9000
    adb forward tcp:8000 tcp:9000

    adb kill-server

    终止adb服务进程 如果服务在运行则终止

    adb kill-server

    无线连接命令

    adb connect

    通过WIFI使用ADB

    adb connect <host> [:<port>]

    第一步 通过USB连接设备

    第二步 使用命令查看连接的设备

    adb devices

    注意: 以上步骤不可忽略

    第三步 以TCP模式重启端口:5555

    第四步 查看Android设备的IP地址:设置->关于手机->状态->IP地址,将该IP地址以 #.#.#.# 的格式记录下来

    第五步 执行命令

    #   #.#.#.# 为刚刚记录下来的ip地址
    adb connect #.#.#.#

    第六步 拔掉usb连接线,确认设备是否依然可连接

    adb devices

    返回结果

    #.#.#.#:5555 device

    注意: 确保本地和设备连接的wifi为可访问的同一个局域网

    adb disconnect

    断开通过TCP/IP连接的设备

    adb disconnect [<host> [:<port>]]

    不带参数则断开所有TCP/IP连接的设备

    adb usb

    重启USB模式的 ADB

    adb usb

    App包的管理命令

    adb install

    安装Android应用到设备,需要指定需要安装的 .apk 文件的全路径

    adb install [option]

    adb install test.apk
    # 给apk上锁,发布 apk 到 android market上时,可以设置相关标志位来保护你的 app。
    adb install -l test.apk
    # 重新安装apk
    adb install -r test.apk
    # 允许测试
    adb install -t test.apk
    # 在sdcard上安装
    adb install -s test.apk
    #允许低版本代码
    adb install -d test.apk
    #授予所有运行权限
    adb install -g test.apk

    adb install-multiple

    一次安装多个apk文件

    adb install-multiple [-lrtsdpg]

    adb uninstall

    从设备中卸载app

    adb uninstall [-k]

    adb uninstall com.test.app
    adb uninstall -k com.test.app

    adb shell pm list packages

    打印出设备安装的所有包信息,可选参数用于过滤要显示的包名

    adb shell pm list packages [options]

    adb shell pm list packages
    #查看相关的文件
    adb shell pm list packages -f
    #只显示禁用的packages
    adb shell pm list packages -d
    # 只显示可用的packages
    adb shell pm list packages -e
    #只显示系统级别的packages
    adb shell pm list packages -s
    #只显示第三方的packages(非系统)
    adb shell pm list packages -3
    #查看安装器(比如google play)
    adb shell pm list packages -i
    # 包括卸载的packages
    adb shell pm list packages -u
    #查询用户空间
    adb shell pm list packages --user <USER_ID&gt;

    adb shell pm path

    打印制定APK的路径

    adb shell pm path <PACKAGE>

    adb shell pm path com.android.phone

    返回结果

    package:/system/priv-app/TeleService/TeleService.apk

    adb shell pm clear

    删除所有有关的数据

    adb shell pm clear

    adb shell pm clear com.test.abc

    返回结果

    clearing app data, cache

    文件管理

    adb pull

    从设备下载指定的文件到电脑

    adb pull <remote> [local]

    #下载 /sdcard/demo.mp4文件到 <android-sdk-path>/platform-tools 目录下
    adb pull /sdcard/demo.mp4
    #下载demo.mp4到 /Users/bsty/Desktop/
    adb pull /sdcard/demo.mp4 /Users/bsty/Desktop/

    adb push

    从电脑上传指定文件到设备

    adb push <local> <remote>

    #复制 <android-sdk-path>/platform-tools/test.apk 到设备的 /sdcard目录下
    adb push test.apk /sdcard
    #复制 /Users/bsty/Desktop/test.apk 到 /sdcard 目录下
    adb push /Users/bsty/Desktop/test.apk /sdcard

    adb shell ls

    列出目录类容

    * ls [option] <directory>*

    第一步.

    adb shell

    第二步

    ls
    #显示隐藏的文件
    ls -a 
    #打印每个文件的序号
    ls -i
    #以块的形式打印出每个文件的大小
    ls -s
    #列出详细信息 UIDs和GIDs
    ls -n
    #列出所有子目录(递归)
    ls -R 

    提示: 按 Ctrl+C 终止

    adb shell cd

    切换目录

    cd <directory>

    第一步

    adb shell

    第二步

    cd /system

    adb shell rm

    删除文件或者目录

    rm [option] <files or directory>

    第一步

    adb shell

    第二步

    rm /sdcard/test.txt

    #不需要提示强制删除
    rm -f /sdcard/test.txt 
    #删除所有子文件夹内容
    rm -r /sdcard/tmp
    #删除一个目录,即使不是空目录
    rm -d /sdcard/tmp

    提示: rm -d 和rmdir命令相同

    #在删除前会有提示信息
    rm -i /sdcard/test.txt

    adb shell mkdir

    创建文件夹

    mkdir [options] <directory name>

    mkdir /sdcard/tmp
    #设置权限
    mkdir -m 777 /sdcard/tmp
    #当需要时创建父目录
    mkdir -p /sdcard/tmp/sub1/sub2

    adb shell touch

    创建空文件或者修改文件的时间戳

    touch [options] <file>

    第一步

    adb shell

    第二步

    touch /sdcard/tmp/test.txt

    ls /sdcard/tmp

    adb pwd

    打印当前目录的位置

    adb shell
    
    pwd

    adb shell cp

    复制文件和目录

    cp [options] <source> <dest>

    第一步

    adb shell

    第二步

    cp /sdcard/test.txt /sdcard/demo.txt

    adb shell mv

    移动或者重命名文件

    mv [options] <source> <dest>

    第一步

    adb shell

    第二步

    #移动
    mv /sdcard/tmp /system/tmp
    #重命名
    mv /sdcard/tmp /sdcard/test

    网络

    adb shell netstat

    网络统计

    netstat

    第一步

    adb shell

    第二步

    netstat

    adb shell ping

    测试两个网络之间的连接和延迟

    第一步

    adb shell

    第二步

    ping www.google.com

    adb shell netcfg

    通过配置文件管理和配置网络

    netcfg [<interface> {dhcplupdown}]

    第一步

    adb shell

    第二步

    netcfg

    adb shell ip

    显示,处理路由,设备,策略路由和隧道

    ip [ OPTIONS ] OBJECT

    OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable |tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm |netns | l2tp }

    OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |-f[amily] { inet | inet6 | ipx | dnet | link } |-l[oops] { maximum-addr-flush-attempts } |-o[neline] | -t[imestamp] | -b[atch] [filename] |-rc[vbuf] [size]}

    第一步

    adb shell

    第二步

    #显示wifi IP地址
    ip -f inet addr show wlan0

    日志

    adb logcat

    在屏幕上打印日志

    adb logcat [option] [filter-specs]

    adb logcat

    提示: 按 Ctrl-C 停止

    #最低优先级,只显示Verbose级别的日志
    adb logcat *:V 
    #只显示 Debug级别的日志
    adb logcat *:D 
    #只显示 info 级别的日志
    adb logcat *:I 
    #只显示Warning级别的日志
    adb logcat *:W
    #只显示Error级别的日志
    adb logcat *:E
    #只显示Fatal级别的日志
    adb logcat *:F
    # 最高优先级,没有打印过的日志
    adb logcat *:S 

    adb logcat -b <Buffer>

    #查看包含radio/telephony相关的消息缓冲区
    adb logcat -b radio
    # 包含事件相关的缓冲区
    adb logcat -b event
    #默认
    adb logcat -b main
    #清除整个日志并退出
    adb logcat -c
    #转储日志到屏幕并退出
    adb logcat -d
    #将日志信息写入test.logs文件
    adb logcat -f test.logs
    #打印指定日志buffer的大小并退出
    adb logcat -g 
    #设置日志的最大数
    adb logcat -n <count>

    提示: 默认的值是4. 需要 -r 参数

    #Rotates the log file every <kbytes> of output
    adb logcat -r <kbytes>

    提示: 默认值为16, 需要-f参数

    #设置默认 过滤器为 silent
    adb logcat -s 

    adb logcat -v <format>

    # 显示优先级/标签并在过程中发出消息(默认格式)的PID。
    adb logcat -v brief
    # 只显示 PID
    adb logcat -v process
    #只显示优先级和标签
    adb logcat -v tag
    #显示原始日志信息,没有其他数据字段
    adb logcat -v raw
    #显示日期,调用时,优先级/标签,进程发出消息的PID。
    adb logcat -v time
    #显示日期,调用时间,优先级,标记,和该线程发出消息的PID和TID
    adb logcat -v threadtime
    #显示所有元数据字段和空行分开的消息
    adb logcat -v long

    adb shell dumpsys

    转储系统数据

    adb shell dumpsys [options]

    adb shell dumpsys
    adb shell dumpsys battery
    #搜集设备的电池信息
    adb shell dumpsys batterystats
    #清除旧信息
    adb shell dumpsys batterystats -reset 

    adb shell dumpstate

    转储状态

    adb shell dumpstate
    #转储信息存到一个文件
    adb shell dumpstate > state.logs

    截屏

    adb shell screencap

    adb shell screencap <filename>

    adb shell screencap /sdcard/screen.png

    从设备下载一个文件

    adb pull /sdcard/screen.png

    adb shell screenrecord

    录制屏幕,android4.4(api 19)以上可用

    adb shell screenrecord [options] <filename>

    adb shell screenrecord /sdcard/demo.mp4

    (按 Ctrl-C停止录屏)

    从设备下载该录像文件

    adb pull /sdcard/demo.mp4

    提示:按Ctrl-C停止录屏,默认3分钟自动停止,也可以添加参数 –time-limit 设置录制时间

    #设置视频大小:1280*720. 默认为设备分辨率,最好使用设备支持的分辨率
    adb shell screenrecord --size <WIDTH*HEIGHT>
    #设置视频的bit比,默认4Mbps,可以增加比例提升视频清晰度,但是也会增大文件大小,
    #例子: bit比为5Mbps, *** adb shell screenrecord --bit-rate 5000000 /sdcard/demo.mp4
    adb shell screenrecord --bit-rate <RATE>
    #设置最长(秒),默认为180秒(3分钟)
    adb shell screenrecord --time-limit <TIME>
    #旋转输出90度。实验性功能
    adb shell screenrecord --rotate
    #控制台显示日志信息,如果没有设置该参数,不会在录屏是显示任何信息
    adb shell screenrecord --verbose

    系统

    adb root

    以root权限重新启动adbd守护进程

    adb root

    注意:在生产环境中adbd不能以root模式执行,只能用于测试

    adb sideload

    恢复Andr​​oid update.zip包。

    adb sideload <upload.zip>

    adb shell ps

    打印进程状态信息

    ps [options]

    第一步

    adb shell

    第二步

    ps

    ps -p

    adb shell top

    显示顶层的cpu进程

    top [options]

    第一步

    adb shell

    第二步

    top

    提示: 按Ctrl-C停止**

    #以线程形式展示
    top -t 

    adb shell getprop

    通过property service获取设备属性

    getprop [options]

    第一步

    adb shell

    第二步

    getprop
    
    getprop ro.build.version.sdk
    
    getprop  ro.chipname
    
    getprop | grep adb 
    

    adb shell setprop

    设置property service

    **setprop <key> <value>

    第一步

    adb shell

    第二步

    setprop service.adb.tcp.prot 5555
    展开全文
  • 常用adbadb shell 命令

    万次阅读 2018-08-24 12:04:21
    一、ADB命令(电脑上操作的命令) ADB常用命令: 1. 查看设备: 查看当前连接的设备, adb devices 2. 安装软件:将指定的apk文件安装到设备上 adb install &amp;amp;lt;apk文件路径&amp;amp;gt;...
  • adb shell dumpsys 命令查看内存

    千次阅读 2018-11-27 09:54:08
    adb shell dumpsys meminfo $package_name or $pid 此外adb shell dumpsys命令还可以用来查看系统服务信息,使用下面命令可以输出系统当前支持的服务: adb shell service list 输出: Microsoft Windows [版本...
  • linux下adb shell环境搭建必备文件

    热门讨论 2012-01-12 08:59:15
    linux下adb shell环境搭建必备文件,简简单单在linux下使用adb shell
  • adb shell dumpsys 命令用法

    千次阅读 2019-09-17 17:41:25
    adb shell dumpsys 命令用法 文章目录adb shell dumpsys 命令用法出发点一出发点二出发点三 「[出自官方文档](https://link.jianshu.com/?t=https://developer.android.com/studio/command-line/dumpsys.html#syntax...
  • adb shell 命令大全

    千次阅读 2018-12-03 14:19:43
    文章目录查看前台 Activity调用 Activity查看正在运行的 Services调用 Service发送广播查看应用详细信息查看应用列表...adb shell dumpsys activity activities 或者 adb shell dumpsys activity top 调用 Activit...
  • 通过adb shell进入安卓shell后如何退出? Ctrl+C无法退出shell; 直接输入exit即可
  • ADBShell操作手册

    2017-03-24 14:11:23
    ADB Debugging(adb调试命令) 3 adb devices 3 adb forward <local> <remote> 3 adb kill-server 3 无线网(Wireless) 3 adb connect [:] 3 adb usb 4 安装包管理命令(Package ...adb shell dumpsys [options] 22
  • adb shell一些常用的命令

    千次阅读 2018-12-05 19:09:07
    adb全名Andorid Debug Bridge. 顾名思义, 这是一个Debug工具。 然而, 为何称之为Bridge呢? 因为adb是一个标准的CS结构的工具, 是要连接开发电脑和你的调试手机的.包含如下几个部分:  1.Client端, 运行在开发...
  • windows下adb shell的使用,adb shell的概念
  • Android中adb shell dumpsys相关命令

    万次阅读 2017-12-14 00:09:45
    adb shell dumpsys相关命令
  • adb shell 进去搜某个文件,是否遇到过这种情况 解决方法为下: 1. 下载BusyBox的binary,打开这个地址http://www.busybox.net/downloads/binaries,选择最新版本,然后下载对应设备架构的版本, adb shell cat ...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 89,254
精华内容 35,701
关键字:

adbshell