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?
It’s Samsung keyboard after all. It is the culprit. While back in my not private life I discovered it kept clipboard history for more than 2 or 3 months while I was using gboard. This thing has too much access over the system. Disable it form the work profile
Not said in a bad way but if you do a quick search gives you can get this https://android.stackexchange.com/questions/246636/how-to-list-all-apps-with-a-specific-permission-in-adb
https://gist.github.com/gSrikar/a880b01690eb437d4dd4d610db50e0a3 this for a list of all permissions
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? 🤦
It could be! Like always

