Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/majido/clipper
Simple android app to interact with system clipboard service via adb shell
https://github.com/majido/clipper
Last synced: 1 day ago
JSON representation
Simple android app to interact with system clipboard service via adb shell
- Host: GitHub
- URL: https://github.com/majido/clipper
- Owner: majido
- License: mit
- Created: 2012-08-24T15:00:05.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T19:04:36.000Z (over 5 years ago)
- Last Synced: 2023-11-07T15:15:38.651Z (about 1 year ago)
- Language: Java
- Size: 32.2 KB
- Stars: 370
- Watchers: 11
- Forks: 65
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clipper
Simple app to interact with Android system clipboard service via adb shell one liners.# Installation
Download the [application apk](https://github.com/majido/clipper/releases/download/v1.2.1/clipper.apk) and manually install application on your android device.# Usage
Assuming you have already installed the app, connect to your emulator or phone using adb shell.
First start the service. You can do this either by opening the application or using the following commands on ADB shell
$ adb shell
# am startservice ca.zgrs.clipper/.ClipboardServiceOnce service is started you can invoke clipper service by broadcasting intents.
The intent's *Action* can be either "get" or "set". When setting the clipboard value, pass your string as an *Extra* parameter.* Supported actions
1. **get**: print the value in clipboard into logs (TODO: print the value on standard output)
2. **set**: sets the clipboard content to the string passed via extra parameter "text"
* Supported extras
1. **text**: The text that you want to be copied in the clipboardUsage example using broadcast intent:
# am broadcast -a clipper.set -e text "this can be pasted now"
# am broadcast -a clipper.get# Building
Build using maven1. update pom.xml and set ANDROID_HOME in enviroment.
2. build: `mvn package`
3. deploy: `mvn android:deploy`