Skip to content

Commit

Permalink
beta 4.1
Browse files Browse the repository at this point in the history
1: Fixed an issue where errors occurred when installing some tweaks (eg: TweakSettings)

2: Fixed the issue of prompting error when uninstalling bootstrap
  • Loading branch information
RootHide authored and RootHide committed Jan 8, 2024
1 parent f49631f commit 4df3152
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 7 deletions.
Binary file not shown.
14 changes: 9 additions & 5 deletions Bootstrap/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -460,11 +460,15 @@ - (IBAction)unbootstrap:(id)sender {

[AppDelegate dismissHud];

if(status == 0) {
[AppDelegate showMesage:@"" title:@"bootstrap uninstalled"];
} else {
[AppDelegate showMesage:[NSString stringWithFormat:@"%@\n\nstderr:\n%@",log,err] title:[NSString stringWithFormat:@"code(%d)",status]];
}
NSString* msg = (status==0) ? @"bootstrap uninstalled" : [NSString stringWithFormat:@"code(%d)\n%@\n\nstderr:\n%@",status,log,err];

UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:msg preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:Localized(@"OK") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
exit(0);
}]];

[AppDelegate showAlert:alert];

});

}]];
Expand Down
Binary file modified Bootstrap/basebin/bootstrap.dylib
Binary file not shown.
Binary file modified Bootstrap/basebin/bootstrapd
Binary file not shown.
Binary file modified Bootstrap/basebin/devtest
Binary file not shown.
Binary file modified Bootstrap/basebin/preload
Binary file not shown.
Binary file modified Bootstrap/basebin/preload.dylib
Binary file not shown.
Binary file modified Bootstrap/basebin/rebuildapp
Binary file not shown.
Binary file modified Bootstrap/basebin/uicache
Binary file not shown.
7 changes: 5 additions & 2 deletions Bootstrap/bootstrap.m
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ int unbootstrap()
{
STRAPLOG("unbootstrap...");

//try
spawnRoot(jbroot(@"/basebin/bootstrapd"), @[@"exit"], nil, nil);

//jbroot unavailable now

NSFileManager* fm = NSFileManager.defaultManager;

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

SYSLOG("bootstrap uninstalled!");

spawnRoot(jbroot(@"/basebin/bootstrapd"), @[@"exit"], nil, nil);

[LSApplicationWorkspace.defaultWorkspace _LSPrivateRebuildApplicationDatabasesForSystemApps:YES internal:YES user:YES];

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

0 comments on commit 4df3152

Please sign in to comment.