ipsw-parser 1.3.6__tar.gz → 1.3.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/PKG-INFO +1 -1
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/_version.py +2 -2
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/build_identity.py +7 -2
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/PKG-INFO +1 -1
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.gitattributes +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/workflows/codeql.yml +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/workflows/python-app.yml +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.github/workflows/python-publish.yml +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.gitignore +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/.pre-commit-config.yaml +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/CODE_OF_CONDUCT.md +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/LICENSE +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/README.md +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/__init__.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/__main__.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/build_manifest.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/component.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/exceptions.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/firmware.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/img4.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser/ipsw.py +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/SOURCES.txt +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/dependency_links.txt +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/entry_points.txt +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/requires.txt +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/ipsw_parser.egg-info/top_level.txt +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/pyproject.toml +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/pytest.ini +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/requirements.txt +0 -0
- {ipsw_parser-1.3.6 → ipsw_parser-1.3.7}/setup.cfg +0 -0
|
@@ -6,7 +6,7 @@ from tempfile import TemporaryDirectory
|
|
|
6
6
|
from typing import List, Mapping, Optional
|
|
7
7
|
|
|
8
8
|
from cached_property import cached_property
|
|
9
|
-
from plumbum import local
|
|
9
|
+
from plumbum import ProcessExecutionError, local
|
|
10
10
|
from pyimg4 import IM4P
|
|
11
11
|
|
|
12
12
|
from ipsw_parser.component import Component
|
|
@@ -162,10 +162,15 @@ class BuildIdentity(UserDict):
|
|
|
162
162
|
kernel_output = output / 'System/Library/Caches/com.apple.kernelcaches' / kernel_path.parts[-1]
|
|
163
163
|
|
|
164
164
|
logger.info(f'extracting kernel into: {kernel_output}')
|
|
165
|
-
# kernel_output.write_bytes(kernel_component.data)
|
|
166
165
|
im4p = IM4P(kernel_component.data)
|
|
167
166
|
im4p.payload.decompress()
|
|
168
167
|
kernel_output.write_bytes(im4p.payload.output().data)
|
|
168
|
+
try:
|
|
169
|
+
# In case the kernel is a FAT image, extract the arm64 macho
|
|
170
|
+
local['ipsw']('macho', 'lipo', '-a', 'arm64', kernel_output)
|
|
171
|
+
list(kernel_output.parent.glob('*.arm64'))[0].rename(kernel_output)
|
|
172
|
+
except ProcessExecutionError:
|
|
173
|
+
pass
|
|
169
174
|
|
|
170
175
|
for cryptex in ('App', 'OS'):
|
|
171
176
|
name = {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|