Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- :loop
- echo "Disabling mobile data"
- adb shell "su -c 'settings put global airplane_mode_on 1'"
- adb shell "su -c 'am broadcast -a android.intent.action.AIRPLANE_MODE'"
- timeout 5
- echo "Enabling mobile data"
- adb shell "su -c 'settings put global airplane_mode_on 0'"
- adb shell "su -c 'am broadcast -a android.intent.action.AIRPLANE_MODE'"
- timeout 300
- goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement