You are going to have a hard time with background usage as Android limits what apps can do in the background.
You can disable battery optimization for your app in the settings, but honestly, network drops will still be a problem, even if you never disconnect the WiFi, just because the devices or uplink can drop the signal.
Hi NotATether,
Thank you for the advice.
Yes, Android background limitations are something I have to consider.
At the moment, I'm disabling battery optimization during testing and keeping the node active in Termux.
My current goal is simply to prove that a lightweight blockchain node can run reliably on Android before optimizing for long-term uptime.
Thank you for pointing this out.