Advertisement
wariat

Untitled

Feb 27th, 2023
808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.42 KB | None | 0 0
  1. #!/system/xbin/bash
  2.  
  3. # copyleft 2016 by wariat
  4. # Manual:
  5. # use via ADB Luke
  6. # # su-onoff.sh
  7.  
  8. mount -o remount,rw /system
  9.  
  10. if [ -e /system/xbin/su ]
  11. then
  12.   echo "nie ma su, jest sux... smierdzi tym samym :P"
  13.   rm /system/bin/su
  14.   mv /system/xbin/su /system/xbin/sux
  15. else
  16.   echo "znow jest su"
  17.   cp /system/xbin/sux /system/xbin/su
  18.   ln -s /system/xbin/su /system/bin/su
  19. fi
  20. sync
  21. sleep 1
  22.  
  23. mount -o remount,ro /system
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement