The equivalent for Andoid is to require the boot loader to be unlocked for free if there is no free availability of security updates. Then you can use the ROM of your choice. It is open source, so people can, and probably will, fix bugs if there is still a significant user base*. If not unlocked, then Google or the manufacturer is wilfully converting the phone landfill, and should be billed accordingly.
Clearly, this needs to be a legal right. There is a remote chance of this in Europe, but probably none in the USA - there are no consumer rights in the land of the free.
* I would argue that the source (and data sheet) for device drivers should be compulsorily released to public domain where the hardware manufacturer is not maintaining them.