179 Commits

Author SHA1 Message Date
Mike Beaton
78cf64df83 OcBootManagementLib: Improve Save/RestoreMode 2023-05-20 00:42:48 +01:00
Mike Beaton
3927ee7fe1 OcBootManagementLib: Save and restore text and graphics mode settings round tools and failed entries 2023-05-18 09:16:01 +01:00
Mike Beaton
0083a4ef15 OcBootManagementLib: Disable builtin picker timeout on unbootable selection from Apple picker; change from INFO to WARN if cannot start requested Apple picker 2023-05-07 09:25:51 +01:00
Mike Beaton
c8b93357b8 OcConsoleLib: Simplify use of builtin renderer uncontrolled mode
The renderer already (esp. since recent changes incl. reset to controlled on cls)
manages its own transitions to controlled, so we just need to indicate uncontrolled
in cases where something else has been rendering graphics
2023-05-04 09:59:22 +01:00
Mike Beaton
7feb7c98c3 OcConsoleLib: Builtin renderer updates
- Perform full clear screen on switch from graphics to text mode,
   if marked uncontrolled
 - Suppress remaining console coloured output (screen clear and
   cursor, text was already handled) if in graphics mode
 - Remain uncontrolled while in graphics mode
 - Improve builtin renderer screen size calculations
   o Although we appear to lose a small amount of height (i.e. up
     to one row) with the new font size scaled vertical padding,
     we were actually losing it anyway with the previous screen
     size calculation
 - Re-order initialisation of builtin mode
   o Avoid producing uncontrolled text with old text protocol,
     after resync screen clear of new controlled protocol
2023-05-03 22:21:11 +01:00
Mike Beaton
acecdf5e7b Revert OcConsoleLib related parts of recent commits:
- Reverts part of commit 2439d58412c071cb735cde8a70c9ef964a095780.
 - Reverts commit a189bd53bc2ac1490dac7125a9ce11fd03571755.
 - Reverts part of commit b07843fe1d47454747ae4eda9ea0189aa9fb8c03.
2023-05-02 07:49:01 +01:00
Savva Mitrofanov
b2d438d6f3 Switch OcGuardLib to BaseOverflowLib 2023-04-13 13:16:14 +06:00
Mike Beaton
2439d58412
OcConsoleLib: Prevent verbose boot text overwriting pre-existing graphics (#426)
- Clear console screen on change to console mode
 - Ensure entire screen is cleared at least once in console mode
   o Was not needed/was done by default, prior to a189bd53bc2ac1490dac7125a9ce11fd03571755
   o Remove GOP clear screen work-around no longer required with this change.
 - These changes improve EnableGop driver in the same way, so update version number
   o Add EnableGop version in UI section, to enable tool builders to track it
2023-02-22 02:01:39 +03:00
Mike Beaton
f6bf1f2d86 EnableGop: Provide standalone GOP driver for EFI-era Macs 2023-01-29 09:21:49 +00:00
Mike Beaton
a653620c33 OcBootManagementLib: Enable Apple picker on non-EFI graphics cards 2022-11-23 00:53:23 +00:00
Mike Beaton
13356ae4a4 OcBootManagementLib: Fix unwanted flicker when launching non-text entry 2022-11-12 18:51:16 +00: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
19ef39ecf5 BootEntryProtocol: Add system action and hotkey support; implement Reset NVRAM and Toggle SIP as drivers 2022-05-16 22:23:49 +01:00
MikeBeaton
bcd2558686 OcAudio: Convert from int ids to string ids 2022-05-05 04:33:54 +01:00
PMheart
228f8ca1fb Codestyle: Apply codestyle changes with Uncrustify 2022-04-25 14:51:15 +02:00
dakanji
dee3ff5ef5
OcFileLib: Standardise Function Names (#287) 2021-08-31 10:33:34 +03:00
MikeBeaton
eb5cc3ee62 BootManagement: Add csrutil EFI tool and Toogle SIP boot option 2021-05-28 09:40:22 +01:00
Vitaly Cheptsov
1a673ad89e
OcBootManagementLib: Fix warning message 2021-05-02 12:18:48 +03:00
Marvin Häuser
c8596475db OcBootManagementLib: Fallback to builtin when OpenCanopy fails to launch 2021-05-01 17:19:03 +02:00
MikeBeaton
1e3b66e4a8 Pickers: Use context method for password verification 2021-04-19 13:58:10 +01:00
Marvin Häuser
a1023fbe29 OcBmLib: Move privilege level caching to caller 2021-03-26 00:45:56 +01:00
MikeBeaton
74f662aef6 OCB: Fix nested hotkeys context 2021-03-25 17:03:48 +00:00
MikeBeaton
644b2b81c6 Picker: Key handler add key flags and improved indirection 2021-03-25 15:26:03 +00:00
Marvin Häuser
79c5e4bf30 OCB: Enable picker key handling around RequestPrivilege call 2021-03-25 14:45:02 +00:00
MikeBeaton
97d364ccdb Builtin: Update key combo for voice over 2021-03-25 11:24:28 +00:00
MikeBeaton
ef2db45050 Pickers: Replace OC_INPUT_EXTRA with better defined change detection 2021-03-25 06:58:12 +00:00
MikeBeaton
183e028a5f Pickers: Avoid multiple fetches of Apple Key Map protocol 2021-03-25 06:21:24 +00:00
MikeBeaton
0cd2bdbd4c Misc: Improve formatting DEBUG_CODE_BEGIN/END calls 2021-03-25 05:48:12 +00:00
MikeBeaton
09621ad66c OCB: Use Apple Event typing for builtin picker password; add console flush to UnregisterTypingHandler 2021-03-25 05:47:06 +00:00
MikeBeaton
77e26141e2 HotKeys: Improve allocation/deallocation logic and timing 2021-03-23 21:52:32 +00:00
MikeBeaton
e69e28cb69 BootPickers: Apple Event kb handling + typing; Apple Key Map non-repeat key handling; CTRL indicator in Builtin. 2021-03-23 12:26:46 +00:00
Marvin Häuser
b0311bd9ca OcBootManagementLib: Use ResetSystemLib for resets 2021-03-20 11:18:58 +01:00
MikeBeaton
ea095c36d0 OcBootManagementLib: Resolve uninit issue in improved builtin picker renderer 2021-03-05 17:58:58 +00:00
MikeBeaton
27b036c4d9 OcBootManagementLib: Improved builtin picker rendering performance
Incrementally update builtin picker text menu after first draw.
closes #228
2021-03-03 14:34:11 +03:00
Bmju
1db11dc689
OcBootManagementLib: Fix default boot entry selection without timeout (#222) 2021-02-28 12:46:28 +03:00
Marvin Häuser
a9d5ed572b OcBootManagementLib: Do not abort password input on ESC
KeySupport key repeats may cancel password input immediately when ESC is used to summon the UI.
2021-02-28 10:44:30 +01:00
Marvin Häuser
c98ffeb378 Utilities: Import ocpasswordgen utility 2021-02-27 19:23:22 +01:00
vit9696
1f2982bf03 OcBootManagementLib: Allow launching any app via GUID 2020-12-03 17:34:57 +03:00
vit9696
29d5b9d781 OcAfterBootCompatLib: Fix VMware compatibility with Apple Secure Boot 2020-08-30 17:59:28 +03:00
vit9696
0c2e97748d OcBootManagementLib: Implement EfiBoot kernel capability detection 2020-08-29 07:01:08 +03:00
Download-Fritz
a97b74e83c
OpenCore: Use direct PE loading for Secure Boot (#108)
Implement and integrate a PE image loader to circumvent UEFI Secure Boot when Apple Secure Boot is used.
2020-08-24 12:52:34 +02:00
vit9696
e78301f744 OcBootManagementLib: Drop disk image suffix and voice 2020-08-20 20:33:22 +03:00
vit9696
40f81f29f7 OcBootManagementLib: Implement FAT image loading 2020-08-17 01:43:19 +03:00
Download-Fritz
afd982387b OcBootManagementLib: Set 'Windows' name based on booter name 2020-05-24 18:20:19 +02:00
vit9696
41b207c242 OcBootManagementLib: Fix audio playback in builtin picker 2020-05-11 22:03:51 +03:00
vit9696
bd0cc2f54f OpenCanopy: Added partial hotkey support (e.g. Ctrl+Enter) 2020-05-11 02:55:25 +03:00
vit9696
76e889f89a OpenCanopy: Fix black splash with non-black bg 2020-05-10 23:03:45 +03:00
vit9696
8b5099bf1f Docs: Fixed launching Shell with text over it 2020-05-10 21:58:27 +03:00
Download-Fritz
9440cd057b OcBootManagementLib: Use static functions for Boot Policy
Includes fixing an issue where generic booters were added for file systems that already had a primary booter by the use of "core" Apple Boot Policy predefined paths.
2020-05-07 17:34:53 +02:00