https://bugs.kde.org/show_bug.cgi?id=523474

            Bug ID: 523474
           Summary: READ_LOGS-based automatic clipboard sync
                    (ClipboardListener) does not trigger even when
                    permission is correctly granted
    Classification: Applications
           Product: kdeconnect
      Version First unspecified
       Reported In:
          Platform: Android
                OS: Android 17.x
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: android-application
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

DESCRIPTION
Clipboard auto-sync from phone to PC doesn't work even after granting the
READ_LOGS permission via adb, which is supposed to let the app watch its own
logcat and self-trigger a sync without needing the manual "Send Clipboard"
button/menu item.

STEPS TO REPRODUCE
1. adb shell pm grant org.kde.kdeconnect_tp android.permission.READ_LOGS
2. adb shell appops set org.kde.kdeconnect_tp SYSTEM_ALERT_WINDOW allow
3. adb shell am force-stop org.kde.kdeconnect_tp, then copy some text on the
phone

OBSERVED RESULT
Confirmed both grants actually took effect (dumpsys package shows READ_LOGS
granted=true, appops shows SYSTEM_ALERT_WINDOW allow), and
BackgroundService/ClipboardPlugin are running fine. But logcat only shows the
expected system-level denial:
E ClipboardService: Denying clipboard access to org.kde.kdeconnect_tp,
application is not in focus nor is it a system service for user 0
...with no reaction from the app afterward - no floating activity, nothing
lands in the PC clipboard. Manual "Send Clipboard" works fine every time.

EXPECTED RESULT
With READ_LOGS granted, the app should notice its own denial in the log and
self-trigger a sync, same as the manual button does, without me having to press
anything.

SOFTWARE/OS VERSIONS
Android 17, Pixel 6a
App version: 1.35.9 (F-Droid)
Desktop side: KDE Connect on Linux (Ubuntu)

ADDITIONAL INFORMATION
Might be related to bug 521052 (Send Clipboard button missing after the efae488
permission-check fix) - that one was about button visibility, but I'm wondering
if the background auto-sync path got left broken in the same change, since my
logs show zero reaction from the app even with the permission correctly
granted. Happy to attach the full logcat if useful.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to