How to install ClockworkMod Recovery and CyanogenMod on Samsung Galaxy S (GT-I9000)
In this article I will describe how to install ClockworkMod Recovery and CyanogenMod on the Samsung Galaxy S. By installing CyanogenMod your device will also be rooted. I have written this post while I was installing ClockworkMod Recovery and CyanogenMod on my friends Samsung Galaxy S GT-i9000 (International). I provided the specific software download locations for the GT-i9000 and also the general download links in case you have an other model of the SI. Make sure to have enough battery life throughout the whole installation procedure and to read the disclaimer before starting to follow this guide!
Disclaimer – Read before proceeding:
This article is based on my personal notes and experiences throughout the installation process of ClockworkMod Recovery and CyanogenMod on the Samsung Galaxy S GT-i9000 (international). The described methods worked for me and my specific device just fine, but I will take absolutely no responsibility for any data loss or damage to your smartphone. Only proceed if you know what you are doing and proceed with care.
- Identify your device modelnumber
In order to download the proper version of ClockworkMod Recovery and CyanogenMod, it is important to know the modelnumber of your Samsung Galaxy S. Take your smartphone and open the “settings”, at the bottom of the settings screen choose “about phone” and there you will find the modelnumber. The modelnumber of my friends device is “GT-i9000”, also called Samsung Galaxy S International.
- Backup your data from your phone:
By installing CyanogenMod, the internal storage and virtual sdcard (the /mnt//sdcard folder) will be formated, it is important to backup the data from your phone e.g. the phonebook, photos and so on. You may do this by copying everything you want to keep onto your phones external sdcard, transferring it to your PCs hard drive or moving your stuff into any cloud storage like Dropbox or Google Drive. If you have already rooted your device, then you can install Titanium Backup from Google Play. This app allows you to backup and restore all your apps including the app-data like settings or savegames.
- Install the Android Developer Tools on your computer:
You will need the Android Debugging Bridge (ADB) which is a part of the Android Developer Tools (ADT) in order to be able to detect a smartphone connected to your PC and to transfer data between the PC and Smartphone. You can download it from the Android Developers website. I downloaded the ADT-Bundle-linux-x86_64Bit version, if you have a 32Bit system you may want to download the ADT-Bundle-linux-x86_32Bit version. Extract the downloaded archive to a location of your choice on your filesystem. Example, extract the archive into the subfolder “programs” of your home directory:
$ unzip adt-bundle-linux-x86_64-20131030.zip -d ~/programs/
Like I mentioned before, we will need a tool called “adb” to establish the connection between PC and Smartphone. This tool is located in the subdirectory sdk/plattform-tools/ of the previously extracted Android Developer Tools. Since we don’t want to change into that folder everytime we want to use adb, it is a good idea to make adb executeable from anywhere, by adding a softlink to /usr/local/bin folder. This can be done like this (depending on where you extracted the archive you may need to change the path to adb), example:
$ sudo ln -s /home/myUsername/programs/android-sdk-linux/platform-tools/adb /usr/local/bin/adb
Now you should be able to execute “adb” from any location in the filesystem by simply typing adb in the terminal.
- Enable USB Debugging on your phone:
You will have to enable the USB Debuggin option on your Smartphone in order to be able to establish a connection to the PC via USB cable.
a) If you are on Android 2.x you can do it like this:
Go to Menu>Settings>Applications>Development and check USB Debugging
b) If you have a newer Android Version try this approach:
Go to Settings>Developer options on your smartphone and enable the USB Debugging option. In case you don’t have the Developer options entry in the settings, open Settings>About phone and tap multiple times on the Build number entry. This should enable the Developer options in the Settings menu.
- Learn how to connect the phone to your PC:
In some steps of this “How to” you will be told to connect your phone with the USB cable to your PC. Every time you connect the phone to the PC you should make shure that it is detected properly and that the connection has been established. Do this by executing this command:
$ adb devices
This will start the adb daemon and try to find any android devices connected to your PC. If everything worked properly you should see a outout listing your device, it should look like this:
* daemon not running. starting it now on port 5037 * * daemon started successfully * List of devices attached 2814BCBDBE1C40EB device
If the output says no permission, your device is not detected or there is any other kind of problem: Kill the adb process, e.g. like this:
$ pkill adb
and retry. If it still dosn't work, it could be a permission problem, so try to execute adb devices as root.
1. Downloading CyanogenMod & Google Apps
- Download the latest stable version of CyanogenMod
Download CyanogenMod for your specific device from here: CyanogenMod Device Selection.
Since my friends phone is a GT-i9000 (International) I downloaded the latest stable version from here: Download CyanogenMod 10.2 for i9000
- Optionally download the Google-Apps
This step is optionally, but recommended. The Google Play App-Store is not included in CyanogenMod. If you wish to use Google App market place, you will also have to download the Google-Apps package based on your CyanogenMod version. You can download the right version for your CyanogenMod from here: Google-Apps
- Copy the zip-files to your phones sdcard
Copy the zip-file of the CyanogenMod image (and the Google-Apss zip-file) into the root directory of your phones virtual (/mnt/sdcard/) or external sdcard (/mnt/sdcard/external_sd/). Since you should already have installed ADB (if not read the preparations chapter) you can do this via terminal like this:
$ adb push cm-10.2.0-galaxysmtd.zip /mnt/sdcard/
$ adb push cm-10.2.0-galaxysmtd.zip /mnt/sdcard/external_sd/
Of course you can also transfer the files via network or even directly download them to your smartphone. If you have an external sdcard you can simply put it into your PC and copy the files directly into the root directory.
2. Downloading ClockworkMod Recovery & Heimdall Suite
- Download ClockworkMod Recovery
Download ClockworkMod Recovery for the Samsung Galaxy S to your PC:
Download the right version of ClockworkMod Recovery for your device from this website. However I download this ClockworkMod Recovery GT-I9000 version, because it is the by the CyanogenMod Wiki recommended version for the Galxy S GT-I9000. Unpack the tar archiv, it contains a file named "zImage".
$ tar -xf Semaphore_2.7.4.tar
- Download Heimdall suite
Download the Heimdall Suite to your PC. The Heimdall Suite will be used to flash the ClockworkMod Recovery image to your smartphone.
Heimdall Suite 1.4RC1 Binary 32bit
Heimdall Suite 1.4RC1 Binary 64bit
Unpack the archive after the download has completed
$ tar -xf heimdall_v1.4rc1_x64.tar
and place the Heimdall binary into the same folder as the previously downloaded and unpacked ClockworkMod recovery image.
3. Installing ClockworkMod Recovery
- Boot your smartphone into "Download Mode"
- Power off your smartphone
- Remove the battery, wait at least 5 seconds and put it back in
- Boot your smartphone into "Download Mode" by holding Volume Down & Home & Power in exact this order and keep holding the buttons until you see the Downloading screen.
- Installing and booting into ClockworkMod Recovery
- First connect your smartphones USB-Cable to the Computer (not into an USB-HUB) and then to the smartphone
- Open a terminal on your PC, change into the Heimdall and ClockworkMod recovery folder and start the installation like this (where "zImage" is the file extracted from the ClockworkMod recovery archive):
$ heimdall flash --kernel zImage --no-reboot
Some users reported that they have to write the kernel option with upper case letters, so in case the above command doesn't work, try it this way:
$ heimdall flash --KERNEL zImage --no-reboot
You should see a blue status bar filling up on your smartphones screen and the installation should be finished really quickly. The output of Heimdall should look like this:
Heimdall v1.4 RC1 Copyright (c) 2010-2012, Benjamin Dobell, Glass Echidna http://www.glassechidna.com.au/ This software is provided free of charge. Copying and redistribution is encouraged. If you appreciate this software and you would like to support future development please consider donating: http://www.glassechidna.com.au/donate/ Initialising connection... Detecting device... Claiming interface... Attempt failed. Detaching driver... Claiming interface again... Setting up interface... Checking if protocol is initialised... Protocol is not initialised. Initialising protocol... Protocol initialisation successful. Beginning session... Session begun. Downloading device's PIT file... PIT file download successful. Uploading KERNEL 100% KERNEL upload successful Ending session... Releasing device interface... Re-attaching kernel driver...
- Now reboot your phone into ClockworkMod Recovery by holding Home & Volume Up & Power the same time. Make sure to don't boot back into Android. if you boot back into android your recovery will be reset and you have to redo the process!
4. Installing CyanogenMod & Google Apps
At this point you should be in ClockworkMod Recovery
- Optionally: Make a full system backup
This step is optionally but highly recommended. A full system backup enables you to rollback everything like it was before installing CyanogenMod. You will be able to restore the stock Android with all your data and installed apps.
- Select backup and restore
- Select backup
- After the backup is complete you will return to the main menu/screen
- Wipe all data from the device
- Select the option "wipe data/factory reset"
- Then choose "Yes - Wipe all user data"
- Install CyanogenMod and Google Apps
- Select "install zip from sdcard"
- Then select "choose zip from sdcard" and select the CyanogenMod zip-file
- Confirm your selection by choosing "Yes - install cm-10.2.0-galaxysmtd.zip". Now the installation process should start.
- If you also want to install the Google-Apps redo the same steps, but choose the Google-Apps zip-file instead of the CyanogenMod zip-file
- When the installation is finished go back to the main menu and select "reboot system now"
Now you should see the CyanogenMod loading screen.
Congratulations, you have successfully installed ClockworkMod Recovery and CyanogenMod on your Samsung Galaxy S !
Legal notice: all images in this post (including the title image) are screenshots/photos taken from my phone. All rights to the cyanogenmod logo and android logo belong to their respective owners.
Posted on December 22, 2013, in Android, Install and tagged ADB, ADT, Android, ClockworkMod, ClockworkMod Recovery, Custom mod, CWM, CyanogenMod, flash recovery, gapps, Google Apps, GT-i9000, GT-i9000 international, Heimdall, install, linux, Linux M0nk3ys, Linux Monkeys, recovery, root, S1, Samsung Galaxy S, Samsung Galaxy SI. Bookmark the permalink. 33 Comments.