Samsung Galaxy S Relay 4G (T Mobile) Full Update Guide
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.
- 1 Before you do anything — Make a backup
- 2.1 Installing the ClockworkMod Recovery (Windows)
- 2.2 Installing the ClockwordMod Recovery (Linux)
- 3 Flashing CyanogenMod
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:
- SMS/MMS messages,
- Call Log,
- Bookmarks,
- Applications; use Titanium Backup or the Astro File Manager, for example,
- Any application data not 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.
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.
-
Follow the guide for setting up the SDK.
-
Download ClockworkMod-based Recovery, Odin, and the drivers for Windows:
-
Install the Windows drivers by running the executable with the Samsung Galaxy S Relay 4G disconnected from the PC.
-
Unzip the Odin archive into any directory.
-
Place ClockworkMod-based Recovery into the Odin directory.
-
Run the Odin executable.
-
Power off the Samsung Galaxy S Relay 4G and connect the USB adapter to the computer but not the Samsung Galaxy S Relay 4G.
-
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. -
Uncheck the box labeled Auto Reboot.
-
Press the dialog box labeled PDA and select the ClockworkMod-based Recovery.
-
Press Start.
-
A blue transfer bar will appear on the device showing the recovery being transferred.
-
Once complete, disconnect the Samsung Galaxy S Relay 4G and remove the battery.
-
Immediately boot into recovery.
-
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. -
Reboot the device.
-
The Samsung Galaxy S Relay 4G now has ClockworkMod-based Recovery installed. Continue to the next section.
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.
-
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.) -
Download and unzip ClockworkMod-based Recovery:
-
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. Commit4f3220646dfebd5c2ba554fca204f28665915955
ande0e84b2f7a28bd188f104f51a845dc4ed8a9b7ea
are known to work with hardware revision12.08
and12.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. Runningaptitude 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
andmake
. I was then able to return to the heimdall directory andmake
successfully.NOTE: Problems have been reported using heimdall with a usb 3.0 bus, use onboard or 2.0 if at all possible.
-
Power off the Samsung Galaxy S Relay 4G and connect the USB adapter to the computer but not the Samsung Galaxy S Relay 4G.
-
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. -
Press Volume UP. You should now see a screen with
Odin Mode
in red at the top, a green android in the middle, andDownloading
below that. -
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 as6860
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. -
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. -
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 likelibusb 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. -
Disconnect the Samsung Galaxy S Relay 4G and remove the battery from the device.
-
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. -
The Samsung Galaxy S Relay 4G now has ClockworkMod-based Recovery installed. Continue to the next section.
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.
- 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.
- 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.
- Boot into the ClockworkMod Recovery.
- 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).
- Select the option to Wipe data/factory reset.
- Then select the option to Wipe cache partition.
- Select Install zip from sdcard.
- Select Choose zip from sdcard.
- Select the CyanogenMod update.zip.
Optional: Install the Google Apps by performing steps 7 - 9 again and choosing the Google Apps update.zip. - 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.
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.