Prerequisites :
-Before doing anything you have to backup your Samsung Galaxy Ace 2 Data See this guide here
1-You need to enable USB debugging mode which is deactivated by default. (you can skip it ) 2-Your Ace 2 should have 70-80% charge remaining.
FOR GINGERBREADWhat's you need:Samsung Galaxy Ace 2 GT-I8160 with GingerbreadCustom Kernel with CWM or TWRP such as EX Kernel Download and instructions Here.SuperSU Flash able Zip Download HERE.A Sharp Eyes.Smart Brain.Steps:First, Put the SuperSU Flashable Zip to your SD Card.Boot into Recovery Mode (Volume Up + Home + Power)Flash the SuperSU Flashable Zip from recovery.WaitChoose "Reboot System Now"Tadaa, now you have a rooted phone.
FOR JELLY BEAN
What's you need:1-Samsung Galaxy Ace 2 GT-I8160 with Jelly Bean2-Custom Kernel with CWM or TWRP Here3-Stock Kernel. But you need CWM 6 by Shaaan. Download HERE.SuperSU Flashable Zip Download HERE.A Sharp Eyes.Smart Brain.Steps (Jelly Bean with Custom Kernel):First, Put the SuperSU Flashable Zip to your SD Card.Boot into Recovery Mode (Volume Up + Home + Power)Flash the SuperSU Flashable Zip from recovery.WaitChoose "Reboot System Now"Tadaa, now you have a rooted phone.Steps (Jelly Bean with Stock Kernel):First, Put the SuperSU Flashable Zip to your SD Card.Boot into Recovery Mode (Volume Up + Home + Power)Flash the CWM from stock recovery.Flash the SuperSU Flashable Zip from CWM recovery.Wait.Choose "Reboot System Now"Tadaa, now you have a rooted phone.