Is it possible to factory reset Sony Xperia J when I forgot the pattern code? So basically, my friend asked me if it's still possible to factory reset his phone in any way when the pattern code was entered 20 times and it locked itself. The only way to do it right now is to enter the answer for the question, but he doesn't even remember it. Second one's validating throgh Google account, but he doesn't remember his credentials.

So I'm asking; is it possible to factory reset this phone?

I tried the volume up/down/both + power button, didn't seem to work, the menu won't show up. I tried flashing it, but it's locked and when I tried to unlock it, writing the code in the emergency dialer didn't do anything too. Additionally, other codes didn't look like working too. No menus showed up.

I don't care about data loss, I've already taken both SIM and SD cards out where all the information was. So, if anyone knows if I can somehow reset it in any way, I'd be really thankful.
You can do this:
1. Download an app called "PC Companion" (Link)
2. Install and run it.
3. Select the option "Support Zone New!" then click "Start"
4. Wait the program to install a add on
5. Select "Phone / Tablet Software Update" and click "Start"
6. Select "Repair my phone / tablet"
7. Follow the Instruction
8. Chose your phone model
9. Connect your phone to your PC and wait.  

DONE!