Sunday 17 February 2019

How to start Android Terminal Emulator as root

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 su or sudocommands 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.


Enter /system/xbin/su -c "/system/xbin/bash -" as shown below.

One thing Android does have in common with desktop Linux is even the simplest things are always unnecessarily complicated for the sake of engineering ideological purism.


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.

Source: https://www.google.com/amp/s/jdrch.wordpress.com/2016/04/26/how-to-start-android-terminal-emulator-as-root/amp/

No comments:

Post a Comment