[ROOT] [i8160] [Ace2] Advanced rooting procedure WITHOUT increasing the Flash counter
SAMSUNG GALAXY ACE 2 i8160/i8160P
This could be complicated if you never used any Linux os, however with this method you can root your phone without increasing the flash counter.
Kernel, recovery, etc. will be the same as in original samsung roms, we will flash a modified (pre-rooted) system.img.
For prerooted system images and csc files see 2nd post!
Linux - Ubuntu 12 recommended (a virtual one will also do the job)
Windows with Odin for flashing
Insipred by: Expert root method which does not increase the flash counter
First of all download your original rom from
1, Create a "samsung" directory on your linux filesystem -> "home/username" folder where username is your linux username.
2, Extract the downloaded firmware, then move system.img.md5 and cache.img.md5 to home/username/samsung dir.
(root_package.zip and ext4utils.zip also extract here)
3, Open a terminal window, and enter:
sudo mkdir /mnt/system
Type the root password and enter.
4, Now set current dir to samsung directory and mount the system image:
mv system.img.md5 system.img.ext4
./simg2img system.img.ext4 system.img
sudo mount system.img /mnt/system
if you get error when executiong "make" type:
sudo apt-get install zlib1g-dev
5, The original system image has been mounted, now extract su binary and superuser.apk to samsung dir then, enter:
I suggest only su binary to include in /system, SuperUser can be installed later!
sudo cp su /mnt/system/bin/su
6, Now we have to adjust the permissions:
For SU binary:
For SuperUser app:
sudo chown root:root /mnt/system/bin/su
sudo chmod 06755 /mnt/system/bin/su
sudo chmod 644 /mnt/system/app/superuser.apk
7, Unmount the image:
sudo umount /mnt/system
or if it's not working:
sudo umount system.img
8, Now create md5 hashes:
md5sum -t system.img>>system.img
mv system.img system.img.md5
if you get "permission denied" first:
sudo chown username:username system.img
9, Create falshable tar and md5 hashes for odin package:
tar cf system_rooted.tar system.img.md5
md5sum -t system_rooted.tar>>system_rooted.tar
mv system_rooted.tar system_rooted.tar.md5
As you remember we copied the cache.img.md5 also, that's because we need to flash this as a separated CSC package.
10, Creating CSC package.
tar cf csc.tar cache.img.md5
md5sum -t csc.tar>>csc.tar
mv csc.tar csc.tar.md5
11, Now open Odin and select system_rooted.tar.md5 as PDA, and csc.tar as csc.
Check: Auto reboot and F. Reset Time.
Enjoy your rooted phone.
After flashing phone will boot in recovery mode to apply csc, then reboots automatically to normal mode.
If you download different rom
than already have on the device first
flash the unmodified
samsung tar as PDA.