Sony Xperia Z locked screen, no internet connection, does not connect to computer I have a bit of an issue with my old Sony Xperia Z phone. A couple of months ago I lent it to a friend (now ex friend) who decided she would change the pattern lock. When she returned the phone she did tell me the pattern, but as I now have a new phone I had no need to use it so after a while I forgot what it was (so did she). As well as that she lost the sim tray so I am unable to put in a sim card. This means I have no internet connection so unable to use the 'Forgot your pattern?' option. 

When I connect it to my computer it isn't even recognised. 

I have looked at so many pages trying to help people with the same issue and finally gave up on the idea of restoring all my pictures etc.

However, I now want to sell it and even the Factory/Hard Reset does not work.

Can anyone help me with how to factory reset it please? I am going out of my mind about this. I do not understand how difficult it can be to reset your phone...

All your help will be much appreciated.

Thanks in advance.

Katie
You gonna need to boot into recovery mod follow this steps


Switch off your Xperia Z first
Switch it back on and the time when you see your phone’s LED
notification light turn Pink! (or any other color) — start pressing
either the Volume UP or Volume Down key a couple of times to make
your phone boot into recovery mode
Once you’re in recovery mode. Use Volume buttons to navigate Up and
Down between options and Power button to select an option in
recovery.


navigate to the factory reset and click on power button.