Skip to content

Commit

Permalink
kpf: Expect livefs string on tvOS 18.2 and above
Browse files Browse the repository at this point in the history
tvOS 18.2 and HomePod Software 18.2 now comes with SSV and thus the livefs
string.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
  • Loading branch information
asdfugil authored and Siguza committed Nov 16, 2024
1 parent e978478 commit 55b7145
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion checkra1n/kpf/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1617,7 +1617,10 @@ static void kpf_cmd(const char *cmd, char *args)
#ifdef DEV_BUILD
#if 0
// 15.0 beta 1 onwards, but only iOS/iPadOS
if((livefs_string_match != NULL) != (gKernelVersion.darwinMajor >= 21 && xnu_platform() == PLATFORM_IOS)) panic("livefs panic doesn't match expected Darwin version");
if((livefs_string_match != NULL) != (
(gKernelVersion.darwinMajor >= 21 && xnu_platform() == PLATFORM_IOS) ||
(gKernelVersion.darwinMajor >= 24 && gKernelVersion.darwinMinor >= 2 && xnu_platform() == PLATFORM_TVOS)))
panic("livefs panic doesn't match expected Darwin version");
#endif
#endif

Expand Down

0 comments on commit 55b7145

Please sign in to comment.