Hacking Android by Termux

Do you want a terminal on your Android device? Look at this.

Install Termux from Google Play.

Root is not needed for this app and just allowing storage permission is ok.

Basic settings

Setting default editor:

1
export EDITOR=vi

edit sources files

1
apt edit-sources

Understand the directory structure:

1
2
3
echo $HOME
echo $PREFIX
echo $TMPPREFIX

Install basic tools

In termux, pkg is developped for simplifying sudo apt in some circumstances.

1
2
3
pkg update
pkg install vim curl git wget unzip unrar
sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)"

Accessing internal storage files

termux-setup-storage
After installing the above shell script, storage directory will be created and you can access common dcim, music, videos, etc.

1
ls storage
TBAC project development Spring Cloud microservices registration and discovery

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×