I have made a work profile using Shelter. I was copy-pasting some stuff in my personal profile while the work profile was disabled. Later, I discovered everything I had copied was showing up in Samsung Keyboard’s clipboard history (in the work profile). Personal profile’s Samsung Keyboard was uninstalled via ADB (among some other packages like Google Play Services), implying a different package is doing this. How can I find the culprit? (I’d love to just install LineageOS on it but there isn’t a built for the device yet. I just don’t use it for sensitive stuff.)

I might have a lead: whatever it is probably has the READ_CLIPBOARD_IN_BACKGROUND permission, but I wasn’t able to find it. Is there an adb command to list all packages with a specific permission, perhaps?

  • Cris16228@lemmy.today
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 hours ago

    Hope it works:

    adb shell "pm list packages -f | while IFS=: read -r _ pkg; do \ dumpsys package \"$pkg\" | grep -q '<permission here>' && echo $pkg; \ done"