资源简介
不论是想脱离U盘引导还是MAC系统引导故障,都可以解决。使用方法:将下载的文件在WINSOWS下解压,然后进PE,删除MAC系统ESP小分区内的全部引导文件
将下载的ESP文件夹内的文件夹内的3个文件夹,全部对拷过去,重启即可。
代码片段和文件信息
//
// 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-10-05 00:59 ESP\
目录 0 2019-10-05 00:59 ESP\.Spotlight-V100\
文件 4161 2019-10-03 18:07 ESP\.Spotlight-V100\VolumeConfiguration.plist
目录 0 2019-10-05 00:59 ESP\.Spotlight-V100\Store-V1\
文件 348 2019-10-03 18:07 ESP\.Spotlight-V100\Store-V1\VolumeConfig.plist
目录 0 2019-10-05 00:59 ESP\.Spotlight-V100\Store-V2\
目录 0 2019-10-05 00:59 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\
文件 8 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.0.indexCompactDirectory
文件 135168 2019-10-04 17:49 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\.store.db
目录 0 2019-10-05 09:37 __MACOSX\
目录 0 2019-10-05 09:37 __MACOSX\ESP\
目录 0 2019-10-05 09:37 __MACOSX\ESP\.Spotlight-V100\
目录 0 2019-10-05 09:37 __MACOSX\ESP\.Spotlight-V100\Store-V2\
目录 0 2019-10-05 09:37 __MACOSX\ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\
文件 120 2019-10-04 17:49 __MACOSX\ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\._.store.db
目录 0 2019-10-05 00:59 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\journals.health_check\
文件 4096 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.1.indexPostings
文件 4096 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\0.shadowIndexHead
文件 2056 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.1.shadowIndexDirectory
目录 0 2019-10-05 00:59 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\journals.migration_secondchance\
文件 3016 2019-10-04 17:49 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.1.indexUpdates
目录 0 2019-10-05 00:59 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\journals.assisted_import_pre\
文件 27980 2019-10-04 17:24 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\0.indexPostings
文件 3592 2019-10-04 17:24 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\0.indexIds
文件 1920 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.0.directoryStoreFile.shadow
文件 4096 2019-10-04 17:49 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.0.indexHead
文件 13 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.0.indexUpdates
文件 65536 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.1.indexArrays
文件 12 2019-10-04 17:24 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\0.indexUpdates
文件 0 2019-10-04 17:29 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\live.1.shadowIndexPositionTable
文件 0 2019-10-03 18:07 ESP\.Spotlight-V100\Store-V2\063089EF-BBB3-4C63-B0A0-C19EB46A6143\tmp.SnowLeopard
............此处省略1285个文件信息
评论
共有 条评论