Feat: display error if get-task-allow is absent
This notifies user that they are using an unsupported installation method (E-sign for example) that does not provide JIT permission.
This commit is contained in:
1 parent
16d986069f
commit
dad3bb0239
3 files changed
+14
-2
No files matched your search
@@ -134,7 +134,7 @@
|
||||
[self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
|
||||
[self tableView:self.tableView didSelectRowAtIndexPath:indexPath];
|
||||
|
||||
if (!getEntitlementValue(@"dynamic-codesigning")) {
|
||||
if (getEntitlementValue(@"get-task-allow")) {
|
||||
[self displayProgress:localize(@"login.jit.checking", nil)];
|
||||
if (isJITEnabled(false)) {
|
||||
[self displayProgress:localize(@"login.jit.enabled", nil)];
|
||||
@@ -142,6 +142,17 @@
|
||||
} else {
|
||||
[self enableJITWithAltKit];
|
||||
}
|
||||
} else {
|
||||
[self displayProgress:localize(@"login.jit.fail", nil)];
|
||||
[self displayProgress:nil];
|
||||
UIAlertController* alert = [UIAlertController alertControllerWithTitle:localize(@"login.jit.fail.title", nil)
|
||||
message:localize(@"login.jit.fail.description_unsupported", nil)
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
UIAlertAction* okAction = [UIAlertAction actionWithTitle:localize(@"OK", nil) style:UIAlertActionStyleDefault handler:^(id action){
|
||||
exit(-1);
|
||||
}];
|
||||
[alert addAction:okAction];
|
||||
[self presentViewController:alert animated:YES completion:nil];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -140,7 +140,7 @@ void init_logDeviceAndVer(char *argument) {
|
||||
printEntitlementAvailability(@"com.apple.developer.kernel.extended-virtual-addressing");
|
||||
printEntitlementAvailability(@"com.apple.developer.kernel.increased-memory-limit");
|
||||
printEntitlementAvailability(@"com.apple.private.security.no-sandbox");
|
||||
printEntitlementAvailability(@"dynamic-codesigning");
|
||||
//printEntitlementAvailability(@"dynamic-codesigning");
|
||||
}
|
||||
|
||||
void init_migrateDirIfNecessary() {
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
"login.jit.fail" = "JIT could not be enabled.";
|
||||
"login.jit.fail.title" = "JIT could not be enabled on your device.";
|
||||
"login.jit.fail.description" = "No integrations could be used to automatically enable JIT on your device, and it must now be enabled manually. Errors have been logged to latestlog.txt.";
|
||||
"login.jit.fail.description_unsupported" = "An unsupported installation method has been detected. Please reinstall using one of supported methods.";
|
||||
|
||||
// Login buttons
|
||||
"login.menu.sendlogs" = "Send your logs";
|
||||
|
||||
Reference in new issue
Block a user