Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind with an Android device's clipboard (ClipSync) #834

Closed
arjamizo opened this issue Nov 8, 2017 · 3 comments
Closed

Bind with an Android device's clipboard (ClipSync) #834

arjamizo opened this issue Nov 8, 2017 · 3 comments

Comments

@arjamizo
Copy link

arjamizo commented Nov 8, 2017

tl;dr select text on Linux and find it in your Android's clipboard

I am looking for some alternative for ClipSync, which syncs clipboards between Android and Windows.

What do you think about this?

New option in options:

  • "Bind with Android"
    ** Clicking on which opens qrcode with a public key (CopyQ generates its private key only for this session)
    ** Android device gets MAC (for wifi) or IP (for NAT, but still safety/no 3G nor LTE usage) or (fallback) ngrok alternative
    ** whenever there's some magic-packet broadcasted via UDP port 3906, CopyQ decrypts this with private key and adds to the history
    while true; do nc -l 3906 | openssl ... $COPYQ_PRIV_KEY | xclip -selection c; done

but this requires additional Android app:

  • Android:
    ** qrcode scanner for binding (zlib) + openssl (rsa) for encrypting clipboard content
    ** hook on every cliboard change + post-hook
    ** gnupg for encryption of the cliboard
    ** () optional compression of selected files for super
    ** (
    ) optional share provider for exchanging files
public class ClipBoardCopyQSync extends Service {

    private final String tag = "[[ClipboardWatcherService]] ";  
    private OnPrimaryClipChangedListener listener = new OnPrimaryClipChangedListener() {
        public void onPrimaryClipChanged() {
            performClipboardCheck();
        }
    };

    @Override 
    public void onCreate() {
        ((ClipboardManager) getSystemService(CLIPBOARD_SERVICE)).addPrimaryClipChangedListener(listener);
    }

via https://stackoverflow.com/a/22287217

What do you think guys?

@amosbird
Copy link
Contributor

amosbird commented Dec 9, 2017

I asked for a similar feature #793

@PaulMEdwards
Copy link

According to #449, Android platform target was dropped...

I'm looking for a replacement for ClipperSync which I've been using for many years and is EOL as of next month.

@hluk
Copy link
Owner

hluk commented Oct 21, 2024

Closing. I don't have any reason to implement this myself.

@hluk hluk closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants