Thks for the info. I understand that ubport isn't really what I want .
What I want is to recycle my old phones as simple server for home assistant. I use something called 'Termux' successfully but it sometimes disconnects to save power....
So I thought I would look at ubport.
Motto "If it ain't difficult, it ain't worth doing"
But maybe this is too difficult. I'll look at the link you gave