2247 Commits

Author SHA1 Message Date
Marvin Häuser
e8ce607364 OcBootManagementLib: Fix incorrect recovery path in comment 2022-11-01 15:31:51 +01:00
Marvin Häuser
79b56c1f18 OcAppleEventLib: Fix click timings 2022-11-01 15:29:06 +01:00
Andrey1970AppleLife
e7913267ae Updated builtin firmware versions 2022-10-27 01:07:15 +03:00
Mike Beaton
d9281f3491 OcLogAggregatorLib: Buffer log lines during high TPL when using fast file logging 2022-10-25 21:08:14 +01:00
Mike Beaton
06fe0d63a2 OcCpuLib: Cache InternalCalculateARTFrequencyIntel failure to avoid log loop 2022-10-25 08:44:05 +01:00
Marvin Häuser
c7b1063028 OcAppleEventLib: Support dwell-clicking
Fixes https://github.com/acidanthera/bugtracker/issues/2067
2022-10-23 18:41:15 +02:00
Marvin Häuser
b6d62ed594 OcAppleEventLib: Various fixes
- Correctly initialize max click duration and double click speed
- Don't initialize poll times statically
- Bound polling to 32-bit values
- Use unsigned values for pointer position
2022-10-23 18:41:08 +02:00
PMheart
baff5ff5db
OcAppleKernelLib: Add patching status indicator (#386) 2022-09-29 12:45:31 +03:00
John Davis
c171a4ef88 OcDevicePathLib: Fix codestyle 2022-09-25 15:41:12 -05:00
John Davis
ee7bb9edc6 OcDevicePathLib: Fix Hyper-V startup disk device path expansion
Hyper-V device paths changed to allow for hot add/remove of disks per fde5737fbb.
2022-09-25 15:33:26 -05:00
Andrey1970AppleLife
dad566524a Updated builtin firmware versions 2022-09-15 00:14:41 +03:00
PMheart
c3a6f1208a OcAppleKernelLib: ix OPTIONAL prototype misuse 2022-09-08 16:36:52 +02:00
John Davis
1021daa734 OcInputLib: Fix crash due to print statement after ExitBootServices() 2022-08-25 07:01:04 -05:00
John Davis
8425dbaa92 OcCpuLib: Fixed crash while using SysReport on Pentium 4 systems
MSRs MSR_IA32_EXT_CONFIG and MSR_CORE_FSB_FREQ are not supported on P4 platforms, limiting to Yonah and newer only
2022-08-24 21:14:03 -05:00
PMheart
27905dd7d7
Utilities: Introduce TestProcessKernel tool for testing kext injection/patching from config, by @mhaeuser (#369) 2022-08-24 11:26:35 +03:00
John Davis
44cc14d307 OcMemoryLib: Fix typo 2022-08-20 23:39:34 -05:00
Ivan Cafiero
d40fe9af15
Build: Fix python warnings (#343) 2022-08-18 15:04:17 +03:00
PMheart
c2942135d2
OcCompressionLib: Update to zlib 1.2.12 (#383) 2022-08-16 17:16:32 +03:00
MikeBeaton
b3f2033d20 OcBootManagementLib: Rename DisableFirmwareRuntime option to FullNvramAccess 2022-08-05 08:55:45 +01:00
MikeBeaton
fa7477066c OcBootManagementLib: Add DisableFirmwareRuntime option for Tools 2022-08-04 22:49:42 +01:00
MikeBeaton
c9ba16fb98 OcVariableRuntimeDxe: Minor updates to comment lines and docs 2022-07-30 08:50:57 +01:00
vit9696
3ac28b49bb OcConfigurationLib: Restore enabled and introduce LoadEarly 2022-07-28 23:45:17 +03:00
MikeBeaton
83123452fe OCVAR: Refactor NVRAM code, add OpenVariableRuntimeDxe 2022-07-28 06:38:56 +01:00
John Davis
6099ed0d24 OcAppleKernelLib: Fix Windows builds 2022-07-24 22:11:50 -05:00
John Davis
ce4a8edfc3 OcAppleKernelLib: Fix Windows builds 2022-07-24 21:16:09 -05:00
John Davis
e2739bfbaa OcAppleKernelLib: Fix uncrustify styling 2022-07-24 09:25:43 -05:00
John Davis
68de283159 OcAppleKernelLib: Provide cache info to 10.4 when using ProvideCurrentCpuInfo 2022-07-24 09:23:33 -05:00
MikeBeaton
77c6c9d409 ToggleSipEntry: Add --show-csr option 2022-07-24 14:19:52 +01:00
John Davis
b8d552f1c8
OCAB: Implement Mac OS X 10.4/10.5 relocation block support (#373) 2022-07-24 12:27:06 +02:00
John Davis
18a231eeb2 OcAppleKernelLib: Inject only current arch during cacheless boot 2022-07-22 19:40:01 -05:00
MikeBeaton
14c792ae8b OcStringLib: Use OC_STRING_FORMAT consistently 2022-07-20 19:49:21 +01:00
John Davis
9dd5ad1af4 OCAK: Fixed debug printing when performing cacheless kext blocking 2022-07-20 05:16:04 -05:00
MikeBeaton
622aa07c21 OcBootManagementLib: Avoid unecessary warnings on hidden auxiliary entries, specifically warn on invalid device path 2022-07-20 08:03:28 +01:00
MikeBeaton
510fc28401 OcBootManagementLib: Add missing LF 2022-07-20 07:06:35 +01:00
PMheart
f604848c61
OcMainLib: Patch order change (#370)
The current behaviors of how our modification to Booter and Kernel are undocumented. In addition, we should ensure that:

- Deletion is always performed first, as it makes no sense to patch something that will be removed
- Integrated quirks are always applied preceding user patches (to prevent users from messing up the whole patch structure)
- Injection is performed last
2022-07-16 19:49:20 +02:00
MikeBeaton
d9e57c0e82 OcBootManagementLib: Report unsupported etc. custom entries 2022-07-15 12:21:32 +01:00
PMheart
9a255a9796 Uncrustify: Apply codestyle patch 2022-07-15 10:16:45 +02:00
John Davis
e41d88f50f OcAppleKernelLib: Implement support for macOS 10.4 for ProvideCurrentCpuInfo quirk 2022-07-14 22:41:16 -05:00
John Davis
6c188569e6 OcAppleKernelLib: Fix potential null reference and account for kxld symbols 2022-07-14 06:59:28 -05:00
PMheart
2f9a15d78e OcMainLib: Fix wrong message printing 2022-07-14 11:39:37 +02:00
John Davis
4c45308b3a OcAppleKernelLib: Fix codestyle 2022-07-13 20:50:35 -05:00
John Davis
9872eef1d1 OCAK: Fix ProvideCurrentCpuInfo
Changed function to use original symbol values instead of recalculating them, as segment information is not available on macOS 11 and newer. Implemented full 32-bit support for TSC value calculations.
2022-07-13 20:34:51 -05:00
PMheart
b06c6b3fcb OcAppleKernelLib: Fix kext bundle version copying, thanks @mhaeuser 2022-07-12 10:08:49 +02:00
John Davis
2d55820158 OcAppleKernelLib: Fix incorrect OSBundleLibraries_x86_64 and cacheless injected bundle version handling 2022-07-11 21:02:19 -05:00
PMheart
53c67f308c
OcAppleKernelLib: Fix user after free, thanks @mhaeuser (#368) 2022-07-11 13:29:58 +02:00
Marvin Häuser
95adcd7be7 OcAppleKernelLib: Fix ProvideCurrentCpuInfo
Fixes regression introduced by
d916dd65b8.
2022-07-10 18:06:25 +02:00
MikeBeaton
279f054df5 OcLog: Allow optional unsafe fast log 2022-07-10 07:10:26 +01:00
PMheart
0b806dccdf OcAppleKernelLib: Fix minor typo 2022-07-08 20:06:15 +02:00
Marvin Häuser
bd2d3f29ab OcAppleKernelLib: Do not locate __PRELINK_INFO for Kernel Collections
As of macOS 13 Developer Beta 3, the __PRELINK_INFO marker segment is
broken. It is not actually used in the Kernel Collection paths, so
just don't locate it at all to avoid future mistakes.
2022-07-07 17:52:25 +02:00
Marvin Häuser
d916dd65b8 OcMachoLib: Treat container Mach-O as reference file
As of macOS 13 Developer Beta 3, the Kernel Collection's inner kernel
references a segment that precedes itself. The current model is that
a Kernel Collection is a container format and the included files are
(mostly) separate. Hence, this was treated as an out-of-bounds issue.
Kernel Collections apparently are rather an unconventional composite
format, where the sub-files are still part of the whole. Redesign
OcMachoLib to treat the Kernel Collection as the reference file.
Patches still use only the inner file, while parsing considers the
whole file.
2022-07-07 17:52:25 +02:00