首页
学习
活动
专区
圈层
工具
发布
  • 您找到你想要的搜索结果了吗?
    是的
    没有找到

    adb shell 如何选择特定的设备?

    解决之法 其实这个一查,stackoverflow或者百度谷歌一大把,比如这个“http://stackoverflow.com/questions/14654718/how-to-use-adb-shell-when-multiple-devices-are-connected-fails-with-error-mor...2. adb -s emulator-5556 shell {command} 发送指定命令 比如最近在折腾React Native, 要显示开发者菜需要点击菜单键或者发送input keyevent...82,那么就可以使用命令:adb -s emulator-5556 shell input keyevent 82,如下图: ?...3. adb -s emulator-5556 shell 进入shell命令行 2中我们是每次发送命令都需要指定是哪个设备,这无疑是非常麻烦的。...我们可以先通过adb -s {emulator-name} shell 进入指定模拟器的shell。如下图所示: ? 然后我们就可以畅快输入命令了: ?

    6.5K20

    Android自动化之-ADB与ADB shell常用命令

    adb connect 远程连接 Android 设备 adb shell 命令 adb 命令是 adb 这个程序自带的一些命令,而 adb shell 则是调用的 Android 系统中的命令,这些...可以获取到该命令的帮助信息 pm list package 列出安装在设备上的应用 adb shell pm list package(列出全部) adb shell pm list package...–s (列出系统应用) adb shell pm list package –3(列出第三方应用) adb shell pm list package –f(列出应用包名及对应的apk名及存放位置) adb...windows: adb shell pm dump com.android.dialer | findstr “versionName” linux: adb shell pm dump com.android.dialer...| grep “versionName” am 系列:控制应用 adb shell am start –n com.android.camera/.Camera   启动相机 adb shell am

    13.5K11

    Android中常用的adb shell命令

    shell shell@android:/ $ su root chmod -R 755 /data (R必须大写,linux命令区分大小写的,cmd命令不区分大小写,shell命令是一种linux...,电量等信息 findstr 和grep过滤搜索 1)cmd下搜索包名为com.linux.test的进程 adb shell ps|findstr /i "com.linux.test" 2)shell...下面搜索 先使用adb shell进去,然后使用grep命令过滤 ps|grep "com.linux.test" ##查看最上层成activity名字 adb shell dumpsys activity...D:\linux\sdk\test\test.mp4 模拟点击 #模拟滑动 向左滑动 adb shell input swipe 800 300 200 300 向右滑动 adb shell input...&activity.txt 查看过滤log 显示所有优先级大于等于“warning”的日志 adb logcat *:W 批量获取包名、应用版本号 linux adb shell dumpsys package

    3.9K20

    adb shell 启动,停止 android 应用程序一、adb启动 应用程序二、adb停止 应用程序

    一、adb启动 应用程序 (1)查看app包名: 进入android操作系统 adb shell 在root@android:/ # 后边,输入 cd data/data 然后输入ls 这样就能看见android...com.android.backupconfirm com.android.browser com.android.calculator2 com.android.calendar com.android.camera ... (2)adb...启动 应用程序 adb shell am start -n cn.com.conversant.swiftsync.android/cn.com.conversant.swiftsync.android.main.SplashActivity...备注: adb shell am start -n 包名/Activity类的类名 包名和Activity类的类名一定要输入正确,可以用re-sign工具(在最后的弹出信息框会显示出包名和Activity...二、adb停止 应用程序 adb shell am force-stop cn.com.conversant.swiftsync.android 备注: cn.com.conversant.swiftsync.android

    7.1K20
    领券