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!
Requirements:
Linux - Ubuntu 12 recommended (a virtual one will also do the job)
Windows with Odin for flashing
Patience
References:
Ext4Utils
Insipred by: Expert root method which does not increase the flash counter
First of all download your original rom from: http://www.sammobile.com/firmware/?page=3
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:
Type the root password and enter.
4, Now set current dir to samsung directory and mount the system image:
if you get error when executiong "make" type:
5, The original system image has been mounted, now extract su binary and superuser.apk to samsung dir then, enter:
6, Now we have to adjust the permissions:
for superuser:
7, Unmount the image:
or if it's not working:
8, Now create md5 hashes:
if you get "permission denied" first:
9, Create falshable tar and md5 hashes for odin package:
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.
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.
NOTES:
After flashing phone will boot in recovery mode to apply csc, then reboots automatically to normal mode.
Superuser.apk is optional to include in system, you can download later from market.
If you download different rom than already have on the device first flash the unmodified samsung tar as PDA.
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!
Requirements:
Linux - Ubuntu 12 recommended (a virtual one will also do the job)
Windows with Odin for flashing
Patience
References:
Ext4Utils
Insipred by: Expert root method which does not increase the flash counter
First of all download your original rom from: http://www.sammobile.com/firmware/?page=3
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:
Code:
sudo mkdir /mnt/system4, Now set current dir to samsung directory and mount the system image:
Code:
cd /home/username/samsung
mv system.img.md5 system.img.ext4
make
./simg2img system.img.ext4 system.img
sudo mount system.img /mnt/systemCode:
sudo apt-get install zlib1g-devCode:
sudo cp su /mnt/system/bin/su
sudo cp superuser.apk /mnt/system/appCode:
for su binary
sudo chown root:root /mnt/system/bin/su
sudo chmod 06755 /mnt/system/bin/suCode:
sudo chown root:root /mnt/system/app/superuser.apk
sudo chmod 0644 /mnt/system/app/superuser.apkCode:
sudo umount /mnt/systemCode:
sudo umount system.imgCode:
md5sum -t system.img>>system.img
mv system.img system.img.md5Code:
sudo chown username:username system.imgCode:
tar cf system_rooted.tar system.img.md5
md5sum -t system_rooted.tar>>system_rooted.tar
mv system_rooted.tar system_rooted.tar.md510, Creating CSC package.
Code:
tar cf csc.tar cache.img.md5
md5sum -t csc.tar>>csc.tar
mv csc.tar csc.tar.md5Check: Auto reboot and F. Reset Time.
Enjoy your rooted phone.
NOTES:
After flashing phone will boot in recovery mode to apply csc, then reboots automatically to normal mode.
Superuser.apk is optional to include in system, you can download later from market.
If you download different rom than already have on the device first flash the unmodified samsung tar as PDA.