1
Completed

Access clipboard in background (Android Q)

I had raised an issue here "%CLIP event doesn't work and state doesn't update properly" about the clipboard not triggering events. Joao found out it was an Android Q issue where they added new security to disallow all applications from accessing the clipboard in the background.

There is a new permission

<permission android:name="android.permission.READ_CLIPBOARD_IN_BACKGROUND" android:protectionLevel="signature"/>

I'm not really sure if it will be possible for Tasker to receive permissions with protectionLevel signature, but I figured I would create a ticket for it just in case.

I'm reading elsewhere that Android Q will break a lot of clipboard manager apps, but Tasker gets administrator privileges in some cases, so maybe that will be possible.

1 reply

Unfortunately I just tried and it doesn't work. Only system apps will be able to get that permission.

I'll leave the permission in the app though in case you have a rooted device or the permission level changes someday.