Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility service sometimes get stuck & does not monitor clipboard #42

Open
DUOLabs333 opened this issue Mar 11, 2022 · 27 comments
Open
Labels
enhancement New feature or request

Comments

@DUOLabs333
Copy link

Is your feature request related to a problem?
When I close XClipper (swiping up in the recents screen), it can no longer check for clipboard changes.

Describe the solution you'd like:
A service that runs XClipper in the background.

@DUOLabs333 DUOLabs333 added the enhancement New feature or request label Mar 11, 2022
@KaustubhPatange
Copy link
Owner

XClipper uses high-level accessibility service,

Did you enable it from Settings > Accessibility & select XClipper & turn it one! If yes, & doing so it still can't detect let me know your device name & model. Also sometimes it shows that "This service is malfunctioning" or some similar message, let me know that as well.

@DUOLabs333
Copy link
Author

It is -- I should mention that it does work, but only captures the most recent copy, not all the copies that happened since the app was closed. I'm on Android 11, Pixel 5.

@KaustubhPatange
Copy link
Owner

What do you mean by the most recent copy? Do you mean when the app is closed & removed from the recent menu the service doesn't work anymore which means you are not able to copy anything?

If yes, then there is a problem!

@DUOLabs333
Copy link
Author

No, I can copy, but for example, if I close the app, if I copy "Hello" then "Hello Hi", if I reopen the app, XClipper only shows "Hello Hi" as the newest element, not "Hello".

@KaustubhPatange
Copy link
Owner

So you are saying "Hello" is not stored in XClipper & you don't see that item when you reopen the app. Am I getting this correct?

@DUOLabs333
Copy link
Author

Yes.

@KaustubhPatange
Copy link
Owner

But do you get a notification from XClipper saying Clipboard content as "Hello"?

@DUOLabs333
Copy link
Author

I only get a notification when I reopen the app, and only for "Hello Hi".

@KaustubhPatange
Copy link
Owner

KaustubhPatange commented Mar 11, 2022

Open XClipper > Settings >General. Can you post the screenshot of this screen!

@DUOLabs333
Copy link
Author

Screenshot_20220311-101954

@KaustubhPatange
Copy link
Owner

Looks okay to me! So here is another question, is this happening from start or does it happen suddenly? Meaning, was it working earlier or did it happens just now?

@DUOLabs333
Copy link
Author

This has happened from the beginning.

@KaustubhPatange
Copy link
Owner

Okay so try the following solutions,

  1. Go to Phone Settings > Accessibility > XClipper & make sure the setting is turned on.
  2. In the app, go to Settings > General > uncheck & recheck the "Clipboard Service" setting, do the same for the "Improve detection" setting.
  3. If this still does not works, try rebooting the device once.
  4. If that didn't work, uninstall the app & reinstall the app but this time don't enable "Improve Detection" setting through ADB.
  5. See if this works, if not let me know!

@DUOLabs333
Copy link
Author

DUOLabs333 commented Mar 12, 2022

Rebooting seems to work.

@KaustubhPatange
Copy link
Owner

KaustubhPatange commented Mar 13, 2022

Seems like the accessibility service got stuck! I'll keep this issue open till I figure out why this happened. If you could tell me how to reproduce this issue then it would be much more helpful :)

@KaustubhPatange KaustubhPatange changed the title Background service Accessibility service sometimes get stuck & does not monitor clipboard Mar 13, 2022
@DUOLabs333
Copy link
Author

I don't even know how it happened myself.

@kstianzui
Copy link

XClipper uses high-level accessibility service,

Did you enable it from Settings > Accessibility & select XClipper & turn it one! If yes, & doing so it still can't detect let me know your device name & model. Also sometimes it shows that "This service is malfunctioning" or some similar message, let me know that as well.

I encountered the same problem. It seems that after Android Q, the background access to the clipboard is restricted. I have not found a solution yet.

@KaustubhPatange
Copy link
Owner

KaustubhPatange commented Mar 17, 2022

@kstianzui Did you use this app? The app has a workaround for that limitation & it works perfectly fine on my Pixel 2 (Android 11) & later devices as well.

The issue here addresses a bit different problem, where the accessibility service is killed by the system & I don't know why!

@kstianzui
Copy link

Did you use this app? The app has a workaround for that limitation & it works perfectly fine on my Pixel 2 (Android 11) & later devices as well.

Yes, I tested it on my phone, my phone is a Samsung S10+(Android 12), it has enough permissions, and it runs in the background

@KaustubhPatange
Copy link
Owner

@kstianzui So you are saying on your device the app (Android 12) the app is not working?

@kstianzui
Copy link

@kstianzui So you are saying on your device the app (Android 12) the app is not working?

Yes,I tested again just now,no battery limit

@KaustubhPatange
Copy link
Owner

I don't have an Android 12 device, might've to purchase one to test the app!

@kstianzui
Copy link

I don't have an Android 12 device, might've to purchase one to test the app!

Maybe it is an isolated phenomenon, I have tested similar software and none of them are working properly

@febryanvaldo
Copy link

I previously have the same problem, but now i found out the solution, make sure to not restricted the app background and also allow background data + unrestricted data. You can see screenshot below. Hopefully it helps.

Screenshot_20220702-201227
Screenshot_20220702-201301

@KaustubhPatange
Copy link
Owner

Got it, I can force this check when the app is installed that'll tell users to disable restricted battery usage from settings. Thanks for your help.

@KaustubhPatange
Copy link
Owner

@febryanvaldo Hey, can you tell me your device name for which you have to disable battery optimization in order to make XClipper work?

@febryanvaldo
Copy link

@KaustubhPatange Google Pixel 4XL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants
@KaustubhPatange @febryanvaldo @kstianzui @DUOLabs333 and others