majido / clipper Goto Github PK
View Code? Open in Web Editor NEWSimple android app to interact with system clipboard service via adb shell
License: MIT License
Simple android app to interact with system clipboard service via adb shell
License: MIT License
Can you put an Apache 2.0 license on this project please?
I enhanced it to read a text file, this allows me to send multiple-pages into the clipboard easily. It's not really clean for a pull request - you decide, code is here: https://github.com/RoundSparrow/clipper
Thank you for the app.
after run am broadcast -a clipper.get,can not get the clipper content, the detail as:
HWNXT:/ $ am broadcast -a clipper.get
Broadcasting: Intent { act=clipper.get flg=0x400000 }
Broadcast completed: result=0
adb shell am broadcast -a clipper.get
Broadcasting: Intent { act=clipper.get flg=0x400000 }
Broadcast completed: result=0, data=""
this is what I got when I send clipper to the background
It took me some time to figure out that the service wasn't started automatically after installation. And some more time to figure out that I had to run
am startservice ca.zgrs.clipper/.ClipboardService
to do so. After that I could use the broadcast commands and have them function.
Suggestion: make service auto-start and/or document this command in the README.
Using \n does not work to create a new line. Is this a bug? It would be EXTREMELY useful for me!
Apparently it doesn't work on a Google Pixel running Android Pie (Bootlegger's ROM).
Broadcasts are sent but result is 0 regardless of setting or getting.
Might be PEBCAK, will report back.
Are you still maintaining thiss app, @majido? The last release was more than 4 years ago, so was the last commit. Does it still work on recent Android versions?
PS: while on it, what license is this project using?
It would be useful to make a release and provide a downloadable apk (you can add binaries to releases on Github).
Building for me was not as simple as ./configure && make && make install
(needed to download Android and API 10, modify pom.xml since it overrides ANDROID_HOME, update version of android-maven-plugin to 3.6.1 because older ones didn't find aapt
properly and much newer ones didn't work with my system-provided maven version).
I just updated my Pixel 3 XL to Android 10 and now Clipper won't return data from the clipboard.
Issuing the adb command adb shell am broadcast -a clipper.get
always returns result=0, data=""
.
I assume this is related to the recent Android security changes that limits clipboard access except to system apps: https://issuetracker.google.com/issues/123461156
Is there any more information regarding this issue, or any workaround being considered?
How to do it
Setting Cyrillic text (cp1251) causes incorrect lines to be received in the clipboard
cat /sdcard/cyrilic-cp1251.txt|am broadcast -a clipper.set -e text "$(cat -)" >/dev/null 2>&1
After setting the cyrillic text (cp1251), I get strange lines on the clipboard :
ʨਫ먶�NDROID_ASSETS=/system/app
What's this ? Part of set or env variables?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.