adb shell most common commands

4 replies [Last post]
support
Offline
Joined: 07/20/2011

A question received by our support team:
Hi team, Please send us some of the adb shell commands which will let us change the device settings or to open specific screens on android device.

Our team's response:
Here are some common commands:
To turn on bluetooth -
adb shell am start -a android.bluetooth.adapter.action.REQUEST_ENABLE

To open wifi-
adb shell am start -n com.android.settings/.wifi.WifiSettings

To fetch wifi info -
adb shell am start -n com.android.settings/.wifi.WifiInfo

To fetch wifi status -
adb shell am start -n com.android.settings/.wifi.WifiStatusTest

To open language settings -
adb shell am start -n com.android.settings/.LanguageSettings

To open development option -
adb shell am start -n com.android.settings/.DevelopmentSettings

To open dateTime set-up
adb shell am start -n com.android.settings/.DateTimeSettingsSetupWizard

vineethpillai111
Offline
Joined: 09/23/2016

Hii,
As per the above commands:
To open wifi-
adb shell am start -n com.android.settings/.wifi.WifiSettings
How can i get the "wifi.WifiSettings" this information. From where i can get the information regarding the activity name.

arundoss
Offline
Joined: 02/04/2015

Hi,

These are defined by the developers of android itself.

rohan.lakhlani
Offline
Joined: 03/08/2018

Guys, need a little help.

Can you please list the command that I need to insert in ADB to directly open the Pointer speed settings listed under Language and Input?

arundoss
Offline
Joined: 02/04/2015

Hi,

We are not sure of a direct way to open pointer speed via adb.
You can create a script that can do this set of actions.