Audience

Overview

This article details how to disable the search icon for all Settings screens and how to determine the intent required to call a specific setting such as Bluetooth.

In Android Oreo and later, the default, when accessing settings, is to show the search icon in top right. This allows access to any other settings using search by name (as per screenshots below). This functionality normally prevents allowing user access to specific Settings pages via an Intent.

Method

The Search icon process is named com.android.settings.intelligence and can be disabled using Mx AppMgr :

   <characteristic version="8.0" type="AppMgr">

    <parm name="Action" value="DisableApplication" />

    <parm name="Package" value="com.android.settings.intelligence" />

  </characteristic>

Once this is done , the search icon will no longer be visible in any Settings screens i.e. the user will be locked into a specific Setting provided it is accessed via an Intent:

A settings intent can now be used to launch specific settings such as WiFi and Bluetooth without allowing access to other Settings via Search:

Finding the intent required to launch specific Settings

This process is greatly simplified using a Shortcut tool such as Shortcut Maker ( https://play.google.com/store/apps/details?id=rk.android.app.shortcutmaker ) which displays the available intents under Settings/Settings Activities :

Graphical user interface, application</p>
<p>Description automatically generatedGraphical user interface, text, application</p>
<p>Description automatically generated

A specific Settings activity can be selected and tested in Shortcut Maker and if it works as expected, the intent and class name can be copied from the details page as per the WiFi example below: