80+ useful ways to repurpose an Android device as a server, modem, camera, GPS tracker, SMS gateway, watchdog, and more
80+ useful ways to repurpose an Android device as a server, modem, camera, GPS tracker, SMS gateway, watchdog, and more

Category: Tutorials | Difficulty: Beginner to advanced | Platform: Android devices (phones, tablets, TV boxes)
Topics: Using an Android device as a server, 4G/5G modem, IP camera, GPS tracker, SMS gateway, Home Assistant node, and out-of-band watchdog | Author: Zoran Knežević

An Android device is more than a mobile phone.

Depending on its class and model, a compact Android device can combine an ARM computer, battery, display, Wi-Fi, Bluetooth, USB, camera, microphone, GPS, SIM modem, NFC, and a range of sensors. Whether you use a new device costing around a hundred euros, a dedicated tablet, a TV box, or hardware you already own, it offers capabilities beyond those of a conventional mini PC.

Add tools such as Termux, Tailscale, Home Assistant Companion, Tasker, Syncthing, GPSLogger, and other open source projects, and an Android device can take on tasks that would otherwise require buying, powering, and connecting five to ten separate electronic modules.

It can serve as a Linux server, backup 4G/5G modem for a home router, power outage alarm, SMS gateway with a REST API, GPS tracker for your own vehicle, IP/RTSP camera, private file server, field network analyzer, or always-on Home Assistant sensor node.

Most importantly, the vast majority of the uses in this guide work without root access.


Quick guide: What do you want to build?

If you are looking for a solution to a specific task, this table takes you straight to the relevant section:

I want to buildHardware neededRootDifficulty
Power and internet outage alarmAndroid device + SIM cardNoEasy
SSH and SFTP file transfer serverAndroid device + Wi-FiNoEasy
4G/5G backup internet for a PC or routerAndroid device + SIM cardNoEasy
Two-way SMS REST gateway and webhookAndroid device + SIM cardNoIntermediate
Tailscale subnet router for your home networkAndroid device + Wi-FiNoIntermediate
Real-time GPS tracking for a vehicleAndroid device + GPS/SIMNoEasy
RTSP video monitoring and IP cameraAndroid device + cameraNoEasy
Home Assistant camera and integrationAndroid tablet or phoneNoIntermediate
USB serial console for network routersAndroid device + USB OTGNoIntermediate
Private decentralized file serverAndroid device + internal or microSD storageNoEasy

If you only have two minutes: the top 10 uses

If you do not have time to read all 80+ ideas, these ten projects offer the greatest practical value:

  1. Independent network watchdog: Android monitors the 230 V power supply, router, and internet connection. If the power or fixed-line ISP goes down, it sends an alert over the mobile network.
  2. OpenSSH and SFTP server: Remote Linux terminal access and encrypted file transfer from a computer to the phone over port 8022.
  3. 4G/5G failover internet: Share the mobile connection over USB directly with a PC or the WAN port of a compatible router.
  4. Tailscale subnet router: Securely access home devices such as a NAS, printer, or cameras from a laptop anywhere, without a public IP address.
  5. SMS REST gateway: Turn a SIM-equipped device into a local REST API server for sending system alerts and one-time passwords.
  6. GPS telematics logger: Automatically record your own vehicle's route and speed and send the data to your own server.
  7. RTSP/MJPEG camera: A local video stream for Home Assistant, VLC, or Frigate NVR, with no cloud subscription required.
  8. Home Assistant sensor node: One device sends data about its battery, ambient light, proximity sensor, Wi-Fi signal, and presence.
  9. Syncthing peer-to-peer sync: Automatically share photos and documents between a phone, home computer, and laptop without an intermediary.
  10. USB OTG service console: Connect to routers, microcontrollers, and network equipment with a USB-to-serial adapter instead of carrying a laptop.

Architecture: Why use an Android device instead of dedicated hardware?

When you build a project around a single-board computer (SBC) such as a Raspberry Pi and need mobile connectivity, a screen, a camera, GPS, and backup power, the parts list quickly grows:

text
SBC board
+ 5V/12V power supply
+ high-endurance microSD card
+ protective case
+ LTE/5G USB modem
+ SIM card
+ GPS receiver module with antenna
+ camera module
+ control display
+ Bluetooth and Wi-Fi adapter
+ battery UPS module with charge controller

An Android device may already include many of these components in one enclosure, depending on its class and model. A phone with SIM and GPS support is especially useful when a project needs cellular connectivity, a battery, a camera, and location data.

The phone's battery does not act as a UPS for your router or NAS. It provides backup power for the Android device itself. That makes it an excellent out-of-band monitoring node.

When a building loses power:

text
230 V mains power goes out
       ↓
The home router shuts down
       ↓
The main server and NAS shut down
       ↓
Local Wi-Fi disappears

BUT THE ANDROID DEVICE:
Continues running on its own battery
       ↓
Detects that charging stopped and Wi-Fi disappeared
       ↓
The mobile SIM network remains available
       ↓
Sends an urgent SMS alert: "POWER OUTAGE AT THE SITE"

A server on the same electrical circuit cannot report its own shutdown without an external communication channel and battery. An Android device already has both.


How many projects require root? (Root vs ADB vs no root)

A common misconception is that Android must be rooted to do anything useful.

text
┌────────────────────────────────────────────────────────────────────────┐
│                      LEVELS OF SYSTEM ACCESS                           │
├────────────────────────────────────────────────────────────────────────┤
│ 1. No root (the vast majority of uses)                                  │
│    Termux environment, SSH, SFTP, web servers, Python, Node.js,         │
│    Tailscale, subnet routing, SMS sending, GPSLogger, Home Assistant,   │
│    PCAP capture through the Android VPN API, USB OTG serial             │
│    communication                                                        │
├────────────────────────────────────────────────────────────────────────┤
│ 2. ADB permissions (without permanent root)                             │
│    Grant BATTERY_STATS, remove OEM bloatware apps, fine-tune Doze mode,  │
│    and adjust some system parameters                                    │
├────────────────────────────────────────────────────────────────────────┤
│ 3. Root access (only for specialized labs)                              │
│    Bind services directly to ports below 1024, advanced iptables and    │
│    nftables changes, kernel-level charge control                       │
└────────────────────────────────────────────────────────────────────────┘

For a stable home server, monitoring system, or network gateway, no-root mode is the recommended choice because it preserves operating system stability and built-in security protections.


Essential software stack and Android permissions

Most projects in this guide use a proven set of open source tools:

ToolPurposeRoot required
TermuxLinux terminal and package environmentNo
Termux:APILets scripts communicate with device hardwareNo
Termux:BootStarts services automatically after a restartNo
OpenSSHRemote SSH access and SFTP file transferNo
TailscaleEncrypted private mesh VPNNo
TaskerAutomates hardware and system eventsNo
Home Assistant CompanionExposes sensors and integrates with a smart homeNo
Syncthing-ForkPeer-to-peer folder sync without cloud storageNo
PCAPdroidInspects network traffic without rootNo
GPSLoggerRecords coordinates and sends telemetryNo
SMS Gateway for AndroidLocal REST server for SMS communicationNo

Installation recommendation: Most users should install Termux from F-Droid or use the official GitHub build. A Google Play version for Android 11 and later is available again, but it is a separate experimental branch with functional differences and missing features. Install Termux and its add-ons from compatible sources so their signatures match.

Android permissions at a glance

Android requires explicit permissions for background services and hardware access:

FeatureAndroid permission neededHow to grant it
SMS gateway and alertsSMS / Send SMSPrompt on first launch
GPS tracking and loggingLocation (Allow all the time)App settings > Location permissions
Video monitoring and photo alertsCameraIn-app permission prompt
Audio recordingMicrophoneIn-app permission prompt
File storage and sharingFiles and media / Manage storageRun the termux-setup-storage command
Bluetooth LE scanningNearby devices / BluetoothSystem permission on newer versions
Wi-Fi network detectionLocation / Nearby Wi-Fi devicesAndroid requires this to read the SSID
Status display and notificationsPost NotificationsNotification permission on Android 13 and later
Continuous 24/7 operationIgnore Battery OptimizationBattery settings > Unrestricted

Background operation and 24/7 stability (a key requirement)

Android is designed to save battery and aggressively stop background processes. If you want your device to work reliably as a server, complete these steps before starting services:

  1. Disable battery optimization: In the system settings for Termux, Home Assistant, and SMS Gateway, set the battery mode to Unrestricted.
  2. Enable autostart: On Xiaomi (HyperOS/MIUI), Huawei, Vivo, and Oppo devices, explicitly allow apps to start automatically in their app settings.
  3. Lock the app in memory: In the Recent apps view, lock Termux so the system does not remove it from RAM.
  4. Disable app sleep on Samsung: Remove the apps from the Sleeping apps and Deep sleeping apps lists.
  5. Enable a Termux wake lock:
    bash
    termux-wake-lock
    
    termux-wake-lock holds the appropriate wake lock and prevents deep sleep while it is active. Use it only for services that need it because it increases power consumption.

Start services automatically after a restart (Termux:Boot)

Install Termux:Boot from F-Droid and open it once from the launcher.

Then create a startup script:

bash
mkdir -p ~/.termux/boot
nano ~/.termux/boot/start-services

Add this content:

bash
#!/data/data/com.termux/files/usr/bin/sh

# Prevent the processor from sleeping
termux-wake-lock

# Start the OpenSSH server
sshd

# Optional: start your Python or Node app
# python ~/services/watchdog.py &

Make the script executable:

bash
chmod +x ~/.termux/boot/start-services

After each restart, Termux:Boot starts SSH and the scripts you defined in the background.


Server and development (uses 1 to 10)

This section covers turning an Android device into a personal development and server environment.

It makes sense when: You need a personal API, local webhook server, script testing environment, internal control panel, or development server with very low power consumption.
It is not suitable when: You plan to run a public SaaS product for thousands of users, heavy databases, or business applications with strict SLAs.

Install the basic development packages in Termux:

bash
# Install the basic tools
pkg update && pkg upgrade
pkg install openssh python nodejs-lts git curl jq tmux

SSH server (remote terminal and control)
Easy

Start the OpenSSH server:

bash
sshd

Termux uses the nonstandard port 8022 because unprivileged Android apps cannot bind to port 22. Connect from a computer with:

bash
ssh -p 8022 user@ANDROID_IP

🔒 Security: Never expose port 8022 to the public internet through your home router with a simple password. Use SSH ed25519 key authentication by adding your public key to ~/.ssh/authorized_keys, or connect through Tailscale.

SFTP file server (encrypted file transfer)
Easy

OpenSSH also enables its SFTP subsystem automatically. Use a client such as WinSCP or FileZilla on your computer to access internal storage and download logs, photos, and databases over port 8022.

Local HTTP web server
Easy

Quickly start a static web server:

bash
mkdir -p ~/web && cd ~/web
echo "Android server is running" > index.html
python -m http.server 8080

🔒 Security: python -m http.server exposes the entire working directory to every device on your local network without a password. Use it only for temporary transfers or internal testing.

Python REST API and microservices
Intermediate

Run a modern FastAPI microservice that exposes device telemetry:

python
# main.py
from fastapi import FastAPI
import subprocess
import json

app = FastAPI(title="Android IoT Node")

@app.get("/status")
def get_status():
    battery_raw = subprocess.check_output(["termux-battery-status"], text=True)
    return {
        "status": "online",
        "battery": json.loads(battery_raw)
    }

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=8080)

Start the service:

bash
pip install fastapi uvicorn
python main.py

Node.js and Express web services
Intermediate

The complete Node.js LTS platform runs natively on Termux's ARM architecture. You can run Express APIs, server-side rendering tools, or data processing scripts with minimal RAM use.

Webhook receiver for physical actions
Intermediate

Your home server or an automated website change monitor can send an HTTP POST request to your phone. A script on the phone can then trigger hardware actions:

bash
# Example response to a received alert
termux-notification -t "Server alert" -c "Database is not responding"
termux-vibrate -d 1000
termux-tts-speak "Alert, the database is not responding"

Git server and development environment
Easy

Termux supports the standard Git client. Your phone can serve as a local Git repository over SSH or as a workstation for pulling and pushing code to GitHub and GitLab.

Telegram and Discord bot hosting
Intermediate

Python libraries such as python-telegram-bot and discord.py use very few resources. A phone that stays connected to power can host personal administration bots around the clock.

Scheduled scripts (cron automation)
Easy

Use the crond service in Termux to run scripts periodically for log cleanup, resource checks, data downloads, or recurring system status reports.

Portable CLI development and API testing terminal
Easy

With a Bluetooth keyboard and tools such as curl, httpie, and jq, an Android device becomes a convenient mobile environment for testing API endpoints in the field without opening a laptop.


Network and internet infrastructure (uses 11 to 20)

4G/5G backup internet connection
SIM card requiredEasy

If your home fiber or cable internet fails, an Android device with a SIM card can act as an automatic failover connection for compatible routers such as MikroTik, Asus, or Keenetic, or connect directly to a computer.

Wi-Fi hotspot
Easy

A standard but essential feature for sharing mobile internet with several devices at once while on the go, with WPA2/WPA3 encryption support.

Fast USB tethering for a PC or router
Easy

Sharing the mobile network over USB provides lower latency, a more stable connection, and charges the phone from the USB port on the computer or router at the same time.

Bluetooth PAN tethering for emergencies
Easy

Bluetooth network sharing is much slower than Wi-Fi or USB, but uses far less power. It can serve as an energy-efficient connection for text data and telemetry.

Tailscale network node with no public ports
Easy

After you install Tailscale, the device gets a unique private IP address on your WireGuard mesh network. You can then connect to the phone over SSH from anywhere in the world without configuring port forwarding on your home router.

Tailscale subnet router for your whole local network
Intermediate

This is one of the most powerful uses. An Android device connected to your home Wi-Fi can act as a subnet router, for example advertising 192.168.1.0/24. From a remote laptop, you can directly access a home NAS, printer, or cameras that do not have VPN software installed themselves.

Note: For a subnet router that runs continuously, use a device connected to power because this feature has a significant effect on battery life.

DNS monitoring and diagnostics
Easy

Use the dnsutils package to periodically test the response from primary and secondary DNS servers:

bash
dig +short example.com @192.168.1.1

This helps detect cases where the internet connection is physically available but the provider's DNS is not working.

HTTP uptime monitor for services and websites
Easy

Check the status of a web server or local API:

bash
# -m 5 sets the maximum wait time to five seconds
curl -fsS -m 5 https://example.com > /dev/null

If the command returns a nonzero exit code, a script can log the outage and send an alert.

LAN watchdog (ping monitor for local devices)
Easy

Periodically send ICMP ping packets to key devices on the network, such as a router, NAS, Home Assistant server, or NVR. This helps record exactly when a network node drops off the local network.

Wake-on-LAN (WoL) remote PC startup
Easy

A device that stays on the local network can receive a remote command over Tailscale, send a magic packet to the local network's broadcast address, and wake a shut-down desktop computer or workstation.


Watchdog, alerts, and out-of-band monitoring (uses 21 to 29)

This is one of the most valuable uses for an Android device: a system that remains operational when the rest of your home infrastructure fails completely.

It makes sense when: You want reliable alerts for a power outage, router failure, or internet outage without an expensive UPS with a network card.
It is not suitable when: You need industrial PLC-level redundancy in a facility where a 50-millisecond interruption could cause material damage.

Power outage detector (charger and battery status)
Easy

Keep the device connected to a charger. Termux:API can read its power status:

bash
# Read the current status
termux-battery-status | jq -r '.plugged'

While the charger is connected, the status is PLUGGED_AC. When the power goes out, it changes to UNPLUGGED. A script can detect the change immediately and start the alert procedure.

Fixed-line ISP outage detector
Easy

The device detects when its Wi-Fi connection to the router is active but pings to public addresses such as 1.1.1.1 fail. This clearly distinguishes an ISP problem from a local power outage or router failure.

Home router failure detector
Easy

If the phone loses its Wi-Fi connection while the battery status remains PLUGGED_AC, meaning the charger still has power, the system can conclude that the problem is likely with the router or access point.

Local server or NAS outage detector
Easy

The phone periodically checks an HTTP or TCP port on your home server. If the server stops responding while the home network remains stable, an alert can be sent locally or by text message.

Battery and device temperature monitoring
Easy

Temperature is a critical metric for devices that stay on a charger around the clock:

bash
termux-battery-status | jq -r '.temperature'

If the temperature exceeds, for example, 42°C, a conservative warning threshold, the system can send an alert or switch off the smart plug powering the charger.

Charge-level and critical battery monitor
Easy

While running on battery after a power outage, the device tracks its remaining charge. When it drops below 20%, it sends one final critical alert before the phone shuts down.

SMS fallback channel for urgent alerts
SIM card requiredEasy

When home internet and Wi-Fi are down, internet notifications through Telegram, ntfy, or email cannot get through. Termux can send an SMS directly over the GSM network:

bash
termux-sms-send -n "+3816XXXXXXXX" "ALERT: Power and internet outage at the site!"

⚠️ A realistic view of availability: SMS is an independent channel that often remains operational when a local fixed-line network fails. However, during a large regional outage, mobile base stations can also lose power after some time.

Two-way SMS REST gateway and webhook
SIM card requiredIntermediate

A two-way SMS gateway connects local apps, scripts, and Home Assistant to the mobile network in both directions:

  • Send messages through a REST API: Your server or script sends a standard HTTP POST request to the Android device, for example through SMS Gateway for Android or a local web service. The device then sends an SMS using its SIM card.
  • Receive messages through a webhook: When a text arrives from an authorized number, the Android device immediately calls a webhook on your home server or starts a local Termux script to perform assigned tasks.
text
REST API ──> Android + SIM ──> SMS
SMS ───────> Android ────────> Webhook ──> Your app

This setup removes dependence on commercial SMS providers such as Twilio or Infobip and can still work when the fixed home internet connection is completely down.

Complete independent out-of-band node
Intermediate

Combine a battery, SIM card, Termux scripts, and Tailscale to create a self-sufficient node that can survive the failure of your primary home or office IT infrastructure.


Camera, video, and multimedia (uses 30 to 38)

Android devices often have very capable cameras for these projects, especially compared with the least expensive IP cameras.

It makes sense when: You need temporary video monitoring, a camera for a workshop or 3D printer, a way to watch pets, or a time-lapse project.
It is not suitable when: You need outdoor night recording with powerful infrared illuminators or integration with a bank-grade CCTV system.

IP camera (MJPEG streaming on a local network)
Easy

Apps such as IP Webcam and dedicated open source tools run a lightweight HTTP video server on the device. The feed is available in any web browser at http://ANDROID_IP:8080/video.

RTSP video monitoring server
Intermediate

Open source RTSP servers for Android can broadcast a standard high-definition H.264 video stream that integrates easily with VLC, OBS Studio, Home Assistant, or Frigate NVR.

Android camera as a Home Assistant MJPEG/RTSP source
Intermediate

Android sends an RTSP or MJPEG video stream through a dedicated app such as RTSP Camera Server or IP Webcam. Home Assistant then integrates it as a standard network camera through Generic Camera or WebRTC. This gives you a reliable video source in the Home Assistant dashboard without relying on cloud services or expensive subscriptions.

Local motion detection with the camera
Intermediate

Local motion detection works through an Android camera, server, or kiosk app that supports this analysis. As soon as the camera detects movement in a room, the app sends a webhook, MQTT message, or signal to Home Assistant. The device acts as both an optical presence sensor and a security camera.

External USB UVC camera through an OTG adapter
USB OTG requiredIntermediate

If your phone supports USB Host mode, you can connect an external USB webcam through the UVC (USB Video Class) protocol. The phone handles processing, networking, and encoding, while you can place the small camera wherever you need it.

HDMI video capture streaming
USB OTG requiredAdvanced

Connect an inexpensive USB HDMI capture card to your phone and Android can capture video from a computer, game console, or camera, then stream it over the local network.

Automated time-lapse camera
Easy

Termux:API can take photos from the command line without opening the camera app:

bash
# -c 0 selects the rear camera
termux-camera-photo -c 0 ~/storage/shared/DCIM/timelapse_01.jpg

A simple Bash loop that takes a photo every five minutes can document construction, plant growth, or a 3D print.

Local audio recorder and event recorder
Easy

The termux-microphone-record command can record audio for a set duration when a specific sensor alert occurs.

NVR video source for Frigate and ZoneMinder
Intermediate

Instead of recording and storing hours of video on the phone, use it only as a hardware sensor and stream source. A central server, for example Frigate with a Google Coral accelerator, can handle AI object recognition and archiving.


Smart home and IoT automation (uses 39 to 48)

An Android device mounted on a wall or shelf combines many sensor components that would cost much more as separate Zigbee or Z-Wave modules.

It makes sense when: You want a rich sensor panel, room-level presence tracking with iBeacon, or an interactive smart home display.
It is not suitable when: You need to replace dedicated battery-powered equipment that must run for two years on a single coin cell without charging.

Universal Home Assistant sensor node
Intermediate

The Home Assistant Companion app on Android can expose dozens of hardware readings:

  • Charging status and charger type (AC, wireless, USB)
  • Battery temperature and health
  • Wi-Fi signal strength (RSSI) and network name (SSID)
  • Accelerometer and light sensor readings
  • Geographic location and physical activity (walking, driving)

Bluetooth Low Energy (BLE) iBeacon transmitter
Intermediate

The device can broadcast standard BLE iBeacon signals with configurable UUID, Major, and Minor values. This lets a smart home detect exactly which room you are in when you carry a smartwatch or phone.

BLE scanner for presence and nearby devices
Intermediate

In the other direction, a stationary Android device can scan for nearby Bluetooth devices such as fitness bands, key fobs, and temperature sensors, then report their availability to a Home Assistant server.

Ambient light sensor (lux/illuminance)
Easy

If the device has an ambient light sensor, its current room brightness reading can trigger actions such as lowering blinds or turning on lights.

Proximity sensor
Easy

The optical proximity sensor at the top of the screen detects when a hand or body comes close. This is useful for automatically waking a dashboard display when someone approaches it.

Wall-mounted Home Assistant smart panel
Easy

Mount a tablet or large phone on the wall and show a dedicated dashboard with system status, weather, cameras, and controls for lighting and heating.

Tasker automation hub
Intermediate

Tasker connects hardware events, such as receiving a specific SMS, losing Wi-Fi, or reaching a battery threshold, to Termux scripts or HTTP calls to other devices.

MQTT client and sensor bridge
Intermediate

Termux can install mosquitto-clients or run Python scripts that read the phone's sensors and send the data to a central MQTT broker in a format ready to process.

Physical NFC trigger for automations
NFC requiredEasy

Devices with an NFC chip can read inexpensive NFC stickers. Tap a phone on a sticker on your desk or in your car to trigger a defined set of actions, such as opening a gate or starting a work profile.

Smart alarm and notification terminal
Easy

Combine the camera flash (termux-torch), speech synthesis (termux-tts-speak), vibration, and sound to make the device a physical siren and voice terminal for emergencies.


Storage, backup, and data synchronization (uses 49 to 57)

Modern phones with 64 GB to 256 GB of internal storage and microSD support can make excellent local data stores.

It makes sense when: You need personal decentralized photo backups, a private folder for exchanging files between computers, or an offline cache for field data.
It is not suitable when: You want a primary home NAS with a redundant RAID array for terabytes of films and databases.

Private SFTP network storage
Easy

Create an organized folder structure in Termux, such as ~/storage/shared/Backup, and your phone becomes a network destination where computers on the same network can send archives over secure SFTP.

Syncthing decentralized node
Easy

With Syncthing-Fork, the device becomes a node that continuously syncs documents, notes, or work files between your desktop computer and laptop without relying on Google Drive or Dropbox.

Automatic backup for photos and documents
Easy

Automatically replicate the /DCIM/Camera folder to your home computer when the phone detects that it is connected to your home Wi-Fi and plugged into a charger.

Private drop folder for file sharing
Easy

The device can expose a dedicated Incoming folder that family members or teammates can access over the local network to quickly leave files without sending them by email or messaging service.

Offline data mule (transfer data without internet)
Easy

In places without an internet connection, such as vacation homes or field sites, the device can collect data from local sensors in a database and automatically send it to a central server once it is back within network range.

USB SSD and flash drive network gateway
USB OTG requiredIntermediate

Connect an external SSD or USB flash drive to your phone through a USB-C OTG adapter. Termux can share that drive with the rest of the local network over SFTP.

Note: Higher-power SSDs may need a powered USB hub or USB-C PD pass-through. USB flash drives and some more energy-efficient SSDs may work directly.

For devices with a microSD card slot, an inexpensive 128 GB to 512 GB card is a good separate place to keep long-term sensor logs and video clips without filling the phone's internal storage.

Automated download node for permitted content
Easy

Termux can run command-line tools such as aria2 or curl to automatically download large databases, software updates, or ISO images overnight.

Local repository and offline backup archive
Easy

Your phone can store static copies of important technical documentation, manuals, and installation packages. You can access them over local Wi-Fi even during a complete outage of the wider internet.


GPS, vehicles, and field work (uses 58 to 66)

Built-in multi-constellation satellite receivers (GPS, GLONASS, Galileo, and BeiDou) give Android devices a major advantage in mobile scenarios.

It makes sense when: You want independent tracking of your own vehicle, route telemetry, Wi-Fi coverage analysis, or records of field service visits.
It is not suitable when: You want to track someone else's vehicle without consent or need equipment certified for transporting hazardous materials.

GPSLogger for recording coordinates and routes
GPS requiredEasy

The open source GPSLogger app records coordinates efficiently in GPX, KML, or CSV formats. It can send data directly to your own web server through HTTP URL parameters.

Real-time tracking for your own vehicle
GPS/SIM requiredEasy

A device permanently installed in a vehicle and connected to a 12 V USB adapter can send its current coordinates, altitude, and speed to your private server, such as the Traccar platform, while using very little mobile data.

Low-cost fleet management prototype
GPS/SIM requiredIntermediate

Before buying expensive professional fleet telematics, use several inexpensive Android devices to test the complete software system: plotting routes, defining geofence zones, and measuring dwell time.

Bluetooth OBD-II car telemetry gateway
Bluetooth requiredIntermediate

Connect the phone to an inexpensive Bluetooth OBD-II adapter in the car. It can read trip computer data such as engine speed, coolant temperature, battery voltage, and diagnostic trouble codes, then associate them with GPS coordinates.

Dedicated in-car smart node
Intermediate

In a car, a phone can handle navigation, record the route, share a Wi-Fi hotspot with passengers, and act as a smart alarm that sends an alert if the vehicle unexpectedly changes location.

Field photo and GPS documentation terminal
GPS requiredEasy

A script can combine a camera photo with precise coordinates read through Termux:API to create a field report about a fault, with a photo attached.

Wi-Fi survey and signal mapping at a site
GPS requiredIntermediate

Combine Wi-Fi signal readings with GPS locations to create a signal coverage heatmap for business campuses, yards, or warehouses.

Field network traffic analyzer (PCAPdroid)
Easy

PCAPdroid uses Android's local VPN interface to analyze and filter network packets directly on the device without root. It can show which services communicate in the background, which IP addresses they contact, and which protocols they use.

Mobile Wireshark live capture endpoint
Intermediate

PCAPdroid can send captured network traffic over Wi-Fi in real time to Wireshark on your computer for in-depth troubleshooting.


USB, BLE, and hardware electronics (uses 67 to 75)

With USB-C OTG, an Android device becomes a field bridge to microcontrollers, routers, and industrial equipment.

It makes sense when: You troubleshoot equipment in the field, program microcontrollers, or configure network devices on ladders or in server racks.
It is not suitable when: You need a high-frequency hardware oscilloscope or a specialized industrial CAN bus master without an adapter.

USB serial console for routers and network equipment
USB OTG requiredIntermediate

With an FTDI, CH340, or CP2102 USB-to-serial adapter and a library such as usb-serial-for-android, connect the phone directly to the console port (RJ45/DB9) on Cisco, MikroTik, or other professional network equipment.

Arduino and microcontroller serial terminal
USB OTG requiredIntermediate

Connect Arduino boards directly over USB to read Serial.println() output and send control commands without using a desktop computer.

ESP32 field flashing and log terminal
USB OTG requiredIntermediate

Android apps can flash compiled .bin firmware to ESP32 and ESP8266 chips over an OTG cable, making it possible to update IoT sensors at the installation site.

USB Ethernet wired network adapter
Depends on USB-C supportIntermediate

Connect a standard USB-C Ethernet adapter to give a supported Android device a physical RJ45 port. This is useful for testing network jacks or connecting devices where Wi-Fi is unavailable or unstable.

BLE GATT debugging and service inspection
Bluetooth requiredIntermediate

The nRF Connect app turns an Android phone into a professional Bluetooth Low Energy analysis tool. Inspect advertising packets, read and write GATT characteristics, and measure signal strength with RSSI.

Sensor logger (accelerometer, gyroscope, magnetometer)
Easy

The Termux termux-sensor command lets you read the device's physical sensors programmatically:

bash
# List all sensors supported by the device
termux-sensor -l

You can stream the data to scripts in real time to analyze machine vibrations or an object's orientation.

Physical tamper alarm using the accelerometer
Easy

Attach the device to an equipment cabinet, network rack, or other piece of equipment. Its accelerometer can detect movement or a door opening and trigger an immediate audible and SMS alarm.

Field barcode and QR code inventory scanner
Easy

With the right software, the phone's camera becomes a fast barcode reader for IT equipment inventories, warehouse stock, or package tracking, without buying dedicated laser scanners.

Infrared (IR) remote control for home equipment
IR blaster requiredEasy

Models with a built-in infrared transmitter, common on many Xiaomi devices, can use Termux:API commands or automations to control air conditioners, televisions, and audio amplifiers without a smart Wi-Fi IR controller.


Security, admin tools, intercom, and kiosk (uses 76 to 84)

Use a device for dedicated administrative, security, or public information tasks.

It makes sense when: You want a physically isolated admin terminal, a dedicated customer display, a secure device for two-factor codes, or a smart intercom.
It is not suitable when: You place a kiosk in an unsecured public area where the screen could be physically damaged without video monitoring.

Dedicated hardware device for 2FA and passkeys
Intermediate

Keep social media, games, and web browsing off this device. It can then be reserved for TOTP authentication codes, hardware passkeys, and administrator certificates.

Emergency admin terminal for system recovery
Intermediate

Keep backup SSH keys, WireGuard or Tailscale profiles, and network equipment tools on a device that can serve as a secure "break glass" option for administrator recovery if your primary computer fails.

Secure interactive kiosk mode (single app)
Intermediate

Use Android's App Pinning feature or dedicated Device Owner tools such as Fully Kiosk Browser to lock the display to one website or app and prevent users from leaving it for the rest of the system.

Digital signage and price list display
Easy

Mount a tablet or Android TV device on a business's wall to show a dynamic price list, daily restaurant menu, staff announcements, or a video presentation that updates automatically from a central server.

Dedicated status display for a server room
Easy

Place the device next to a server rack to continuously display status charts for CPU load, NAS disk usage, room temperature, and network link status.

Home intercom and VoIP terminal
Intermediate

Install a SIP or WebRTC client such as Linphone and connect it to your home video intercom system. A wall-mounted tablet can then handle visitor calls and unlock the front door.

Physical light and sound notification hub
Easy

Place the device in a visible spot in a workshop or office. It can combine its flash, sound alerts, and message display to notify the team about critical tickets, service outages, or an important order.

USB HID workstation (keyboard, mouse, and peripherals)
USB OTG requiredEasy

Connect a keyboard, mouse, and external display to the device through a USB hub or Bluetooth. On models that support DisplayPort over USB-C, this can provide a complete Linux work environment inside Termux.

Isolated security jump host for a home network
Advanced

Configure the phone as the only entry point from the outside world. All remote administrator access must pass through it before reaching the rest of the internal LAN.


Ready-made combinations

The biggest advantage of an Android device is not one isolated feature, but the ability to combine several of them. Here are five useful setups:

Setup 1: Infrastructure watchdog

  • Hardware: Any Android device + SIM card + charger
  • Software: Termux + Termux:API + Termux:Boot + Tailscale
  • What it does: Monitors power, the router, internet, and Home Assistant. Under normal conditions, it reports status over the internet. If power and internet fail, it immediately sends an SMS over the mobile network.

Setup 2: Car node

  • Hardware: Android device + 12 V charger + Bluetooth OBD-II adapter + SIM card
  • Software: GPSLogger + Tasker + Traccar client
  • What it does: Tracks the car, records engine telemetry, automatically starts a Wi-Fi hotspot when the car starts, and sends coordinates to a private server.

Setup 3: Smart home node

  • Hardware: Wall-mounted tablet or phone + continuous power
  • Software: Home Assistant Companion + Fully Kiosk Browser
  • What it does: Provides a touchscreen control panel and ambient light sensor. A dedicated kiosk or camera app detects movement and wakes the display, while a BLE transmitter tracks household presence.

Setup 4: Remote security camera

  • Hardware: Android device with a good camera + SIM card or Wi-Fi
  • Software: Open source RTSP server + Tailscale
  • What it does: Monitors a remote location and sends an encrypted video stream without needing a public static IP address.

Setup 5: Field engineer node

  • Hardware: Compact Android device + USB-C OTG cable + FTDI serial adapter
  • Software: Termux + nRF Connect + PCAPdroid
  • What it does: Replaces a laptop for servicing network racks, configuring routers, analyzing BLE IoT equipment, and capturing network traffic.

Which Android device should you choose for a project?

If you do not already have a suitable device and plan to buy a new or used one, start with the capabilities your project needs:

text
┌────────────────────────────────────────────────────────────────────────┐
│                         HARDWARE PROFILES                              │
├────────────────────────────────────────────────────────────────────────┤
│ 1. Watchdog and SMS profile                                             │
│    Focus: physical SIM slot, reliable battery, stable operation on     │
│           charger                                                      │
├────────────────────────────────────────────────────────────────────────┤
│ 2. Camera and CCTV profile                                              │
│    Focus: good camera sensor, hardware video encoder (H.264),          │
│           effective heat dissipation                                   │
├────────────────────────────────────────────────────────────────────────┤
│ 3. 5G gateway and network profile                                       │
│    Focus: 5G modem with wide band support, Wi-Fi 6, USB 3.0 transfer    │
├────────────────────────────────────────────────────────────────────────┤
│ 4. Storage and server profile                                           │
│    Focus: 6 or 8 GB RAM, fast UFS storage, microSD support              │
└────────────────────────────────────────────────────────────────────────┘

Examples of new budget devices (prices checked in September 2026)

  • Xiaomi Redmi 15C (4/128 GB), about 11,700 RSD: An inexpensive starting point for a watchdog, SMS gateway, GPS logger, and simple Termux services. It has USB-C, a large display, and a solid battery. Note: You may need to carefully disable HyperOS background optimizations.
  • Motorola Moto G05 (4/128 GB), about 13,500 RSD: A good option because its cleaner Android system is less aggressive about stopping background processes than some other manufacturers' software. It has a 5,200 mAh battery, microSD support, and stable Wi-Fi.
  • Samsung Galaxy A16 5G (4/128 GB), about 15,900 RSD: One of the least expensive ways to get a modern 5G modem, microSD support up to 1.5 TB, and a stable software ecosystem. It is suitable for 5G failover, a remote camera, and more demanding network nodes.

For 24/7 use, a new budget device with a fresh battery is often a better choice than a used flagship with unknown battery health.


Security rules and pre-deployment checks

When an Android device becomes part of your network infrastructure, follow these security practices:

  1. Do not expose ports to the internet: Access the device from outside the local network only through Tailscale or another WireGuard VPN solution.
  2. Remove unnecessary apps: On a dedicated device, uninstall or disable social media, games, and apps that use memory and battery.
  3. Protect local services: If a REST API controls the camera or sends SMS messages, implement authentication, such as an API token in the request header.
  4. Maintain the battery properly:
    • If the device has a Protect Battery feature that limits charging to 80% or 85%, enable it.
    • Do not leave the device in an airtight enclosure or direct sunlight.
    • Use a high-quality original charger with a stable voltage.
    • Check periodically for signs of battery swelling.

Functional checks before deployment

Before relying on your new system, run these checks:

  • Restart test: Reboot the device and make sure Termux, SSH, and the configured services start by themselves after boot.
  • Power test: Unplug the charger and confirm that the watchdog sends the correct power outage alert.
  • Network test: Disconnect the internet cable from the router and confirm that the device detects the fixed-line outage and sends an SMS alert.
  • Long-term test: Leave the device running for 48 hours and check the process log to make sure Android did not put the app to sleep.

Frequently asked questions (FAQ)

Can an Android device safely run as a server 24/7?

Yes, provided it has adequate cooling and a stable power supply. Enable battery protection that limits the maximum charge to 80% or 85% if available. This can reduce chemical cell degradation.

Do these projects require root access?

No. Most uses in this guide, including Termux, SSH, Python, Tailscale subnet routing, SMS alerts, an IP camera, and GPS tracking, work on the standard operating system without root.

Can an Android device completely replace a Raspberry Pi?

It depends on the project. A Raspberry Pi is better when you need physical GPIO pins, a conventional Linux distribution, Docker workloads, or several external hard drives. Android has an advantage when you need an integrated battery, display, modem, GPS, camera, and sensors in one package.

Will the SMS alert definitely work during a power outage?

Usually, yes, because mobile base stations have their own backup batteries. However, a large regional emergency may also bring down the mobile network, so account for that in critical systems.

Can I use a phone as a network drive (NAS)?

It can serve as lightweight private storage for documents and photos over SFTP or Syncthing. It is not a suitable replacement for a proper RAID NAS with multiple drives.

How much RAM does a device like this need?

Two to three GB of RAM is enough for a simple watchdog or SMS gateway. For Tailscale, a Python microservice, a web server, and a camera running at the same time, at least 4 GB to 6 GB is recommended.

Should I install Termux from Google Play or F-Droid?

Most users should install it from F-Droid or the official GitHub repository. Although a Google Play version for Android 11 and later is available again, it is a separate experimental branch with functional differences and missing features. Because of Android package signing, always install Termux and its add-ons, including Termux:API and Termux:Boot, from compatible sources.

Can I turn off the screen while the server is running?

Yes. Termux and background services continue running with the screen off if termux-wake-lock is active and battery optimization is disabled.

Can I connect wired Ethernet to Android?

Many Android devices support class-compliant USB Ethernet adapters, but support depends on the model, kernel, and OEM implementation.

Is the device safe from attacks on the local network?

It can be well protected if you follow basic practices: change default passwords, use SSH keys instead of plain-text passwords, avoid root access, and restrict services to the local network or a private VPN such as Tailscale.