Using your Android phone to run shell scripts

Share
android-linux-terminal

Android is a truly open source mobile operating system.

Android Terminal Emulator is a free  application allows you to work on a terminal and run some commands (shell script) on an Android phone.





android-shell-script
The usual commands (ls, cd, pwd) work pretty well.

The application also has support for advance commands like mount, dos2unix, rm,ssh and most importantly the VI editor.

However, typing is very difficult if you plan to use VI editor here. The best part is that you can create a shell script file with .sh extension on a desktop and save it on your SD card.

To run the script just enter sh <scriptname>

Successfully tested with the following snippet

su
mount -o rw,remount /data
rm data/misc/dhcp/*
rm -rf data/misc/wifi
mount -o r,remount /data
exit
exit

The above script is a fix for the wifi issue I have been facing on my NEO V phone which has CyanogenMod 9.1.

0 comments :

Post a Comment

Written by Sundeep Machado © 2007 - 2018 Sundeep Machado

You can get in touch with him on and Twitter