remote update android tv box kodi 16.1->17->18?making futureproof?

hello i have a question about kodi version.
last week a video addon stopped (i found out i cant talk about this addon here thats ok) working and i have to go to my all family members and fix everything by hand.
we have only 8 android tv boxes but it was a lot of work and time wasted.
i thought about updating it remotely if it is possibly .this would be perfect.trough ssh or getting an update script from a server like github?
as i understand its not possible to update 16.1 to 17 when is running?so only in android then ssh or something else?
anyone can give me pointers?
the same thing will happend when 16.1 is not more supported

iam not a seller i try to make my life easier, it would be nice when someone could help
thanks