Skip to content

Instantly share code, notes, and snippets.

@dietercastel
Created May 20, 2016 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dietercastel/6c003ae3bd911dd503d0c38f57c898fb to your computer and use it in GitHub Desktop.
Save dietercastel/6c003ae3bd911dd503d0c38f57c898fb to your computer and use it in GitHub Desktop.
Run adb as root and execute the script.
#!/bin/bash
#run adb as root
adb root
cat $1 | while read line; do adb shell "$line"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment