Skip to content

Instantly share code, notes, and snippets.

@saidie
Created May 16, 2016 09:50
Show Gist options
  • Save saidie/3fc2ad8d5a1a9b69d3e272420051c109 to your computer and use it in GitHub Desktop.
Save saidie/3fc2ad8d5a1a9b69d3e272420051c109 to your computer and use it in GitHub Desktop.
#!/bin/sh
adb push hosts /data/local/tmp
adb shell "su -c 'mount -orw,remount /system'"
adb shell "su -c 'cp /data/local/tmp/hosts /system/etc/hosts'"
adb shell "su -c 'mount -oro,remount /system'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment