I've heard as well as experienced that unlocking the bootloader of an Android device wipes the device's data completely, and makes it like the stock one. However, I'm interested in knowing when exactly does this data wipe take place?
Does it happen when we issue the command:
fastboot oem unlock
or, when booting into the Android after completing the last step?
I've asked my question because this question is concerned with recovering data (seems to be from an unlocked device) and an answer it received is:
You could flash TWRP recovery (not sure if available for your device) which has an in-built file manager and and terminal and move files to any usb storage.
My point is, hypothetically, in such case I would first unlock the bootloader, and then flash the custom recovery without rebooting fastboot. Then I will boot into the custom recovery directly from fastboot.
Now, would I be able to see my data or not, and when exactly would this wipe happen?