android-disable-direct-share icon indicating copy to clipboard operation
android-disable-direct-share copied to clipboard

This will crash apps in Android 10 (Q)

Open MartyMacGyver opened this issue 5 years ago • 2 comments

This method worked in 9.0 and earlier, but in 10.0 it will crash a running app if you try to share anything. I don't know what the better solution is yet, but you should add a warning to this effect.

MartyMacGyver avatar Sep 04 '19 06:09 MartyMacGyver

Android 10/Q no longer polls apps for Direct Share targets (apps now push them using a new API) so the filter is probably redundant on Q anyway.

My guess is that we're stuck with Direct Share until someone finds another way to block it.

I really wish AOSP would just add some options for the Share menu. Enable/disable Direct Share, enable/disable the new AI-powered suggestions panel, pin and hide share targets, etc.

rejhgadellaa avatar Sep 04 '19 14:09 rejhgadellaa

Thanks. I added a warning to the README.

stefansundin avatar Sep 04 '19 18:09 stefansundin