B
B
bilachayka2021-08-31 09:36:25
Android
bilachayka, 2021-08-31 09:36:25

How to enable Airplane Mode via ADB?

How to enable Airplane Mode via ADB? without the help of keyevents and opening the settings module, there is also such a command:
adb shell settings put global airplane_mode_on 1
but it calls the flight mode only visually, help someone who fumbles, while preferably without root, thanks :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-08-31
@Adler_lug

From the first link on Google:

To enable Airplane Mode, use the following commands:
adb shell settings put global airplane_mode_on 1
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
To disable Airplane Mode, you must set the value to 0 and broadcast the intent again:
adb shell settings put global airplane_mode_on 0
adb shell am broadcast -a android.intent.action.AIRPLANE_MODE

PS Didn't check...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question