While I do like the idea of requiring vendors to open-source their IP when support for a product ends, I don't think it's practical. For example, the iPhone X is out of the support window for iOS updates, does that mean Apple should be required to open-source the first version it shipped with (11) or the latest version they supported for it (16)?
In either case, these unsupported iOS versions share a lot of code with newer versions, that are still supported, and also with entirely unrelated products like MacOS, iPadOS, etc. So should Apple only be required to open-source only code that's no longer used in any version of their active products? Should they only open-source the drivers and unlock the bootloader so a third party OS can be made to work on it?