You need to add a request to the program and configure the application's power management rights so that the VM itself can run in the background all the time, i.e. not only after the smartphone screen goes off, but also when the phone goes to sleep.
If I start a virtual machine, configure it in any way, for example, install different containers or do something else and connect the smartphone to a shared network at home, I need the virtual machine and the program as a whole to continue working, because I will not touch the smartphone and it will lie on the shelf in the closet absent-mindedly.
You need to add a request to the program and configure the application's power management rights so that the VM itself can run in the background all the time, i.e. not only after the smartphone screen goes off, but also when the phone goes to sleep.
If I start a virtual machine, configure it in any way, for example, install different containers or do something else and connect the smartphone to a shared network at home, I need the virtual machine and the program as a whole to continue working, because I will not touch the smartphone and it will lie on the shelf in the closet absent-mindedly.