added NSTask for sbreload and to kill cfprefsd (both pulled from old FBRestore script)
This commit is contained in:
parent
f1efd9b8c9
commit
af0f00dafc
4 changed files with 320 additions and 307 deletions
|
@ -7,7 +7,7 @@
|
||||||
<key>FlashBack.xcscheme_^#shared#^_</key>
|
<key>FlashBack.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>1</integer>
|
<integer>0</integer>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
</dict>
|
</dict>
|
||||||
|
|
Binary file not shown.
|
@ -111,6 +111,19 @@ NSString *backupNameSelected;
|
||||||
[restoreTask setLaunchPath:@"/bin/bash"];
|
[restoreTask setLaunchPath:@"/bin/bash"];
|
||||||
[restoreTask setArguments:@[ @"FBRestore", backupNameSelected, stringTweaksEnabled, stringIconsEnabled, stringWallpaperEnabled]];
|
[restoreTask setArguments:@[ @"FBRestore", backupNameSelected, stringTweaksEnabled, stringIconsEnabled, stringWallpaperEnabled]];
|
||||||
[restoreTask launch];
|
[restoreTask launch];
|
||||||
|
[restoreTask waitUntilExit];
|
||||||
|
|
||||||
|
NSTask *killPrefsTask = [[NSTask alloc] init];
|
||||||
|
[killPrefsTask setLaunchPath:@"/bin/bash"];
|
||||||
|
[killPrefsTask setArguments:@[ @"killall", @"cfprefsd"]];
|
||||||
|
[killPrefsTask launch];
|
||||||
|
[killPrefsTask waitUntilExit];
|
||||||
|
|
||||||
|
NSTask *respringTask = [[NSTask alloc] init];
|
||||||
|
[respringTask setLaunchPath:@"/bin/bash"];
|
||||||
|
[respringTask setArguments:@[ @"sbreload"]];
|
||||||
|
[respringTask launch];
|
||||||
|
[respringTask waitUntilExit];
|
||||||
|
|
||||||
UIAlertController * finishedRestoreAlert= [UIAlertController
|
UIAlertController * finishedRestoreAlert= [UIAlertController
|
||||||
alertControllerWithTitle:@"Restoring from backup"
|
alertControllerWithTitle:@"Restoring from backup"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<key>Pods-FlashBack.xcscheme_^#shared#^_</key>
|
<key>Pods-FlashBack.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>orderHint</key>
|
<key>orderHint</key>
|
||||||
<integer>0</integer>
|
<integer>1</integer>
|
||||||
</dict>
|
</dict>
|
||||||
<key>SDWebImage.xcscheme_^#shared#^_</key>
|
<key>SDWebImage.xcscheme_^#shared#^_</key>
|
||||||
<dict>
|
<dict>
|
||||||
|
|
Reference in a new issue