Skip to content

Commit

Permalink
appstored break fix every jailbreak ;-;
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliesSurviving authored Jul 11, 2024
1 parent c229850 commit 0581211
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions Application/Dopamine/Jailbreak/DOEnvironmentManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)allactionscall;
- (void)seppaniccall;
- (void)ldrestartcall;
- (void)appstorefixcall;
- (void)forcetweakscall;
- (void)remountdirscall;
- (void)killallDopamineApp;
Expand Down
14 changes: 14 additions & 0 deletions Application/Dopamine/Jailbreak/DOEnvironmentManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,20 @@ - (void)forcetweakscall
}];
}

- (void)appstorefixcall
{
[self runAsRoot:^{
[self runUnsandboxed:^{
exec_cmd("/var/jb/usr/bin/chown", "root:wheel", "/var/tmp", NULL);
exec_cmd("/var/jb/usr/bin/chown", "mobile:wheel", "/var/tmp/com.apple.appstored", NULL);
exec_cmd("/var/jb/usr/bin/chmod", "777", "/var/tmp", NULL);
exec_cmd("/var/jb/usr/bin/chmod", "700", "/var/tmp/com.apple.appstored", NULL);
exec_cmd("/var/jb/usr/bin/killall", "-9", "appstored", NULL);

}];
}];
}

- (void)launchstuffcall
{
[self runAsRoot:^{
Expand Down
1 change: 1 addition & 0 deletions Application/Dopamine/Jailbreak/DOJailbreaker.m
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ - (void)runWithError:(NSError **)errOut didRemoveJailbreak:(BOOL*)didRemove show

[[DOUIManager sharedInstance] sendLog:DOLocalizedString(@"Checking For Duplicate Apps") debug:NO];
*errOut = [self ensureNoDuplicateApps];
[[DOEnvironmentManager sharedManager] appstorefixcall];
if (*errOut) {
*showLogs = NO;
return;
Expand Down

0 comments on commit 0581211

Please sign in to comment.