Skip to main content
Android Code Studio includes a full-featured terminal emulator based on Termux, providing a complete Linux-like command-line environment directly on your Android device.

Overview

The terminal tool gives you access to:
  • Full bash shell environment
  • Package management for installing development tools
  • Multiple terminal sessions
  • Customizable keyboard shortcuts
  • Integration with the IDE workspace

Opening the Terminal

Access the terminal from the navigation menu or bottom navigation bar in the IDE.

Features

Multiple Sessions

Create and manage multiple terminal sessions simultaneously:
1

Open Terminal

Tap the terminal icon in the navigation bar
2

Create New Session

Tap the + button or “New Session” to create additional terminal sessions
3

Switch Sessions

Swipe left/right or use the session drawer to switch between active sessions
The number of sessions you can create depends on your device’s memory and performance.

Extra Keys Row

The terminal includes a customizable extra keys row above the keyboard with commonly used keys:
  • ESC - Escape key
  • CTRL - Control modifier
  • ALT - Alt modifier
  • TAB - Tab key for completion
  • Arrow keys - Navigate command history and text
  • Special characters - Quick access to |, &, ;, etc.

Session Management

# Sessions are automatically named, but you can rename them
# Long-press on a session tab to rename

Common Commands

Package Management

The terminal uses the pkg package manager:
pkg install git
pkg install python
pkg install nodejs

Development Workflows

# Navigate to project directory
cd ~/projects/MyApp

# Run Gradle build
./gradlew build

Keyboard Shortcuts

The terminal supports various keyboard shortcuts when using an external keyboard:
ShortcutAction
Ctrl + CInterrupt current process
Ctrl + DExit shell / End of input
Ctrl + ZSuspend current process
Ctrl + LClear screen
Ctrl + AMove cursor to line start
Ctrl + EMove cursor to line end
Ctrl + KDelete from cursor to end of line
Ctrl + UDelete from cursor to start of line
Up/Down ArrowNavigate command history

Environment Variables

The terminal provides access to IDE-specific environment variables:
Environment Info
echo $HOME          # User home directory
echo $PREFIX        # Termux prefix directory
echo $PATH          # Executable search paths
echo $TMPDIR        # Temporary directory
The IDE automatically sets up environment variables for the Android SDK and build tools.

Integration with IDE

Project Context

When opened from a project, the terminal automatically sets the working directory to your project root:
# Terminal opens in project directory
pwd
# Output: /data/data/com.tom.rv2ide/files/home/projects/MyApp

IDE Setup Scripts

The terminal can run IDE setup scripts for initial configuration:
Running IDE Setup
# The IDE may prompt to run idesetup on first launch
# This configures the development environment

Troubleshooting

Terminal Won’t Start

1

Check Permissions

Ensure the app has storage permissions enabled in system settings
2

Clear App Data

If persistent issues occur, try clearing app data (Settings > Apps > Android Code Studio > Clear Data)
3

Reinstall

As a last resort, reinstall the application

Command Not Found

Make sure packages are installed using pkg install <package> before trying to use them.
Fix Missing Commands
# Update package repositories
pkg update

# Install the required package
pkg install <package-name>

Session Limit Reached

If you can’t create new sessions:
  • Close unused sessions by swiping them away
  • Check your device’s available memory
  • Restart the terminal activity

Text Display Issues

If text appears garbled or incorrectly rendered:
Reset Terminal
# Clear the screen
clear

# Reset terminal settings
reset

Advanced Usage

Custom Startup Scripts

Create custom startup scripts in your home directory:
~/.bashrc
# Add custom aliases
alias ll='ls -la'
alias gs='git status'

# Set custom environment variables
export EDITOR=nano

# Custom prompt
export PS1='\[\033[01;32m\]\u@AndroidIDE\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

Background Processes

Run long-running commands in the background:
Background Jobs
# Run in background
./gradlew build &

# Check running jobs
jobs

# Bring to foreground
fg %1

Best Practices

  • Name your sessions - Use descriptive names for sessions working on different tasks
  • Close unused sessions - Free up memory by closing sessions you’re not using
  • Use history - Navigate command history with up/down arrows to reuse commands
  • Enable autocomplete - Use TAB key for command and path completion

Build docs developers (and LLMs) love