资源简介

联想拯救者R720-15ikbn黑苹果efi文件 包含基本的所需要的文件 通知含有大部分的驱动备份

资源截图

代码片段和文件信息

//
//  plugin_start.cpp
//  Lilu
//
//  Copyright © 2016-2017 vit9696. All rights reserved.
//

#include 
#include 
#include 

#ifndef LILU_CUSTOM_KMOD_INIT
bool ADDPR(startSuccess) = false;
#else
// Workaround custom kmod code and enable by default
bool ADDPR(startSuccess) = true;
#endif

bool ADDPR(debugEnabled) = false;
uint32_t ADDPR(debugPrintDelay) = 0;

#if !defined(LILU_CUSTOM_KMOD_INIT) || !defined(LILU_CUSTOM_IOKIT_INIT)

static const char kextVersion[] {
#ifdef DEBUG
‘D‘ ‘B‘ ‘G‘ ‘-‘
#else
‘R‘ ‘E‘ ‘L‘ ‘-‘
#endif
xStringify(MODULE_VERSION)[0] xStringify(MODULE_VERSION)[2] xStringify(MODULE_VERSION)[4] ‘-‘
getBuildYear<0>() getBuildYear<1>() getBuildYear<2>() getBuildYear<3>() ‘-‘
getBuildMonth<0>() getBuildMonth<1>() ‘-‘ getBuildDay<0>() getBuildDay<1>() ‘\0‘
};

#endif

#ifndef LILU_CUSTOM_IOKIT_INIT

OSDefinemetaClassAndStructors(PRODUCT_NAME IOService)

PRODUCT_NAME *ADDPR(selfInstance) = nullptr;

IOService *PRODUCT_NAME::probe(IOService *provider SInt32 *score) {
ADDPR(selfInstance) = this;
setProperty(“VersionInfo“ kextVersion);
auto service = IOService::probe(provider score);
return ADDPR(startSuccess) ? service : nullptr;
}

bool PRODUCT_NAME::start(IOService *provider) {
ADDPR(selfInstance) = this;
if (!IOService::start(provider)) {
SYSLOG(“init“ “failed to start the parent“);
return false;
}

return ADDPR(startSuccess);
}

void PRODUCT_NAME::stop(IOService *provider) {
ADDPR(selfInstance) = nullptr;
IOService::stop(provider);
}

#endif /* LILU_CUSTOM_IOKIT_INIT */

#ifndef LILU_CUSTOM_KMOD_INIT

EXPORT extern “C“ kern_return_t ADDPR(kern_start)(kmod_info_t * void *) {
// This is an ugly hack necessary on some systems where buffering kills most of debug output.
PE_parse_boot_argn(“liludelay“ &ADDPR(debugPrintDelay) sizeof(ADDPR(debugPrintDelay)));

auto error = lilu.requestAccess();
if (error == LiluAPI::Error::NoError) {
error = lilu.shouldLoad(ADDPR(config).product ADDPR(config).version ADDPR(config).runmode ADDPR(config).disableArg ADDPR(config).disableArgNum
ADDPR(config).debugArg ADDPR(config).debugArgNum ADDPR(config).betaArg ADDPR(config).betaArgNum ADDPR(config).minKernel
ADDPR(config).maxKernel ADDPR(debugEnabled));

if (error == LiluAPI::Error::NoError) {
DBGLOG(“init“ “%s bootstrap %s“ xStringify(PRODUCT_NAME) kextVersion);
(void)kextVersion;
ADDPR(startSuccess) = true;
ADDPR(config).pluginStart();
} else {
SYSLOG(“init“ “parent said we should not continue %d“ error);
}

lilu.releaseAccess();
} else {
SYSLOG(“init“ “failed to call parent %d“ error);
}

// Report success but actually do not start and let I/O Kit unload us.
// This works better and increases boot speed in some cases.
return KERN_SUCCESS;
}

EXPORT extern “C“ kern_return_t ADDPR(kern_stop)(kmod_info_t * void *) {
// It is not safe to unload Lilu plugins unless they 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-02-23 16:47  EFI\
     目录           0  2020-02-19 21:03  EFI\APPLE\
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\
     文件        6148  2020-02-23 16:47  EFI\.DS_Store
     文件         120  2020-02-23 16:47  __MACOSX\EFI\._.DS_Store
     目录           0  2020-02-22 15:49  EFI\BOOT\
     目录           0  2020-02-23 10:42  EFI\CLOVER\
     文件        3011  2020-02-22 15:49  EFI\Clover_Install_Log.txt
     目录           0  2020-02-20 03:55  EFI\APPLE\FIRMWARE\
     目录           0  2020-02-19 17:03  EFI\APPLE\EXTENSIONS\
     文件       21014  2019-03-07 08:43  EFI\CLOVERbackup\config_UHD630_4K_HBR2_3E9B0000.plist
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\ACPI\
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\tools\
     文件       10039  2019-03-07 08:44  EFI\CLOVERbackup\config_UHD630_HDMI.plist
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\drivers64UEFI\
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\kexts\
     文件       16389  2019-03-07 08:42  EFI\CLOVERbackup\config_UHD620_HD620_59160000.plist
     文件       15638  2019-03-10 05:34  EFI\CLOVERbackup\config_WHISKEYLAKE_3EA0.plist
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\Common-patches-for-hackintosh\
     文件       21172  2019-02-26 02:05  EFI\CLOVERbackup\config_10.12_NVME.plist
     文件       18306  2019-05-01 04:10  EFI\CLOVERbackup\config.plist
     文件       21014  2019-03-07 08:43  EFI\CLOVERbackup\config_UHD630_1080P_HBR_3E9B0000.plist
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\drivers-Off\
     文件        2590  2019-02-14 01:28  EFI\CLOVERbackup\config_UHD630_HDMI_part.plist
     目录           0  2020-02-19 00:50  EFI\CLOVERbackup\themes\
     文件       17879  2019-03-07 08:43  EFI\CLOVERbackup\config_Nvidia.plist
     文件      927872  2019-03-26 00:11  EFI\CLOVERbackup\CLOVERX64.efi
     文件      885696  2020-02-16 18:47  EFI\BOOT\BOOTX64.efi
     文件           2  2020-02-16 18:47  EFI\BOOT\.empty
     目录           0  2020-02-22 15:49  EFI\CLOVER\misc\
     目录           0  2020-02-22 05:38  EFI\CLOVER\ACPI\
............此处省略2775个文件信息

评论

共有 条评论