Giter Club home page Giter Club logo

riru-clipboardwhitelist's Introduction

Riru - Clipboard Whitelist

A module of Riru/Zygisk. Allowing apps to access the clipboard in the background on Android 10.

Requirements

  • Zygote inject framework installed
    • Riru >= 26.0
    • Zygisk
  • Android 10+

Feature

Allowing apps to access the clipboard in the background on Android 10+.

Multi-User Support

Add "Clipboard" app to other user and configure it.

Build

  1. Install JDK, Android SDK

  2. Configure SDK path in local.properties

    sdk.dir=/path/to/android/sdk
  3. Configure built-in manager app signing in signing.properties

    keystore.path=/path/to/your/keystore.jks
    keystore.password=<keystore password>
    key.alias=<key alias>
    key.password=<key password>
  4. Run build command

    ./gradlew module:assembleRelease
  5. Pick <injector>-clipboard-whitelist-<version>.zip from module/build/outputs/magisk/<injector>/<build-type>

riru-clipboardwhitelist's People

Contributors

kr328 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

riru-clipboardwhitelist's Issues

No App Installed

I installed the Zygisk version on my Pixel 7 Pro, Android 13.

No clipboard or whitelist app was installed, so there's no way to configure this. It is listed in the Modules section of Magisk. Rebooted after install, etc etc.

I confirmed it's also not just somehow magically working. What can I do?

Zygisk-ClipboardWhitelist planned or available?

Hi there,

is there a ZYGISK variant of ClipboardWhitelist planned or available?

ClipboardWhitelist is corrently the only module for what I need Riru.

Anyway, ClipboardWhitelist is a great tool, need it everyday at least for my clipboard manager.

高版本magisk刷入问题

您好,请问一个问题
我用Delta26.4和magisk26.3刷入模块,app都无法显示
system目录里有,但是桌面不显示,应用管理里也找不到
回退到magisk25.2刷入才会显示
两台设备都是miui14,官改,都有这个问题
高版本不显示和低版本显示是在相同的系统里试的,应该不是官改的问题吧?

Video playback stutters & no sound when this is enabled

Hi, i have a very weird bug that causes every video playback runs like 5 fps & has no sound when the module is enabled, no matter where the video is being played from ( Youtube, Twitter... )

I am currently using Poco M3, Android 10, MIUI 12 EU with Magisk 26.1 + Zygisk, along with LSposed. I have tested version v23 and v24 of the module, but both versions have this issue.

My use case is to use Macrodroid to cut off parts of text in clipboard. At first i thought it was because of the app ran into loop clipboard condition, causing the device to slow down, but the app reports it only did once. The module does help the app works as expected, however, and the problem seems to start as soon as i restart the device after enabling the module without allowing the app to access, so i don't think it was because of the app i'm using.

Does anyone know why this is happening? If any log is needed then please tell, i will send it here. Thanks in advance!

Edit: added that i am using Zygisk.

升级到 v24 导致 miui13 系统崩溃

您好。我将模块升级到 v24 导致系统启动后立刻崩溃,使用 v23 不会出现此问题。
崩溃前系统提示 miui Permission 停止运行,随后系统停止运行并自动关机。
由于系统开机后立刻崩溃,尚未抓取 log。若有需要稍晚些附上。
谢谢。

相关信息:

  • system: miui 13.0.13.1 (Android 12)
  • magisk: 25.2 (25200), zygisk
  • clipboard whitelist: v24

Android 11上无效

环境:LineageOS18.1, Magisk23, Riru26, LSPosed1.6.2
通过Magisk安装Riru - Clipboard Whitelist并已勾选,但Native Clipboard还是无法获取复制的文本。

Not taking effect

Xiaomi MIX 2S, MIUI 11 (Based on Android 10)

Riru Core 19.7
Riru Clipboard Whitelist v3
(Other Riru module, e.g. Storage Redirect is working well)

What I get from adb shell (seems the module is not loading the list correctly)

polaris:/ # cat /data/misc/clipboard/whitelist.list
com.joaomgcd.join
polaris:/ # getprop sys.clipboard.whitelist
loaded
polaris:/ # exit```

Android 11 is invalid.

I hope the author can adapt to Android 11. It seems that the access method after API 11 has changed. I don't understand the details. Thank you

Android 14 下无法正常使用

我在Android 14(其实是澎湃OS,但这个提示是原生的提示)下使用官方Magisk 26.4的zygisk安装了插件。
已有的剪贴板应用,申请READ_LOGS会依旧提示需要申请权限,而且只允许使用一次(实际能使用几次,但有效时间比较短)。每隔一段时间都会弹窗且需要重复申请,或者应用直接卡死。
Screenshot_2023-11-17-12-38-43-602_com android systemui-edit

the second space dones't work

It can work in the main space, but it can't work in multi-user space. What can I do to make it work in multi-user space?

How to use

I don't understand how to use? Where is go my copy text? And how to paste it!

最新miui12系统不起作用了

手机型号:redmi k20pro
安卓版本:安卓10
系统版本:MIUI12 v20.10.14

问题:白名单变成“黑名单"了,只要包名在白名单里,就不能读取剪贴板(测试了输入法),删除包名或者禁用模块又恢复正常了,求作者大大更新修复问题

Versions 19 and 20 (Riru)

Versions 19 and 20 (Riru) do not work on android 10.
Версии 19 и 20 (Riru) не работают на 10 андроид.

---- 15 февр. 2022 г. 19:36:10 ----

02-15 19:33:27.222 1443 6886 I ActivityTaskManager: START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:com.github.kr328.clipboard flg=0x10008000 cmp=com.android.settings/.applications.InstalledAppDetails bnds=[233,1578][811,1725]} from uid 10242

02-15 19:33:28.308 14950 14987 W Role : com.github.kr328.clipboard not qualified for android.app.role.HOME due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.MAIN', mCategories='[android.intent.category.HOME]', mDataScheme='null', mDataType='null'}, mPermission='null', mMetaData=[]}

02-15 19:33:28.313 14950 14987 W Role : com.github.kr328.clipboard not qualified for android.app.role.DIALER due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.DIAL', mCategories='[]', mDataScheme='null', mDataType='null'}, mPermission='null', mMetaData=[]}

02-15 19:33:28.315 14950 15096 W Role : com.github.kr328.clipboard not qualified for android.app.role.EMERGENCY due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.telephony.action.EMERGENCY_ASSISTANCE', mCategories='[]', mDataScheme='null', mDataType='null'}, mPermission='null', mMetaData=[]}

02-15 19:33:28.318 14950 15096 W Role : com.github.kr328.clipboard not qualified for android.app.role.SMS due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.provider.Telephony.SMS_DELIVER', mCategories='[]', mDataScheme='null', mDataType='null'}, mPermission='android.permission.BROADCAST_SMS', mMetaData=[]}

02-15 19:34:21.472 1443 6734 I ActivityTaskManager: START u0 {act=android.settings.APPLICATION_DETAILS_SETTINGS dat=package:com.github.kr328.clipboard flg=0x10008000 cmp=com.android.settings/.applications.InstalledAppDetails bnds=[233,1425][811,1572]} from uid 10242

02-15 19:34:21.863 14950 14987 W Role : com.github.kr328.clipboard not qualified for android.app.role.HOME due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.MAIN', mCategories='[android.intent.category.HOME]', mDataScheme='null', mDataType='null'}, mPermission='null', mMetaData=[]}

02-15 19:34:21.865 14950 14987 W Role : com.github.kr328.clipboard not qualified for android.app.role.DIALER due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.intent.action.DIAL', mCategories='[]', mDataScheme='null', mDataType='null'}, mPermission='null', mMetaData=[]}

02-15 19:34:21.866 14950 14987 W Role : com.github.kr328.clipboard not qualified for android.app.role.EMERGENCY due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.telephony.action.EMERGENCY_ASSISTANCE', mCategories='[]', mDataScheme='null', mDataType='null'}, mPermission='null', mMetaData=[]}

02-15 19:34:21.867 14950 14987 W Role : com.github.kr328.clipboard not qualified for android.app.role.SMS due to missing RequiredComponent{mIntentFilterData=IntentFilterData{mAction='android.provider.Telephony.SMS_DELIVER', mCategories='[]', mDataScheme='null', mDataType='null'}, mPermission='android.permission.BROADCAST_SMS', mMetaData=[]}

---- 15 февр. 2022 г. 19:36:10 ----

模块在Android 13, Magisk 26.1不起作用

版本:

  • zygisk-ClipboardWhitelist: v24
  • 系统: LineageOS 20
  • 设备: Xperia 5II
  • Magisk: 26.1
  • 目标应用: KDE Connect 1.25.0

症状:

尝试重装ClipboardWhitelist, 重装KDE Connect, 主动唤醒ClipboardWhitelist root权限(我忘记了低版本时的会不会自动申请权限).
模块可正常在/data/system/zloader-QZpY2Q5paxFVZauj/zygisk_clipboard_whitelist/whitelist.list生成配置文件, 但KDE Connect,就是无法从后台读取剪贴板

Android 14 疯狂闪退

报错日志

Generated by AppErrorsTracking 1.3(6)
Project URL: https://github.com/KitsunePie/AppErrorsTracking
===============
[Device Brand]: google
[Device Model]: Pixel 7 Pro
[Display]: UQ1A.231205.015
[Android Version]: 14
[Android API Level]: 34
[System Locale]: zh_CN_#Hans
[Process ID]: 21068
[User ID]: 0
[CPU ABI]: none
[Package Name]: com.github.kr328.clipboard
[Version Name]: v26
[Version Code]: 26
[Target SDK]: 34
[Min SDK]: 29
[Error Type]: JVM
[Crash Time]: 2024-01-04T16:07:47.218
[Stack Trace]:
java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Configuration android.content.res.Resources.getConfiguration()' on a null object reference
	at android.app.ConfigurationController.updateLocaleListFromAppContext(ConfigurationController.java:266)
	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6897)
	at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2241)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at android.app.ActivityThread.main(ActivityThread.java:8194)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)

Can't work properly.

Device: Redmi note 7
Android version: 10
Miui Version: 12 (21.1.13)

Test : Clipboard action & Clipper+ Can't Work properly.
Please fixed it.

Not working on Android 13 P6P

Installed this module with Magisk v25.2 and Zygisk enabled. Enabled Join and Tasker in Clipboard app. Join doesn't appear to be picking up contents from the clipboard.

It interferes with cross-application pasting on Android 13

It mostly works on Android 13, except one small (well, the problem is actually quite big) thing.
In some apps, when attempting to paste some text copied from another application (example - from your browser to Telegram), the paste action does nothing. The text just don't get inserted.

Disabling it makes it all working.

[功能请求]关于新版本READ_LOGS的变动适配请求

关于在Android 12+(准确来讲是Android 13及以上)
出现的 READ_LOGS 只能允许使用一次的情况
能否利用LSPosed模块或者Zygisk模块修改这一个逻辑?
可能方向:
①修改READ_LOGS权限的运转模式,使READ_LOGS权限回到Android12及以下的长期拥有模式
②在每次应用请求READ_LOGS的时候自动授予权限

应用列表显示系统应用

可能用户会把一些 app 转为系统应用
希望能够可以选择

ps 仍然可以直接编辑 /data/misc/clipboard 中的文件

ColorOS13 无法正常使用

v23导致系统剪切板无法粘贴,其他正常
v24 大部分 app 无法启动
logcat.log
其他软件报错:
java.lang.IllegalStateException: Binder interceptor disabled
at android.os.Parcel.createExceptionOrNull(Parcel.java:3048)
at android.os.Parcel.createException(Parcel.java:3024)
at android.os.Parcel.readException(Parcel.java:3007)
at android.os.Parcel.readException(Parcel.java:2949)
at android.content.IClipboard$Stub$Proxy.getPrimaryClip(IClipboard.java:363)
at android.content.ClipboardManager.getPrimaryClip(ClipboardManager.java:207)
at y5.l.b(Unknown Source:8)
at k5.n$b.n(Unknown Source:51)
at k5.n$b.g(Unknown Source:12)
at a3.a.q(Unknown Source:3)
at a3.a.v(Unknown Source:103)
at k5.n.n(Unknown Source:110)
at v6.a.f(Unknown Source:8)
at k7.j0.run(Unknown Source:100)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:240)
at android.os.Looper.loop(Looper.java:351)
at android.app.ActivityThread.main(ActivityThread.java:8379)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)
Suppressed: k7.h0: [n1{Cancelling}@52eea6f, Dispatchers.Main.immediate]
Caused by: android.os.RemoteException: Remote stack trace:
at com.github.kr328.zloader.internal.Loader.callExecTransact(Loader.java:3)
at com.github.kr328.zloader.BinderInterceptors$BinderProxy.transact(BinderInterceptors.java:2)
at android.content.IClipboard$Stub$Proxy.getPrimaryClip(IClipboard.java:362)
at com.github.kr328.clipboard.ClipboardProxy.getPrimaryClip(ClipboardProxy.java:7)
at android.content.IClipboard$Stub.onTransact(IClipboard.java:201)

zygisk install Unsupported API: 27 min 29

- Copying zip to temp directory
- Installing zygisk-clipboard-whitelist-v23.zip
Archive:  /data/user/0/bwr.igmzgfz.mx/cache/flash/install.zip
  inflating: module.prop
******************************
Archive:  /data/user/0/bwr.igmzgfz.mx/cache/flash/install.zip
  inflating: customize.sh
 Zygisk - Clipboard Whitelist 
 by Kr328 
******************************
*******************
 Powered by Magisk 
*******************
Archive:  /data/user/0/bwr.igmzgfz.mx/cache/flash/install.zip
  inflating: service.sh
   creating: system/
   creating: system/app/
   creating: system/app/ClipboardWhitelist/
  inflating: system/app/ClipboardWhitelist/ClipboardWhitelist.apk
   creating: packages/
  inflating: packages/.android
   creating: zygisk/
  inflating: zygisk/armeabi-v7a.so
  inflating: zygisk/x86.so
  inflating: zygisk/x86_64.so
  inflating: zygisk/arm64-v8a.so
  inflating: classes.dex
  inflating: module.prop
   creating: customize.d/
  inflating: customize.d/20-enforce-magisk-version.sh
  inflating: customize.d/11-enforce-arch.sh
  inflating: customize.d/51-create-update-flags.sh
  inflating: customize.d/50-migrate-legacy-data.sh
  inflating: customize.d/90-restore-module-permission.sh
  inflating: customize.d/10-enforce-api-version.sh
  inflating: customize.d/91-restore-data-permissions.sh
  inflating: customize.d/40-initialize-data-directory.sh
  inflating: customize.sh
  inflating: customize.d/00-verify-resources.sh
- Extracting module files
- Verify module resources
  'classes.dex' verified
  'customize.d/10-enforce-api-version.sh' verified
  'customize.d/11-enforce-arch.sh' verified
  'customize.d/20-enforce-magisk-version.sh' verified
  'customize.d/40-initialize-data-directory.sh' verified
  'customize.d/50-migrate-legacy-data.sh' verified
  'customize.d/51-create-update-flags.sh' verified
  'customize.d/90-restore-module-permission.sh' verified
  'customize.d/91-restore-data-permissions.sh' verified
  'module.prop' verified
  'packages/.android' verified
  'service.sh' verified
  'system/app/ClipboardWhitelist/ClipboardWhitelist.apk' verified
  'zygisk/arm64-v8a.so' verified
  'zygisk/armeabi-v7a.so' verified
  'zygisk/x86.so' verified
  'zygisk/x86_64.so' verified
! Unsupported API: 27 min 29
! Installation failed

image

image

v23版本Clipboard崩溃,模块无法工作

一加7T,安卓10,面具版本24300,用的是zygisk
原本v21正常使用,升级成v23后,打开clipboard程序崩溃,而且模块也无法正常工作。重新安装v21版本后,打开clipboard依然崩溃。请开发者大大尽快解决好这个bug,拜托了
Screenshot_20220409-114559

kernelsu is not be supported

8b2a236a50699283099f9153682b298d
7409c1828c87f62ff29cc4002c50b767
936997adbd91cc768a315acc9e1697e1
e2359034c4df9ff6061841b1295d505f
4188b3309a695e7f2666c907ded1f94d
5aaef2a43db4e35f7a1a7038fa8ab41b

Model: redmi note 12 turbo, Android 13
kernelsu version: v0.7.2
The clipboard application cannot be seen in kernelsu, the cilpboard application is not displayed in the launcher, and there is no response when starting the clipboard in the settings.

Tap to translate doesnt work

After install newest core+module, then add Google Translate to Clipboard whitelist app (even reboot more time), Tap to Translate does not work same as android 9 (android 9: appear bubble once copying any text on any app). it means Google Translate dont have right to access clipboard in background

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.