Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,035 Members 41,830 Now Online
XDA Developers Android and Mobile Development Forum

How install python on android? so that it works with su, cd, ls ... commandss?

Tip us?
 
TheKingOfQueens
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 26
Join Date: May 2014
Thumbs up How install python on android? so that it works with su, cd, ls ... commandss?

Hey,
ive got a moto g and its my first android and its rooted and bootrom is unlocked, and ive installed terminal emulator, but i cant find out how to install python so that it works in terminal eit su, cd , ls ... commands?!?
ive installed qpython app from playstore but you cant do commands like su, cd .....
ive tried ping in terminal rmulator and it wotks so you can enter internet over terminal emulator, so i tried apt-get install python but it says no apt-get command foundor something like this, so i hope someone can trll me how to install python on android with working commands( su ...) so that it can enter filesystem directorys like /sdcard....
please help
 
aureljared
Old
#2  
aureljared's Avatar
Senior Member
Thanks Meter 455
Posts: 680
Join Date: May 2013
Location: Quezon City
Hi,

You don't need python to run commands like su and cd! All you need is a nifty binary called 'BusyBox'. Since you mentioned apt-get, I assume you come from Ubuntu? Well I'm sure you're familiar with BusyBox. Look for BusyBox installers in the Play Store.

Once you've installed Busybox, enter this command in the terminal emulator to let BusyBox symlink its applets:
(Are you sure you're rooted? Running su successfully is a must.)
Code:
su
busybox --install /system/xbin
If all goes well, then you should be able to use Unix utilities like cd and ls.

Sent from my GT-I8730 using Tapatalk

If I helped you in any way, just hit the Thanks button!

---------------------------------------
Samsung Galaxy Express GT-I8730 (CyanogenMod 11 / Android 4.4.4 by szezso)
---------------------------------------
General Development Thread CM Building Tutorial
Sign/Zipalign Script Enhanced VRTheme Template
Project CyanogenMod: GT-I8730 AOSP Icons + 1% Battery MOD
The Following User Says Thank You to aureljared For This Useful Post: [ Click to Expand ]
 
TheKingOfQueens
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 26
Join Date: May 2014
Quote:
Originally Posted by aureljared View Post
Hi,

You don't need python to run commands like su and cd! All you need is a nifty binary called 'BusyBox'. Since you mentioned apt-get, I assume you come from Ubuntu? Well I'm sure you're familiar with BusyBox. Look for BusyBox installers in the Play Store.

Once you've installed Busybox, enter this command in the terminal emulator to let BusyBox symlink its applets:
(Are you sure you're rooted? Running su successfully is a must.)
Code:
su
busybox --install /system/xbin
If all goes well, then you should be able to use Unix utilities like cd and ls.

Sent from my GT-I8730 using Tapatalk
Thank you for answering me,

i tell you whats my problem, i need to run a python file, for example: python dummy.py 12345
then it createsa txt file in the path where i am!
that what it should do, but on my android (busybox is installed and its rooted and bootrom unlocked) i ve installed terminal emulator from play store and su and cd and ls command works, but i cant run python files, it says python not found even when i installed pythonforandroid, so i try to apt-get install python but it says apt-get not found, then ive installed qpython from play store, but it doesnt do what i want too !
so my question is, is there any way to tun my python file that creates a new file (its like a passwordgenerator) ???
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes