1. Power on the phone.
2. Enable "USB debugging" in "Settings"-"Developer options",
   tap 7 times on "Build number" in "Settings"-"About phone" to enable "Developer options".
3. Connect the phone to PC with USB cable, install drivers if needed.
4. Select device in ADB settings.
5. Fill values what you need to repair.
6. Press "Repair" button.
7. Use "Reset EFS" or "Reset MSL" functions if you need to reset this values.
   Be carefully, do not perform this without necessity and make backup before. 
   
  "Wipe EFS/NVM":
1. Power on phone in download mode (turn off phone, hold Volume Down + Home + Power).
2. Connect USB cable, install drivers if needed.
3. Press "Wipe EFS/NVM" button to deactivate security.
4. Wait till phone reboot.