If you have proof of purchase for the device, he can go to samsung and see if they will be willing to unlock it. Your friend triggered the protection system to stop theft. So you'll need to convince samsung you didn't steal it, bought it legitimately, then they might unlock it.