Skip to content

Commit

Permalink
1.2.1
Browse files Browse the repository at this point in the history
fixed home screen bug and device overheating issues caused by 1.2 when used with Serotonin

fix an issue in 1.2 that may cause sileo to crash on some devices

fixed an issue where code(255) errors occurred when enabling tweak for some apps
  • Loading branch information
roothider committed Feb 5, 2024
1 parent 424516d commit 130867f
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Bootstrap.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -533,7 +533,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -567,7 +567,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2;
MARKETING_VERSION = 1.2.1;
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.2;
MARKETING_VERSION = 1.2.1;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = com.roothide.Bootstrap;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
Binary file not shown.
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.
28 changes: 28 additions & 0 deletions Bootstrap/bootstrap.m
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,32 @@ int ReRandomizeBootstrap()
return 0;
}

void fixMobileDirectories()
{
NSFileManager* fm = NSFileManager.defaultManager;
NSDirectoryEnumerator<NSURL *> *directoryEnumerator = [fm enumeratorAtURL:[NSURL fileURLWithPath:jbroot(@"/var/mobile/") isDirectory:YES] includingPropertiesForKeys:@[NSURLIsDirectoryKey] options:0 errorHandler:nil];

for (NSURL *enumURL in directoryEnumerator) {
@autoreleasepool {

if([enumURL.path containsString:@"/var/mobile/Library/pkgmirror/"]
|| [enumURL.path hasSuffix:@"/var/mobile/Library/pkgmirror"])
continue;

struct stat st={0};
if(lstat(enumURL.path.fileSystemRepresentation, &st)==0)
{
if((st.st_mode&S_IFDIR)==0) continue;

// SYSLOG("fixMobileDirectory %d:%d %@", st.st_uid, st.st_gid, enumURL); usleep(1000*10);
if(st.st_uid == 0) {
chown(enumURL.path.fileSystemRepresentation, 501, st.st_gid==0 ? 501 : st.st_gid);
}
}
}
}
}

int bootstrap()
{
ASSERT(getuid()==0);
Expand Down Expand Up @@ -357,6 +383,8 @@ int bootstrap()
STRAPLOG("Status: Rerandomize jbroot");

ASSERT(ReRandomizeBootstrap() == 0);

fixMobileDirectories();
}

ASSERT(disableRootHideBlacklist()==0);
Expand Down
2 changes: 1 addition & 1 deletion basebin

0 comments on commit 130867f

Please sign in to comment.