iOS 18 is currently only available as an RC (Release Candidate) build for developers and public beta testers, and it has been confirmed that the new OS will feature a new feature next week called Activation Lock. This feature prevents someone from using stolen iPhone parts on another iPhone.
The feature was announced back in April, and Apple says law enforcement requested it in an attempt to address the black market for stolen iPhone parts.
It locks the iPhone along with its parts to the original owner of the phone. And if the system detects a used part, such as battery, camera, display, etc., it will ask for the Apple ID and password. If the original owner does not give permission by entering his ID and password, the spare part will remain locked. After some time, all the iPhone part IDs will be assigned to Apple accounts.
The feature has been tested and confirmed by several iOS 18 RC users who have tried to replace iPhone parts.
Speaking of iOS 18, it is expected to hit the streets September 16.