clipto-pro / Desktop

A comprehensive solution for convenient and efficient work with notes, snippets, clipboard, files, and other information that requires quick access via any device.
193 stars 12 forks source link

android does not save clipboard text to clipto - unless you open clipto #148

Open igorzhilin opened 1 year ago

igorzhilin commented 1 year ago

Hi Android 13 Security patch Jan 1, 2023 Samsung s20+ Exynos Clipto 7.3.8-release I have granted clipto:

adb -d shell pm grant com.wb.clipboard.pro android.permission.READ_LOGS; 
adb -d shell appops set com.wb.clipboard.pro SYSTEM_ALERT_WINDOW allow; 

The permanent notification is allowed.

Problem:

  1. I copy text on Android. It used to automatically save to the cloud. I used to see the note from the web browser on PC almost immediately after it is copied on Android. Now it does not happen.
  2. The copied text does not show up on the permanent notification.
  3. I open clipto on Android.
  4. The copied text now appears at the top of the list. The note is synced with the cloud. The permanent notification now displays the copied text.

On the force stop and re-launch of clipto, Android asks "Allow Clipto to access all device logs?". 🤔But I did the adb -d shell pm grant com.wb.clipboard.pro android.permission.READ_LOGS;, didn't I?

I am not sure, maybe this is caused by a recent security update or something specific to Samsung. Please advise what this may be.

atrashler commented 1 year ago

Allow access to device logs as it is suggested by the system. It should help.

On Tue, Jan 24, 2023 at 6:26 AM igorzhilin @.***> wrote:

Hi Android 12 Samsung s20+ Exynos I have granted clipto:

adb -d shell pm grant com.wb.clipboard.pro android.permission.READ_LOGS;

adb -d shell appops set com.wb.clipboard.pro SYSTEM_ALERT_WINDOW allow;

The permanent notification is allowed.

Problem:

  1. I copy text on Android. It used to automatically upload. I used to see the note from the web browser on PC almost immediately after it is copied on Android. Now it does not happen.
  2. The copied text does not show on the permanent notification.
  3. I open clipto on Android.
  4. When I get into the clipto, now it asks "Allow Clipto to access all device logs?". 🤔But I did the adb -d shell pm grant com.wb.clipboard.pro android.permission.READ_LOGS; , didn't I?
  5. The copied text now appears at the top of the list. The note is synced with the cloud. The permanent notification now displays the copied text.

I am not sure, maybe this is caused by a recent security update or something specific to Samsung. Please advise what this may be.

— Reply to this email directly, view it on GitHub https://github.com/clipto-pro/Desktop/issues/148, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE5B3W75XE64D3VG66WECQDWT5KY3ANCNFSM6AAAAAAUET5YCQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

igorzhilin commented 1 year ago

Screenshot_20230329_130442_Android System

Even after I run these adb commands that are supposed to allow clipto access to logs, I still receive the above prompt at the first launch - and there's no option to allow it forever. Is this something Samsung specific?

pm grant com.wb.clipboard.pro android.permission.READ_LOGS; 
appops set com.wb.clipboard.pro SYSTEM_ALERT_WINDOW allow; 
am force-stop com.wb.clipboard.pro;
igorzhilin commented 1 year ago

https://issuetracker.google.com/issues/232206670 Looks like this permission has been made more stringent with Android 13, at least on Samsung.

Could you please investigate - or at least contribute to the discussion above? The discussion has been initiated by the creator of Tasker, and if more developers contribute to the cause, perhaps Google will take measures or help find a workaround.

For now, very unfortunately, clipto has become more cumbersome to use for me, as it does not save all clipboard copies automatically.

igorzhilin commented 1 year ago

Hi. It's still not working on Android 13.

There's no way to enable access to logs forever. Which makes my clipto subscription pretty useless.

Maybe the author can look into XClipper? This app uses Accessibility to capture clipboard, and it works quite well.