[RECOVERY] ClockworkMod 6.0.3.3 for THL W8/W8+/Beyond/W8s (built from source)

Search This thread

C3C076

Recognized Contributor
Dec 15, 2012
7,746
24,620
Bratislava
ceco.sk.eu.org
ClockworkMod Recovery for THL W8/W8+/Beyond/W8s (MTK6589)
Version 6.0.3.3

Introduction
Hey!
This is my latest ClockworkMod recovery image for THL W8/W8+ (MTK6589) - completely built from source.
After I coded in some MTK6589 specific functionality, this recovery can now make fully consistent backups.
This means you can safely backup/restore between different versions of ROMs (Android versions) and
your device will be able to boot restored ROM that was previously backed up, without any problems.


USE AT YOUR OWN RISK. I TAKE NO RESPONSIBILITY FOR ANY DAMAGE CAUSED TO YOUR DEVICE.


Read carefully before you proceed
- Recovery is dependent on the particular Build Number of your current system. Don't flash recovery image that is
not designed for your build number - it won't work
. Instead, use "How to dump stock recovery image" instructions
below to dump stock recovery. Post it here together with your Build number and I'll take care of the rest.
You can find out your build number in Settings / About phone

- Some THL W8 models can't boot into recovery using Vol+ / Power on combination. Either because you have enabled "Quick boot"
in the accessibility settings or because there's a "recovery-from-boot.p" script present on the system partition that breaks recovery booting process.
In such case, ADB can be used to reboot into recovery.
(use command line: adb.exe reboot recovery (USB debugging must be turned on in Settings / Developer options))

How to dump stock recovery image
If there's already CWM recovery package available for your build number (check "Installation instructions" below to find out),
skip this chapter. Otherwise:

1) Download and install USB VCOM Driver

2) Download, extract and launch SP Flash Tool

3) Use "Scatter-loading" button to load attached scatter file: View attachment MT6589_Android_scatter_emmc.txt

4) Switch to "Read back" tab

5) Add only one row, double click on it, a dialog will pop up:
- set destination file where stock recovery will be saved, press OK.
- another dialog will pop up where you have to:
--- set Start address to be: 0x0000000002D80000 (copy&paste from here to avoid mistakes)
--- set Length to be: 0x00600000 (copy&paste from here to avoid mistakes)
This is how it should look like: rb_recovery.jpg

6) Turn off your phone. Press "Read back" button and connect your phone
If drivers are installed correctly, read back process will begin. If nothing happens,
check device manager if driver is installed correctly, if it shows warning, update driver manually then repeat the Read back process again.

7) Post your dumped recovery image here together with your build number you find in Settings / About phone.
I'll take care of the rest.

Installation instructions
1) Download and install USB VCOM Driver

2) Download and extract SP Flash Tool

3) Download and extract proper recovery image matching your build number
ThL W8 4GB
- ThL_W8.JB.HD.EN.COM.8P32_MT6589V1.0.2_20130319 (W8 4GB international - Android 4.1.2)
- ThL_W8.JB.HD.EN.COM.8P32_MT6589V1.0.4_20130328 (W8 4GB international - Android 4.1.2)
- ThL_W8.JB2.HD.CN.COM.8P32_MT6589V1.0.9_20130418 (W8 4GB Chinese)
- ThL_W8.JB2.HD.EN.COM.8P32_MT6589V1.0.3_20130420 (W8 4GB international)
- ThL_W8.JB2.HD.CN.COM.8P32_MT6589V1.0.3_20130508 (W8 4GB Chinese Lewa OS)
- ThL_W8.JB2.HD.EN.COM.8P32_MT6589V1.0.4_20130510 (W8 4GB international)
- ThL_W8.JB2.HD.EN.COM.8P32_MT6589V1.0.5_20130601 (W8 4GB international)
- THL_W8.JB2.HD.CN.COM.8P32_MT6589V1.0_20130605 (W8 4GB Chinese)
- ThL_W8.JB2.HD.EN.COM.8P32_MT6589V1.0.6_20130807 (W8 4GB international)

ThL W8 8GB
- ThL_W8.JB.HD.EN.COM.8P64_MT6589V1.0.5_20130204 (W8 8GB international)
- ThL_W8.JB.HD.EN.COM.8P64_MT6589V1.0.13_20130312 (W8 8GB international)

ThL W8 16GB
- ThL_W8.JB2.HD.EN.COM.8P128_MT6589V1.0.1_20130506 (W8 16GB international)
- ThL_W8.JB2.HD.EN.COM.8P128_MT6589V1.0.2_20130616 (W8 16GB international)
- ThL_W8.JB2.FHD.CN.COM.8P128_MT6589TV1.0.5_20130626

ThL W8+
- ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.2_20130418 (W8+ 16GB international)
- ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.3_20130425 (W8+ 16GB international)
- ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.4_20130515 (W8+ 16GB international)
- ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.5_20130517 (W8+ 16GB international)
- ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.6_20130606 (W8+ 16GB international)
- ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.7_20130625 (W8+ 16GB International)

ThL W8 Beyond
- ThL_W8.JB2.FHD.CN.COM.8P128_MT6589TV1.0.4_20130614 (W8 Beyond Chinese)
- ThL_W8.JB2.FHD.CN.COM.8P128_MT6589TV1.0.5_20130626 (W8 Beyond Chinese)
- ThL_W8_beyond.JB2.FHD.EN.COM.8P128_MT6589TV1.0.1_20130618 (W8 Beyond International)
- ThL_W8_beyond.JB2.FHD.EN.COM.8P128_MT6589TV1.0.2_20130626 (W8 Beyond International)
- ThL_W8_beyond.JB2.FHD.EN.COM.8P128_MT6589TV1.0.3_20130731 (W8 Beyond international)

ThL W8s
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.2_20130715 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.3_20130815 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.4_20130923 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.5_20131009 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.6_20131016 (W8s international)

4) Run SP Flash Tool, click on "Scatter file" button and choose "MT6589_Android_scatter_emmc.txt" extracted in step 3)

5) Click on RECOVERY item and choose .img file extracted in step 3)

6) Turn off your phone. Make sure USB cable is unplugged. Wait until vibrator indicates it's turned off

7) Click Download button in SP Flash tool, confirm warning complaining about not all files being selected

8) Connect your phone and wait for the flash process to finish (indicated by window with green circle)

9) Unplug USB cable. Hold down Volume+ while turning your phone on to boot into recovery

Sources
CWM: https://github.com/C3C0/android_bootable_recovery
Device config: https://github.com/C3C0/android_device_thl_w8

Credits
- CyanogenMod team
- bgcngm - for MTK Tools needed to repack recovery images into correct format
 
Last edited:

C3C076

Recognized Contributor
Dec 15, 2012
7,746
24,620
Bratislava
ceco.sk.eu.org
Changelog 28/05/2013
- version 6.0.3.3
- synced with upstream sources
- changed font to increase font size
- brought back /sd-ext support
- added custom recovery name and version info
- links to relevant commits: Part1, Part2

Changelog 30/04/2013
- version 6.0.3.2
- fstab: bring in line with CWM partition naming guidelines
- /storage becomes /sdcard (internal SD)
- /sdcard becomes /external_sd (external SD)
- enables selecting internal/external SD when performing
backup, restore, install
- added support for backup/restore of uboot and recovery to maintain backup consistency (detailed info)
- added support for USB mounting both - internal and external SD

Changelog 27/04/2013
- version 6.0.3.1
- added support for boot and recovery partitions so it is possible to backup them (Sources: Part1, Part2)
- added version compatible with Android 4.2.1 (e.g. to be used with GravityMod2)

Changelog 16/04/2013
- version 6.0.3.0
- initial release
 
Last edited:

cmoegele

Senior Member
Jun 4, 2008
185
41
Cool Thank you.
Will give it a try asap ;)

At default the TWRP is using internal memory and not external sdcard, how can it be changed ?
 
Last edited:

C3C076

Recognized Contributor
Dec 15, 2012
7,746
24,620
Bratislava
ceco.sk.eu.org
It is not possible, since MTK has no dedicated individual partitions for boot (kernel) and recovery. They are part of one big memory block that contains some other stuff. CWM nor TWRP can't handle such memory layouts.
However, cache can be backed up.

If you need full backup of stock ROM I recommend using SP Flash Tool to read back memory blocks and store them in bin files one by one.
You have to define the blocks to be read back by specifying their start address and length.
 

C3C076

Recognized Contributor
Dec 15, 2012
7,746
24,620
Bratislava
ceco.sk.eu.org
ClockworkMod updated to 6.0.3.1

Changelog 27/04/2013
CWM updated:
- version 6.0.3.1
- added support for boot and recovery partitions so it is possible to backup them (Sources: Part1, Part2)
- added version compatible with Android 4.2.1 (e.g. to be used with GravityMod2)
 
  • Like
Reactions: ch-vox

ch-vox

Senior Member
Dec 17, 2007
566
182
www.macbook.fr
ClockworkMod updated to 6.0.3.1

Changelog 27/04/2013
CWM updated:
- version 6.0.3.1
- added support for boot and recovery partitions so it is possible to backup them (Sources: Part1, Part2)
- added version compatible with Android 4.2.1 (e.g. to be used with GravityMod2)
strange : when I've tried to upgrade to 6.0.3.1-4.2, it was impossible through CWM upgrade (Installation aborted).
I've then tried with SPFlash Tool : no problem, CWM 6.0.3.1-4.2 is now installed on my W8.
:eek:
 

ch-vox

Senior Member
Dec 17, 2007
566
182
www.macbook.fr
Try reflashing with your current 6.0.3.1 just to see if the result is the same or not. If yes then probably something about SD card...

reflashing 6.0.3.1 from 6.0.3.1 does not work. this SD card has always succeeded in installing CWM or ROMs... :confused:
I've tried to shorten file name, putting it at SD card root... no way.
only SPFlash Tool has succeeded.
 

C3C076

Recognized Contributor
Dec 15, 2012
7,746
24,620
Bratislava
ceco.sk.eu.org
ClockworkMod updated

Changelog 30/04/2013
CWM updated:
- version 6.0.3.2
- fstab: bring in line with CWM partition naming guidelines
- /storage becomes /sdcard (internal SD)
- /sdcard becomes /external_sd (external SD)
- enables selecting internal/external SD when performing
backup, restore, install
- added support for backup/restore of uboot and recovery to maintain backup consistency (detailed info)
- added support for USB mounting both - internal and external SD
 
Last edited:
  • Like
Reactions: koteek

Top Liked Posts

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone