Skip to content

Commit 424516d

Browse files
committed
version 1.2
- 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
1 parent 3549c4e commit 424516d

File tree

19 files changed

+78
-4
lines changed

19 files changed

+78
-4
lines changed

Bootstrap.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@
567567
"$(inherited)",
568568
"@executable_path/Frameworks",
569569
);
570-
MARKETING_VERSION = 1.1.1;
570+
MARKETING_VERSION = 1.2;
571571
OTHER_LDFLAGS = "";
572572
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
573573
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -605,7 +605,7 @@
605605
"$(inherited)",
606606
"@executable_path/Frameworks",
607607
);
608-
MARKETING_VERSION = 1.1.1;
608+
MARKETING_VERSION = 1.2;
609609
OTHER_LDFLAGS = "";
610610
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
611611
PRODUCT_NAME = "$(TARGET_NAME)";

Bootstrap/ViewController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ BOOL opensshAction(BOOL enable);
1313
void bootstrapAction();
1414
void unbootstrapAction();
1515
BOOL updateOpensshStatus(BOOL notify);
16-
16+
void resetMobilePassword();

Bootstrap/ViewController.m

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,3 +469,28 @@ void unbootstrapAction()
469469
}]];
470470
[AppDelegate showAlert:alert];
471471
}
472+
473+
void resetMobilePassword()
474+
{
475+
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];
476+
477+
[alert addTextFieldWithConfigurationHandler:^(UITextField *textField) {
478+
}];
479+
480+
[alert addAction:[UIAlertAction actionWithTitle:Localized(@"Cancel") style:UIAlertActionStyleDefault handler:nil]];
481+
[alert addAction:[UIAlertAction actionWithTitle:Localized(@"Confirm") style:UIAlertActionStyleDefault handler:^(UIAlertAction *action){
482+
483+
NSString* log=nil;
484+
NSString* err=nil;
485+
NSString* pwcmd = [NSString stringWithFormat:@"printf \"%%s\\n\" \"%@\" | /usr/sbin/pw usermod 501 -h 0", alert.textFields.lastObject.text];
486+
const char* args[] = {"/usr/bin/dash", "-c", pwcmd.UTF8String, NULL};
487+
int status = spawnBootstrap(args, &log, &err);
488+
if(status == 0 || status == 67) {
489+
[AppDelegate showMesage:Localized(@"done") title:@""];
490+
} else {
491+
[AppDelegate showMesage:[NSString stringWithFormat:@"%@\n\nstderr:\n%@",log,err] title:[NSString stringWithFormat:@"code(%d)",status]];
492+
}
493+
494+
}]];
495+
[AppDelegate showAlert:alert];
496+
}

Bootstrap/Views/OptionsView.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,27 @@ struct OptionsView: View {
141141
)
142142
.disabled(!isSystemBootstrapped() || !checkBootstrapVersion())
143143

144+
Button {
145+
UIImpactFeedbackGenerator(style: .light).impactOccurred()
146+
resetMobilePassword()
147+
} label: {
148+
Label(
149+
title: { Text("Reset Mobile Password") },
150+
icon: { Image(systemName: "key") }
151+
)
152+
.frame(maxWidth: .infinity)
153+
.padding(.vertical, 10)
154+
.foregroundColor((!isSystemBootstrapped() || !checkBootstrapVersion()) ? Color.accentColor : Color.init(uiColor: UIColor.label))
155+
}
156+
.frame(width: 250)
157+
.background(Color.clear)
158+
.overlay(
159+
RoundedRectangle(cornerRadius: 10)
160+
.stroke(.gray, lineWidth: 1)
161+
.opacity(0.3)
162+
)
163+
.disabled(!isSystemBootstrapped() || !checkBootstrapVersion())
164+
144165
Button {
145166
UIImpactFeedbackGenerator(style: .light).impactOccurred()
146167
reinstallPackageManager()

Bootstrap/basebin/bootstrap.dylib

304 Bytes
Binary file not shown.

Bootstrap/basebin/bootstrapd

0 Bytes
Binary file not shown.

Bootstrap/basebin/devtest

0 Bytes
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>platform-application</key>
6+
<true/>
7+
<key>get-task-allow</key>
8+
<true/>
9+
10+
<key>com.apple.private.security.no-sandbox</key>
11+
<true/>
12+
<key>com.apple.private.security.storage.AppBundles</key>
13+
<true/>
14+
<key>com.apple.private.security.storage.AppDataContainers</key>
15+
<true/>
16+
<key>com.apple.security.iokit-user-client-class</key>
17+
<array>
18+
<string>IOUserClient</string>
19+
</array>
20+
</dict>
21+
</plist>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<array>
5+
<string>com.apple.private.security.container-required</string>
6+
</array>
7+
</plist>

0 commit comments

Comments
 (0)