Skip to content

Samsung Galaxy S Relay 4G (T Mobile) Full Update Guide

aggroskater edited this page Mar 23, 2013 · 14 revisions

layout and huge sections of text borrowed with warmest regards from wiki.cyanogenmod.org

This guide will walk you through the process of taking the Samsung Galaxy S Relay 4G from stock to having the ability to flash the latest version of CyanogenMod.

WARNING: This is an unofficial release. All the warnings count double! Neither ClockworkMod Recovery nor the CM9/CM10.1 images were created by the cyanogenmod team.

Contents

Before you do anything — Make a backup

BACK UP YOUR IMEI! There are several methods, nvbackup is known to work.

Also, don't forget to back up your data. If you have synced the device with a Google account, then the contacts, calendar, Gmail, & select other Google-related data will not be lost and will come back after the next sync. However, you should backup anything you want to keep that is not stored on the SD card:

It would also be a good idea to backup everything stored on the SD card in the rare case the SD card must be formatted to resolve any major problems.

MyBackup Root, SMS Backup & Restore, and Call Backup & Restore are all free applications that can assist with backing up your data.

Installing the ClockworkMod-based Recovery (Windows)

If the Samsung Galaxy S Relay 4G (T-Mobile) already has the ClockworkMod Recovery installed, skip this section.

Warning: Installing a custom recovery image on the Samsung Galaxy S Relay 4G (T-Mobile) will void the warranty.

  1. Follow the guide for setting up the SDK.

  2. Download ClockworkMod-based Recovery, Odin, and the drivers for Windows:

    • ClockworkMod-based Recovery:
      dropbox | goo.im
      md5: 0bedc4ba488e9860d4dd624e24825935
    • Download Odin v3.04: (TODO: someone needs to verify this version works)
      download
      md5: a6e2cfce68b6caf91d29edbb888fa370
    • Drivers: download
  3. Install the Windows drivers by running the executable with the Samsung Galaxy S Relay 4G disconnected from the PC.

  4. Unzip the Odin archive into any directory.

  5. Place ClockworkMod-based Recovery into the Odin directory.

  6. Run the Odin executable.

  7. Power off the Samsung Galaxy S Relay 4G and connect the USB adapter to the computer but not the Samsung Galaxy S Relay 4G.

  8. Boot the Samsung Galaxy S Relay 4G into download mode by holding down Home & Volume Down while connecting the microUSB.
    NOTE: To confirm the device is connected and working, look for the blue COM box with the word Added!! inside.

  9. Uncheck the box labeled Auto Reboot.

  10. Press the dialog box labeled PDA and select the ClockworkMod-based Recovery.

  11. Press Start.

  12. A blue transfer bar will appear on the device showing the recovery being transferred.

  13. Once complete, disconnect the Samsung Galaxy S Relay 4G and remove the battery.

  14. Immediately boot into recovery.

  15. From the terminal, run the following commands:
    adb shell
    rm -f /system/etc/install-recovery.sh
    rm -f /system/recovery-from-boot.p
    NOTE: If either of these files do not exist on the device, ignore any errors and continue to the next step.

  16. Reboot the device.

  17. The Samsung Galaxy S Relay 4G now has ClockworkMod-based Recovery installed. Continue to the next section.

Installing the ClockworkMod-based Recovery (Linux)

NOTE: OSX steps should be somewhat similar.

If the Samsung Galaxy S Relay 4G (T-Mobile) already has the ClockworkMod Recovery installed, skip this section.

Warning: Installing a custom recovery image on the Samsung Galaxy S Relay 4G (T-Mobile) will void the warranty.

You should be comfortable with the Linux command line.

If you are a newcomer to Linux or android ROMs, you should avoid compiling heimdall from source unless you understand the risks.

  1. Follow the guide for setting up the SDK. (Provides adb binary among other development tools; not necessary if you only seek to install CWM recovery so that you may root your device and/or install CyanogenMod.)

  2. Download and unzip ClockworkMod-based Recovery:

    • ClockworkMod-based Recovery:
      dropbox | goo.im
      md5: 0bedc4ba488e9860d4dd624e24825935
  3. Download Heimdall version 1.4RC1 or newer:
    NOTE: As of this writing, 1.4.0 doesn't exist so you will need to install from source. Commit 4f3220646dfebd5c2ba554fca204f28665915955 and e0e84b2f7a28bd188f104f51a845dc4ed8a9b7ea are known to work with hardware revision 12.08 and 12.10

    The following serves as a rough guide for installing heimdall from source:

     $ su
     # apt-get install pkg-config libusb-1.0-0-dev
     # exit
     $ git clone git://github.com/Benjamin-Dobell/Heimdall.git
     $ cd Heimdall
     $ cd libpit/
     $ ./configure
     $ make
     $ cd ../heimdall
     $ ./configure
     $ make
     $ ./heimdall version
     v1.4 RC2
    

    Other packages may need to be installed depending on what is already available on your machine. Typically, if ./configure fails, it will tell you what's missing. And typically, your machine will be missing the relevant *-dev packages. Running

    aptitude search <whatever-library-configure-says-is-missing>

    will typically list a relevant *-dev package.

    As well, I initially tried to build heimdall directly, but make failed, giving the following error:

    No rule to make target `../libpit/libpit-1.4.a', needed by `heimdall'. Stop.

    At that point I went into the libpit directory and performed ./configure and make. I was then able to return to the heimdall directory and make successfully.

    NOTE: Problems have been reported using heimdall with a usb 3.0 bus, use onboard or 2.0 if at all possible.

  4. Power off the Samsung Galaxy S Relay 4G and connect the USB adapter to the computer but not the Samsung Galaxy S Relay 4G.

  5. Boot the Samsung Galaxy S Relay 4G into download mode by holding down Home & Volume Down and then holding the Power button until it vibrates. You should see a screen with Warning!! in green at the top and a caution triangle at the bottom.

  6. Press Volume UP. You should now see a screen with Odin Mode in red at the top, a green android in the middle, and Downloading below that.

  7. Connect the microUSB and verify you can see the device by running from the Linux terminal:
    lsusb
    You should see something similar to:
    Bus 002 Device 035: ID 04e8:685d Samsung Electronics Co., Ltd
    NOTE: If you see the second part of the id as 6860 or the phone model listed, you are probably in the wrong mode. 6860 is the id reported when the device has been normally booted and is being utilized for MTP file transfer to another machine.

  8. Verify that you have permissions to the device, which should be /dev/bus/usb/<bus #>/<device #>
    e.g., in the above example, from the terminal you would run:
    ls -l /dev/bus/usb/002/034

    NOTE: If you only need to use heimdall intermittently, then running the heimdall binary as root will suffice for the purposes of getting CWM recovery installed.

  9. Run heimdall flash --verbose --recovery <recovery file name> --no-reboot

    NOTE: Make sure you use the img file and not the zip. e.g., using the filename above running from the Linux terminal from inside the heimdal git directory:
    ./heimdall flash --verbose --recovery cwm-apexqtmo-2012-10-11.img --no-reboot
    If successful, at the end you should see:
    NOTE: This sometimes really does take several minutes and errors like libusb error -7 whilst receiving packet MAY occur and the process will LIKELY still work.

     100%  
     RECOVERY upload successful
     
     Ending session...
     Rebooting device...
     Releasing device interface...
     Re-attaching kernel driver...
    

    Since we passed the --no-reboot option, the device will not automatically reboot. This is done to avoid having the device automatically revert to the stock recovery image upon reboot. If you hadn't passed this option to heimdall, and failed to disconnect the device from the USB cable and remove the battery in time, then you would have been greeted with the stock android recovery tool, instead of the CWM recovery tool.

  10. Disconnect the Samsung Galaxy S Relay 4G and remove the battery from the device.

  11. Replace the battery and boot into CWM recovery by holding down Home & Volume Up and then holding the Power button until it vibrates.
    NOTE: A corrupted Samsung logo before recovery boots is normal at the current time.

  12. The Samsung Galaxy S Relay 4G now has ClockworkMod-based Recovery installed. Continue to the next section.

Flashing CyanogenMod

NOTE: If the Samsung Galaxy S Relay 4G (T-Mobile) has been rooted, unlocked, etc. through steps other than the method described above or running a custom ROM other than CyanogenMod and you are having issues flashing or booting CyanogenMod, it is recommended the Samsung Galaxy S Relay 4G (T-Mobile) be returned to stock & start over with the full instructions provided above.

Method via CWM Recovery

  1. Download the version of Cyanogenmod that you want (see main wiki page). At this point, CM10.1 is recommended. Optional: Download the Google Apps for the device.
  2. Place the CyanogenMod update.zip file on the root of the SD card. Optional: Place the Google Apps .zip on the root of the SD card also.
  3. Boot into the ClockworkMod Recovery.
  4. Once the device boots into the ClockworkMod Recovery, use the side volume buttons to move around, and either the power button or the trackball to select. Optional: Select backup and restore to create a backup of current installation on the Samsung Galaxy S Relay 4G (T-Mobile).
  5. Select the option to Wipe data/factory reset.
  6. Then select the option to Wipe cache partition.
  7. Select Install zip from sdcard.
  8. Select Choose zip from sdcard.
  9. Select the CyanogenMod update.zip.
    Optional: Install the Google Apps by performing steps 7 - 9 again and choosing the Google Apps update.zip.
  10. Once the installation has finished, select +++++Go Back+++++ to get back to the main menu, and select the Reboot system now option. The Samsung Galaxy S Relay 4G (T-Mobile) should now boot into CyanogenMod.

Method via ROM Manager

NOTE: In order to flash CyanogenMod via the ROM Manager application (as opposed to CWM recovery), root access is required. Attaining root access is outside the scope of this wiki page, but can typically be accomplished by installing Superuser-3.1.3-arm-signed.zip via CWM recovery located at androidsu.com/superuser/. This will install the Superuser application as well as the binary it utilizes to obtain and provide root access to other requesting programs.

TODO: This method not currently documented.