These are the instructions to root your Samsung Galaxy Ace 2 GT-I8160 running on android 4.1.2 using the Root File.
Note: Before following the tutorial below, we want to inform you that this tutorial only works if your Samsung Galaxy Ace 2 GT-I8160 is running on Android 4.1.2 (baseband I8160XXMC8). To check the Android Version on your Phone: Open Settings > About Phone.
Optional: You can also verify the root status of your device by using the Root Checker Application.
[*] The above tutorial helps you to root Samsung Galaxy Ace 2 GT-I8160 running on Jelly Bean (4.1.2) if your device is running on Android Gingerbread (2.3.6), then see How to Root Samsung GT-I8160 (Android 2.3.6).
[*] This is the zero data loss process, which means you will not lose your photos, videos, music, contacts, applications, and games.
[*] Samsung Stock Firmware: If you are looking for the original firmware for your device, then head over to Download Samsung Stock Firmware page.
[*] Samsung USB Driver: If you are looking for the original USB Driver for your device, then head over to Download Samsung USB Driver page.
[*] Big thanks to the XDA Developer Shaaan for his hard work and contribution to the XDA community (for root file).