diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist index 53b4b8709..260029be6 100644 --- a/payloads/Config/config.plist +++ b/payloads/Config/config.plist @@ -1774,6 +1774,8 @@ OCLP-Settings revcpu revcpuname + OCLP-Spoofed-SN + OCLP-Spoofed-MLB 7C436110-AB2A-4BBB-A880-FE41995C9F82 diff --git a/resources/build.py b/resources/build.py index fbd0387de..c3f373844 100644 --- a/resources/build.py +++ b/resources/build.py @@ -1033,12 +1033,12 @@ class BuildOpenCore: self.config["PlatformInfo"]["SMBIOS"]["SystemSerialNumber"] = sn self.config["PlatformInfo"]["DataHub"]["SystemSerialNumber"] = sn self.config["PlatformInfo"]["PlatformNVRAM"]["SystemSerialNumber"] = sn - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-SN"] = sn + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-SN"] = sn # Board Serial Number self.config["PlatformInfo"]["SMBIOS"]["BoardSerialNumber"] = mlb self.config["PlatformInfo"]["PlatformNVRAM"]["BoardSerialNumber"] = mlb - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-MLB"] = mlb + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-MLB"] = mlb @@ -1049,8 +1049,8 @@ class BuildOpenCore: print("- Adding custom serial numbers") self.config["PlatformInfo"]["Generic"]["SystemSerialNumber"] = self.constants.custom_serial_number self.config["PlatformInfo"]["Generic"]["MLB"] = self.constants.custom_board_serial_number - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-SN"] = self.constants.custom_serial_number - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-MLB"] = self.constants.custom_board_serial_number + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-SN"] = self.constants.custom_serial_number + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-MLB"] = self.constants.custom_board_serial_number self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["run-efi-updater"] = "No" self.config["PlatformInfo"]["Automatic"] = True self.config["PlatformInfo"]["UpdateDataHub"] = True @@ -1081,8 +1081,8 @@ class BuildOpenCore: self.config["PlatformInfo"]["Generic"]["SystemSerialNumber"] = sn self.config["PlatformInfo"]["Generic"]["MLB"] = mlb self.config["PlatformInfo"]["Generic"]["SystemUUID"] = str(uuid.uuid4()).upper() - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-SN"] = sn - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-MLB"] = mlb + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-SN"] = sn + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-MLB"] = mlb if self.constants.serial_settings == "Moderate": @@ -1117,8 +1117,8 @@ class BuildOpenCore: self.config["UEFI"]["ProtocolOverrides"]["DataHub"] = True self.config["PlatformInfo"]["Generic"]["SystemSerialNumber"] = self.constants.custom_serial_number self.config["PlatformInfo"]["Generic"]["MLB"] = self.constants.custom_board_serial_number - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-SN"] = self.constants.custom_serial_number - self.config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["OCLP-Spoofed-MLB"] = self.constants.custom_board_serial_number + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-SN"] = self.constants.custom_serial_number + self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Spoofed-MLB"] = self.constants.custom_board_serial_number # USB Map and CPUFriend Patching if ( diff --git a/resources/defaults.py b/resources/defaults.py index fbe02ac0b..4b112a306 100644 --- a/resources/defaults.py +++ b/resources/defaults.py @@ -15,8 +15,8 @@ class generate_defaults: settings.custom_board_serial_number = "" if host_is_target: - settings.custom_serial_number = utilities.get_nvram("OCLP-Spoofed-SN", "7C436110-AB2A-4BBB-A880-FE41995C9F82", decode=True) - settings.custom_board_serial_number = utilities.get_nvram("OCLP-Spoofed-MLB", "7C436110-AB2A-4BBB-A880-FE41995C9F82", decode=True) + settings.custom_serial_number = utilities.get_nvram("OCLP-Spoofed-SN", "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102", decode=True) + settings.custom_board_serial_number = utilities.get_nvram("OCLP-Spoofed-MLB", "4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102", decode=True) if settings.custom_serial_number is None or settings.custom_board_serial_number is None: # If either variables are missing, we assume something is wrong with the spoofed variables and reset settings.custom_serial_number = ""