Oleksandr Kuzmenko, EditorPublished 4 min readAI-assisted · editor-reviewed
TL;DR
- Mount Android2linux as a Claude Code skill to automate mobile device compatibility and safety checks.
- Safeguard flashing processes using built-in anti-rollback indices and bootloader relock warnings.
- Adapt desktop web applications into single-pane mobile phone layouts running on Phosh or cage.
Key facts
- Repository License
- MIT
- Supported Mobile Shells
- Phosh, Plasma Mobile, Sxmo
- Target Reference Variant
- Xiaomi Redmi Note 9 Pro Max (excalibur)
Turning Disused Phones into Linux Pocket Computers
Android2linux provides an automated, safety-checked framework to install Linux distributions (such as postmarketOS and Ubuntu Touch) on Android devices. Because flashing carries bricking risks, the project embeds strict safety checks: preventing bootloader relocking on modified software, rejecting images mismatched to device codenames, and checking hardware anti-rollback counters before flashing.
Claude Code Agent Skill Setup
The repository packages its device manifests, modem diagnostics, and flashing procedures as an agent skill ready for Claude Code:
git clone https://github.com/android2linux/android2linux ~/android2linux
ln -s ~/android2linux/skills/android2linux ~/.claude/skills/android2linuxOnce linked, Claude Code can read the local phones/ and apps/ directories. Developers can query device status (e.g. assessing whether a Redmi Note 9 Pro Max variant runs postmarketOS v26.06 with Phosh) and prepare web runtime kiosks using Chromium and cage without searching disparate wiki pages.
Try it in 2 minutes
git clone https://github.com/android2linux/android2linux ~/android2linux
ln -s ~/android2linux/skills/android2linux ~/.claude/skills/android2linuxWhen to use
- Developers converting spare Android devices into self-contained mobile Linux terminals or web kiosks.
- Engineers using Claude Code to verify safety steps and device trees before flashing experimental operating systems.
When NOT to use
- Primary everyday smartphones requiring banking software or Google Play integrity attestation.
- Users unwilling to accept missing camera drivers or proprietary cellular modem limitations.
What to do today
- Clone the android2linux repository and symlink skills/android2linux into ~/.claude/skills/.
- Query Claude Code against your test device codename to verify anti-rollback index requirements before flashing.
Step names are taken from What to do today.
Step names are taken from What to do today. Clone the android2linux repository and symlink skills/android2linux into ~/.claude/skills/.. Query Claude Code against your test device codename to verify anti-rollback index requirements before flashing.
- Clone the android2linux repository and symlink skills/android2linux into ~/.claude/skills/.
- Query Claude Code against your test device codename to verify anti-rollback index requirements before flashing.
