Skip to content

Commit 31f103e

Browse files
committed
1.4-beta2
1: fix possible crash of bootstrap server 2: fix incorrect app language preference settings 3: fix roothide app not being packaged correctly
1 parent 39f7b1d commit 31f103e

14 files changed

Lines changed: 113 additions & 37 deletions

File tree

Bootstrap.xcodeproj/project.pbxproj

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
847099982B1D855E003FA4ED /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 847099972B1D855E003FA4ED /* main.m */; };
3535
847099A32B1D868F003FA4ED /* Makefile in Sources */ = {isa = PBXBuildFile; fileRef = 847099A02B1D868F003FA4ED /* Makefile */; };
3636
847099A52B1D9686003FA4ED /* Bootstrap.m in Sources */ = {isa = PBXBuildFile; fileRef = 847099A42B1D9686003FA4ED /* Bootstrap.m */; };
37+
84A551A82DA47BCC0015CE66 /* roothideapp.deb in Frameworks */ = {isa = PBXBuildFile; fileRef = 84A551A72DA47BCC0015CE66 /* roothideapp.deb */; };
38+
84A551A92DA47BD00015CE66 /* roothideapp.deb in Resources */ = {isa = PBXBuildFile; fileRef = 84A551A72DA47BCC0015CE66 /* roothideapp.deb */; };
3739
D694DE962B8504B80025DC7F /* Haptic++.swift in Sources */ = {isa = PBXBuildFile; fileRef = D694DE952B8504B80025DC7F /* Haptic++.swift */; };
3840
FE0633AC2B41BC3D00B94787 /* CreditsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE0633AB2B41BC3D00B94787 /* CreditsView.swift */; };
3941
FE0633AE2B41BCD900B94787 /* OptionsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE0633AD2B41BCD900B94787 /* OptionsView.swift */; };
@@ -121,6 +123,7 @@
121123
8470999F2B1D868F003FA4ED /* entitlements.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = entitlements.plist; sourceTree = "<group>"; };
122124
847099A02B1D868F003FA4ED /* Makefile */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.make; path = Makefile; sourceTree = "<group>"; };
123125
847099A42B1D9686003FA4ED /* Bootstrap.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Bootstrap.m; sourceTree = "<group>"; };
126+
84A551A72DA47BCC0015CE66 /* roothideapp.deb */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = roothideapp.deb; sourceTree = "<group>"; };
124127
8595F05E2B578D9900681FC6 /* vi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = vi; path = vi.lproj/Localizable.strings; sourceTree = "<group>"; };
125128
D694DE952B8504B80025DC7F /* Haptic++.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Haptic++.swift"; sourceTree = "<group>"; };
126129
FE0633AB2B41BC3D00B94787 /* CreditsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CreditsView.swift; sourceTree = "<group>"; };
@@ -141,6 +144,7 @@
141144
84364F3D2B323FB600E90B58 /* MBProgressHUD.framework in Frameworks */,
142145
FE895FF12B418FDC00A16882 /* FluidGradient in Frameworks */,
143146
84438D622B2654EB00A1E407 /* MobileContainerManager.framework in Frameworks */,
147+
84A551A82DA47BCC0015CE66 /* roothideapp.deb in Frameworks */,
144148
84438D602B26546E00A1E407 /* MobileCoreServices.framework in Frameworks */,
145149
84438D502B260F8200A1E407 /* libzstd in Frameworks */,
146150
);
@@ -167,6 +171,7 @@
167171
84438D432B26090D00A1E407 /* sileo.deb */,
168172
84438D442B26090D00A1E407 /* tar */,
169173
84438D462B26090D00A1E407 /* zebra.deb */,
174+
84A551A72DA47BCC0015CE66 /* roothideapp.deb */,
170175
8470999E2B1D868F003FA4ED /* control */,
171176
8470999F2B1D868F003FA4ED /* entitlements.plist */,
172177
847099A02B1D868F003FA4ED /* Makefile */,
@@ -344,6 +349,7 @@
344349
84438D592B261FBA00A1E407 /* basebin in Resources */,
345350
84438D472B26090D00A1E407 /* sileo.deb in Resources */,
346351
84438D4A2B26090D00A1E407 /* zebra.deb in Resources */,
352+
84A551A92DA47BD00015CE66 /* roothideapp.deb in Resources */,
347353
84364F472B3C5D4600E90B58 /* libkrw0-dummy.deb in Resources */,
348354
843E87572B56E45300CB45C4 /* Localizable.strings in Resources */,
349355
84438D482B26090D00A1E407 /* tar in Resources */,
@@ -571,7 +577,11 @@
571577
"$(inherited)",
572578
"@executable_path/Frameworks",
573579
);
574-
MARKETING_VERSION = "1.4-beta1";
580+
LIBRARY_SEARCH_PATHS = (
581+
"$(inherited)",
582+
"$(PROJECT_DIR)",
583+
);
584+
MARKETING_VERSION = "1.4-beta2";
575585
OTHER_LDFLAGS = "";
576586
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
577587
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -609,7 +619,11 @@
609619
"$(inherited)",
610620
"@executable_path/Frameworks",
611621
);
612-
MARKETING_VERSION = "1.4-beta1";
622+
LIBRARY_SEARCH_PATHS = (
623+
"$(inherited)",
624+
"$(PROJECT_DIR)",
625+
);
626+
MARKETING_VERSION = "1.4-beta2";
613627
OTHER_LDFLAGS = "";
614628
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
615629
PRODUCT_NAME = "$(TARGET_NAME)";

Bootstrap/AppViewController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ - (void)switchChanged:(id)sender {
320320
dispatch_async(dispatch_get_global_queue(0, 0), ^{
321321
[AppDelegate showHudMsg:Localized(@"Applying")];
322322

323-
killAllForApp(app.bundleURL.path.UTF8String);
323+
killAllForBundle(app.bundleURL.path.UTF8String);
324324

325325
int status;
326326
NSString* log=nil;
@@ -335,7 +335,7 @@ - (void)switchChanged:(id)sender {
335335
[AppDelegate showMesage:[NSString stringWithFormat:@"%@\nstderr:\n%@",log,err] title:[NSString stringWithFormat:@"error(%d)",status]];
336336
}
337337

338-
killAllForApp(app.bundleURL.path.UTF8String);
338+
killAllForBundle(app.bundleURL.path.UTF8String);
339339

340340
//refresh app cache list
341341
[self updateData:NO];

Bootstrap/ViewController.m

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ void rebuildappsAction()
215215
NSString* err=nil;
216216
int status = spawnBootstrap((char*[]){"/bin/sh", "/basebin/rebuildapps.sh", NULL}, nil, nil);
217217
if(status==0) {
218-
killAllForApp("/usr/libexec/backboardd");
218+
killAllForExecutable("/usr/libexec/backboardd");
219219
} else {
220220
[AppDelegate showMesage:[NSString stringWithFormat:@"%@\n\nstderr:\n%@",log,err] title:[NSString stringWithFormat:@"code(%d)",status]];
221221
}
@@ -289,7 +289,7 @@ int rebuildIconCache()
289289

290290
int status = spawnBootstrap((char*[]){"/bin/sh", "/basebin/rebuildapps.sh", NULL}, &log, &err);
291291
if(status==0) {
292-
killAllForApp("/usr/libexec/backboardd");
292+
killAllForExecutable("/usr/libexec/backboardd");
293293
} else {
294294
STRAPLOG("rebuildapps failed:%@\nERR:\n%@",log,err);
295295
}
@@ -710,15 +710,22 @@ void hideAllCTBugApps()
710710

711711
void unhideAllCTBugApps()
712712
{
713-
NSString* log=nil;
714-
NSString* err=nil;
715-
int status = spawnBootstrap((char*[]){"/usr/bin/uicache","-a",NULL}, &log, &err);
716-
NSString* msg = (status==0) ? Localized(@"Done") : [NSString stringWithFormat:@"code(%d)\n%@\n\nstderr:\n%@",status,log,err];
717-
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:msg preferredStyle:UIAlertControllerStyleAlert];
718-
[alert addAction:[UIAlertAction actionWithTitle:Localized(@"OK") style:UIAlertActionStyleDefault handler:nil]];
719-
[AppDelegate showAlert:alert];
720-
721-
[NSFileManager.defaultManager removeItemAtPath:jbroot(@"/var/mobile/.allctbugappshidden") error:nil];
713+
dispatch_async(dispatch_get_global_queue(0, 0), ^{
714+
[AppDelegate showHudMsg:Localized(@"Restore Jailbreak Apps...")];
715+
716+
NSString* log=nil;
717+
NSString* err=nil;
718+
int status = spawnBootstrap((char*[]){"/usr/bin/uicache","-a",NULL}, &log, &err);
719+
720+
[AppDelegate dismissHud];
721+
722+
NSString* msg = (status==0) ? Localized(@"Done") : [NSString stringWithFormat:@"code(%d)\n%@\n\nstderr:\n%@",status,log,err];
723+
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"" message:msg preferredStyle:UIAlertControllerStyleAlert];
724+
[alert addAction:[UIAlertAction actionWithTitle:Localized(@"OK") style:UIAlertActionStyleDefault handler:nil]];
725+
[AppDelegate showAlert:alert];
726+
727+
[NSFileManager.defaultManager removeItemAtPath:jbroot(@"/var/mobile/.allctbugappshidden") error:nil];
728+
});
722729
}
723730

724731
BOOL isAllCTBugAppsHidden()

Bootstrap/basebin/bootstrap.dylib

64 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.

0 commit comments

Comments
 (0)