11Mar
Is it possible to spoof touchscreen inputs without user interaction? [migrated]
Consider the following system:
- Stock Android 9, unrooted
- USB and wireless debugging unavailable
- screen permanently turned off
So basically a headless Android device.
Question: Is it possible to programmatically spoof touchscreen interactions on such a device, e.g. in order to force-close a firewall app without any actual user input?
If yes, how? If no, why not?
Example: The default method to do this manually is from the app info menu, i.e.
Similarly, inactive/background apps can be closed from the developer settings: