This will trigger chat application (xabber) for official chat to become online in morning and close in the evening on weekdays. It works in background.
This can be used to launch and kill other apps based on certain criteria.
There is no dependency except ROOT.
Sometimes it's not feasible to use AutoInput as it requires unlocked screen, though AutoLaunch and AutoInput can be used respectively, but the user experience won't be seamless.
To extend with other apps, every app has a background activity through which Android starts app on startup, it uses the same concept, look for app manifest for the boot activity task.