Do Android devices have command prompt? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

25th Oct 2020, 7:17 PM
Youssef Atta'i
Youssef Atta'i - avatar
12 Answers
+ 6
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.
28th Oct 2020, 11:23 AM
Priyanshi
Priyanshi - avatar
+ 4
Bartas Dausynas Like using python and any language in computer and laptop and in android is different, like you cant use tkinter, etc
28th Oct 2020, 1:33 AM
Priyanshi
Priyanshi - avatar
+ 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
28th Oct 2020, 10:43 AM
Priyanshi
Priyanshi - avatar
+ 3
Youssef Atta'i yes, you have to root your device.
25th Oct 2020, 7:37 PM
Maxwell Anderson
Maxwell Anderson - avatar
+ 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 😊😊
27th Oct 2020, 2:57 PM
Priyanshi
Priyanshi - avatar
+ 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.
25th Oct 2020, 7:42 PM
Maxwell Anderson
Maxwell Anderson - avatar
+ 2
Termux is cool...no root needed for intermediate level usage
27th Oct 2020, 5:40 PM
shubham patil
shubham patil - avatar
+ 1
Thank you, Jan
25th Oct 2020, 7:32 PM
Youssef Atta'i
Youssef Atta'i - avatar
+ 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?
25th Oct 2020, 7:41 PM
Youssef Atta'i
Youssef Atta'i - avatar
+ 1
Maxwell Anderson Thank you, Maxwell
25th Oct 2020, 7:44 PM
Youssef Atta'i
Youssef Atta'i - avatar
+ 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.
28th Oct 2020, 10:39 AM
Youssef Atta'i
Youssef Atta'i - avatar
0
Can I overcome those restrictions if my device is rooted?
25th Oct 2020, 7:27 PM
Youssef Atta'i
Youssef Atta'i - avatar