Repository navigation
Conversation
paviro
force-pushed
the
feature/mac-dfu-guard
branch
from
November 27, 2026 20:31
1e52483 to
f5a1ecd
Compare
When an iPod classic enters BootROM DFU on macOS, AMPDevicesAgent uploads Apple's recovery image and the iPod comes back in recovery mode, where the installer cannot use it. The agent, and Finder's AMPDeviceDiscoveryAgent, skip devices while the ignore-devices user default is true in their domains. The app holds reprise-device's mac_dfu_guard while the DFU, checks and installation screens are shown. The DFU poll takes it before every scan, so a refusal is retried, and a layout effect releases it when the flow leaves those screens; the exit event restores the keys when the app quits from one of them, since Tauri exits without dropping managed state. A start restores the keys a crashed run left set; a panic restores them too. On other platforms the commands do nothing. Another installer holding the keys stops the DFU screen, since two installers would fight over the iPod. Any other failure to set the keys comes back as a warning: the frontend logs it once per distinct message with a note that macOS may move the iPod out of DFU, and the scan goes on.
paviro
force-pushed
the
feature/mac-dfu-guard
branch
from
November 28, 2026 15:56
f5a1ecd to
6ecccd7
Compare
This branch has not been deployed
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.
Merge after #27, #29 and RepriseOS/repriseos#107, then rebase on main and move the Cargo pin from #107's head (d85811f) to the repriseos main commit that holds #105 and #107. The README conflict with #26 resolves by keeping both sections.
The app holds
mac_dfu_guardfrom RepriseOS/repriseos#107 on the DFU, checks and installation screens, so macOS leaves the iPod in DFU. The DFU poll callsmac_dfu_guard_beginbefore every scan and a layout effect inApp.tsxcallsmac_dfu_guard_endonce the flow leaves those screens. Quitting, a panic, or the next start after a crash restores the keys.When another installer or
reprisecommand holds the keys, the DFU screen shows "Another RepriseOS installer is working with an iPod; close it first". Other failures go to the session log once and the scan goes on without the guard. On Linux and Windows the commands do nothing.The README describes the change under Install.
Tested on macOS without an iPod in DFU.