jailbreak - Programmatically put an iOS device to sleep -


i wondering if there way programmatically put idevice sleep, jailbreak tweak. test if iphone on too. there way (public or private api) this? simulating press cool. know activator cydia tweak can this, wondering how.

all methods private springboardservices.framework:

void* sbsspringboardserverport(); void sblockdevice(void*); 

to lock device use this:

sblockdevice(sbsspringboardserverport()); 

Comments

Popular posts from this blog

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -