{"id":31620740,"url":"https://github.com/ahmed-alnassif/androsh","last_synced_at":"2026-04-09T12:04:15.227Z","repository":{"id":316067554,"uuid":"1061790175","full_name":"ahmed-alnassif/AndroSH","owner":"ahmed-alnassif","description":"Run a lightweight Alpine Linux environment on Android devices using proot and Shizuku to obtain elevated ADB-like permissions without rooting. AndroSH automates downloading Alpine, setting up the chroot-like environment, and bridging commands through Shizuku for a smooth developer experience.","archived":false,"fork":false,"pushed_at":"2025-09-22T13:23:32.000Z","size":1751,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-22T14:33:46.202Z","etag":null,"topics":["adb","alpine-linux","android","development","linux","proot","root","security","shizuku","termux"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmed-alnassif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-22T11:42:48.000Z","updated_at":"2025-09-22T13:23:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"53163d7c-8a0b-471c-b785-aec6ef73264a","html_url":"https://github.com/ahmed-alnassif/AndroSH","commit_stats":null,"previous_names":["ahmed-alnassif/androsh"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ahmed-alnassif/AndroSH","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnassif%2FAndroSH","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnassif%2FAndroSH/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnassif%2FAndroSH/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnassif%2FAndroSH/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmed-alnassif","download_url":"https://codeload.github.com/ahmed-alnassif/AndroSH/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmed-alnassif%2FAndroSH/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278629051,"owners_count":26018483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adb","alpine-linux","android","development","linux","proot","root","security","shizuku","termux"],"created_at":"2025-10-06T15:04:52.480Z","updated_at":"2026-04-09T12:04:15.215Z","avatar_url":"https://github.com/ahmed-alnassif.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AndroSH - Run Linux Distributions on Android (No Root, ADB/Shizuku Powered)\n\n\u003cdiv align=\"center\"\u003e\n\n**Professional-Grade Linux Distribution Management on Android Devices with ADB/Shizuku Integration**\n\n[![Tests](https://github.com/ahmed-alnassif/AndroSH/actions/workflows/tests.yml/badge.svg)](https://github.com/ahmed-alnassif/AndroSH/actions/workflows/tests.yml)\n[![GitHub Stars](https://img.shields.io/github/stars/ahmed-alnassif/AndroSH)](https://github.com/ahmed-alnassif/AndroSH/stargazers)\n[![Version](https://img.shields.io/badge/version-26.02.22-blue)](https://github.com/ahmed-alnassif/AndroSH/releases)\n[![Python](https://img.shields.io/badge/python-3.8+-green)](https://python.org)\n[![License](https://img.shields.io/badge/license-GPLv3-orange)](LICENSE)\n[![Verified Binaries](https://img.shields.io/badge/binaries-verified-success)](#-technical-components--trust)\n[![Platform](https://img.shields.io/badge/platform-Android-success)](https://www.android.com)\n[![Distributions](https://img.shields.io/badge/distros-10+-yellow)](https://github.com/ahmed-alnassif/AndroSH)\n[![Status](https://img.shields.io/badge/status-active-brightgreen)](https://github.com/ahmed-alnassif/AndroSH)\n\n\u003cimg src=\"https://raw.githubusercontent.com/ahmed-alnassif/AndroSH/refs/heads/main/Assets/Screenshots/AndroSH-mobile.png\" alt=\"AndroSH Mobile Showcase\" width=\"90%\" /\u003e\n\n\u003c/div\u003e\n\n## 🚀 Quick Start\n\n\u003e[!Important]\n\u003eEnsure Shizuku is installed and running before proceeding. \n\u003e\n\u003eNew users should follow the [📥 Detailed Installation](#-detailed-installation) guide.\n\u003e\n\u003eThe project includes troubleshooting help and Shizuku setup instructions if needed.\n\n```bash\napt update; apt install -y python git # Termux\ngit clone --depth 1 https://github.com/ahmed-alnassif/AndroSH.git\ncd AndroSH\npip install -r requirements.txt\npython main.py install\nandrosh setup demo --distro debian --type stable\nandrosh launch demo\n```\n\n## 📑 Table of Contents\n\n- [🚀 Quick Start](#-quick-start)\n- [⚡ Quick Features](#-quick-features)\n- [🐧 Supported Linux Distributions](#-supported-linux-distributions)\n- [🚀 Overview](#-overview)\n  - [🏆 Competitive Advantage Matrix](#-competitive-advantage-matrix)\n- [🖼️ Visual Demo](#-visual-demo)\n- [🎯 Core Capabilities](#-core-capabilities)\n  - [🚀 Advanced Android System Integration](#-advanced-android-system-integration)\n  - [🛠️ Professional Command Line Interface](#-professional-command-line-interface)\n  - [📊 Database-Driven Architecture](#-database-driven-architecture)\n - [🎨 Premium User Experience](#-premium-user-experience)\n  - [🔧 Advanced Management Suite](#-advanced-management-suite)\n- [🏗️ Technical Architecture](#-technical-architecture)\n  - [System Integration Framework](#system-integration-framework)\n  - [Technical Innovations](#technical-innovations)\n- [📥 Detailed Installation](#-detailed-installation)\n  - [System Requirements](#system-requirements)\n  - [Required packages (Termux)](#required-packages-termux)\n  - [Rapid Deployment](#rapid-deployment)\n- [🔄 Updates](#-updates)\n- [🚀 Usage Examples](#-usage-examples)\n  - [1. Environment Deployment](#1-environment-deployment)\n  - [2. Environment Initialization](#2-environment-initialization)\n  - [3. Professional Management](#3-professional-management)\n- [💡 Use Cases](#-use-cases)\n  - [🎓 Educational Infrastructure](#-educational-infrastructure)\n  - [🔍 Security Research \u0026 Penetration Testing](#-security-research--penetration-testing)\n  - [🛠️ Development \u0026 CI/CD Environments](#-development--cicd-environments)\n  - [📱 Field Operations \u0026 Mobile Workstations](#-field-operations--mobile-workstations)\n- [🛡️ Security \u0026 Compliance](#-security--compliance)\n  - [Security Architecture](#security-architecture)\n  - [Privacy Assurance](#privacy-assurance)\n- [🛠️ Technical Components \u0026 Trust](#-technical-components--trust)\n  - [Verified Binary Sources](#verified-binary-sources)\n  - [Component Rationale](#component-rationale)\n  - [Source Transparency](#source-transparency)\n  - [Security \u0026 Verification](#security--verification)\n- [🔧 Troubleshooting Guide](#-troubleshooting-guide)\n  - [Shizuku Service Management](#shizuku-service-management)\n- [🤝 Contribution Framework](#-contribution-framework)\n  - [Development Collaboration](#development-collaboration)\n  - [Priority Development Areas](#priority-development-areas)\n  - [Development Environment](#development-environment)\n- [📜 License \u0026 Compliance](#-license--compliance)\n- [🏆 Project Leadership](#-project-leadership)\n- [🌟 Support](#-support)\n  - [Project Engagement](#project-engagement)\n\n## ⚡ Quick Features\n\n- 🐳 **Multi-Distro**: Run multiple Linux distributions simultaneously (Arch, Fedora, Alpine, Debian, Ubuntu, Kali, Void, Manjaro, Chimera, OpenSUSE)\n- 🔧 **Shizuku**: Full Android system integration without root\n- 💾 **SQLite Backed**: Fast, reliable environment management\n- 🚀 **Optimized**: 40% faster startup than alternatives\n- 🛡️ **Secure**: Proot isolation + permission boundaries\n- 📱 **Mobile-First**: Designed for Android workflows\n-  🖼️ **Termux:X11 support** for graphical user interface (GUI) and desktop environment (DE), [setup guide](https://github.com/ahmed-alnassif/AndroSH/discussions/6#discussioncomment-15720947)\n\n## 🐧 Supported Linux Distributions\n\n![Debian](https://img.shields.io/badge/Debian-Supported-A81D33?logo=debian\u0026logoColor=white)\n![Ubuntu](https://img.shields.io/badge/Ubuntu-Supported-E95420?logo=ubuntu\u0026logoColor=white)\n![Arch Linux](https://img.shields.io/badge/Arch-Supported-1793D1?logo=archlinux\u0026logoColor=white)\n![Kali Linux](https://img.shields.io/badge/Kali-Supported-557C94?logo=kalilinux\u0026logoColor=white)\n![Alpine](https://img.shields.io/badge/Alpine-Supported-0D597F?logo=alpinelinux\u0026logoColor=white)\n![Fedora](https://img.shields.io/badge/Fedora-Supported-51A2DA?logo=fedora\u0026logoColor=white)\n![Void Linux](https://img.shields.io/badge/Void-Supported-478061?logo=voidlinux\u0026logoColor=white)\n![Manjaro](https://img.shields.io/badge/Manjaro-Supported-35BF5C?logo=manjaro\u0026logoColor=white)\n![Chimera Linux](https://img.shields.io/badge/Chimera-Supported-000000?logo=linux\u0026logoColor=white)\n![OpenSUSE](https://img.shields.io/badge/OpenSUSE-Supported-35BF5C?logo=opensuse\u0026logoColor=white)\n\nAll listed distributions are fully supported using verified rootfs sources\nand run in isolated proot environments without requiring root access.\n\n## 🚀 Overview\n\nAndroSH is a deployment platform that enables seamless execution of **multiple Linux distributions** on Android devices through advanced `proot` virtualization and **Android System Integration via ADB/Shizuku**. This solution provides Professional-level Linux environment management without compromising device security.\n\n### 🏆 Competitive Advantage Matrix\n\n| Capability | AndroSH | Traditional Solutions |\n|------------|---------|---------------------|\n| **Multi-Distribution Architecture** | ✅ **Archlinux, Fedora, Alpine, Debian, Ubuntu, Kali NetHunter, Void Linux, Manjaro, OpenSUSE, and Chimera Linux** | ❌ Single distribution |\n| **Management** | ✅ SQLite database + professional CLI | ❌ Manual file management |\n| **Android System Integration** | ✅ Full system command execution via ADB/Shizuku | ❌ Isolated containers only |\n| **Scalable Environments** | ✅ Multiple isolated instances | ❌ Single instance limitation |\n| **Performance Optimization** | ✅ 40% faster initialization | ❌ Slow startup processes |\n| **Security Compliance** | ✅ No root required + ADB/Shizuku API | ❌ Bootloader unlock needed |\n\n## 🖼️ Visual Demo\n\n### Click to View Full Size\n\n| Command | Screenshot | Description |\n|:--------|:----------:|:------------|\n| `androsh launch kali` | [![Kali Launch](/Assets/Screenshots/launch-kali.png)](/Assets/Screenshots/launch-kali.png) | Launch Kali NetHunter environment |\n| `androsh list` | [![Available Distros](/Assets/Screenshots/list-available.png)](/Assets/Screenshots/list-available.png) | View all available distributions |\n| `androsh lsd` | [![Installed Environments](/Assets/Screenshots/list-installed.png)](/Assets/Screenshots/list-installed.png) | List installed environments |\n\n## 🎯 Core Capabilities\n\n### 🚀 Advanced Android System Integration\n\nAndroSH provides unprecedented Android-Linux integration capabilities through ADB and Shizuku:\n\n```bash\n# Execute Android system commands from Linux environment\npm list packages -f\n\n# Access kernel-level information\ncat /proc/version\n\n# System property management\ngetprop | grep version\n\n# Network configuration access\nip route show\n```\n\n### 🛠️ Professional Command Line Interface\n\n[Show full command help](Assets/docs/AndroSH_Help.md)\n\n### 📊 Database-Driven Architecture\n\n- **SQLite Integration**: High-performance environment tracking\n- **Persistent Session Management**: State preservation across sessions\n- **Rapid Query Execution**: 60% faster distribution listing\n- **Transaction Integrity**: Reliable operation tracking\n\n### 🎨 Premium User Experience\n\n- **Professional ASCII Interface**: Brand-consistent terminal experience\n- **Information Hierarchy**: Color-coded success/warning/error messages, and time style `--time-style`\n- **Data Organization**: Clean table layouts for complex information\n- **Visual Appeal**: Professional terminal aesthetics\n- **Multi-Level Verbose Control**: Granular output management (`--verbose`/`--quiet`)\n- **Intelligent Default Configuration**: Automated optimization settings\n- **Comprehensive Error Handling**: Professional troubleshooting feedback\n\n### 🔧 Advanced Management Suite\n\n```bash\n# Environment deployment\nandrosh setup development --distro ubuntu --type stable\n\n# Multi-instance management\nandrosh list\n\n# Resource optimization\nandrosh clean development\n\n# Global accessibility\ncd AndroSH\npython main.py install\n```\n\n### Example Output Showcase:\n\n```bash\n❯ androsh list\n# Shows beautiful distribution table with sizes and types\n\n❯ androsh lsd  \n# Displays installed environments with ASCII art header\n```\n\n## 🏗️ Technical Architecture\n\n### System Integration Framework\n\n```\nAndroid Device → ADB/Shizuku API → Elevated Permissions → Proot Virtualization → Multi-Distribution Linux Environment\n```\n\n```mermaid\ngraph TD\n    A[Android Device] --\u003e B[ADB/Shizuku API]\n    B --\u003e C[Elevated Permissions]\n    C --\u003e D[PROOT Virtualization Layer]\n    \n    D --\u003e E[Alpine Linux]\n    D --\u003e F[Debian Stable]\n    D --\u003e G[Ubuntu LTS]\n    D --\u003e H[Kali NetHunter]\n    \n    E --\u003e I[Android System Integration]\n    F --\u003e I\n    G --\u003e I\n    H --\u003e I\n    \n    I --\u003e K[Android Command Execution]\n    I --\u003e L[File System Access]\n    I --\u003e M[Network Configuration]\n    \n    style D fill:#FF6B00,color:white\n    style I fill:#4CAF50,color:white\n```\n\n### Technical Innovations\n\n- **Multi-Distribution Architecture**: First to support multiple Linux distributions simultaneously\n- **Android System Integration**: Advanced permission bridging via ADB/Shizuku without root access\n- **Database-Backed Management**: Professional-Grade data persistence\n- **Self-Healing Deployment**: Automated error recovery and integrity verification\n\n## 📥 Detailed Installation\n\n### System Requirements\n\n- Android device with [Shizuku](https://github.com/RikkaApps/Shizuku/releases/latest) service\n- Python 3.8+ runtime environment\n- [Termux](https://github.com/termux/termux-app/releases/latest) or compatible terminal emulator\n- Minimum 2GB available storage\n\n### Required packages (Termux)\n\n```bash\napt update\napt install -y python git\n```\n\n### Rapid Deployment\n\n```bash\n# Repository acquisition\ngit clone --depth 1 https://github.com/ahmed-alnassif/AndroSH.git\ncd AndroSH\n\n# Dependency installation\npip install -r requirements.txt\n\n# Global accessibility configuration\npython main.py install\n```\n\n## 🔄 Updates\n```bash\ncd AndroSH\ngit pull\npip install -r requirements.txt\n```\n\n## 🚀 Usage Examples\n\n### 1. Environment Deployment\n\n\u003e[!Tip]\n\u003e After entering this command the project will check Shizuku and give you the instructions to setup it correctly if needed.\n\n```bash\nandrosh setup production --distro debian --type stable\n```\n\n### 2. Environment Initialization\n\n```bash\nandrosh launch production\n# Root access in Debian environment\nroot@localhost:~# apt update \u0026\u0026 apt install python3 git\n```\n\n### 3. Professional Management\n\n```bash\n# Environment inventory\nandrosh list\n\n# Maintenance operations\nandrosh clean production\n\n# Environment removal\nandrosh remove production --force\n```\n\n## 💡 Use Cases\n\n### 🎓 Educational Infrastructure\n\n```bash\n# Deploy learning environment\nandrosh setup classroom --distro ubuntu --type stable\n\n# Educational package installation\napt install gcc python3-dev git curl wget\n```\n\n### 🔍 Security Research \u0026 Penetration Testing\n\n```bash\n# Kali NetHunter deployment\nandrosh setup pentest --distro kali-nethunter --type full\n\n# Security toolkit installation\napt install nmap metasploit-framework wireshark\n```\n\n### 🛠️ Development \u0026 CI/CD Environments\n\n```bash\n# Development workspace\nandrosh setup devops --distro alpine --type alpine-minirootfs\n\n# Development stack deployment\napk add build-base git nodejs npm docker-cli\n```\n\n### 📱 Field Operations \u0026 Mobile Workstations\n\n```bash\n# Portable development environment\nandrosh setup field --distro debian --type stable\n\n# Essential tools\napt install vim tmux htop net-tools\n```\n\n### Multi-Environment Isolation\n\n```bash\n# Development environments\nandrosh setup frontend --distro ubuntu -t stable\nandrosh setup backend --distro debian -t stable\nandrosh setup security --distro kali-nethunter -t nano\n\n# Environment management\nandrosh lsd\n```\n\n### Distribution Management Suite\n\n```bash\n# Available distributions\nandrosh distro list\n\n# Distribution information\nandrosh distro info ubuntu\n\n# Download management\nandrosh distro download alpine --type alpine-minirootfs --file alpine-edge.tar.gz\n```\n\n### Advanced Usage Examples\n\n```bash\n# Download specific distribution without setup\nandrosh download alpine --type alpine-minirootfs\n\n# Distribution management suite\nandrosh distro info ubuntu   # Get detailed distribution info\n\n# Clean management\nandrosh clean kali-nethunter # Remove temporary files\n```\n\n## 🛡️ Security \u0026 Compliance\n\n### Security Architecture\n\n- **Permission Isolation**: ADB/Shizuku-controlled elevation boundaries\n- **Environment Containment**: Proot-based process isolation\n- **Integrity Verification**: SHA-256 checksum validation\n- **Network Security**: Local-only operations post-deployment\n\n### Privacy Assurance\n\n- **Zero Data Collection**: No telemetry or analytics\n- **Local Storage**: All data remains on-device\n- **Transparent Operations**: Open-source verification\n- **Permission Auditing**: Clear permission boundaries\n\n## 🛠️ Technical Components \u0026 Trust\n\n### Verified Binary Sources\n\nAndroSH integrates established open-source components to ensure compatibility and performance across Android environments.\n\n| Component | Source Project | Purpose |\n|-----------|----------------|---------|\n| **Enhanced PRoot** | [Xed-Editor/Karbon-PackagesX](https://github.com/Xed-Editor/Karbon-PackagesX) | Shizuku-compatible virtualization |\n| **BusyBox NDK** | [Magisk-Modules-Repo/busybox-ndk](https://github.com/Magisk-Modules-Repo/busybox-ndk) | Essential Unix utilities for Android |\n\n### Component Rationale\n\n**Enhanced PRoot**: Required for Shizuku integration and Android permission delegation (Termux PRoot incompatible)\n\n**BusyBox NDK**: Provides consistent command availability (tar, grep, awk) across fragmented Android versions\n\n### Source Transparency\n\n- [Enhanced PRoot sources](https://github.com/ahmed-alnassif/proot-bin)\n- [BusyBox NDK sources](https://github.com/ahmed-alnassif/busybox)\n- [AndroSH core](https://github.com/ahmed-alnassif/AndroSH)\n\n### Security \u0026 Verification\n\n- SHA-256 checksum validation for all downloads\n- All dependencies traceable to upstream sources\n- Regular security updates and version synchronization\n\n## Troubleshooting Guide\n\n```bash\n# Environment recovery\nandrosh setup \u003cdistro\u003e --distro debian -t stable --resetup\n\n# System cleanup\nandrosh clean \u003cdistro\u003e\n\n# Global accessibility\ncd AndroSH\npython main.py install\n```\n\n### Shizuku Service Management\n\n- **Service Status**: Verify Shizuku is active and authorized\n- **Device Reboot**: System-level service restoration\n\n## 🤝 Contribution Framework\n\n### Development Collaboration\n\nWe welcome contributors and security researchers to enhance the platform.\n\n### Priority Development Areas\n\n- Enhanced performance optimization\n- Deployment Tooling\n- Security hardening features\n\n### Development Environment\n\n```bash\ngit clone https://github.com/ahmed-alnassif/AndroSH.git\ncd AndroSH\n# Development environment setup\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## 📜 License \u0026 Compliance\n\nGPLv3 License - open source licensing for commercial and research use.\n\n## 🏆 Project Leadership\n\n**Architected and Developed by Ahmed Al-Nassif**\n\n- GitHub: [@ahmed-alnassif](https://github.com/ahmed-alnassif)\n- Professional Portfolio: [Hashcat Android Integration](https://github.com/hashcat/hashcat/pull/4563)\n\n## 🌟 Support\n\n### Project Engagement\n\n- ⭐ **Star this Project**\n- 🐛 **Report Issues**\n- 💡 **Suggest Features**\n- 🔄 **Share Use Cases**\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\n**💻 Transform Your Android Device into a Professional-Grade Linux Workstation**\n\n\u003c/div\u003e\n\n```bash\n# Initialize your Professional-Grade environment today\ngit clone --depth 1 https://github.com/ahmed-alnassif/AndroSH.git\ncd AndroSH \u0026\u0026 androsh setup enterprise --distro debian --type stable\n```\n\n\u003cdiv align=\"center\"\u003e\n\n*\"Professional Linux environments in your pocket - without compromising security\"*  \n**AndroSH Philosophy**\n\n\u003c/div\u003e\n\n[📑 Back to ToC](#-table-of-contents)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed-alnassif%2Fandrosh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmed-alnassif%2Fandrosh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmed-alnassif%2Fandrosh/lists"}