Skip to content

AltServer: handle PairingFileRequest (Remote AltServer setup) - #1

Open
ojura wants to merge 1 commit into
jaakkopalvaila:ng-fixesfrom
ojura:pairing-file-request
Open

ojura wants to merge 1 commit into
jaakkopalvaila:ng-fixesfrom
ojura:pairing-file-request

Conversation

@ojura

@ojura ojura commented Sep 26, 2026 •

Copy link
Copy Markdown

AltStore Classic 2.3 added Set up Remote AltServer…, which sends AltServer a PairingFileRequest. AltStore stores the RemotePairing (RPPairing) file it gets back and uses it to install and refresh apps on the device itself over LocalDevVPN. AltServer-Linux rejected the request with "AltServer does not support this request", so AltStore showed "unable to pair".

This PR adds the handler for AltServer-Linux:

  • ClientConnection answers PairingFileRequest with a PairingFileResponse carrying the file. The file is base64-encoded in pairingFile, which is how AltStore's JSONDecoder decodes Data. On the device the pairing is named "AltServer on ".
  • DevicePairingManager.h declares the same interface as DevicePairingManager.swift in AltServer for macOS.
  • DevicePairingManager.cpp here throws UnknownRequest, so a Windows build answers as it does today. Both files are added to AltServer.vcxproj. I have not built the Windows project.
  • AltServer-Linux replaces DevicePairingManager.cpp with an implementation built on idevice's tunnel_pair_usb(), the same way it replaces AnisetteDataManager.cpp.

The Linux side is jaakkopalvaila/AltServer-Linux#3, which also updates the upstream_repo submodule to this commit. It was tested with AltStore Classic 2.3 on an iPhone 16 Pro running iOS 26.6.2. Remote AltServer setup received the pairing file. With Prefer Remote AltServer on and AltServer stopped, AltStore installed an app on the device.

🤖 Generated with Claude Code

AltStore Classic 2.3's "Set up Remote AltServer" asks AltServer for a
RemotePairing (RPPairing) file, which AltStore then uses to install and
refresh apps on the device itself over LocalDevVPN. Without a handler,
the request failed with "AltServer does not support this request."

ClientConnection answers PairingFileRequest with a PairingFileResponse
carrying the file from DevicePairingManager, named "AltServer on
<hostname>" on the device. DevicePairingManager declares the interface
of the macOS DevicePairingManager.swift. Its implementation here throws
UnknownRequest, so the Windows build answers as before; AltServer-Linux
replaces it with an implementation built on idevice's tunnel_pair_usb().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant