Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/uroboro/respring-counter

A simple daemon that keeps count of how many resprings your device had since booting up
https://github.com/uroboro/respring-counter

daemon theos

Last synced: 25 days ago
JSON representation

A simple daemon that keeps count of how many resprings your device had since booting up

Awesome Lists containing this project

README

        

# Respring-Counter
A simple daemon that keeps count of how many resprings your device had since booting up

Add the following code:

``` objc
#include

#define PRGetRespringCount() ({ \
dlopen("/Library/MobileSubstrate/DynamicLibraries/respringcounter.dylib", RTLD_LAZY); \
uint64_t state; int token; \
notify_register_check("com.uroboro.respringcounter.count", &token); \
notify_get_state(token, &state); \
notify_cancel(token); \
state; })
```

And use the following to get the count

``` c
uint64_t count = PRGetRespringCount();
```