: In Settings > Developer Options , toggle OEM Unlock to ON. Failure to do this will result in a blocked flash . Enable USB Debugging : Also found in Developer Options. How to Root Samsung Galaxy S7 Easily!

Before flashing, you must enable specific settings to allow custom software:

: Essential for your PC to recognize the phone. Odin Flash Tool : Version 3.12 or newer is recommended.

: Go to Settings > About Device and tap Build Number 7 times.

: The .rar file you mentioned, which should contain a .tar or .tar.md5 file.