Restar Your Galaxy S5 And Run in safe mode
- Turn off the device.
- Press and hold the Power/Lock key for one or two seconds to turn on the device.
- When the Samsung logo displays, press and hold the Volume down key until the lock screen displays. When the lock screen displays Safe mode will be shown in the lower-left corner of the screen.
- To exit Safe mode press the Power/Lock key and then touch Restart.
Factory reset Your Galaxy S5 using hardware keys
If you find that the touchscreen is unresponsive, there’s a problem accessing the menu, or you forgot your pattern lock, then you can still factory reset your S5 using the hardware keys.
Step 1: Turn your Galaxy S5 off.
Step 2: Simultaneously press and hold the Volume up button, the Home button, and the Power button until the Android icon appears on your display.
Step 3: Use Volume down to highlight the wipe data/factory reset option, and press the Power button to select it.
Step 4: Use Volume down again to highlight Yes — delete all user data, and press Power to select it.
Step 5: Wait until you see the reboot system now option and use the Power button to select it.
Step 6: When your S5 restarts, it should be wiped and ready to set up again.