While there are questions relevant to mine, none are quite answering them to the extent of what I was looking for. First off, is it possible to have a downloadable Android app that "runs on top of another app" that is, it emulates a pre-defined user input and doesn't have a traditional "gui." For example, (hypothetically) if I had an app that plays videos but is set to auto turn off the screen every 10 seconds, I would want an onTouch event every few seconds in order to prevent this. Nothing complicated, just touches, maybe a few swipes, and the other events that go along with them.
Secondly, if this is not a valid way to create an app "with no interface, just a pre-defined script, is there any other way that I could "inject" on-touch events into an app that isn't open-source?
EDIT: To be more specific, I'm looking at making a "quick" app helper, a sort of program that when activated, runs a pre-defined set of instructions that emulate user input at very high speed, so, think of an app that performs some activity (like swiping from object A to object B) and back REALLY fast. I'm also already looking at speed thresholds on different android devices to find a common (maximum) one that would work for all devices.