If you have a Samsung Galaxy A5 2016 SM-A510F/FD on Binary 7(U7) with a forgotten screen lock, even with FRP ON, you can successfully remove the screen lock without losing your data on the device.
This short tutorial on how to remove screen lock on Samsung Galaxy A5 2016 SM-A510F/FD U7 Binary without data loss will work even with FRP(factory reset protection) ON.
To successfully remove lock screen password/pattern or PIN on the Samsung Galaxy A5 2016 SM-A510F/FD, follow the step by step instruction below.
How To Remove Screen Lock On Samsung Galaxy A5 2016 SM-A510F/FD U7 Without Data Loss
Step 1: Download and install Samsung USB drivers on your PC
Step 2: Download and extract Odin flashing tool to access the folder
Step 3: Download this file (cboot-a510f-binary-7.tar), A510FXXU7CRK2_A510FDOLB7CRK2_A510FDXXU7CRK2.rar and save it on your PC
Step 4: Put your Samsung Galaxy A5 2016 into Download mode by pressing Volume Down + Home button + Power button, let go of the power button and press volume up to confirm booting into Download/Odin mode
Step 5: Connect your Samsung Galaxy A5 (2016) to the PC via a USB data cable.
Step 6: Open Odin from the Odin file folder you extracted in step 2
Step 7: Click on AP, locate and select (cboot-a520f-binary-7.tar) you downloaded in Step 3.
Step 8: Click on the Start button to flash the file.
NOTE : After flashing the (cboot-a520f-binary-7.tar) file, the phone will restart, but make sure you quickly press Volume Down + Home button + Power key to boot it back to Download mode.
Step 9: Close and reopen Odin again, then extract and load the second file in Step 3, A510FXXU7CRK2_A510FDOLB7CRK2_A510FDXXU7CRK2.rar file via AP and flash it too. Your Samsung A5 2016 will restart into recovery mode. In recovery mode, power off the device and boot into Download mode again.
Step 10: Connect your device to the PC and reopen Odin again. Now download this file sboot-a510f-binary-7.tar and load it via AP, then flash it. After flashing, your device will boot into recovery mode, there you will need to Wipe Cache only. Then restart the device after wiping cache partition only.
Step 11: Once your phone boots up, you can access your data again and also do a backup to keep the files safe. For your device to be more stable after the screen lock bypass/reset, you should flash/reinstall the stock firmware again via Odin.
Download the stock firmware for the Samsung Galaxy A5 2016 from this link A510FXXS7CRJB_A510FDOLB7CRJ7_A510FDXXU7CRJ5_XXV_7.0_STOCK.zip and you can follow the flashing procedure for Samsung phones via Odin from here.
Below is a video on how to remove screen lock on Samsung Galaxy A5 (2016) SM-A510F/FD U7 without data loss.