There are plenty of phones with unlockable bootloaders for you to develop your software for, and you can pivot to your own hardware selection later to fill any gaps in your needs you discover. Nobody is stopping you writing device drivers either.
You could go and write an OS right now for e.g. a specific Google Pixel.
What I think you're actually running into is the reality of hardware and driver development, that good documentation does not exist so everyone is just recursively porting the hacky driver the first hardware guy wrote as a proof of concept. The documentation isn't secret - it doesn't exist. I once worked a job where I had access to some documentation of a high end ASIC. It was mostly long lists of register bits with no description, the same information you'd get from the header files. Rarely it explained how something actually worked. The hardware people are too busy working on the next hardware version to have time for precisely describing everything the chip does. The software team who wrote the first driver probably asked questions directly to the hardware team who made the hardware and that knowledge is not written down anywhere but the driver.
For a software analogy consider the RPC format of LSASS.EXE on Windows. The only people who know or care are the people who wrote it and the few people who bothered to reverse engineer it looking for exploits. Everyone else only cares that when they call the Win32 API functions, they work. They don't care if the function does an RPC to LSASS or that LSASS exists. In hardware, the driver is the "API" and everything below that is LSASS.
You could go and write an OS right now for e.g. a specific Google Pixel.
What I think you're actually running into is the reality of hardware and driver development, that good documentation does not exist so everyone is just recursively porting the hacky driver the first hardware guy wrote as a proof of concept. The documentation isn't secret - it doesn't exist. I once worked a job where I had access to some documentation of a high end ASIC. It was mostly long lists of register bits with no description, the same information you'd get from the header files. Rarely it explained how something actually worked. The hardware people are too busy working on the next hardware version to have time for precisely describing everything the chip does. The software team who wrote the first driver probably asked questions directly to the hardware team who made the hardware and that knowledge is not written down anywhere but the driver.
For a software analogy consider the RPC format of LSASS.EXE on Windows. The only people who know or care are the people who wrote it and the few people who bothered to reverse engineer it looking for exploits. Everyone else only cares that when they call the Win32 API functions, they work. They don't care if the function does an RPC to LSASS or that LSASS exists. In hardware, the driver is the "API" and everything below that is LSASS.