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.

Do I have to root my android device to install command line utilities? I would really like to run Vim, among other programs on my phone. I have no reason not to root my phone, I just want to know if this is possible.

The Android Scripting seems to possibly have done this. Do I have to write my own Terminal app to be able to do this?

share|improve this question
add comment

2 Answers

up vote 6 down vote accepted

You don't need root. You also don't need a terminal, for an app to use its own private utilities. But if you want vim, Terminal IDE provides that, a number of other utilities (git, ssh, tmux), the ability to use bash or Java as a 'scripting language' at the terminal, and the ability to create and install Android apps on-device. I use Terminal IDE and vim quite a bit, (but with Better Terminal Emulator Pro's terminal, actually.)

share|improve this answer
    
What's the correct way to run Terminal IDE's bash from "adb shell"? Running it manually "su; /data/data/com.spartacusrex.spartacuside/files/system/bin/bash" leaves a slightly broken env. –  stsquad Apr 30 '12 at 16:53
add comment

Rooting your phone gives you root access (duh!), but that doesn't mean accessing a shell requires you to root your phone. You can use ADB to connect to your device and gain shell access.

You can also use ConnectBot to access your device's shell on the device itself.

This will give you normal access to your device and you will not be able to run su to gain root access. You can, however, modify and play with files to which you have access.

vim is available without root access, so, so far you still have no reason to root your phone.

share|improve this answer
add comment

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.