18

I've encountered apps which create global Android context menu entries.

screenshot Librera

Librera Reader

screenshot Poet Assistant

Poet Assistant


Suggesting to uninstall apps isn't an answer. Using ADB is fine.
One may also want to remove some of the default Android options such as 'cut' (for text).

LineageOS 21 / Android 14. The screenshots are from Firefox version 130.0.

Andrew T.
  • 16,898
  • 10
  • 77
  • 134
user598527
  • 798
  • 2
  • 11
  • 28

1 Answers1

1

You can find out which apps are adding entries and then make necessary changes. At first, you may use the following command to list out active accessibility services:

adb shell settings get secure enabled_accessibility_services

This will provide you with a return listing of enabled services, in this example format:

com.example.app/com.example.app.AccessibilityService
com.google.android.accessibility/.selecttospeak.SelectToSpeakService

If an application is using the accessibility services to add unwanted items into the context menu, you can disable it through this:

adb shell settings put secure enabled_accessibility_services \
"com.google.android.accessibility/.selecttospeak.SelectToSpeakService"

If you notice some other unneeded application that is adding items in the context menus, then you may restrict their permissions to modify the context menu by disabling an app's ability from running in the background:

adb shell appops set <package_name> RUN_IN_BACKGROUND deny

And for enabling it again:

adb shell appops set <package_name> RUN_IN_BACKGROUND allow

However, If you have rooted your phone, tell me to provide you with more effective and straight forward approaches.

Ali Khakbaz
  • 195
  • 8