Jump to content
Sign in to follow this  

[30.05.2011][CF-Root v3.5] KE2/7 - su+bb+CWM3

Recommended Posts

from chainfire http://forum.xda-developers.com/showthread.php?t=1103399

This rooted kernel is for the "rooting beginners" and those who want to keep as close to stock as possible. CF-Root takes the kernel from an original Samsung firmware, and just adds root, busybox, and ClockWorkMod (CWM3) recovery

THIS IS NOT A ROM - it is only a modified kernel. You need to have the relevant firmware already on your device. You do NOT need to wipe anything for this patch. You DO need to read the instructions. PLEASE READ THIS ENTIRE POST!

CF-Root for SGS2 is still very much BETA. There WILL be issues !


There have now been over 300.000 downloads of CF-Root for various devices (see for example Galaxy S1, and Galaxy Tab 7"), and many more if you include ROMs, kernels, etc that use it. Don't be a leech, buy me a beer (and use the "Thanks" button!)


- The kernel is fully stock and taken from the original firmware, with just the following added:

- Root

- Superuser

- Busybox v1.16.2androidminimal (from CWM)

- Integrated CWM

Instructions - ODIN (short)

- Flash CF-Root-xxx-vX.X.tar (from the attached zip) as PDA in ODIN, without repartition. Done.

Instructions - ODIN (long)

- Follow these instructions to the letter. Do not touch any buttons or checkboxes that are not listed below to touch!

- Unzip the attached CF-Root-xxx-vX.X.zip

- (USB) Disconnect your phone from your computer

- Start ODIN

- Click the PDA button, and select CF-Root-xxx-vX.X.tar

- Put your phone in download mode

- (USB) Connect the phone to your computer

- Make sure repartition is NOT checked

- Click the START button

- Wait for the phone to reboot

- Done (if it took you more than 30 seconds, you need practise!)

Instructions - If you already have CF-Root

- Copy the zip file to your SD card

- Stop sharing SD card with computer over USB, unplug the cable, etc

- Applications -> CWM -> Flash kernel. Select the ZIP file on your SD card.

- Done

Other kernels

Replacing CF-Root with other kernels and vice-versa sometimes works, sometimes it doesn't. I don't have a list.

When going from CF-Root to another kernel, root will usually stay, while CWM will be lost (unless the other kernel also includes it), but there should not be issues. The CWM Manager app may remain, but probably won't do anything useful.


CF-Root includes a custom version of CWM3.

CF-Root/CWM3 is NOT compatible with ROM Manager! Manage/perform your backup/restores from CWM directly or using the CWM Manager application included with CF-Root

- Booting into recovery will immediately give you CWM. The standard recovery will only be started if a Samsung package is detected.

- ADB is functional in recovery, however it may take up to a minute for it to start up after booting into recovery.

- When connected to ADB in recovery, you need to use "rootsh" command to get root, instead of "su". This will not prompt you, it will just give you root. Obviously the "rootsh" command does not work when booted normally.

NOTICE: CWM does not currently backup or restore kernels

CWM Manager

Because of incompatibility with ROM Manager, I wrote and included "CWM Manager". This is a new app (as of March 30, 2011). You can find it under Applications -> CWM. It is much faster to use than manually booting into CWM and selecting these options.


- Boot to CWM

- Backup firmware

- Restore backups

- Delete backups

- Install APKs

- Flash CWM3 update.zip's

- Flash kernels (zImage, zImage in TAR, zImage in ZIP, zImage in TAR in ZIP) - without changing warning triangle status or increasing flash counter

Note: If you flash a different kernel, CWM Manager may remain installed. However, functions may not work, because they need kernel compatibility ! At this version of CWM Manager this does not produce errors, it just doesn't do what you expect it to

Custom boot / init scripts

CF-Root will execute the following scripts if present, in the order listed:

- /system/etc/init.d/* (there can be many files here, no extensions! use #!)

- /system/bin/customboot.sh (busybox sh)

- /system/xbin/customboot.sh (busybox sh)

- /data/local/customboot.sh (busybox sh)

Please make sure you chown / chmod the scripts correctly so they can be executed. Pretty much root:root / 755.

Custom boot animations and binaries

CF-Root also supports custom boot animations:

- /system/media/bootanimation.zip

- /data/local/bootanimation.zip

And custom boot binaries:

- /data/local/bootanimation.bin

Installing busybox over the included version

It is possible to install a custom busybox over CF-Root v3.0 and newer. However, this is not without risk. CF-Root makes heavy use of scripting, and many CF-Root scripts rely on the internal busybox version. If you do install a seperate busybox version (always use "stericson" installer!), install it to /system/xbin. Installing it to /system/bin will mess things up for sure. Even if you do that part right, it may still break CF-Root, so make sure to make a backup before trying.

How ?

I wrote my own toolchain to ease patching of initramfs, and that is what all this is based on. Took me a few days to get it to this state. If this works right, however, next time it will probably take me a few hours tops

Edited by ermacwins

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

By using this site, you agree to our Terms of Use.