Skip to content
Android project that monitors the system clipboard for changes.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
res First commit Apr 21, 2013
src/com/example/clipboardmonitor First commit Apr 21, 2013
.gitignore First commit Apr 21, 2013
LICENSE First commit Apr 21, 2013 Update Nov 26, 2019 First commit Apr 21, 2013
build.xml First commit Apr 21, 2013
proguard-project.txt First commit Apr 21, 2013 First commit Apr 21, 2013


This is a sample Android project that monitors the system's ClipboardManager for changes and logs the clipboard text to a file.

Update (2019-11-26)

This issue is completely mitigated in Android 10 with this change:

Limited access to clipboard data

Unless your app is the default input method editor (IME) or is the app that currently has focus, your app cannot access clipboard data on Android 10 or higher.


An electronic clipboard is insecure by nature. Such a system is designed to facilitate the sharing of data between applications. However, the Android ClipboardManager is so mind blowingly insecure that any application can log every piece of data that you copy. This project is designed to illustrate how trivial this is.

Android developers need to be aware that anything they add to the system clipboard should be considered public data.


The Android platform should implement a READ_CLIPBOARD permission or a PasswordEditText with a supported PICK_PASSWORD intent action so users have more control over what apps have access to the system clipboard.

The new Autofill Framework solves these concerns in Android 8.0.


This code is released under the Apache 2.0 license. See the LICENSE text for details.

You can’t perform that action at this time.