You can unlock Samsung Devices with Magma Tool.
Magma Tool average 50 models supported. You can check all list from here.
After using this tool, everything will be work without any problem.
This tool access only works whit Windows.