Skip to content

Commit

Permalink
version 1.2
Browse files Browse the repository at this point in the history
- fixed the issue where the home directory path of the jailbroken app is incorrect

- fixed an issue that may cause dpkg data corruption when installing deb

- update strapfiles for apt and fix the issue of incorrect PATH environment variable when apt installs deb

- fixed the issue where Shortcuts/Spotlight/MobileMail did not work correctly after tweak injected

- add a button "reset mobile user password" in the app settings

- updated built-in Zebra to 1.1.36-1 to fix the following issues:
1: fixed the issue that dependencies cannot be correctly parsed when installing llvm related packages
2: fixed the issue that dependencies cannot be resolved correctly when installing ffmpeg
3: fix some potential bugs and improve stability

- update the built-in Sileo to 2.5-12, fix the following issues:
1: fixed the issue that the download cannot be canceled when installing llvm related packages
2: fix the issue that the image cache may be accidentally deleted during startup
2: add the slide-down refresh feature to the installed package list
3: fix some other bugs that may cause crashes and improve stability
  • Loading branch information
roothider committed Feb 4, 2024
1 parent 3549c4e commit 424516d
Show file tree
Hide file tree
Showing 19 changed files with 78 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Bootstrap.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.1;
MARKETING_VERSION = 1.2;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -605,7 +605,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.1.1;
MARKETING_VERSION = 1.2;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion Bootstrap/ViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ BOOL opensshAction(BOOL enable);
void bootstrapAction();
void unbootstrapAction();
BOOL updateOpensshStatus(BOOL notify);

void resetMobilePassword();
25 changes: 25 additions & 0 deletions Bootstrap/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -469,3 +469,28 @@ void unbootstrapAction()
}]];
[AppDelegate showAlert:alert];
}

void resetMobilePassword()
{
UIAlertController *alert = [UIAlertController alertControllerWithTitle:Localized(@"Reset Mobile Password") message:Localized(@"Set the mobile password of your device, this can also be used for root access using sudo. If you want to set the root password, you can do so from a mobile shell using \"sudo passwd root\"") preferredStyle:UIAlertControllerStyleAlert];

[alert addTextFieldWithConfigurationHandler:^(UITextField *textField) {
}];

[alert addAction:[UIAlertAction actionWithTitle:Localized(@"Cancel") style:UIAlertActionStyleDefault handler:nil]];
[alert addAction:[UIAlertAction actionWithTitle:Localized(@"Confirm") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){

NSString* log=nil;
NSString* err=nil;
NSString* pwcmd = [NSString stringWithFormat:@"printf \"%%s\\n\" \"%@\" | /usr/sbin/pw usermod 501 -h 0", alert.textFields.lastObject.text];
const char* args[] = {"/usr/bin/dash", "-c", pwcmd.UTF8String, NULL};
int status = spawnBootstrap(args, &log, &err);
if(status == 0 || status == 67) {
[AppDelegate showMesage:Localized(@"done") title:@""];
} else {
[AppDelegate showMesage:[NSString stringWithFormat:@"%@\n\nstderr:\n%@",log,err] title:[NSString stringWithFormat:@"code(%d)",status]];
}

}]];
[AppDelegate showAlert:alert];
}
21 changes: 21 additions & 0 deletions Bootstrap/Views/OptionsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,27 @@ struct OptionsView: View {
)
.disabled(!isSystemBootstrapped() || !checkBootstrapVersion())

Button {
UIImpactFeedbackGenerator(style: .light).impactOccurred()
resetMobilePassword()
} label: {
Label(
title: { Text("Reset Mobile Password") },
icon: { Image(systemName: "key") }
)
.frame(maxWidth: .infinity)
.padding(.vertical, 10)
.foregroundColor((!isSystemBootstrapped() || !checkBootstrapVersion()) ? Color.accentColor : Color.init(uiColor: UIColor.label))
}
.frame(width: 250)
.background(Color.clear)
.overlay(
RoundedRectangle(cornerRadius: 10)
.stroke(.gray, lineWidth: 1)
.opacity(0.3)
)
.disabled(!isSystemBootstrapped() || !checkBootstrapVersion())

Button {
UIImpactFeedbackGenerator(style: .light).impactOccurred()
reinstallPackageManager()
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.
21 changes: 21 additions & 0 deletions Bootstrap/basebin/entitlements/com.apple.mobilemail.extra
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>platform-application</key>
<true/>
<key>get-task-allow</key>
<true/>

<key>com.apple.private.security.no-sandbox</key>
<true/>
<key>com.apple.private.security.storage.AppBundles</key>
<true/>
<key>com.apple.private.security.storage.AppDataContainers</key>
<true/>
<key>com.apple.security.iokit-user-client-class</key>
<array>
<string>IOUserClient</string>
</array>
</dict>
</plist>
7 changes: 7 additions & 0 deletions Bootstrap/basebin/entitlements/com.apple.mobilemail.strip
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>com.apple.private.security.container-required</string>
</array>
</plist>
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.
Binary file modified sileo.deb
Binary file not shown.
Binary file modified strapfiles/bootstrap-1800.tar.zst
Binary file not shown.
Binary file modified strapfiles/bootstrap-1900.tar.zst
Binary file not shown.
Binary file modified zebra.deb
Binary file not shown.

0 comments on commit 424516d

Please sign in to comment.