It probably isn’t legal most places. EULAs are already considered fairly flimsy in terms of enforcement, but changing an EULA after you’ve already bought a device, in such a way as to reduce your statutory rights, is almost certainly a complete non-starter.