← Projects

DTerminal banner
v2.0Version
Android 11+Minimum version
Python 3.13Embedded runtime
Clean + MVIArchitecture
Overview

Android terminal with Python.

DTerminal is an Android terminal for developers and power users who need shell access and Python without moving to a separate environment. It combines command execution, history, script storage, and an embedded Python runtime in a single application.

Features

The main tools.

Native shell access

Execute Android shell commands while keeping process state and output under the application workflow.

Embedded Python

Bundle Python 3.13 through Chaquopy for running scripts directly on the device.

Runtime packages

Provide a pip-style workflow for installing pure-Python packages from PyPI at runtime.

Persistent workspace

Store scripts and command history with Room so the working state survives app restarts.

Multi-line execution

Run multiple shell or Python statements together as one execution block.

Script manager

Save, organize, and quickly access frequently used shell and Python scripts.

Command history

Keep previously executed commands available through a persistent history.

Custom commands

Use built-in utilities for system information, text processing, encoding, and developer tasks.

Terminal customization

Adjust font size and terminal text colors from the application.

How It Works

Shell and Python in one workspace.

Standard shell commands run through the Android shell. When root access is needed, the terminal can be switched to Root mode from the three-dot menu, after which commands are executed with root privileges.

Python runs through the embedded Python 3.13 runtime. The py trigger switches an execution block to Python, while saved scripts can be executed with command-line arguments. Pure-Python packages can also be installed from PyPI at runtime.

Technical Details

Built around Android's runtime.

The project uses Clean Architecture with an MVI and Unidirectional Data Flow approach. Hilt handles dependency injection, while Coroutines and Flow coordinate asynchronous shell, database, and runtime operations.

DTerminal sits close to the Android shell rather than treating command execution as an ordinary application API. Process handling, threading, lifecycle, and privileged access are therefore part of the design.

Screenshots

Terminal, scripts, and history.

DTerminal script workspace
DTerminal command history
Release history

Version history.

v2.0Embedded Python 3.13, added the native py command, external Python script execution, multi-line text selection, expanded custom commands, MVI migration, and Android 11 minimum support.
v1.2Added the def value to the font command, updated the GitHub repository link, and reduced terminal log spacing.
v1.1Refined the terminal workflow and addressed fixes following the initial release.