Created
March 10, 2016 08:07
-
-
Save savishy/3cd744a653d12ecd13dd to your computer and use it in GitHub Desktop.
A list of useful adb commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###################################### | |
# get and set network connection | |
###################################### | |
# returns 1 if airplane mode is enabled, 0 otherwise. | |
adb -s $DEVICE_ID shell settings get global airplane_mode_on | |
# the same for wifi and mobile data. | |
adb -s $DEVICE_ID shell settings get global wifi_on | |
adb -s $DEVICE_ID shell settings get global mobile_data | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment