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 just want to input more shell commands after typing adb shell su, but the terminal just return an "#".

It appears to be unresponsive to further commands.

How can I solve this problem? Recompile the su binary? Any other suggestions?

Other information: I use ddmlib to communication with Android phone, if I use device.executeShellCommand("su", receiver), an exception occurs(com.taobao.wireless.testlab.ddmlib.ShellCommandUnresponsiveException).

share|improve this question

closed as off topic by t0mm13b, Izzy, roxan, Chahk, Zuul Sep 24 '12 at 22:19

Questions on Android Enthusiasts Stack Exchange are expected to relate to Android within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Is this a programming related question? –  t0mm13b Sep 22 '12 at 21:44

2 Answers 2

typing a command, such as su, after adb shell only executes that command and returns. What you probably want to do is type adb shell, then once in shell type su. You will probably need to allow super user permissions, depending on certain boot.img/kernel configurations.

share|improve this answer

Do you have Superuser.apk installed? su is probably waiting for response from Superuser to prompt the user if the root access is granted.

share|improve this answer

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