iOS Fire TV remote app (SwiftUI + native ADB client)#5
Draft
lanethefox wants to merge 1 commit into
Draft
Conversation
Adds a self-contained SwiftUI iPhone app under ios/FireTVRemote that controls a Fire TV over the local network. It implements the ADB wire protocol and RSA auth handshake in pure Swift (no dependencies), so the TV trusts the phone after a one-time on-screen prompt. - ADB transport over Network framework with CNXN/AUTH/OPEN/WRTE/OKAY/CLSE - RSA key persisted in Keychain; Android adb public-key encoding - Remote UI: D-pad, navigation, transport, volume/power, app launchers, on-TV text entry - Manage multiple Fire TVs by IP; setup/help screen included Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_019gGkDiRA1DmjCAVmTTUVs8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A self-contained SwiftUI iPhone app (
ios/FireTVRemote/) that controls an Amazon Fire TV over your home Wi-Fi — no Amazon account, no cloud, nothing leaves the LAN.It works by implementing the ADB (Android Debug Bridge) protocol directly in pure Swift, the same mechanism
adb connect 192.168.x.x:5555uses. The first button press triggers the standard "Allow USB debugging?" prompt on the TV; after you accept it once, the phone stays trusted (the RSA key lives in the Keychain).Features
How it's built
ADB/ADBProtocol.swiftADB/ADBConnection.swiftADB/ADBKey.swiftadbpublic-key encodingADB/AndroidPubkey.swift,ADB/BigUInt.swiftinput keyeventmappingControllers/FireTVController.swiftControllers/DeviceStore.swiftViews/*,ContentView.swiftTo use it
ios/FireTVRemote/FireTVRemote.xcodeprojin Xcode 16+, set your signing Team, and run it onto your iPhone (iOS 17+).Full instructions are in
ios/FireTVRemote/README.mdand the in-app Help screen.Notes / limitations
rf-logcrates; lives entirely underios/.🤖 Generated with Claude Code
Generated by Claude Code