UPDATE: This method seems to be causing the app to crash for some folks. I haven’t used the feature in a while and am unaware of a workaround.
You probably know the
sudo commands on Linux, but those don’t seem to work in the Android terminal.* Fortunately, you can get around that via a terminal emulator setting. Here’s how to do that:
- Install Android Terminal Emulator.
- Open the above.
- Tap the options menu icon.
- Tap Preferences.
- Scroll down to Shell.
- Tap Command line.
/system/xbin/su -c "/system/xbin/bash -"as shown below.
- Tap OK.
- Back out of Preferences.
- Close the terminal window.
- Restart the app.
- Approve the root permissions request that pops up.
You’ll now have superuser permissions every time you start the terminal.
Thanks bitmaster2000 for the method.
*I suspect the main reason for this is Android doesn’t handle user/administrator/root accounts in the same manner desktop Linux does. On Android every app is a user in Linux parlance, while Android users are something else entirely.