That's not how this warning works, though. It only triggers when a camera isn't paired with the board, using software that is only available to AASPs or Apple themselves. It's not protecting the consumer in any way, its protecting Apple's revenue. If Apple really wanted to verify that the camera was genuine, they more than likely could have. What they're doing here is detecting a repair that wasn't done by Apple or an AASP.
You can put a fully functioning, genuine camera in there from a donor phone, and it will still trigger. It's yet another attempt to stop individual repair shops, or owners themselves, from repairing products.