Strong suggestion: Learn from your experience. Your basic problem came from making assumptions without acquiring sufficient knowledge. In short, you didn't do your homework before you acted.
That practice can be fatal to your phone if you act as root. I'm not trying to scare you away from rooting your phone and doing what you propose, as I know enough to know that I don't know enough to pass judgment on your proposal. I'm only saying that you should be extremely cautious. Find out the pitfalls (there are ALWAYS pitfalls) of what you want to do, especially if you make a mistake.
I've been a Linux user for 12 years, and have acted as root on my own systems many times. I don't fear it, but I have a healthy respect for the power. I have messed things up royally, but not before I had a recovery plan in place. Be aware that even with that experience, or maybe because of it, I wouldn't attempt what you are proposing to do unless it was either that or the recyclers for the phone, and even then wouldn't attempt it after only a few minutes of online reading.
Also, make sure the online information you are reading is current - information from as little as a year ago might now be outdated. Things are developing that fast. Faster.
Good luck.
TJ