Galaxy S4 release date: 2013
iPhone 5s release date: 2013
Last official update from galaxy s4: Android 5.0.1 in 2015 [1]
Last official update to iPhone 5s: iOS 12.5.7 in 2023 [2]
I’m well aware that you’re speaking of custom roms, but insinuating that this is solving ewaste issues is disingenuous at best. No ewaste is fixed by us nerds flashing custom roms through adb incantations in out of support hardware.
[1] https://en.wikipedia.org/wiki/Samsung_Galaxy_S4#Updates
[2] https://en.wikipedia.org/wiki/IOS_version_history