[Galaxy S II General] ohwarumbloss:
How it all began...

Please read this carefully ! Don´t continue if you don´t understand the following easy statements !

My Motivation

I do like Cyanogenmod as many of you do. Due to Samsung´s strange behaviour the CM Team still has a hard time with Google´s Jelly Bean on our Galaxy S2. It still causes troubles here and there, even tho the Developers did and do a amazing job on it. Many words, I know, ok, let me get the facts straight : I LOVE CM but I NEED some Samsung stuff.

In the past, with ICS it was possible, thanks to some very (very!!!!) good Developers, to dual boot Samsung ICS Rom and CM Roms. When Jelly Bean leak came out, we had to realize that this wasnt possible anymore as we now got the /preload partition because our /system partition wasnt big enough anymore to carry all needed files.

Even tho it is possible to use jazzk´s chameleon and CM Rom with DorimanX Kernel because jazzk didnt use the /preload partition, it was impossible to use another Stock or custom Samsung Rom.

That bugged me.

What I had was :

- a stock deodexed and rooted Jelly Bean Rom by Samsung from here

- a CM 10.1 Rom from here

- THE DorimanX Kernel 7.44 from here

- Rootbrowser Lite from Market (don´t know how to link it, but you will find it)

- TIME

If you have what I had, you can try the following lines...

First of all, I flashed the stock deodexed and rooted Rom I mentioned above (thanks to tedascuen for sharing)

I finished the complete Setup of the Rom, including Google Account, WLAN settings..

Now :

- download Rootbrowser Lite from Market

- use Rootbrowser Lite (now called RB) to delete all apps from /system/apps that I don´t need/use

- after that, reboot into stock recovery by holding Volume up + Home + Power

- do a Factory Reset

- reboot the System and finish the Setup of the Rom (as above)

- download RB Lite from Market again

- use RB to copy big files from /preload/symlink/system/apps to a folder in /data/apps/ that I named "sysapps"

- now delete the old symlinks in /system/apps of the Files above (you will get some errors/FC while doing this)

- now switch to /data/apps/sysapps and start to create new symlinks with RB by longpressing the file and "create shortcut"

- switch to /system/apps again and paste the shortcut (important, do this one by one, show some patience)

- after you created all new symlinks, reboot the system, you will see, all apps work again!

- most of the other apps from /preload/symlink/system/apps will fit into /system/apps but don´t move useless apps like all apps containing "test" in their name or google plus (you can install that later from market) or "swype" or.... I am to lazy to write down all apps I didnt move but with a bit of common sense you will make it for sure.

- after moving the apps to /system/apps you will see that all apps you moved will be set to rw-r-r and all symlinks you created will be set to rwx-rwx-rwx, thats fine !

- reboot the phone, everything should work fine

If so...

- flash the DorimanX Kernel 7.44 and

- reboot into his recovery

- switch to dual-boot options and set up the 2nd Rom

- clone 1st Rom to 2nd Rom

- reboot into 2nd Rom just to check if it works (it will)

now...

- reboot into recovery and install the CM10.1 made by MCM from here

- after the installation has finished, reboot the system and let CM10.1 boot

(GAPPS are not needed, yet but you may install them before you boot into CM)

- I really hope the CM has booted fine, now open STweaks

- in STweaks, change OpenSource Gralloc to Samsung´s Gralloc

- reboot the system and check in STweaks if the change worked (Samsung´s Gralloc)

now...

- reboot into recovery and flash the DorimanX Kernel again (or use Odin)

- after that, reboot again and you will see the Dual Boot Screen, you can choose first or second Rom

- DONE !!!

Another Way was...

I didnt do this very often so please take it easy on me and don´t bash me to hell if it was a stupid idea or impossible to follow at all. It´s just the way it worked out for me after several hours of testing.

Credits and Thanks to :

The Cyanogenmod Team, especially mcm811 for CM10.1

dorimanx for his awesome Kernel

Chainfire, of course for so much!

tedascuen for sharing the stock Rom

Jrummy Apps inc. for Root Browser Lite

The XDA Comunity for sooo much

My Wife for her Laptop and coffee

Greetings

Thomas