Skip to content

Instantly share code, notes, and snippets.

@hyongbai
Created July 18, 2016 10:25
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 hyongbai/a6f92e87634499ecc4ae2d199351636a to your computer and use it in GitHub Desktop.
Save hyongbai/a6f92e87634499ecc4ae2d199351636a to your computer and use it in GitHub Desktop.
#!/system/bin/sh
#Adding insecured adb (adbd)
#Ported to bash script by mattlgroff.
#Dear Chainfire, learn2OpenSource.
su -c 'mount -o remount,rw /'
su -c 'stop adbd'
su -c 'cat /sbin/adbd > /sbin/adbd.original'
su -c 'rm /sbin/adbd'
su -c 'cat /system/usr/adbd > /sbin/adbd'
su -c 'chown 0.0 /sbin/adbd'
su -c 'chmod 750 /sbin/adbd'
su -c 'start adbd'
su -c 'mount -o remount,ro /'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment