Skip to content
metrobeftPublic
forked from ersinkoc/phonebox

About

Open-source community fork of PhoneBox (ersinkoc/phonebox) specialized for HP 7.1 1201 (Android 4.2.2 / API 17): native Java APK v1.5.0, ES5 Legacy Web, Hack 2.0 & Anime 2.0 themes, and LAN APK auto-updater.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

PhoneBox icon

PhoneBox — Edição HP 7.1 (Fork Comunitário Open-Source)

Fork de ersinkoc/phonebox Android 4.2.2 API 17 Legacy Web ES5 Windows .NET 10 MIT License

Aviso de transparência e créditos open-source: Este repositório é um fork pessoal e comunitário (não-oficial) baseado no projeto original PhoneBox, criado por Ersin KOÇ sob a Licença MIT. Todo o crédito pela arquitetura base do PhoneBox pertence ao autor original. Este fork preserva integralmente a licença MIT e a documentação original (docs/), adicionando uma edição completa voltada para tablets Android antigos — em especial o HP 7.1 1201 (Android 4.2.2 Jelly Bean / API 17, 1024×600, 1 GB RAM) — com aplicativo nativo em Java puro, painel Web ES5 e temas animados exclusivos. Binários/builds deste fork não são assinados pela SignPath Foundation nem representam releases oficiais de ersinkoc/phonebox.


O que este fork HP 7.1 adiciona sobre o PhoneBox original

Área Modificações e melhorias incluídas neste fork
APK 100% Nativo (android-hp71/, v2.1.0 / API 17) Aplicativo reescrito do zero em Java puro + Android Views/Canvas (zero WebView, zero AndroidX, zero Kotlin stdlib, ~620 KB já com todas as artes dos temas), compilado com d8 --min-api 17 e assinado em v1 RSA 2048. Totalmente adaptado à barra de navegação preta fixa do Android 4.2.2 em paisagem (1024×552) e retrato (600×976), com brilho real de hardware + dimmer noturno 2%, gestos de swipe e troca de abas pelos botões físicos de volume. Veja android-hp71/README.md.
Auto-Updater Integrado de APK Endpoint /api/legacy/apk-info + metadados apk-meta.json (versionCode, versionName, tamanho, SHA-256) + classe ApkUpdater.java: o app instalado verifica automaticamente se existe uma versão mais nova no PC, exibe banner/diálogo, baixa com progresso, valida o SHA-256 e abre o instalador nativo do Android 4.2.2 (com fallback para navegador e botão manual em Configurações).
Modo Web Local Legado (agent/PhoneBox.Agent/legacy/) Servidor HTTP dedicado na porta 8788 (restrito à rede privada RFC1918), interface 100% ES5 puro / WebKit 534.30 sem CSS Grid, Flexbox, CSS Variables ou TLS moderno no tablet. Endpoint unificado /api/legacy/sync, proxy de clima Open-Meteo pelo PC e botão direto ↓ BAIXAR APK.
Theme Studio v2.1 — 7 Temas (6 Mundos Animados + Default) (Web + APK em paridade 1:1) Galeria visual interativa inspirada em metrobeft/designer-temas-animados, com botão Testar Animação e integração direta no editor 127.0.0.1:8765:
• Sakura Storm (alias anime): céu crepuscular, lua crescente, montanhas, galho de cerejeira com 2 lanternas japonesas (chōchin) balançando, pétalas 3D com rajadas de vento e estrelas cadentes.
• Lofi Room: janela noturna chuvosa, skyline com luzinhas, fio de pisca-pisca quente, chuva inclinada + gotas lentas no vidro, abajur pêssego, vapor de chá, relâmpago suave, entrada com disco de vinil girando e mini equalizador ao vivo.
• Starfall Aurora: céu cósmico, cortinas ondulantes de Aurora Boreal (esmeralda/violeta), constelações em ciano autodesenhadas (Orion, Cassiopeia, Cygnus), portal Torii nas colinas, vaga-lumes dourados e meteoros.
• Hatsune Miku 01: palco vocaloid em ciano #39C5BB + magenta #FF2E88, ondas synth, equalizador de 22 bandas com picos flutuantes, notas musicais desenhadas em Canvas, holograma translúcido da mascote e entrada de palco.
• Arcane Fantasy (fantasy): reino de fantasia arcana em ouro #F4C858 + esmeralda mana #4CF2B2 + ametista #B77BFF, lua cheia dentro de um círculo mágico arcano giratório com hexagrama, cidadela de castelo com janelas douradas, ilha flutuante, cristais de mana luminosos, fadas de luz subindo e entrada com invocação de círculo rúnico.
• Hack 2.0 (Zero-Day Cyberdeck): fundo #000000, chuva digital Matrix em 3 camadas, scanlines CRT + cortes RGB + jitter horizontal, boot typewriter interativo, terminal vivo no topo e texto glitch legível (h4ck3r).
• Default Navy: tema base clássico de alto contraste.
7 Abas Especializadas + Sync 1:1 com settings.html Início (relógio, clima, mídia com seleção aprimorada SMTC, volume mestre, CPU/GPU/RAM/Rede), Sistema (gráficos ao vivo, hardware e discos), Atalhos (Stream Deck com ícones oficiais do Windows + Mixer por aplicativo), Processos (KPIs visuais + encerramento em 2 toques), IA (cotas Claude/Codex/Antigravity com polling exclusivo de 5s na aba + sessões + modal global Allow/Deny), Discord escalável (chamada ativa, busca, filtros, canais, notificações) e Clima/Hora (curva 12h, previsão 7 dias, Sol/Lua, fusos mundiais, calendário e Relógio de Mesa). Prévia ao vivo no editor do PC em 1024×552 / 600×976.
Scripts Windows & Privacidade Scripts prontos (scripts/install.ps1, scripts/allow-tablet-firewall.ps1, iniciar.bat, Iniciar-PhoneBox.cmd, stop.bat), expansão de variáveis %LOCALAPPDATA% nos atalhos e separação limpa entre arquivos de exemplo (config.example.json, local.config.example.ps1) e configurações pessoais (%APPDATA%\PhoneBox\config.json, *.keystore ignorados no Git).

Como usar este fork no Windows + Tablet HP 7.1

1. Instalar e iniciar o Agente no PC (Windows 10/11)

Requer .NET 10 SDK para compilar a partir do código-fonte:

# Compila, publica em %LOCALAPPDATA%\PhoneBox\app e inicia na bandeja do Windows
.\scripts\install.ps1
  • Se o Firewall do Windows bloquear a porta 8788 na rede local, execute uma vez como Administrador:
    .\scripts\allow-tablet-firewall.ps1
  • Abra o editor de configurações no PC: http://127.0.0.1:8765/
    • Sua configuração pessoal (cidade/clima, atalhos, Discord, páginas) é salva fora do repositório em %APPDATA%\PhoneBox\config.json. Veja o modelo comentado em agent/PhoneBox.Agent/config.example.json.
  • Para iniciar/reiniciar ou parar rapidamente depois de instalado, use iniciar.bat, Iniciar-PhoneBox.cmd ou stop.bat.

2. Abrir no Tablet HP 7.1 (Web ou APK Nativo)

  • Modo Web (sem instalar nada): abra no navegador do tablet na mesma rede Wi-Fi:
    http://<IP-LOCAL-DO-PC>:8788
    
  • APK Nativo (recomendado para melhor fluidez no Android 4.2.2):
    1. No tablet, ative Configurações → Segurança → Fontes desconhecidas.
    2. Acesse http://<IP-LOCAL-DO-PC>:8788/legacy/PhoneBox-HP71.apk (ou toque em ↓ BAIXAR APK no painel web) e instale.
    3. No app instalado, toque em Config. → Conexão do PC e informe o IP local do seu PC (porta padrão 8788).
    4. Para alternar entre Sakura Storm, Lofi Room, Starfall Aurora, Hatsune Miku 01, Arcane Fantasy, Hack Cyberdeck e Default Navy (ou testar as animações), toque em Config. (APK) ou ⚙ (Web).
    5. Para compilar seu próprio APK a partir de android-hp71/, consulte android-hp71/README.md.

3. Segurança do modo LAN (8788) e Aviso de Direitos de Imagem

  • Restrito por padrão apenas a IPs de rede privada RFC1918 (AllowPrivateLanOnly = true).
  • Nunca expõe /api/settings, /api/restart, pareamento ou webhooks de escrita na porta 8788.
  • updates.auto vem desativado por padrão para evitar que releases do upstream sobrescrevam este fork HP 7.1.
  • Aviso sobre a imagem do tema Hatsune Miku: o código-fonte deste fork é open-source sob a Licença MIT, exceto as artes derivadas de personagem em miku_mascot.png e theme_miku.png (tema Hatsune Miku 01), que retratam Hatsune Miku (© Crypton Future Media, INC. www.piapro.net) para uso estritamente pessoal/não-comercial de fã sob a Piapro Character License (mesma política adotada em metrobeft/designer-temas-animados). Caso distribua uma variante comercial, substitua ou remova esses dois arquivos PNG.

Documentação do Projeto Original (PhoneBox Upstream)

Abaixo está preservada a documentação original do ersinkoc/phonebox como referência completa dos recursos base (app Android 5+ em Kotlin, pareamento USB/Wi-Fi, Linux/macOS, 128 widgets, templates e guias em docs/).


English · Türkçe · Deutsch · Français · Español · Italiano · Português · Português (Brasil) · Nederlands · Polski · Русский · Ελληνικά · Tiếng Việt · 中文 (简体) · 日本語 · 한국어 · Bahasa Indonesia · ไทย · Українська · हिन्दी · Čeština · العربية · 中文(繁體)

Turn an old Android phone into a desk panel for your computer.
PC stats, AI coding sessions, music and touch controls over USB or Wi-Fi.
Windows, Linux and macOS. No root, PhoneBox account or cloud service required.

Try the live demo · Download · Quick start

Build status Latest release Windows, Linux, macOS; .NET 10 Android 5+ MIT license

PhoneBox on three phones showing automation, home and planner pages
Example layouts with demo data.

PhoneBox pairs a full-screen Android app with a small desktop agent. Build your panel in a browser-based visual editor: 128 widgets, 30 templates, multiple pages and a live preview. Connect several phones with their own layouts, or switch one phone between paired computers.

What you can do

Use it for What appears on the phone
PC monitoring CPU, GPU, RAM, disks, network and ping; charts, GPU details and process controls
AI coding Claude, Codex and Antigravity quotas, reset times and burn-rate forecasts; local Claude Code, Codex and OpenCode sessions (native and inside WSL); GitHub reviews and CI status
Touch controls App and URL shortcuts, key combinations and macros; application audio, microphone, media, OBS and system controls through Control Deck
Everyday use Now Playing, internet radio, clocks, weather, calendars, notes, checklists, pomodoro and timers
Automation Webhook values and notifications, Home Assistant controls and rules that react to activity on the computer

Tap an AI session for its model, timing and token details. Opt in to Codex, Claude Code or OpenCode permission prompts to answer Allow, Deny (and Always allow for OpenCode) from the phone. Optional CodexBar integration adds quota providers and a cost overview.

PhoneBox tour showing notifications, a Claude Code permission prompt and automatic page switching
A tour with demo data: notifications, permission prompts and automatic page switching. Watch the MP4

Quick start

You need an Android 5+ phone (Android 6 or later recommended) and a supported computer. USB uses a data cable and USB debugging; Wi-Fi pairing works without either. Release agents include .NET, so you do not need to install the runtime.

1. Install the desktop agent

Windows 10/11 x64 — paste into a normal PowerShell window:

irm https://raw.githubusercontent.com/ersinkoc/phonebox/main/setup.ps1 | iex

Linux or macOS — run as your own user:

curl -fsSL https://raw.githubusercontent.com/ersinkoc/phonebox/main/setup.sh | bash

Setup downloads the latest release, checks its SHA-256 checksum, offers missing dependencies and start-at-login, and opens the settings at http://127.0.0.1:8765. It can also install the Android app over USB. Run setup again to update or repair the installation while keeping settings and pairings.

Windows signing: release agents are still unsigned: SignPath Foundation accepted PhoneBox and test signing works, and releases are signed once its release certificate is issued. SmartScreen or antivirus software may warn or block them. See the code signing policy and installation warnings. USB debugging should be authorized only on computers you trust.

Read the scripts before running them: Windows · Linux/macOS. The installation guide covers options, dependencies, install paths, troubleshooting and uninstalling.

2. Connect the phone

USB Wi-Fi only
Enable Developer options → USB debugging, connect a data cable and accept the phone's authorization prompt. Let setup install the app, or use Settings → General → Install the phone app. Install the APK from the latest release. Wi-Fi is off by default: open the settings page (tray icon, or http://127.0.0.1:8765), turn on General → Wi-Fi & Tailscale → Let the phone connect without the USB cable, click Save, then Restart to apply at the top. Choose Pair a phone over Wi-Fi, scan the pairing QR code and confirm the matching check code.
Wakes and opens the panel on connection; supports app updates over adb. No adb or developer options needed; install app updates manually unless you later configure USB.

The phone app is not in any app store; it comes only from this repository's releases. It runs on Android 5.0 and newer; there is no iOS version.

For automatic USB/Wi-Fi fallback, enable Wi-Fi and connect the phone over USB once. Connection details and Tailscale setup →

3. Make it yours

Open http://127.0.0.1:8765 (or double-click the Windows tray icon). Under Pages, choose a template, drag and resize widgets, then Save. Use Live preview to see unsaved edits with live data. Swipe, tap the page dots or use the phone's volume keys to move between pages.

Other installation methods
  • Manual download: unzip the agent for your system from the release page and run it. Install the APK on the phone. Checksums and build provenance accompany the release assets.

  • Scoop (Windows):

    scoop bucket add phonebox https://github.com/ersinkoc/phonebox
    scoop install main/adb phonebox/phonebox
  • From source: see the installation guide and development guide.

  • winget: manifests are prepared in packaging/winget; see the installation guide for details.

Pages & templates

Start with Home, System, AI quotas, Sessions, Music, Planner, Automation or a Control Deck template, then adapt the 12 × 6 grid to your phone. Portrait and landscape layouts are supported. Smart Stack puts up to 12 widgets in one slot.

Home AI sessions
Clock, weather, media and PC metrics Coding sessions and GitHub activity
System Layout editor
CPU, GPU, memory and network charts Pages and widget settings in the visual editor

Screenshots use demo data. Browse the template gallery and widgets. Change fonts, size, spacing, corners and surfaces globally or for one page or widget with the appearance guide.

Platform support

Windows Linux macOS
Release builds x64 x64 / ARM64, glibc Apple silicon / Intel
CPU, RAM, disks, network, processes ✓ ✓ ✓
GPU data Windows counters; NVIDIA via nvidia-smi; extra sensors via LibreHardwareMonitor NVIDIA / AMD; Intel clock Apple silicon, when exposed by macOS
Media System media sessions playerctl nowplaying-cli; Spotify / Music fallback
Volume Native wpctl / pactl System output; availability varies by device
Agent interface Tray icon + browser settings Browser settings Browser settings

Widgets depend on the host's hardware, installed tools and permissions. Advanced Control Deck features have their own platform requirements. Windows ARM and musl Linux (such as Alpine) do not have release builds. See the full compatibility table.

Documentation

Guide Contents
Installation and connections Setup options, warnings, manual and source installs, USB, Wi-Fi, Tailscale, updates, uninstall and troubleshooting
User guide Template gallery, widgets, AI integrations, editor, Claude Code prompts, webhooks and automation rules
Appearance Fonts, surfaces, presets, inheritance and live preview
Control Deck Audio, media, OBS, shortcuts, tasks, protocols, dependencies and platform limits
Discord widget Creating the Discord application, connecting it, controls and troubleshooting
Development Architecture, local demo, builds, tests, widget sources and isolated agent runs
Contributing Contribution scope, review expectations, privacy and required checks
Changelog Release history and unreleased changes
Release checklist Maintainer build, signing and publication workflow

The UMIDIGI BISON extras contain the reversible, no-root tune-up used on the original development phone.

Community add-ons

Add-ons are written and maintained by their authors. PhoneBox doesn't review or ship them. They run with your own rights on the computer and can change PhoneBox settings through PUT /api/settings, so read what an add-on does before you install it.

Add-on What it does What it sends outside the PC
PhoneBox Games Tab (Windows) A Games page with live FPS, cover art and play time, through the push API and a Custom HTML widget Store / Xbox apps' package names, with the Windows display language and region, to the Microsoft Store catalog (displaycatalog.mp.microsoft.com); the phone loads cover images from Microsoft's image servers and from Steam's, whose URL contains the game's Steam app ID
PhoneBox for GNOME (Linux, GNOME) CPU and the Claude session quota in the GNOME top bar; a click opens the panel, with page tabs, right below it. Also works as a desktop widget Nothing of its own; the panel it opens makes the same requests as on the phone, such as the weather from api.open-meteo.com (see PRIVACY.md)

Security & privacy

The desktop settings server listens on 127.0.0.1:8765. USB reaches the agent through adb reverse on a loopback port of its own, over TLS pinned like Wi-Fi, with a key the phone app makes and the agent reads over adb. Optional Wi-Fi uses HTTPS on port 8766 with a pinned certificate and a paired key. Settings and pairing endpoints stay local. The phone requests configured actions by ID; commands and integration credentials stay on the computer.

PhoneBox has no telemetry, analytics or accounts of its own. Optional widgets and integrations contact external services for weather, quotas, GitHub and other data, and the agent checks GitHub for updates. Supported public feeds can fall back through the agent over USB when the phone has no internet. The privacy policy lists outbound connections and how to disable them. Read the security details. To report a vulnerability, follow SECURITY.md.

Development

The agent uses .NET 10; the Android app uses Kotlin and a WebView with plain JavaScript widgets. For Android builds, install JDK 17 and Android SDK Platform 35 (the SDK the app is built with; the app itself runs on Android 5.0, API 21, and later). Preview the panel and editor from source with Python 3, using simulated data:

python tools/demo-server.py

Open http://127.0.0.1:8790/panel/ or http://127.0.0.1:8790/settings/. See development commands for running the agent, building the APK and testing changes. Contributions are welcome; start with CONTRIBUTING.md.

Code signing policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

  • Windows agent: SignPath Foundation accepted the project and a test-signed build passed; releases stay unsigned until the Foundation's release certificate is issued. The intended signing target is PhoneBoxAgent.exe in the win-x64 release zip, built by the release workflow. Every signing request requires manual approval. Bundled runtime and library notices are in THIRD-PARTY-NOTICES.txt.
  • Android app: release APKs use the project's own signing key, independently of SignPath.
  • Team roles: committer, reviewer and signing approver: ersinkoc. Pull requests from other contributors are reviewed before merging.
  • Privacy: see the privacy policy.

Thanks

People who tested PhoneBox on their own hardware:

Sponsor

Sponsored by WrongStack — open-source AI coding with durable memory and multi-agent workflows. Explore wrongstack.com.

Supported by WrongStack · An open-source AI coding agent that remembers your codebase.
Explore WrongStack → · View on GitHub & give it a star ★

Star History

Star history of ersinkoc/phonebox

License

MIT

About

Open-source community fork of PhoneBox (ersinkoc/phonebox) specialized for HP 7.1 1201 (Android 4.2.2 / API 17): native Java APK v1.5.0, ES5 Legacy Web, Hack 2.0 & Anime 2.0 themes, and LAN APK auto-updater.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages