Skip to content

Commit 4df3152

Browse files
RootHideRootHide
authored andcommitted
beta 4.1
1: Fixed an issue where errors occurred when installing some tweaks (eg: TweakSettings) 2: Fixed the issue of prompting error when uninstalling bootstrap
1 parent f49631f commit 4df3152

File tree

10 files changed

+14
-7
lines changed

10 files changed

+14
-7
lines changed
Binary file not shown.

Bootstrap/ViewController.m

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,15 @@ - (IBAction)unbootstrap:(id)sender {
460460

461461
[AppDelegate dismissHud];
462462

463-
if(status == 0) {
464-
[AppDelegate showMesage:@"" title:@"bootstrap uninstalled"];
465-
} else {
466-
[AppDelegate showMesage:[NSString stringWithFormat:@"%@\n\nstderr:\n%@",log,err] title:[NSString stringWithFormat:@"code(%d)",status]];
467-
}
463+
NSString* msg = (status==0) ? @"bootstrap uninstalled" : [NSString stringWithFormat:@"code(%d)\n%@\n\nstderr:\n%@",status,log,err];
464+
465+
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:msg preferredStyle:UIAlertControllerStyleAlert];
466+
[alert addAction:[UIAlertAction actionWithTitle:Localized(@"OK") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
467+
exit(0);
468+
}]];
469+
470+
[AppDelegate showAlert:alert];
471+
468472
});
469473

470474
}]];

Bootstrap/basebin/bootstrap.dylib

0 Bytes
Binary file not shown.

Bootstrap/basebin/bootstrapd

0 Bytes
Binary file not shown.

Bootstrap/basebin/devtest

0 Bytes
Binary file not shown.

Bootstrap/basebin/preload

0 Bytes
Binary file not shown.

Bootstrap/basebin/preload.dylib

0 Bytes
Binary file not shown.

Bootstrap/basebin/rebuildapp

0 Bytes
Binary file not shown.

Bootstrap/basebin/uicache

0 Bytes
Binary file not shown.

Bootstrap/bootstrap.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,11 @@ int unbootstrap()
367367
{
368368
STRAPLOG("unbootstrap...");
369369

370+
//try
371+
spawnRoot(jbroot(@"/basebin/bootstrapd"), @[@"exit"], nil, nil);
372+
373+
//jbroot unavailable now
374+
370375
NSFileManager* fm = NSFileManager.defaultManager;
371376

372377
NSString* dirpath = @"/var/containers/Bundle/Application/";
@@ -398,8 +403,6 @@ int unbootstrap()
398403

399404
SYSLOG("bootstrap uninstalled!");
400405

401-
spawnRoot(jbroot(@"/basebin/bootstrapd"), @[@"exit"], nil, nil);
402-
403406
[LSApplicationWorkspace.defaultWorkspace _LSPrivateRebuildApplicationDatabasesForSystemApps:YES internal:YES user:YES];
404407

405408
AppList* tsapp = [AppList appWithBundleIdentifier:@"com.opa334.TrollStore"];

0 commit comments

Comments
 (0)