Skip to content

Commit b369192

Browse files
committed
fix patch wroong
1 parent e28ee84 commit b369192

4 files changed

Lines changed: 61 additions & 2 deletions

File tree

oclp_r/sys_patch/patchsets/detect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ def _validation_check_repatching_is_possible(self) -> bool:
219219
"""
220220
Determine if repatching is not allowed
221221
"""
222+
if self._constants.commit_info[0] in ["Running from source", "Built from source"] or self._constants.commit_info[2] is None or self._constants.commit_info[2] == "":
223+
#return False
224+
...
222225
oclp_patch_path = "/System/Library/CoreServices/oclp-r.plist"
223226
if not Path(oclp_patch_path).exists():
224227
return self._is_root_volume_dirty()

oclp_r/sys_patch/sys_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,8 +429,8 @@ def _execute_patchset(self, required_patches: dict):
429429
required_patches[patch][method_install][install_patch_directory].pop(install_file)
430430

431431
destination_folder_path = updated_destination_folder_path
432-
433-
install_new_file(source_folder_path, destination_folder_path, install_file, method_install,self.trans)
432+
self.trans_ul=translate_language.TranslateLanguage(global_constants=self.constants).utilities()
433+
install_new_file(source_folder_path, destination_folder_path, install_file, method_install,self.trans_ul)
434434

435435
if PatchType.EXECUTE in required_patches[patch]:
436436
for process in required_patches[patch][PatchType.EXECUTE]:

payloads/OCLP-R.plist

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>OCLP-R</key>
6+
<string>v3.0.1</string>
7+
<key>PatcherSupportPkg</key>
8+
<string>v1.11.0</string>
9+
<key>Time Patched</key>
10+
<string>January 31, 2026 @ 13:15:22</string>
11+
<key>Commit URL</key>
12+
<string></string>
13+
<key>Kernel Debug Kit Used</key>
14+
<string>/Library/Developer/KDKs/KDK_26.3_25D5087f.kdk</string>
15+
<key>Metal Library Used</key>
16+
<string>Not applicable</string>
17+
<key>OS Version</key>
18+
<string>25.3 (25D5112c)</string>
19+
<key>Custom Signature</key>
20+
<true/>
21+
<key>Modern Wireless</key>
22+
<dict>
23+
<key>覆盖系统卷</key>
24+
<dict>
25+
<key>/usr/libexec</key>
26+
<dict>
27+
<key>wifip2pd</key>
28+
<string>13.7.2-25</string>
29+
</dict>
30+
</dict>
31+
<key>合并系统卷</key>
32+
<dict>
33+
<key>/System/Library/PrivateFrameworks</key>
34+
<dict>
35+
<key>IO80211.framework</key>
36+
<string>13.7.2-25</string>
37+
<key>WiFiPeerToPeer.framework</key>
38+
<string>13.7.2-25</string>
39+
</dict>
40+
<key>/System/Library/Frameworks</key>
41+
<dict/>
42+
</dict>
43+
</dict>
44+
<key>Modern Audio</key>
45+
<dict>
46+
<key>覆盖系统卷</key>
47+
<dict>
48+
<key>/System/Library/Extensions</key>
49+
<dict>
50+
<key>AppleHDA.kext</key>
51+
<string>26.0 Beta 1</string>
52+
</dict>
53+
</dict>
54+
</dict>
55+
</dict>
56+
</plist>
22 MB
Binary file not shown.

0 commit comments

Comments
 (0)