Skip to content

Instantly share code, notes, and snippets.

@amboxer21
Created January 19, 2014 21:49
Show Gist options
  • Save amboxer21/8511414 to your computer and use it in GitHub Desktop.
Save amboxer21/8511414 to your computer and use it in GitHub Desktop.
Remounts android FS as read/write.
#!/bin/sh
if mount | grep "system*.*ro"; then
echo -e "\nRemounting system as R/W.\n" &&
mount -o remount,rw $(mount | awk '/system/ {print $1}' | sed 's/\/system/ \/system/g';
else
echo -e "\nSystem is already mounted as R/W.\n";
fi
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment