clipto-pro / Android

Cross-platform Universal Clipboard & Notes
https://play.google.com/store/apps/details?id=com.wb.clipboard.pro
159 stars 11 forks source link

Please support "clipboard whitelist" #81

Open txyyh opened 2 years ago

txyyh commented 2 years ago

"clipboard whitelist" is a magisk&riru module Used for allowing app access clipboard in the background on Android 10 and above.

Please add support to this module(just an option is enough).

atrashler commented 2 years ago

magisk&riru The app should correctly work if you whitelist it by using this trick. Have you checked it for your device? (I actually do not know what else I can do because it should work as expected after that:)

txyyh commented 2 years ago

yes but i can't use the clipboard access switch like adb model.

atrashler commented 2 years ago

yes but i can't use the clipboard access switch like adb version.

pause/resume action? Seems like an issue. Will check it. Thanks!

atrashler commented 2 years ago

Could you check it in the upcoming beta version 7.1.3? If it will not work, could you send me an example how the result of this command looks like on your device (the command: getprop sys.clipboard.whitelist)?

txyyh commented 2 years ago

Well,Now I could only get 7.1.1 version from google play beta channel. Could you send me a link or remind me when this version push to google play beta channel?

atrashler commented 2 years ago

Well,Now I could only get 7.1.1 version from google play beta channel. Could you send me a link or remind me when this version push to google play beta channel?

the version 7.1.6 should be available in Beta channel (or will be available soon). Google notified me that it is already published.

txyyh commented 2 years ago

Could you check it in the upcoming beta version 7.1.3? If it will not work, could you send me an example how the result of this command looks like on your device (the command: getprop sys.clipboard.whitelist)?

Well, it can access the clipboard in background, but I can't find anything about pause/resume switch, and the warning is still on.

Here's the result of this command : Screenshot_20210819173405

atrashler commented 2 years ago

Could you check it in the upcoming beta version 7.1.3? If it will not work, could you send me an example how the result of this command looks like on your device (the command: getprop sys.clipboard.whitelist)?

Well, it can access the clipboard in background, but I can't find anything about pause/resume switch, and the warning is still on.

Here's the result of this command : Screenshot_20210819173405

Sound weird:) Seems like the app does not see the system prop, which should be set by Magisk (I have found it here - https://github.com/Kr328/Riru-ClipboardWhitelist-Magisk).

Btw, how did you check that the magisk module is configured properly?

txyyh commented 2 years ago
  1. Please see this repo instead, the repo you found is too old.

  2. In fact, it's very hard to detect riru and it's modules(see this). Maybe the easiest way to detect it is asking user itself after finding clipto can access the clipboard in background........

  3. This Riru module has a gui, you can easily choosing which app you want to add to "clipboard whitelist", like this Screenshot_20210820152229

  4. Riru says that this module was injected successfully.

Screenshot_20210820-144559984 (1) "Riru 正常工作中,已载入 4 个模块"

And the app in whitelist also can access clipboard in background. So I thought this module workes great.

atrashler commented 2 years ago
  1. Please see this repo instead, the repo you found is too old.
  2. In fact, it's very hard to detect riru and it's modules(see this). Maybe the easiest way to detect it is asking user itself after finding clipto can access the clipboard in background........
  3. This Riru module has a gui, you can easily choosing which app you want to add to "clipboard whitelist", like this Screenshot_20210820152229
  4. Riru says that this module was injected successfully.

Screenshot_20210820-144559984 (1) "Riru 正常工作中,已载入 4 个模块"

And the app in whitelist also can access clipboard in background. So I thought this module workes great.

Could you please run these commands on your device and attach the output (separately for each command):

1) cat /data/misc/clipboard/whitelist.list 2) su 'cat /data/misc/clipboard/whitelist.list'

txyyh commented 2 years ago

Yes, it need superuser... Screenshot_20210821205555

atrashler commented 2 years ago

Please check the upcoming Beta build 7.1.10

txyyh commented 2 years ago

OK, It works fine

(But it forcibly need superuser in a rooted device In fact, thought clipboard whitelist don not need whitelist app itself have superuser, this behaviour may cause some unnecessary misunderstand. So a description or add a choice in here is needed.

IMG_20210824_082606

txyyh commented 2 years ago

But I suggest more on add a choice. In order to pass independent magiskdetect in some apps, some people will use Magisk lite (a kind of magisk which only mount Magisk to specify apps.) In this situation, only a choice can remain them.