There is a workaround for getting clipboard data on Android 10 and above

2.2k Views Asked by At

According to this answer: Can't get clipboard information on Android 10 there is no way to get the clipboard data, on Android 10 and above, unless your app is the default input method editor (IME) or is the app that currently has focus.

However I stumbled upon this workaround:

  1. https://forum.joaoapps.com/index.php?threads/clipboard-monitor-listener-no-longer-works-on-android-10.49808/

  2. https://joaoapps.com/AutoApps/Help/Info/com.joaomgcd.join/android_10_read_logs.html

but I don't understand how and why that works. More importantly, why do we need to use adb to grant these permissions. Can't we add them directly in the Android Manifest file?

0

There are 0 best solutions below