Page 1 of 1

is that possible to restart /sbin/launchd in iOS?

PostPosted: Fri Oct 14, 2016 2:16 am
by ryotyankou
I just wonder is that possible? I am interest in the boot processes sequence of iOS, seems its first process is '/sbin/launchd', what's next, etc...

The most important part I wonder is actually how iOS build mobile user's everything, after the system boot up, first time user need to activate the device, and the wizard shows up. What's the detailed steps? For example, what I could imagine it is the following:
launchd scan system wide daemon, and start them one by one. Then it starts SpringBoard, etc.

Re: is that possible to restart /sbin/launchd in iOS?

PostPosted: Thu Nov 03, 2016 12:56 am
by morpheus
Short version: No. You can't.

Long(er) version: If launchd dies, the kernel panics. Development versions of launchd allow to fork it for debug mode using launchctl(8), but not the stock versions.

Wait for Volume I where I dissect launchd all the way down to source code examples. I know it means waiting more, but I promise you I leave no stone unturned.