Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
roothider committed Nov 1, 2024
1 parent e610d89 commit bebc829
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Application/Dopamine/Jailbreak/DOJailbreaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ - (NSError *)gatherSystemInformation
if (xpf_set_is_supported("amfi_oids")) {
sets[idx++] = "amfi_oids";
}

if (xpf_set_is_supported("devmode")) {
sets[idx++] = "devmode";
}

if (xpf_set_is_supported("badRecovery")) {
sets[idx++] = "badRecovery";
}
Expand Down
1 change: 1 addition & 0 deletions Application/Dopamine/UI/DOUIManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ - (NSArray *)getLatestReleases
NSMutableDictionary* newcommit = [tags[0] mutableCopy];
newcommit[@"tag_name"] = tags[0][@"name"];
newcommit[@"body"] = commit[@"commit"][@"message"];
newcommit[@"name"] = [NSString stringWithFormat:@"Version %@", newcommit[@"tag_name"]];
newcommit[@"assets"] = @[@{@"browser_download_url":@"https://github.com/roothide/Dopamine2-roothide"}];
releases = @[newcommit.copy];

Expand Down
2 changes: 1 addition & 1 deletion Application/Dopamine/UI/Update/DOUpdateViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ - (void)updateChangelog
NSDictionary *release = (NSDictionary*)obj;
NSString *name = release[@"name"];
NSString *body = release[@"body"];
[changelogText appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"Version %@\n", name] attributes:@{NSFontAttributeName: [UIFont boldSystemFontOfSize:18], NSForegroundColorAttributeName : [UIColor whiteColor], NSParagraphStyleAttributeName:paragraphStyle}]];
[changelogText appendAttributedString:[[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@\n", name] attributes:@{NSFontAttributeName: [UIFont boldSystemFontOfSize:18], NSForegroundColorAttributeName : [UIColor whiteColor], NSParagraphStyleAttributeName:paragraphStyle}]];
[changelogText appendAttributedString:[[NSAttributedString alloc] initWithString:@"\n"]];

NSAttributedStringMarkdownParsingOptions *parsingOptions = [[NSAttributedStringMarkdownParsingOptions alloc] init];
Expand Down
2 changes: 1 addition & 1 deletion BaseBin/XPF
Submodule XPF updated 1 files
+1 −1 src/cli/main.c
1 change: 1 addition & 0 deletions BaseBin/launchdhook/src/crashreporter.m
Original file line number Diff line number Diff line change
Expand Up @@ -520,3 +520,4 @@ void crashreporter_start(void)
crashreporter_resume();
}
}

8 changes: 2 additions & 6 deletions BaseBin/launchdhook/src/update.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@ void jbupdate_update_system_info(void)
void (*xpf_stop)(void) = dlsym(xpfHandle, "xpf_stop");
xpc_object_t (*xpf_construct_offset_dictionary)(const char *sets[]) = dlsym(xpfHandle, "xpf_construct_offset_dictionary");

// XXX: this is also a hack
struct statfs fst={0};
statfs("/usr/standalone/firmware", &fst);
char kernelPath[PATH_MAX];
snprintf(kernelPath,sizeof(kernelPath),"%s/../../../System/Library/Caches/com.apple.kernelcaches/kernelcache", fst.f_mntfromname);
const char *kernelPath = prebootUUIDPath("/System/Library/Caches/com.apple.kernelcaches/kernelcache");
xpc_object_t systemInfoXdict = NULL;

// Rerun patchfinder
Expand Down Expand Up @@ -144,10 +140,10 @@ void jbupdate_update_system_info(void)
if (xpf_set_is_supported("amfi_oids")) {
sets[idx++] = "amfi_oids";
}

if (xpf_set_is_supported("devmode")) {
sets[idx++] = "devmode";
}

if (xpf_set_is_supported("badRecovery")) {
sets[idx++] = "badRecovery";
}
Expand Down
2 changes: 0 additions & 2 deletions BaseBin/libjailbreak/src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ int exec_cmd_root(const char *binary, ...);
retval; \
})

/*
char *boot_manifest_hash(void);

#define prebootUUIDPath(path) ({ \
Expand All @@ -70,7 +69,6 @@ char *boot_manifest_hash(void);
strlcat(outPath, path, PATH_MAX); \
(outPath); \
})
*/

#define VM_FLAGS_GET_PROT(x) ((x >> 7) & 0xFULL)
#define VM_FLAGS_GET_MAXPROT(x) ((x >> 11) & 0xFULL);
Expand Down

0 comments on commit bebc829

Please sign in to comment.