ipsw-parser 1.7.1__tar.gz → 1.7.3__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.7.1 → ipsw_parser-1.7.3}/PKG-INFO +1 -1
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/_version.py +3 -3
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/build_identity.py +16 -3
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser.egg-info/PKG-INFO +1 -1
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.gitattributes +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.github/workflows/codeql.yml +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.github/workflows/python-app.yml +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.github/workflows/python-publish.yml +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.gitignore +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/.pre-commit-config.yaml +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/CODE_OF_CONDUCT.md +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/LICENSE +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/README.md +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/__init__.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/__main__.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/archive.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/build_manifest.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/component.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/dsc.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/exceptions.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/firmware.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser/ipsw.py +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser.egg-info/SOURCES.txt +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser.egg-info/dependency_links.txt +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser.egg-info/entry_points.txt +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser.egg-info/requires.txt +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/ipsw_parser.egg-info/top_level.txt +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/pyproject.toml +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/pytest.ini +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/requirements.txt +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/setup.cfg +0 -0
- {ipsw_parser-1.7.1 → ipsw_parser-1.7.3}/tests/test_archive_backends.py +0 -0
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '1.7.
|
|
22
|
-
__version_tuple__ = version_tuple = (1, 7,
|
|
21
|
+
__version__ = version = '1.7.3'
|
|
22
|
+
__version_tuple__ = version_tuple = (1, 7, 3)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'g8dd49a707'
|
|
@@ -2,6 +2,7 @@ import logging
|
|
|
2
2
|
import os
|
|
3
3
|
import shutil
|
|
4
4
|
from collections import UserDict
|
|
5
|
+
from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
5
6
|
from functools import cached_property
|
|
6
7
|
from pathlib import Path
|
|
7
8
|
from tempfile import TemporaryDirectory
|
|
@@ -72,8 +73,9 @@ def _decode_sandbox_profiles(kernel_output: Path, output: Path, profile_type: Op
|
|
|
72
73
|
args += ["--type", profile_type]
|
|
73
74
|
|
|
74
75
|
output.mkdir(exist_ok=True, parents=True)
|
|
76
|
+
profile_names = ipsw(*args).splitlines()
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
def decode_worker(profile_name: str) -> None:
|
|
77
79
|
profile_path = (output / profile_name).with_suffix(".sb")
|
|
78
80
|
decode_args = ["sb", "dec", kernel_output, profile_name]
|
|
79
81
|
if profile_type is not None:
|
|
@@ -82,9 +84,20 @@ def _decode_sandbox_profiles(kernel_output: Path, output: Path, profile_type: Op
|
|
|
82
84
|
profile = ipsw(*decode_args)
|
|
83
85
|
except ProcessExecutionError as e:
|
|
84
86
|
logger.warning(f"failed to decode sandbox profile {profile_name}: {e}")
|
|
85
|
-
|
|
87
|
+
return
|
|
86
88
|
profile_path.write_text(profile)
|
|
87
89
|
|
|
90
|
+
with ThreadPoolExecutor(max_workers=os.cpu_count()) as executor:
|
|
91
|
+
futures = [
|
|
92
|
+
executor.submit(
|
|
93
|
+
decode_worker,
|
|
94
|
+
profile_name,
|
|
95
|
+
)
|
|
96
|
+
for profile_name in profile_names
|
|
97
|
+
]
|
|
98
|
+
for future in as_completed(futures):
|
|
99
|
+
future.result()
|
|
100
|
+
|
|
88
101
|
|
|
89
102
|
def _extract_kernelcache(build_identity: "BuildIdentity", output: Path) -> Path:
|
|
90
103
|
kernel_component = build_identity.get_component("KernelCache")
|
|
@@ -216,7 +229,7 @@ class BuildIdentity(UserDict):
|
|
|
216
229
|
logger.error("Failed to extract sandbox profiles: %s", e)
|
|
217
230
|
try:
|
|
218
231
|
_decode_sandbox_profiles(kernel_output, sandbox_profiles / "protobox", profile_type="protobox")
|
|
219
|
-
except ProcessExecutionError as e:
|
|
232
|
+
except (ProcessExecutionError, FileNotFoundError) as e:
|
|
220
233
|
logger.error("Failed to extract sandbox profiles: %s", e)
|
|
221
234
|
|
|
222
235
|
for cryptex in ("App", "OS"):
|
|
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
|
|
File without changes
|
|
File without changes
|