Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/sbin/sh
  2.  
  3. # Restart with root hacked adbd
  4. echo msc_adb > /dev/usb_device_mode
  5. touch /tmp/recovery.log
  6. sync
  7.  
  8. NEEDS_ADBD=$(ps | grep adbd | grep -v grep)
  9. if [ -z "$NEEDS_ADBD" ]
  10. then
  11. /sbin/adbd recovery &
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement