Android system/bin/sh



  • I erased a file called .sh from the system/bin directory on my android jellbean device now it doesn't work properly. I can connect via USB and adb but cannot access the shell. How can I replace the missing time and gain access to shell



  • If you erased just the sh binary then you still be able to run others binaries, here a script I made that may fix it (you need the sh bin file and terminal emulator):

    /system/bin/su
    /system/bin/mount -o rw,remount /system
    /system/bin/cp /sdcard/sh  /system/bin
    /system/bin/chmod 755 /system/bin/sh
    /system/bin/mount -o ro,remount /system
    /system/bin/sh
    

    Put your sh file on sdcard, and write this script with filename ending .sh, after open a file explorer click on the script and select terminal emulator to run the script.


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2