Questions about kernel and CWM? Where is CWM?

Last Updated:

  1. gibby4

    gibby4 New Member

    Hi guys, I was just wondering, I am a little confused about kernels, and where CWM goes. I reading here:
    about CF-root, that it is a modified kernel, and it includes busybox, root, CWM...
    and so I was confused... I thought CWM was installed in the recovery 'part' of the phone.
    How does the phone load CWM, how does it know how it is?
    The bootloader, rom, kernel, and recovery are all separate right?

    Using this kernel could you install CWM twice? How would that work?

    I guess there is something I am missing out on :)
    Thank you for your help guys, all help is appreciated!

  2. Snazzy

    Snazzy Well-Known Member

    You are correct in that CWM is the replacement recovery that gets installed with CF-Root and just about every ROM for the GS2 but it also includes an actual application called "CWM" on the phone itself. The application lets you boot to recovery, manage restores and initiate backups etc. but the CWM application is just a front end for the actual CWM recovery program.
    gibby4 likes this.
  3. gibby4

    gibby4 New Member

    hey thanks for your reply!
    i understand that there is a CWM app, but that is separate, and you don't need to use that, as far as i know.

    i am talking about, when you install the CWM recovery, not the app, where does it install to?

    because, if the CF-root kernel includes CWM (not the app), how can the recovery be in the kernel?

    OR, is that where the recovery is? when i would flash CWM to my phone, would it simply patch it into my current kernel?...
  4. ironass

    ironass Well-Known Member

    gibby4 and Twinn like this.
  5. gibby4

    gibby4 New Member

    oh thank you, but i don't think that is what i meant, i think i thought that cwm was IN the kernel, with the cf-root kernel, and was wondering how that worked, but i think they simply just install the app.
  6. HQRaja

    HQRaja New Member


    I am the writer of the guide ironass posted. The question you brought up hasn't been addressed there because it was out of the scope of that guide, though I have tried addressing it (partially) in another guide I wrote on Android partitions.

    The recovery is basically an alternative bootable system installed in a separate partition, bootable using a separate hardware key combination (or a command). In certain Samsung phones however (like Galaxy S series), the recovery is bundled together with the kernel in the same partition, in order to make room for the Download Mode to be bootable with a separate hardware combination. If I am not wrong, Android allows only three different booting modes by default: Normal mode, fastboot mode and recovery mode. In Galaxy S series devices, they have essentially replaced the fastboot mode with the recovery and used the separate recovery mode to ship their proprietary Download mode.

    Hope this explains.
    Slug likes this.
  7. Slug

    Slug Check six! Moderator

    Welcome to Android Forums HQRaja, and thank you for your clear and concise explanation. I myself knew what Samsung had done but not why, so it was much appreciated.

Share This Page