https://github.com/callmeechocodes/ldrestartutil
🔄 An easy way to run LDRestart as root. Made for tweak developers.
https://github.com/callmeechocodes/ldrestartutil
jailbreak rootless theos theos-command-line
Last synced: 3 months ago
JSON representation
🔄 An easy way to run LDRestart as root. Made for tweak developers.
- Host: GitHub
- URL: https://github.com/callmeechocodes/ldrestartutil
- Owner: CallMeEchoCodes
- Created: 2023-04-28T05:30:10.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-28T13:28:55.000Z (about 2 years ago)
- Last Synced: 2025-01-27T13:16:02.396Z (5 months ago)
- Topics: jailbreak, rootless, theos, theos-command-line
- Language: Objective-C
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ldrestartutil
An easy way to run LDRestart as root. Made for tweak developers.### Usage
1. Add it to your dependencies
```
Depends: dev.callmeecho.ldrestartutil
```
2. Use it!
```objc
// Objective C example
- (void)ldrestart {
pid_t pid;
char *args[] = { ROOT_PATH("/usr/libexec/ldrestartutil"), NULL };
int status = posix_spawn(&pid, args[0], NULL, NULL, args, NULL);
waitpid(pid, NULL, 0);
}
``````swift
// Swift example
let task = NSTask()
// If you know how to it might be a good idea to use the ROOT_PATH_NS macro. Check Rootpath.h and Rootpath.m on this repo
task.setLaunchPath("/usr/libexec/ldrestartutil")
task.launch()
task.waitUntilExit()
```