GithubHelp home page GithubHelp logo

callmeechocodes / ldrestartutil Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 14 KB

๐Ÿ”„ An easy way to run LDRestart as root. Made for tweak developers.

Objective-C 36.75% Makefile 19.25% C 2.14% Shell 22.43% Swift 19.42%
jailbreak rootless theos theos-command-line

ldrestartutil's Introduction

ldrestartutil

An easy way to run LDRestart as root. Made for tweak developers.

Usage

  1. Add it to your dependencies
Depends: dev.callmeecho.ldrestartutil
  1. Use it!
// 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 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()

ldrestartutil's People

Contributors

callmeechocodes avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.