项目地址:https://github.com/majido/clipper
- 安装clipper.apk
点击下载APKadb install 下载路径/clipper.apk - 打开应用apk,界面显示用法如下:
You can now copy to or paste from clipboard using the following commands in adb shell:am broadcast -a clipper.set -e text "this can be pasted now"am broadcast -a clipper.get - 例如往手机剪贴板写入”High or low, (high, low), it’s all the same.”(无法写入中文)
adb shell
am broadcast -a clipper.set -e text "High or low, (high, low), it's all the same."
显示**data=”Text is copied into clipboard.”**即写入成功。 - 在手机需要的输入框中粘贴即可
- 当然,也可以用
am broadcast -a clipper.get命令获取手机剪切板的内容
adb shell
am broadcast -a clipper.get
获取的内容在data里显示。