• General
  • Disable "suggested contacts" in sharing menu

Select any media or file and share it. The menu shows "suggested contacts" of chatting apps like Signal and Whatsapp.

This is a privacy issue in case someone is in sensitive contact with other people (e.g: shoulder surfing). I can't find anyway to hide these suggestions. Pinned apps are shown after these suggestions, which is also very annoying.

I find this "feature" to be incredibly inappropriate too. Its an upstream feature that allows individual applications to hijack the sharing menu. Upstream (AOSP) can't be convinced to fix it, and neither can individual application developers that use the feature.

Ideally, there would be a system-wide setting somewhere to disable suggested contacts altogether. By all means, keep the applications themselves in the sharing menu, but not specific contacts. You should have to drill down through the application to find that application's possible recipients.

EDIT:
The feature is called "direct share".
There are discussions around the internet about how to disable it, but they require nasty ugly hacks;
https://www.xda-developers.com/remove-direct-share-share-menu-root/

Actually, I was curious about this one and have been trying to figure it out for a while now. It's kind of complicated. There are a few different services working together to provide this list of share targets.

The personalized part of the list, the top part, can list shortcuts as well as the main activity of apps. This list is sorted by an app prediction score by an app prediction service.

So how does the app prediction service know what to show you? App devs can track shortcut usage. The share sheet will send an update to the app prediction service when a user shares something. Apps can also notify the prediction service when a shortcut is used or if the user manually does whatever a shortcut is for.

There's a way to disable the app prediction service for shares very easily (in the code, not an adb or settings thing), but I'm not sure what the result would be. It looks like shortcuts would still be listed, defeating the purpose. Or not. It's hard to follow all this stuff without an IDE.

If I'm right and haven't missed anything, there's not really a nice smart way to not show those items. Pretty much would have to filter out the shortcuts after getting them from the service or just empty the array and return that.