Great work, altruizine!
There's no need for SManager.
As we did with the fixpermissions script (
https://www.mobileread.com/forums/sho...48&postcount=9), you can invoke the daemon via
/etc/install-recovery.sh
Just make sure that install-recovery.sh is executable.
If existent, install-recovery.sh is called on every boot by /init.rc
I don't know how to create an apk package, but as an alternative one could modify one of the existing flash packages and put all necessary commands like creating/modifying install_recovery.sh into do_update.sh.
But let's wait for rupor to discover this thread! I'm pretty sure he'll integrate it into his root package