Skip to content

Instantly share code, notes, and snippets.

@CypherpunkSamurai
Created February 7, 2022 16:39
Show Gist options
  • Select an option

  • Save CypherpunkSamurai/994bf70833c6b69211897a0b42403d6d to your computer and use it in GitHub Desktop.

Select an option

Save CypherpunkSamurai/994bf70833c6b69211897a0b42403d6d to your computer and use it in GitHub Desktop.
ADB Commands

ADB Commands

Enable Disable Mobile Internet

ref

airplane
  enable
    adb shell settings put global airplane_mode_on 1
    adb shell am broadcast -a android.intent.action.AIRPLANE_MODE
  disable
    adb shell settings put global airplane_mode_on 0
    adb shell am broadcast -a android.intent.action.AIRPLANE_MODE

mobile data
    adb shell svc data enable
    adb shell svc data disable

wifi
    adb shell svc wifi enable
    adb shell svc wifi disable

bluetooth
  eanable
    adb shell settings put global bluetooth_disabled_profiles 1
  disable 
    adb shell settings put global bluetooth_disabled_profiles 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment