Sample Header Ad - 728x90

Touchscreen inputs without user interaction?

1 vote
1 answer
177 views
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 execute touchscreen inputs without any user interaction, e.g. in order to automatically force-stop selected apps? **Example:** The default method to do this manually is from the app info menu, i.e. Force-closing active apps by user input Similarly, inactive/background apps can be closed from the developer settings: Force-closing inactive apps by user input **Note:** A purely programmatic solution is required. Connection to a debugging device is allowed only once for initial setup, otherwise: No external devices.
Asked by srhslvmn (309 rep)
Mar 12, 2024, 04:40 AM
Last activity: Mar 23, 2024, 01:47 PM