Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP C3C076

16th April 2013, 09:32 PM   |  #1  
C3C076's Avatar
OP Recognized Contributor
Flag Bratislava
Thanks Meter: 11,753
 
4,788 posts
Join Date:Joined: Dec 2012
Donate to Me
More
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: 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: Click image for larger version

Name:	rb_recovery.jpg
Views:	9192
Size:	79.6 KB
ID:	1997431

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_2 0130618 (W8 Beyond International)
- ThL_W8_beyond.JB2.FHD.EN.COM.8P128_MT6589TV1.0.2_2 0130626 (W8 Beyond International)
- ThL_W8_beyond.JB2.FHD.EN.COM.8P128_MT6589TV1.0.3_2 0130731 (W8 Beyond international)

ThL W8s
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.2_201307 15 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.3_201308 15 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.4_201309 23 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.5_201310 09 (W8s international)
- ThL_W8s.JB2.FHD.EN.COM.16P256_MT6589TV1.0.6_201310 16 (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 by C3C076; 20th November 2013 at 03:32 PM.
The Following 49 Users Say Thank You to C3C076 For This Useful Post: [ View ]
16th April 2013, 09:44 PM   |  #2  
C3C076's Avatar
OP Recognized Contributor
Flag Bratislava
Thanks Meter: 11,753
 
4,788 posts
Join Date:Joined: Dec 2012
Donate to Me
More
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 by C3C076; 29th May 2013 at 07:08 AM.
The Following 2 Users Say Thank You to C3C076 For This Useful Post: [ View ]
17th April 2013, 12:07 AM   |  #3  
Senior Member
Thanks Meter: 37
 
167 posts
Join Date:Joined: Jun 2008
More
Thumbs up
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 by cmoegele; 17th April 2013 at 12:26 AM.
17th April 2013, 01:23 AM   |  #4  
NZ-Simplicity's Avatar
Member
Thanks Meter: 10
 
67 posts
Join Date:Joined: Jul 2012
Many thanks for this, I have just ordered a THL W8 and will be trying to root it as soon as I get it, these files may come in handy LOL
17th April 2013, 05:43 AM   |  #5  
C3C076's Avatar
OP Recognized Contributor
Flag Bratislava
Thanks Meter: 11,753
 
4,788 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Quote:
Originally Posted by cmoegele

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 ?

While in Backup screen touch "Storage" button to set preferred backup target.
The Following User Says Thank You to C3C076 For This Useful Post: [ View ]
17th April 2013, 08:14 AM   |  #6  
Senior Member
Thanks Meter: 37
 
167 posts
Join Date:Joined: Jun 2008
More
Quote:
Originally Posted by C3C076

While in Backup screen touch "Storage" button to set preferred backup target.

ok Thx found it.
Other Question: How can I make backup from kernel, uboot, recovery, cache,..?
17th April 2013, 08:45 AM   |  #7  
C3C076's Avatar
OP Recognized Contributor
Flag Bratislava
Thanks Meter: 11,753
 
4,788 posts
Join Date:Joined: Dec 2012
Donate to Me
More
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.
The Following 2 Users Say Thank You to C3C076 For This Useful Post: [ View ]
17th April 2013, 08:54 PM   |  #8  
C3C076's Avatar
OP Recognized Contributor
Flag Bratislava
Thanks Meter: 11,753
 
4,788 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Update zip packages to update recovery via existing CWM or TWRP are now available. First post updated.
The Following User Says Thank You to C3C076 For This Useful Post: [ View ]
23rd April 2013, 05:34 AM   |  #9  
Junior Member
Thanks Meter: 0
 
16 posts
Join Date:Joined: May 2010
Question
can we repartition internal storage THL W8 to be like lenovo p770 (internal memory become 3,3 GB )
http://www.needrom.com/mobile/lenovo-p770-16/

if i want to repartition internal storage THL W8, what tools should i use?

thx
23rd April 2013, 10:12 AM   |  #10  
C3C076's Avatar
OP Recognized Contributor
Flag Bratislava
Thanks Meter: 11,753
 
4,788 posts
Join Date:Joined: Dec 2012
Donate to Me
More
TWRP updated. Now it's possible to backup boot and recovery partitions.
Changelog in the second post.

The Following User Says Thank You to C3C076 For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
cwm, recovery, thl w8, twrp
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes