Well for a quick point of comparison there are very numerous and very strict rules about what you’re allowed to do with a Mac. Or iPhone. Or Android. Or windows device. All of them forbid you from learning about how they work, much less changing how they work. Not sure about legality but certainly it’s against the license. Which is what you transacted right? You don’t “own” your iPhone for any reasonable definition of the word “own”. But you bought it, or so you think, but what you really did is pay money and sign an agreement. I doubt Apple thinks that you actually own the device once you buy it.