Do Android devices have command prompt? | SoloLearn: Learn to code for FREE!

+2

Do Android devices have command prompt?

Is it possible to give an android device commands via "an android shell" maybe or some command line app?

10/25/2020 7:17:25 PM

Youssef Atta'i

22 Answers

New Answer

+13

I think yes. But be aware of losing the guarantee if you damage something. And it is your own risk if you "brick" your device. "brick" means that you damage the operating system and you are not able to recover your system. So, be careful.

+12

Not by default, but you can install Termux, which is a Linux-console for Android. Downside is that current Android devices have many access restrictions.

+5

Bartas Dausynas 🤦‍♂ Bro I mean , $ python python 3.6.5 >>> import tkinter >>> root = Tk() Just like this I wanna say . I means the Computer is the best option.

+4

+4

Bartas Dausynas Like using python and any language in computer and laptop and in android is different, like you cant use tkinter, etc

+4

Youssef Atta'i Pydroid is amazing Even jupyter notebook and pygame also we use but I want to say about Terminal that in terminal you cant do such things, which a computer terminal can give. BTW thanks for replying

+3

Youssef Atta'i yes, you have to root your device.

+3

In current world most of users use android, so you can use Termux, but the full features and enviorment you can only get in PC or laptop 😊😊

+3

I have no idea, what are you saying. I am no snake user. You cant load some libraries with python? Just install them as you normally do in terminal, works fine with ruby gems, i bet no problem for python too.

+2

Youssef Atta'i to a certain extent I guess. If you tried to do anything hacky with your phone or just need permissions to certain things you'll have to root.

+2

Termux is cool...no root needed for intermediate level usage

+1

Thank you, Jan

+1

import os os.system("pip install somepythonmodule") This actually ran with no problems on android, so can I just use os.system() as if it was the windows cmd, without rooting or installing any apps?

+1

Maxwell Anderson Thank you, Maxwell

+1

All Android devices that I've ever used have had a shell. It usually defaults to the minimal sh shell program. The shell is accessible over the Android Debug Bridge (ADB). Jack Palevich's Terminal Emulator for Android accesses the device shell. Termux, on the other hand, installs it's own utilities and shell. Termux is more like a chroot jail

+1

I don't know much about Linux and shell related stuffs. But yes, I do use termux, and some of the commands need permissions (messaging/ photo) which are asked only if you run a command that would involve these stuffs. There are many youtube tutorials you can refer to.

+1

Jan Markus isn't command promt is windows thing? Youre right about termux, as im sure you could install any other console. As phones are linux, wraped with android, so as linux desktops are wrapped in kde, gnome and called ubuntus, debians and so so...

+1

Marketn in low and loure

+1

Rishi full features and environment like?

+1

Rishi I actually tried using tkinter on android using Pydroid3 and it worked, that's one reason I feel like it's sometimes possible to treat android like windows. also, take a look at this: import os os.system("date") this shows date and time on both windows and android.