`
vfate_linux
  • 浏览: 239348 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

ubuntu linux通过adb命令行"复制粘贴"内容到android

阅读更多
假如你像我一样在寻找android下通过命令复制粘贴的方法,来对地方了,不过android上是没有直接进行复制粘贴剪切板的命令,只有间接实现:在电脑上直接adb输入信息到android设备上

首先android设备上,要把光标焦点定位到需要输入的文本框,比如当你输入用户名密码的时候
电脑上adb连接好android设备
电脑上执行adb命令如下,比如你的用户名是hello,密码是world
adb shell input text hello
#输入tab键定位到下一输入框,tab键的key code是61 --> "KEYCODE_TAB" 
adb shell input keyevent 61
#然后输入密码
adb shell input text world
#回车确认登录,回车键的key code是66
adb shell input keyevent 66


扩展阅读,假如你的密码比较复杂有但引号之类,比如为 wor"ld
adb shell input text wor\\\"ld


参考:http://blog.rungeek.com/post/42456936947/sending-keyboard-input-via-adb-to-your-android-device
分享到:
评论

相关推荐

    android adb 配置文件 ubuntu环境

    android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb 配置文件 ubuntu环境android adb ...

    Ubuntu 12.04 32bit linux 的 adb 安装包

    Ubuntu 12.04 32bit linux 的 adb 安装包, 安装方法,下载后,在命令行执行如下语句 sudo dpkg -i android-tools-adb_4.2.2+git20130529-5.1_i386.deb

    安卓ADB命令行工具

    Android 调试桥 (adb) 是一种功能多样的命令行工具,可让您与设备进行通信。adb 命令可用于执行各种设备操作(例如安装和调试应用),并提供对 Unix shell(可用来在设备上运行各种命令)的访问权限。

    ubuntu adb version 1.0.39

    ubuntu 平台下adb 和fastboot 版本更新,adb版本更新到 1.0.39. 资源直接从sdk源码中下载得到; 具体配置方法是: unzip \platform-tools-latest-linux.zip sudo cp platform-tools/adb /usr/bin/adb sudo cp ...

    ADB命令行工具箱

    本软件是自己编写的单文件绿色软件,不需要复杂的命令,打开软件就能直接进入ADB命令对设备进行刷机解锁等操作

    adb(1.0.41版本)(win+linux)

    adb工具即Android Debug Bridge(安卓调试桥) tools。它就是一个命令行窗口,用于通过电脑端与模拟器或者真实设备交互。

    Android Debug Bridge(安卓调试桥) tools platform-tools adb命令行工具

    Android四大组件有Activity,Service服务,Content Provider内容提供,BroadcastReceiver广播接收器,具体不做多讲,常用的有以下: 查看前台 Activity命令:adb shell dumpsys activity activities | findstr ...

    Android Debug Bridge(ADB)命令行工具

    Shell访问:ADB允许开发人员通过命令行访问设备的Shell,可以在设备上执行各种命令。 屏幕截图和录屏:ADB允许开发人员从设备上获取屏幕截图或录制屏幕活动,这对于应用程序截图和演示很有用。 系统属性和设置:...

    adb常用命令 android

    这里是一些android的adb常用命令,能够知道大家进行一些手机开发的调试。 这里只是我的一些小小的见解,希望对大家有帮助

    LInux android adb

    LInux android adbLInux android adbLInux android adbLInux android adbLInux android adbLInux android adbLInux android adbLInux android adbLInux android adbLInux android adbLInux android adbLInux android...

    adb较新版本1.0.41版本

    从多个人的adb版本发现,Android13 对 adb版本是有要求的。 前两年的adb 版本有可能无法正常连接上Android13 的设备: 低版本adb软件,adb connect 执行后,adb devices 发现设备是离线的,adb shell 进入不了输入...

    android-locales:允许您通过adb在命令行中更改设备区域设置的Android应用程序。 用于自动执行UI测试

    Android语言环境 轻松更改您的android设备的区域设置,以自动化您的端到端测试。 需要来控制应用程序。 如何使用 下载发行版中可用的最新apk(或构建apk)。 安装apk adb install -R android_locales.apk 向应用...

    交叉编译arm Linux环境下的android-tools-adb

    交叉编译arm Linux环境下的android-tools-adb工具,本资源包含了完整的Ubuntu1604平台下的android-tools-adb源码包,openssl源码包,zlib源码包。以及完整的编译说明和指导,按照说明操作,可以轻松生成arm平台下可...

    最新ubuntu下adb 1.0.32

    最新linux下adb工具1.0.32 ,5.0以上代码调试工具

    Linux下Android ADB驱动安装详解

    Linux下Android ADB驱动安装详解

    Linux adb 1.0.40

    Linux adb 1.0.404 当前Linux下最新adb工具, 替换platform tools里面adb文件后更改权限即可使用

    ubuntu adb tools version 1.0.39

    ubuntu adb version 1.0.39-CSDN下载 adb tools 工具下载

    android adb shell 命令大全

    android adb shell 命令大全 1. 显示系统中全部Android平台: android list targets 2. 显示系统中全部AVD(模拟器): android list avd 3. 创建AVD(模拟器): android create avd --name 名称 --...

    adb 1.0.41 工具 操作系统 - Linux - adb 1.0.41 工具.zip

    adb 1.0.41 工具 操作系统 - Linux - adb 1.0.41 工具.zip

    linux交叉编译adb

    资源中包括android4.2.2的adb的源码以及依赖的库的源码。首先进入openssl/crypto中,修改makefile中的CROSS_COMPILE,修改为自己的编译环境,然后执行make,生成libCrypto.a。然后回到adb根目录,同样修改makefile的...

Global site tag (gtag.js) - Google Analytics