Changing the preferred network type is unfortunately a lot more complicated than simply changing the value of a variable and AFAIK impossible to automate without root. I know of two methods that work.
First and most reliable method is through GravityBox, which requires Magisk and LSPosed to be...