libimobiledevice / idevicerestore

Restore/upgrade firmware of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v3.0
1.25k stars 387 forks source link

Soft flash issue Version 17.0 #597

Closed nirhen closed 7 months ago

nirhen commented 9 months ago
Hi
Soft flash (without erasing) failed due to 
 ERROR: img4_create_local_manifest: Unhandled component 'Ap,SecurePageTableMonitor' - can't create manifest

 also reported in https://github.com/libimobiledevice/idevicerestore/issues/582

i added to  idevicerestore\src\img4.c
 comp_tags component_tags[] = {
    { "Ap,SecurePageTableMonitor", "sptm" },
    { "Ap,TrustedExecutionMonitor", "txm" },

in order to fix issue

nikias commented 9 months ago

I understood now why this happens. The component selection for the preboard manifest should not include those, but I haven't figured out yet what criteria are used exactly to determine which component to include. I am seeing a logical or of the following values: IsFirmwarePayload | IsSecondaryFirmwarePayload | IsFUDFirmware | IsLoadedByiBoot | IsEarlyAccessFirmware | IsiBootEANFirmware | IsiBootNonEssentialFirmware So basically any one of these is true means it will be included, otherwise not. However I also see at least one being true for Ap,SecurePageTableMonitor, so something is missing in the logic...

nikias commented 7 months ago

This should be resolved with most recent commits.