thank you very much for answering.
Originally I had the cell phone with Nougat and without root. The beginning of this was that I wanted to root it (the warranty is over and I bought an ipega joystick that works better with root, so I want to root it).
I would love the rooted phone, but after that I do not feel very safe. Do you know how I could root it in a more secure way? The way I used and failed all this included a series of commands that were executed, very long and cumbersome. I had rooted before and in general they were programs that make a hit, but in this case I did not find a better way.
I have the official rom downloaded, but all the tutorials say that for Odin you have to be in downloading mode and if I do the key combination for the downloading it will load me by default twrp, therefore, that is one of my problems, I can not go to downloading mode to try to flash the stock rom.
I also read on one side that the way was flashing a new original recovery, which I also have. That to change to twrp as recovery, but I have the same problem, I can not go to the downloading mode and it goes by default to twrp.
In the end, it's not that I want to use twrp, but that the app has control over what I do.
Thank you very much.