You can also try dr.fone - Android Lock Screen Removal to bypass pattern, PIN, password & fingerprints for Android devices with NO DATA LOSS: https://goo.gl/rYYphV
- - -
In this tutorial I will show you how to reset HTC Desire 530, 626, 626s, 630, 825, HTC 10 (Android 6.0.1) to factory settings.You can use this operation to fix issues like freezing, running slow, to remove a file or virus or to clear the memory space or if you forget your security code, password, pattern or pin code. . .
- - -
Before performing a hard reset, make sure you know your Google login and password. If you have Android version 5.1 or higher on your device and you have added a Google account, you might be asked to input the Google account login and password after you perform o software repair.If you cannot provide this information during the setup process, you won't be able to use the device at all after software repair!
Warning! You do this at your own risk! Make sure your phone battery is fully charged!
Better remove the SIM card and memory SD card from your phone before this operation!
If you reset or update your phone, all your data may be lost, so it's good to do a full backup before!
This method will not upgrade or downgrade the firmware version of your HTC and it will NOT UNLOCK the network lock!
This method does not reset the PIN code of the SIM card! If your phone has been ROOTED this method will NOT UNINSTALL the ROOT.