Owata replace karama kela wena widyata hadala ei ban.anith ewa fail wena widiyata hadala ei.
I don't think if it's regulated by law this opens up the manufacturer to fines by the regulators (in EU where the law is enforced)
but I guess anything goes in ashikland

apple is already pairing components to the motherboard to make it difficult for people to replace components(battery health doesn't work once the battery is replaced in an iphone if I'm not mistaken)