Some android phones, like my samsung galaxy j3 running 9 (but not my
moto fast running 10) have an app lock option.
Start androwish, run a socket listener. Then you go to the recent apps
screen and tap the icon to the left of the name (AndroWish) which brings
up a menu, with the lock (or unlock later) option.
Seems to stay alive, even after running a dozen or so other apps which
w/o the lock would kill androwish after a while.