Created
July 18, 2016 10:25
-
-
Save hyongbai/a6f92e87634499ecc4ae2d199351636a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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