How to control Android device remotely

Options
apkbark
apkbark Posts: 1

I am developing an Android and IOS app which I am going to use to remotely control the camera. The app is runnig 24/7 on the phone in a place not accessiable by me. I would like to be able to connect to the phone remotley at any time and perform any action. While screensharing is not a problem, I don't know how to control the device.

How can I achieve that?

One crazy idea i have is to use a esp32 board connected through the OTG like a keyboard and send the commands to it via BLE connection from my custom app on the phone, so the board emulates corresponding keystrokes and mouse movements. But i think that's and overkill.