How to boot your Samsung Galaxy S8 in Safe mode and Recovery mode to wipe cache partition, do factory resets [Basic Troubleshooting]
Samsung Galaxy A6 Reset Guide: How to Soft Reset, Reset Network Settings, Reset All Settings and Factory Reset