[ROOT] [i8160] [Ace2] Advanced rooting procedure WITHOUT increasing the Flash counter

Search This thread

poulain2k

Member
Feb 5, 2012
41
3
Aix-en-Provence
please feedback if you get Force Close on superuser app, I have a solution for that



ok Thank you, i'm waiting the end of downloading and i follow the tutorial with ODIN and... i come back this forum !

---------- Post added at 01:25 PM ---------- Previous post was at 12:26 PM ----------

Gooooooooooooooooooooood ! Thank you soraxx :)

Flash with ODIN is OK and my phone is now ROOTED :) and always NFC option !

I have uninstall rom applications with Titanium Backup and it's OK :)

You're strong !
 
Last edited:

mastermid

Senior Member
Aug 30, 2009
152
11
Tychy
sueruser app open and says that device is rooted but when an app ask for root superuser goes FC

EDIT worked # cp /sdcard/superuser.apk /system/app/superuser.apk
# chmod 644 /system/app/superuser.apk

---------- Post added at 03:39 PM ---------- Previous post was at 03:23 PM ----------

Succesfully rooted

Did you type these lines through the android terminal? (Did you flash system.img without superuser and copied superuser.apk later?)
 

vacziferi

Senior Member
Jan 25, 2011
80
18
Budapest
Is there any method to save CSC from the phone? In samfirmware my providers's (Telenor Hungary) rom is not available and product code can be checked in the service...
Szaby, may you have this :D
 

soraxx

Senior Member
Jun 29, 2011
273
32
Did you type these lines through the android terminal? (Did you flash system.img without superuser and copied superuser.apk later?)
I used adb shell and yes. I deleted superuser.apk (FC problems) but Google play didn't allow to install superuser in "default location" so I copied superuser.apk on sdcard, enabled rw on system partition, copied apk to /system/app and chmod 644 superuser app
 
Last edited:
  • Like
Reactions: mastermid

mastermid

Senior Member
Aug 30, 2009
152
11
Tychy
What command did you use for enabling system as rw?

nevermind
(answer: mount -o rw,remount /dev/block/mmcblk0p1 /system)
 
Last edited:

easy-droid

New member
May 19, 2012
4
0
lyon
Hi there and thanks for this tuto... so hard to find something about the GT-i8160P !
Hi used Odin method on Windows 7: it seems to be rooted but Titanium Backup never get the root permission and there's nothing in superuser... in fact, any root request goes for a force close in the app.
Any idea ?
 
Last edited:

Szaby59

Senior Member
Aug 26, 2010
444
294
Is there any method to save CSC from the phone? In samfirmware my providers's (Telenor Hungary) rom is not available and product code can be checked in the service...
Szaby, may you have this :D

You can but it's not 100% it copies several files, folders to /system partition

T9DB, CSCFiles.txt, CSCVersion.txt, SW_Configuration.xml also if you have different bootanimation you should backup /system/media/bootanimation.zip.
What your software version exactly ?
 
Last edited:

powermetza

Senior Member
Sep 13, 2012
134
185
Transylvania
I managed to test my modified file, and i didn't get root access. I installed superuser from google play and superuser confirm that I have su binary installed (v.3.1.1), but when a program tries to gain root access the phone freezes.
I tried to integregrate superuser.apk in system.img and I get the same result.
I tried to mount system as rw in adb with the command: mount -o rw,remount /dev/block/mmcblk0p1 /system, but it doesn't work.
I only need root to remove samsung bloatware. If I delete app directly from system.img, the counter will increase ?
And if someone know how to rezolve this problem please give all the commands for adb.
 
Last edited:

easy-droid

New member
May 19, 2012
4
0
lyon
There's a "SU update fixer" app on google play, if there's a fixer it must be well-known bugs...
I get it and launch it, it says that there's no bug and root access avaible but when I force the fix, it freezes on root check.
 

mastermid

Senior Member
Aug 30, 2009
152
11
Tychy
I managed to test my modified file, and i didn't get root access. I installed superuser from google play and superuser confirm that I have su binary installed (v.3.1.1), but when a program tries to gain root access the phone freezes.
I tried to integregrate superuser.apk in system.img and I get the same result.
I tried to mount system as rw in adb with the command: mount -o rw,remount /dev/block/mmcblk0p3 /system (on my phone system is mmcblk0p3 not mmcblk0p1), but it doesn't work.
I only need root to remove samsung bloatware. If I delete app directly from system.img, the counter will increase ?
And if some know how to rezolve this problem please give all the commands for adb.

- do not integrate superuser.apk with system.img
- uninstall superuser from Google Play
- copy superuser.apk from root_package.zip to internal sdcard

Here are adb commands: (on polish forum we had same problems and it seems that worked - soraxx found out it)
Code:
adb shell
su
mount -o rw,remount /dev/block/mmcblk0p1 /system
cp /sdcard/superuser.apk /system/app
chmod 644 /system/app/superuser.apk

Then everything should be ok. Tested personally.
 

soraxx

Senior Member
Jun 29, 2011
273
32
Hi there and thanks for this tuto... so hard to find something about the GT-i8160P !
Hi used Odin method on Windows 7: it seems to be rooted but Titanium Backup never get the root permission and there's nothing in superuser... in fact, any root request goes for a force close in the app.
Any idea ?

Read the post that is above this one.
If you don't have adb install adb easy for example...
 
Last edited:

mastermid

Senior Member
Aug 30, 2009
152
11
Tychy
Read the post that is above this one.
If you don't have adb, you have to install Android Terminal Emulator from Market and introduce all that commands except the first one "adb shell"

No, android terminal emulator or whatever "on-phone" won't work, because he needs root access. It can be done only through pc using adb.
 

soraxx

Senior Member
Jun 29, 2011
273
32
No, android terminal emulator or whatever "on-phone" won't work, because he needs root access. It can be done only through pc using adb.

Yep. Permission denied. Autofail. you could provide a link to download adb for people who doesn't have Android sdk (programs like adbEasy)
Need debug mode enabled!!!
 

vacziferi

Senior Member
Jan 25, 2011
80
18
Budapest
You can but it's not 100% it copies several files, folders to /system partition

T9DB, CSCFiles.txt, CSCVersion.txt, SW_Configuration.xml also if you have different bootanimation you should backup /system/media/bootanimation.zip.
What your software version exactly ?

product code: GT-I8160OKAPAN
PDA and phone: XXLD8
CSC: XXLE1

this is the latest from Telenor/pannon
 

soraxx

Senior Member
Jun 29, 2011
273
32
Titanium unfreeze tool crash on some Samsung devices like Note and Ace 2
Do not freeze apps without backup
 

Szaby59

Senior Member
Aug 26, 2010
444
294
I had some time so I investigated this SuperUser issue.

The problem was with this command:
Code:
sudo chown root:root /mnt/system/app/superuser.apk

It's not needed to set owner (especially not root) for superuser.
Sorry my mistake :(
Now should work.
 
Last edited:

soraxx

Senior Member
Jun 29, 2011
273
32
I had some time so I investigated this SuperUser issue.

The problem was with this command:
Code:
sudo chown root:root /mnt/system/app/superuser.apk

It's not needed to set owner (especially not root) for superuser.
Sorry my mistake :(
Now should work.
Without that step it should work or not? Should I reupload Odin files?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 38
    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:

    Code:
    sudo mkdir /mnt/system

    Type the root password and enter.

    4, 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/system

    if you get error when executiong "make" type:

    Code:
    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!

    Code:
    sudo cp su /mnt/system/bin/su

    6, Now we have to adjust the permissions:

    For SU binary:
    Code:
    sudo chown root:root /mnt/system/bin/su
    sudo chmod 06755 /mnt/system/bin/su

    For SuperUser app:
    Code:
    sudo chmod 644 /mnt/system/app/superuser.apk

    7, Unmount the image:
    Code:
    sudo umount /mnt/system

    or if it's not working:
    Code:
    sudo umount system.img

    8, Now create md5 hashes:
    Code:
    md5sum -t system.img>>system.img
    mv system.img system.img.md5

    if you get "permission denied" first:
    Code:
    sudo chown username:username system.img

    9, Create falshable tar and md5 hashes for odin package:
    Code:
    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.
    Code:
    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.

    NOTES:
    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.
    6
    PRE-ROOTED ROMs
    (Only modified system and csc - if Superuser not included download manually from Play store or install from sdcard)

    PDA: XXLD8 | CSC: I8160DBTLD2 -> -> DOWNLOAD <-
    Thanks to: powermetza

    PDA: XXLD8 | CSC: XXLD3 | Product code: XEO -> Mirror 1 | Mirror 2
    Thanks to: mastermid | szczepan2



    For i8160P - Galaxy Ace 2 NFC model

    PDA: I8160PXXLE6 | CSC: I8160PDBTLE5 -> Mirrors
    Thanks to: soraxx

    SuperUser FIX for pre-rooted rom (only if you have problems): View

    FLASHING INSTRUCTIONS

    0, Download odin from 1st post, extract the downloaded (pre-rooted) rom.
    1, Open odin and select csc.tar.md5 (or something like that it's a smaller file max. 20 MB) as CSC.
    2, Select the other file (possibly system.tar.md5 or pda.tar.md5, it's 500+ MB) as PDA.
    3, Check, Auto reboot and F. Reset Time then start.
    (of course first switch to download mode and connect the phone :D )
    5
    ok, let me be of use, downloading the package..

    ... update ...

    done: I8160DXLK2_I8160OLBLK2_XTE_rooted
    5
    Rooted XXLK6

    Rooted XXLK6
    (Poland; November 2012; PDA: XXLK6, CSC: XXLK1)

    SuperSu app and library


    Installation

    Before installing I recommended install stock XXLK6 from SamMobile (dev-host, zippyshare part 1, zippyshare part 2, hotfile)
    1. In Odin 3 1.85 choose "system_rooted.tar.md5" as "PDA"
    2. "csc.tar.md5" as "CSC"
    3. Check only "Auto Reboot" and "F. Reset Time"
    4. "Start"

    Download

    Dev-Host

    Zippyshare PART 1
    Zippyshare PART 2
    2
    Ok i flashed the 1ghz kernel + recovery without increasing flash counter !!!! :)

    How did i do that ?

    1) get you phone rooted

    2) download the 1ghz kernel from this post http://xdaforums.com/showpost.php?p=27696948&postcount=47

    3) Put the kernel.bin.md5 file to /sdcard

    4) apply the folowing command (using adb or terminal emulator) :

    Code:
    $ su
    # dd if=/sdcard/kernel.bin.md5 of=/dev/block/mmcblk0p15
    # reboot

    5) reboot your phone

    ATTENTION : be carefull i flashed one kernel and my phone didn't boot anymore

    Here is attached the stock kernel to flash with Odin in case of probleme :