[Galaxy S II Android Development] ZeroXtreme:
All-in-one guide for DlevROM2

I PMed Dlev for permission to post this guide, and he gave me his blessing. :)

This guide will help users to:

Install DlevROM2 1.0/1.1/1.2

Reinstall the CWM App and Chainfire's custom recovery

Remove the yellow warning triangle from the bootscreen

Return the kernel to Ninphetamine 2.1.3 which originally came with the ROM.

First your device needs to be rooted and needs a custom recovery. The easiest way for this would be to use Chainfire's CF-Root to be flashed by Odin found in this post:

http://xdaforums.com/showthread.php?t=1103399&highlight=CF-Root

The flashing tool (Odin v1.85) can be found in the first post of the thread, and all CF-Root recoveries and rooted kernels which are version specific can be found in post #3, #4 and #5. Make sure you use the correct version that matches your current firmware. The procedure on how to do this is very well documented by Chainfire in the thread itself, so make sure you read it and understand it well and get your device rooted before proceeding.

The assumption is you already have a rooted device with a custom recovery at this point, so the actual steps are as follows:

Installing DlevROM2:

Download the ROM of your choice (1.0/1.1/1.2) from the second post in this thread

Download the "Samsung Apps And Widgets" also on the second post in this thread (This step is optional if you want the stock Samsung Apps installed, also some functionalities are dependent on them being installed)

Make sure the downloads are not corrupted by openning the zip files one by one, if you cannot open the zip files properly that means they are corrupted, and you will have to download it again.

Connect your device to your computer via the USB cable

Copy the zip files you downloaded onto your device's internal storage

Properly eject your device from the computer to make sure the files were copied properly

Reboot your device into Recovery Mode either via the CWM App (if you have it installed) or by powering it off, then simultaneously pressing Volume Up + Home Button + Power Button

Once in recovery, it is recommended to do a full wipe to ensure best results (I wipe the cache partition, the dalvik cache and do a full data wipe to be sure)

Install the DlevROM2_1.x.zip file

Install the Samsung_Apps_Addon.zip file (Again this is optional as desribed in Step 2.)

Reboot your device into normal mode (First boot will take a bit longer as always after flashing a new ROM)

When the device boots up, you would have successfully installed DlevROM2

Reinstalling CWM App:

Download CF-Root-SGS2_XX_OXA_KH3-v4.1-CWM4.zip from post #2 in Chainfire's original thread (http://xdaforums.com/attachment.php?attachmentid=691963&d=1313601853). This specific version is needed since DlevROM2 is KH3 based.

Unzip the CF-Root-SGS2_XX_OXA_KH3-v4.1-CWM4.zip downloaded in Step 1. (It will unzip to CF-Root-SGS2_XX_OXA_KH3-v4.1-CWM4.tar)

Power off the device

Boot into Download Mode by simultaneously pressing Volume Down + Home Button + Power Button

Run Odin 1.85 on your computer (If you still don't have it, get it here: http://xdaforums.com/attachment.php?attachmentid=611625&d=1306787405)

Connect your device (currently in Download Mode) to your computer via the USB cable

Once Odin detects your device, click the "PDA" button and select the CF-Root-SGS2_XX_OXA_KH3-v4.1-CWM4.tar file you unzipped in Step 2.

Make sure "Repartition" is not checked and leave all other settings as is

Click "Start" (Odin will flash Chainfire's CF-Root and reboot your device into Normal Mode)

When the device boots up, you will have a yellow triange on the boot screen and will also have the CWM App installed in the Program Launcher

Removing the Yellow Warning Triangle from the Boot Screen:

Download Kernel_GTI9100XXKH3.exe from Intratech's thread (http://xdaforums.com/showthread.php?t=1075278) under post #3 titled "+++++++[Frankenstein Firmwares]+++++++", for version XXKH3 (or get directly from this link to Intratech's thread: http://www.multiupload.com/C4DRUIJTLL)

Run the Kernel_GTI9100XXKH3.exe file downloaded in Step 1. and it will extract to Kernel_GTI9100XXKH3.tar (Password is: intratech@XDA)

Download ninphetamine-2.1.3-release.zip from Hacre's thread (http://xdaforums.com/showthread.php?t=1179814&highlight=KH3+Stock+Kernel) under post #2 titled "Ninphetamine version 2.1.3 Release Edition ZIP file for flashing via Clockwork Mod Recovery" ( or get directly from link to Hacre's thread: http://ninpo.qap.la/kernels/sgs2/ninphetamine-2.1.3-release.zip)

Make sure you can open the ninphetamine-2.1.3-release.zip file to guarantee that it is not corrupted

Extract the zImage from the CF-Root-SGS2_XX_OXA_KH3-v4.1-CWM4.tar unzipped in Step 2. of the "Reinstalling CWM App" Section of this guide

Connect your device to your computer via the USB cable under Normal Mode

Copy the ninphetamine-2.1.3-release.zip file downlowded in Step 3. on to your device's internal storage

Copy the zImage file extracted in Step 5. on to your device's internal storage

Properly eject your device from the computer to make sure the files were copied properly

Reboot the device into Download Mode from the CWM App previously installed

Run Odin 1.85 on your computer (If you still don't have it, get it here: http://xdaforums.com/attachment.php?attachmentid=611625&d=1306787405)

Connect your device (currently in Download Mode) to your computer via the USB cable

Once Odin detects your device, click the "PDA" button and select the Kernel_GTI9100XXKH3.tar file you unzipped in Step 2.

Make sure "Repartition" is not checked and leave all other settings as is

Click "Start" (Odin will flash the stock XXKH3 Kernel and reboot your device into Normal Mode)

When the device boots up, the yellow triange will be gone from the boot screen but the CWM App will still be installed in the Program Launcher, but the Kernel will be stock

Run the CWM App on your device and select "Flash kernel" (this will search for the zImage you copied onto your device in step 8.)

Confirm to flash the zImage (CWM will flash Chainfire's CF-Root kernel and recovery, then reboot the device to normal mode again)

When the device boots up, the yellow triangle will still be gone from the boot screen and you will have Chainfire's custom kernel/recovery and his CWM App installed

Returning the kernel to Hacre's Ninphetamine 2.1.3 kernel:

Reboot into Recovery Mode from the CWM App

Install the ninphetamine-2.1.3-release.zip copied onto your device's internal storage from step 7. of the "Removing the Yellow Warning Triangle from the Boot Screen" Section of this Guide

Reboot your device into Normal Mode

When the device boots up, the yellow triangle will still be gone from the boot screen and you will have Chainfire's custom recovery and his CWM App, and the kernel will be the original kernel that the DlevROM2 was designed with.

I have tried this with all three versions of Dlev's ROMs, and it works 100%.

The credits for this guide go to:

Dlev for the ROM

Chainfire for the Custom Recovery and the CWM App

Intratech for the Stock XXKH3 Kernel

Hacre for the Ninphetamine Kernel

I apologize if I forgot to mention anyone who deserves credit, it is not my intention to leave you out and take credit for your work.

Hope this was helpful.

EDIT: I forgot to mention that I also replaced the apns-conf.xml that comes with DlevROM2, with the one from the stock ROM. It seems more complete than the one provided by AOSP ROMs, at least for my provider. The AOSP version does not have the correct entries for Globe Telecoms Philippines. If you think it would also be useful for you, download it from here: http://xdaforums.com/attachment.php?attachmentid=705029&d=1314725575 unzip it, copy it to your device and overwrite the one in /system/etc using any file explorer that can mount the /system filesystem as R/W (read-write). I used ES File Explorer and enabled root and R/W under settings.