Samsung Clipboard History

https://lemmy.ml/post/39401981

Samsung Clipboard History - Lemmy

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?

Not said in a bad way but if you do a quick search gives you can get this …stackexchange.com/…/how-to-list-all-apps-with-a-…

gist.github.com/…/a880b01690eb437d4dd4d610db50e0a… this for a list of all permissions

How to list all apps with a specific permission in ADB?

I want to list all apps with a specific permission. For instance, output the package names of apps with the VIBRATE permission. The apps with a specific permission then be revoked or enabled as

Android Enthusiasts Stack Exchange
I had come across that post, but for some reason… It either doesn’t list anything or returns an error.

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"

I, umm, found the responsible package…

Samsung Keyboard.

Maybe it reinstalled itself after a system update? 🤦