Use ADB to check if Airplane mode is turned on?

前端 未结 2 1062
别那么骄傲
别那么骄傲 2021-02-06 13:50

I know that we can do the following:

adb shell am start -a android.settings.AIRPLANE_MODE_SETTINGS
adb shell input keyevent 19 ; adb shell input keyevent 23
         


        
2条回答
  •  再見小時候
    2021-02-06 14:34

    adb shell settings get global airplane_mode_on returns 0 for airplane_mode off and 1 for airplane_mode on.

提交回复
热议问题