Copy permission added on Graphene OS

Graphene finally added a write permission into clipboard. For now, it’s allowed by default. Very few Android variants have such permission, mostly Chinese-market OEMs. Be mindful before denying an app access. The permission is needed to write in your clipboard, if you disable for an app you can only use your long press selector to copy.

Can this be used to easily detect apps that were unscrupulously peeking at your clipboard or was that possible before?

This has been a thing for a while

3 Likes

I don’t understand could someone eli5?

Yeah well that one is not super robust. For example if you are in split screen, using PIP or when the keyboard is visible those toasts will not be shown. So an app can easily hide capturing your clipboard

Apps in Android (and iOS) can by default read anything that is in your clipboard (anything that you have copied). Apps sometimes capture this data without a good reason and upload this for analysis. So if you happen to have had a password in your clipboard or personal data that might just end up with any app developer using that.

GrapheneOS now added a feature to block access to the clipboard for apps so that they cannot capture this data and you can only paste manually.

6 Likes

ty appreciated. but wdym by “paste manually”? as opposed to what? I only every pasted manually

Well paste manually is probably what you think you are always using. The fact that apps take the contents and put it in for you probably is mostly unnoticed. For example a browser might suggest to open a link in your clipboard when clicking new tab.

I genuinely don’t remember that ever happening :S

I guess the only way for me to notice any change is when this GOS update reaches me and it’s on by default so I will notice any changes in my routine.

can you just turn this off by default for everything then? i only ever need to paste manually, never use anything automated like that.

great work GOS team!

Is this kind of feature an iOS Lockdown mode one? Whenever my I add an app to my RSS feed it requests to use clipboard and if I select yes automatically adds that instead of making me hit paste.

You can

2 Likes

i just turned it off for all apps (a simple toggle). let’s see which apps i use will stop working…

You can test this easily:

  • close your browser entirely
  • copy any link (probably complete with https://)
  • open your browser
  • open a new tab and tap on the URL bar
  • it sometimes shows a toast messge that says “XYZ pasted from your clipboard”
  • in Chromium browsers it generally shows a second line that says “:globe_with_meridians: Link you copied :eye:” (icons close to these emojis)

This is when you browser automatically reads your clipboard, but any app can do that, and it does not have to be a link. It can be anytning, even a password like @ph00lt0 said.

2 Likes

iOS actually had a permission for this for a while:

Starting in iOS 14, the system notifies the user when an app gets general pasteboard content that originates in a different app without user intent. The system determines user intent based on user interactions, such as tapping a system-provided control or pressing Command-V. Use the properties and methods below to determine whether pasteboard items match various patterns, such as web search terms, URLs, or numbers, without notifying the user.

It doesn’t just notify you though you have to press “Allow paste.” The Android one only notifies you but doesn’t stop the app from doing it.

4 Likes

Oh wow I didn’t know that. Do they have access to the history of the clipboard or just what is most recently copied?

Considering

What apps do this? Obviously we can’t know exactly what they’re doing with it, but if an app is checking without reason then we can assume.

Can we name any examples?

Only current clipboard item afaik. But they might pull this all times you open the app and it will be quite a lot of data. And if you manage to not show the toast with methods I mentioned earlier that can be done stealth.

I’ve seen a couple games do this. IIRC Path to Nowhere and maybe Reverse: 1999 did this on startup a while back (don’t remember if it was consistent or not). I believe they stopped doing it after updating, so it’s possible it may have been accidental and due to some library bundled in the apps (wouldn’t be surprised since games like this usually bundle a bunch of invasive ad libraries, and at least on PC they usually bundle some invasive anticheat, so they’re not particularly concerned about user privacy).

I’ve seen some other apps do it for TOTP codes, and I vaguely recall seeing some other apps do it on startup as well, although I couldn’t say which ones, so it’s not particularly uncommon.

I don’t think you can block paste permission. You can only block copy/write permission. To prevent some attacks with execution attempts probably.