Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

I think I've bricked my device (Huawei G330, U8225-1). I was adb pushing while I received a "push failed: no space left on device". The phone boots in recovery, I've root but the bootloader is locked.

If I try to push an update to SDCARD/dload it says "no such file or directory", if I try to adb shell it says "exec '/system/bin/sh' failed: Permission denied (13) -"

What can I do?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

That's a soft brick, for the reasons below:

  • Handset is still powering on
  • adb is responding
  • handset recognizes usb cable plugged in (how else were you able to adb?)
  • handset recognizes the sdcard

Look at this question to see Izzy's answer on what is classified as a "brick".

Something went awry there and it clobbered the recovery environment... mind giving a bit more details...?

Edit

From the comments below, it transpires that the OP pushed over the shell binary file sh from the root of the phone, (either overwriting it and or/had incorrect permissions) and ended up with a "locked-out" of executing shell commands and fail.

By the way, there is no way to set the permission as the sh interpreter does not have the appropriate permission for executable bit! So executing any commands on that will fail.

The only remedy is to re-flash the recovery image directly onto the recovery partition, by going into fastboot mode on the handset, usually Power+Volume up, armed with a fastboot binary that must be entered on either the Linux's terminal or Windows's cmd, i.e. two operating system environments, choose one of your own preference:

Linux

sudo fastboot flash recovery recovery.img

Windows

fastboot-win flash recovery recovery.img

That will restore the recovery environment and then the shell interpreter should work from within adb shell session next time recovery gets booted into.

share|improve this answer
    
It seems like system/bin/sh hasn't the permissions to run. Due to this I can't "adb shell" anything. Any thoughts? –  djpredator17 Jan 21 '13 at 19:27
    
What were you adb pushing? BTW try free up space on SDCard and try again? –  t0mm13b Jan 21 '13 at 19:28
    
I think I did a mistake and pushed the system/bin/sh file. Why sdcard? –  djpredator17 Jan 21 '13 at 19:28
    
Oh! Now that explains why you got the error message: exec '/system/bin/sh' failed: Permission denied (13) - Were you pushing that onto the actual recovery partition or onto SDCard? Where abouts were you exactly when you tried to execute the sh, SDCard has the executable permission blocked at filesystem level... –  t0mm13b Jan 21 '13 at 19:30
1  
What about an actual answer that I can accept? :D all of your comments are right, btw :) –  djpredator17 Jan 21 '13 at 19:43
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.