Not a Duplicate Claim
If you are tempted to flag this as a duplicate of questions like "How to root my android phone?" or "What can I do with a rooted android device?", then please take the time to read my question carefully. My question is not about those topics.
Out of couriosity, what is changed inside of an android device when it gets rooted? Is it saved somewhere, like in a config file with
rooted=true or something like that?
I've extensively tried to google for this, but the information I'm looking for seems to be hidden behind all the results for how to root which phone and what fancy things you can do with a rooted phone, so I couldn't find it. Not even a clue.