Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support patching .aea otas #566

Open
2 tasks done
mduran80 opened this issue Sep 19, 2024 · 5 comments
Open
2 tasks done

Support patching .aea otas #566

mduran80 opened this issue Sep 19, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request triage

Comments

@mduran80
Copy link

Is your feature request related to a problem? Please describe.

ipsw ota patch currently expects a zip file. New otas encrypted as .aea cannot be used with the patch command after decryption.

Describe the solution you'd like

Use ota patch transparently

Describe alternatives you've considered

I have tried a workaround to create the cryptexes but unfortunately didn't work as there's no BuildManifest in the archive contents.

  1. Decrypt .aea into a temp aar file aea decrypt -i .... -o <temp_aar>
  2. Patch the temp aar file into a temp folder using aa patch -i <temp_aar> -d <temp_folder>
  3. Zip the <temp_folder> into <temp_zip>
  4. Run ipsw ota patch rsr <temp_zip>
  ⨯ failed to get OTA folder: no BuildManifest.plist found

Search

  • I did search for other open and closed issues before opening this

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@mduran80 mduran80 added enhancement New feature or request triage labels Sep 19, 2024
@blacktop
Copy link
Owner

Has there been an RSR since the arrival of AEA? I think RSRs are dead

@mduran80
Copy link
Author

No, not RSR, just the iOS 18 OTA for iPhone17,1 et al. I have been using the cmd "rsr" to obtain the cryptexes from full OTAs without prerequisites. I don't usually work with deltas and it was the only way I could make it work. Is there another alternative to extract the cryptexes?

@mduran80
Copy link
Author

I finally found a way although a bit hacky... As ipsw was demanding a BuildManifest.plist, I just copied it from <patched_tmp>/boot/BuildManifest.plist to the root of the folder before zipping. Afterwards, ipsw ota patch kindly created the cryptex dmgs.

@blacktop
Copy link
Owner

you want the full DMGs right not just files from the DMGs?

@mduran80
Copy link
Author

mduran80 commented Oct 5, 2024

yeah, full DMGs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage
Projects
None yet
Development

No branches or pull requests

2 participants