mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-14 20:58:21 +10:00
Add ApECID backend
This commit is contained in:
@@ -9,6 +9,7 @@ import subprocess
|
||||
import uuid
|
||||
import zipfile
|
||||
import ast
|
||||
import secrets
|
||||
from pathlib import Path
|
||||
from datetime import date
|
||||
|
||||
@@ -587,6 +588,11 @@ class BuildOpenCore:
|
||||
print("- Adding CPU Name Patch")
|
||||
if self.get_kext_by_bundle_path("RestrictEvents.kext")["Enabled"] is False:
|
||||
self.enable_kext("RestrictEvents.kext", self.constants.restrictevents_version, self.constants.restrictevents_path)
|
||||
if self.constants.apecid_support is True:
|
||||
print("- Generating ApECID value")
|
||||
apecid = secrets.randbits(64)
|
||||
print(f"- Setting ApECID: {apecid}")
|
||||
self.config["Misc"]["Security"]["ApECID"] = int(apecid)
|
||||
|
||||
def set_smbios(self):
|
||||
spoofed_model = self.model
|
||||
|
||||
Reference in New Issue
Block a user