explaingit

xxx02/android-home-server

Analysis updated 2026-05-18

1ShellAudience · vibe coderComplexity · 4/5LicenseSetup · hard

TLDR

A step by step guide and scripts for converting an old rooted Android phone into a self hosted home server reachable over the internet via Cloudflare Tunnel.

Mindmap

mindmap
  root((Android Home Server))
    What it does
      Repurposes old phone
      Always-on server
      Remote access
    Tech stack
      Shell scripts
      Ubuntu chroot
      Cloudflare Tunnel
    Use cases
      File hosting
      SSH access
      Bots and small apps
    Audience
      Hobbyists
      Self-hosters

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn an unused rooted Android phone into a free always-on home server.

USE CASE 2

Access files and SSH on the phone remotely without opening router ports.

USE CASE 3

Host small personal apps or bots that need to run continuously.

USE CASE 4

Get Telegram alerts for battery status and server uptime.

What is it built with?

ShellAndroidUbuntu arm64Cloudflare TunnelTermux

How does it compare?

xxx02/android-home-server100/dotfilesabdellaouiamir/palworld-server
Stars111
LanguageShellShellShell
Last pushed2016-11-18
MaintenanceDormant
Setup difficultyhardeasymoderate
Complexity4/51/53/5
Audiencevibe coderdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires a rooted Android phone, an SD card, and a Cloudflare account with a domain you control.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

This project is a guide and set of scripts for turning an old, rooted Android phone into an always-on home server you can reach from anywhere on the internet. The idea is that an unused phone already has many things a small server needs: it uses little power, has a built-in battery that acts like a backup power supply, and runs quietly, so instead of buying a small cloud server you repurpose the phone sitting in a drawer. The guide walks you through installing a full Ubuntu Linux system inside the phone using a technique called chroot, which runs Linux alongside Android without flashing a new operating system onto the device. Once set up, the phone can run an SSH server so you can connect to it from your home network, and it can also be reached securely from anywhere using Cloudflare Tunnel, which avoids the need to open ports on your router or have a fixed internet address. A web based file manager called filebrowser lets you upload and download files from any browser, and an optional Telegram bot sends notifications about battery level and whether the server is online. A watchdog script keeps everything running and restarts services automatically if the phone reboots. Setup requires a rooted Android phone, ideally a spare one since rooting carries some risk of data loss, along with the Termux terminal app and an SD card to hold the Linux files. Reaching the server from the internet needs a free Cloudflare account and a domain name you control. The step by step instructions are provided in both English and Turkish, and cover everything from rooting and formatting the SD card through configuring the system, setting up the tunnel, and enabling auto start on boot. The repository also includes an optional skill file meant for use with AI coding assistants like Claude Code, which explains this specific setup's quirks, such as the lack of a standard systemd init system, so that apps built later on the server keep running after a reboot. The project is released under the MIT license, so it can be freely used, modified, and shared.

Copy-paste prompts

Prompt 1
Walk me through rooting my Android phone and setting up the ext4 SD card for this project.
Prompt 2
Help me set up Cloudflare Tunnel so I can SSH into my phone from anywhere.
Prompt 3
Explain how the chroot Ubuntu setup works without flashing a new ROM.
Prompt 4
Help me configure the Telegram battery and status notifications from this repo.

Frequently asked questions

What is android-home-server?

A step by step guide and scripts for converting an old rooted Android phone into a self hosted home server reachable over the internet via Cloudflare Tunnel.

What language is android-home-server written in?

Mainly Shell. The stack also includes Shell, Android, Ubuntu arm64.

What license does android-home-server use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is android-home-server to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is android-home-server for?

Mainly vibe coder.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.