It depends what root. In Samsung, if you rummage deeper, it irreversibly sets the rim in the prock and you will not do anything about it. the smartphone irreversibly loses its certification. I don't know about other brands.
I wouldn't even write if I wanted to. The manufacturers do not provide documentation.
As far as I know, there were even attempts to upload the elevator to newer models instead of Android, but there was a problem with the compatibility of the rudders themselves below the deck. And support for the window (resolution) As for the documentation (if someone is in it), there will always be some leaks ...
It is up to the programmer if he wants to run it easily and he will use ready-made libraries quickly
1. LCSC ... 2. ... they also have programmers ... Hmmmmm, I do not know if the programmer from the manufacturer can be loaded with ordinary hex / bin. They used some of their own format from what I remember. There was some programmer design on the arduino. This is probably the cheapest option.