i never jailbreaked any kind of phone myself, i just thought we can jailbreak any phone be it andriod or ios by plugging it to laptop/pc. From the security pov of ios i thought we cannot access the data if we jailbreak a locked phone, guess i was wrong.
For Android, when we unlock the bootloader, the data is wiped because the encryption key for the user partition is wiped out.