If you manage to reverse engineer the hardware of your iPhone I don’t believe Apple can prevent you doing anything you like with it.
If I buy a device, I want to be able to install whatever I want on it, and I want it to be legal for somebody else to sell something that I can run on it.