Skip to content

Commit

Permalink
Merge branch 'roothide:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Pottle authored Jan 8, 2024
2 parents cb8f344 + 4df3152 commit 4a59819
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 9 deletions.
Binary file not shown.
4 changes: 2 additions & 2 deletions Bootstrap/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" fixedFrame="YES" enabled="NO" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Bootstrap(beta 4)" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="mHC-UO-Fsn">
<rect key="frame" x="16" y="34" width="300" height="51"/>
<textField opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="248" fixedFrame="YES" enabled="NO" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="Bootstrap(beta 4.1)" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="mHC-UO-Fsn">
<rect key="frame" x="14" y="34" width="300" height="51"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="42"/>
<textInputTraits key="textInputTraits"/>
Expand Down
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 4a59819

Please sign in to comment.