Sunday, July 24, 2011

[CF-Root-S5830 3.7] CF-Root adaptation for Gingerbread XXKPH

[CF-Root-S5830 3.7] CF-Root adaptation for Gingerbread XXKPH

The original post (in Indonesian):

A report from CF-Root user

Copied from Chainfire post:
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 (S5830: compiled from source by ilarrain with ext3 and ext4 support), and just adds root, busybox, sqlite3, and (unprotected recovery and CWM compatibility) OR (CWM3). S5830: using ilarrain's CWM3.

If you are looking for highly optimized kernels or kernels that perform specific functions, look elsewhere. All CF-Root's are based on original Samsung kernels, they are NOT recompiled, and thus ensure maximum compatibility. S5830: kernel compiled from Samsung original kernel source using stock config file, ext3 and ext4 support added. Confirmed by ilarrain.

THIS IS NOT A ROM - it is only a kernel (S5830: boot and recovery image). You need to have a firmware already on your device (S5830: tested on stock Gingerbread XXKPH). You do NOT need to wipe anything for this patch. You DO need to read the instructions.



The kernel is building from source using Samsung stock config file, ext4 and ext3 support added. Some binary files added:
-- Root, su binary v2.3.2-efgh
-- Superuser v2.3.6.3
-- Busybox v1.17.2 for the boot image and v1.16.2androidminimal for the recovery image (from CWM)
-- Sqlite3 v3.7.2
-- ilarrain's CWM

Instructions (short)
- Flash CODE_S5830XXKPH_CL260130_REV03-CF-Root-v3.7-b78.tar.md5 as PDA in ODIN. Done.

Instructions (long)
- Follow these instructions to the letter. Do not touch any buttons or checkboxes that are not listed below to touch!
- Unzip
- (USB) Disconnect your phone from your computer
- Start ODIN v4.38
- Click the OPS button, and select Cooper_v1.0.ops
- Click the PDA button, and select CODE_S5830XXKPH_CL260130_REV03-CF-Root-v3.7-b78.tar.md5
- Put your phone in download mode
- (USB) Connect the phone to your computer
- Click the START button
- Wait for the phone to reboot
- Done (if it took you more than 30 seconds, you need practise!)

- Booting into recovery will immediately give you CWM4! The standard recovery is completely gone.
- ADB is functional in recovery.
- When connected to ADB in recovery, you will get root directly.
- If you wonder where your bootup sounds have gone, CF-Root probably removed them.

CWM Manager
Same as Chainfire's CF-Root
- Boot to CWM
- Backup firmware
- Restore backups (S5830: Do not use CWM Manager to restore any backup for now, use CWM Advance Backup directly!)
- Delete backups
- Install APKs
- Flash CWM's
- Flash kernels (zImage, zImage in TAR, zImage in ZIP, zImage in TAR in ZIP) (S5830: you have to rename boot.img to zImage)

Tweak Manager
Same as Chainfire's CF-Root, except:
- Kernel: Scheduler option always disabled on boot. Kernel scheduler tweak not working on S5830.
- Now have "DT: Auto start" option to turn on/off Darktremor a2sd script on boot. Don't worry, Darktremor apps2sd setting is persistent, event you turn off the auto start script. It's safer to turn a2sd auto start off!

Ext4 Manager
Same as Chainfire's CF-Root.

Obviously you should revert back to rfs before flashing a new stock/modified ROM!

Custom boot / init scripts
Same as Chainfire's CF-Root.

Mount /dev/block/mmcblk0p2 to /system/sd if the microSD second partition present (ext2, ext3, or ext4), do not remove the microSD while S5830 ON (event after unmounted from "SD card and phone storage settings"), turn off your phone first before eject the microSD! It's safe to connect your phone to PC and mount the first partition (FAT/FAT32) in mass storage mode.

Custom boot animations and binaries
Same as Chainfire's CF-Root.

Dark Tremor apps2sd:
Flash in CWM recovery or CWM Manager - Flash update.

CF-Root by default not automatically start DT a2sd script on boot. Run Tweak Manager and select "DT: Auto start" option, then "Apply changes" to reboot your phone. When booting, bootloop will occur several times during DT apps2sd activation for the first time.

Installing busybox over the included version
Same as Chainfire's CF-Root.

- A newer version of BusyBox is used. CF-Root-S5830 used a script to prevent "ls" throwing color codes into the shell while it isn't supported. You can activate "ls" color codes support using "alias ls='busybox ls'" command (without quote).

How ?
- Base on Chainfire's CF-Root, used a modified mkbootfs in order files in /sbin have the appropriate permissions.
- A modified CWM4 package to make sure ext4 Manager conversion scripts working as expected.
- Boot logo modification, references from here and here.

  1. Using only 1 system property from the previous 21 (CF-Root + DT apps2sd). Now is guaranteed CF-Root no longer interfere Wi-Fi, BT, GPS, etc. It's a big problem if Android system property reach the 247 limit. You can use "getprop | grep -c ]" to count registered system property.
  2. The tweak script in /system/etc/init.d, it allows advanced users to do further tweaking
  3. New icon for CWM, Tweak, and ext4 Manager. Thanks to moemooo.
  4. Using CWM4 recovery. CWM4 re-packaged to ensure the ext4 Manager script working as expected. The ext4 script also improved, check SD card second partition also.
  5. Modified Darktremor apps2sd to use the CF-Root busybox. Reducing system property need to 0. Method of mounting SD card second partition fixed, false filesystem type detection will not happen.
  6. Turn the button backlight when the CF-Root script starts executed and turn it off upon completion. This could be an indicator of a problem and inform the user how long the CF-Root script is executed. Apparently fast so the already b78 user was not aware of this new feature
  7. Tweaks LCD in Tweak Manager changed as a switch for toggling a2sd script execution when booting.

DOWNLOAD: (37.65 MB)
CODE_S5830XXKPH_CL260130_REV03_boot_recovery.tar.m d5

Brief instructions:
1. Flash CODE_S5830XXKPH_CL260130_REV03-CF-Root-v3.7-b78.tar.md5 via Odin PDA
2. install via recovery mode or CWM Manager
3. Install CF-Root-S5830-ext4-v1.3u-Addon.apk
4. Convert the filesystem to ext4
5. Install via recovery mode or CWM Manager
6. Run Tweaks and activate the option "DT: Auto start", then "Apply changes". When booting will occur several times during activation bootloop apps2sd DT for the first time.


Post a Comment