FORUMS
Remove All Ads from XDA

[PORT] [TOOL] Carliv Touch Recovery for MediaTek devices

1,149 posts
Thanks Meter: 4,067
 
By yuweng, Senior Member on 10th August 2012, 03:40 PM
Post Reply Email Thread
Old Tool
Added on Mar 05, 2014
Updated CTR v2.2 for MTK devices with ubifs ONLY
And Thanks to dhinesh77 for countless beta-testing & most importantly, Master Shifu carliv for looking into those ubifs source code to make it work on MTK devices....

Download link here...

Solution to cannot see whole sdcard is here by Master Shifu himself, it is actually a new feature/ function...
----------------------------------------------------------
Added on Jan 27, 2014
Updated CTR v2.2 Recovery for MT6575,15, 77, 17, 89, 82, 88, 92
MT6572 (ext4 only, ubifs not supported)


Pls support by donation or at least drop your thanks here to encourage Master Shifu for further development...

Download link here

----------------------------------------------------------
Added on June 02, 2014
New Porting Tool CTRv-1.4 for ext4 devices ONLY. . .

Known problems : Touch not working on some MTK devices . . .

Any bugs report here . . .
----------------------------------------------------------
Added on June 10, 2014
New AIO Porting Tool Easy Magic CTR v2.4 Installer for MTK for ALL MTK Cortex-A9/ A7 devices ONLY with either mtd, emmc, ubifs or custpack partition . . .

Any bugs report here . . .

Updates
Thanks to surfturtle for reporting . . .

Workaround : Use Manual mode & select 720x1024 that is the screen res for 720x1280 . . .

This is an AIO porting tool so go ahead & try the differrent res at Manual mode, the unpack/ repack feature, play around with it & you'll learn what is needed for porting custom recoveries . . .
----------------------------------------------------------
Added on June 17, 2014
Users using XP & 720x1280 MTK devices use this fix . . .
----------------------------------------------------------
Added on July 01, 2014
CTRv2.5 refer to here . . .
----------------------------------------------------------
Notice to annoying n00bs & newbies

Most of your questions are already answered on this thread so pls read it...

1) Either your MTK is still ro.secure=1 then use this method here then EXIT/ CLOSE it first then re-start the porting tool...

2) i've already put in alot of error checking to make sure this porting tool works, either the Auto or Manual port, it will leave behind Ported-CTR folder then manually install it via SPFT when it fail to auto install.... Most probably why it fail to install is b'cos you use SuperSu did you bother to look at your MTK device & grant access to Root Shell... There has been cases where the stock recovery is already corrupted then this tool will also port a corrupted CTR too. Re-install your stock 3e recovery.img & make sure you can boot into it then only use the porting tool again or just use the manual port... The differences is Auto will upload whatever recovery already at your device be it older CWM or TWRP & it will repack it with CTR ramdisk. While Manual will use whatever at your stock 3e -> factory_init.project.rc, meta_init.modem.rc, ueventd.rc & etc... Refer to this by Master Shifu carliv... This tool has no log b'cos it is actually a simple copy & paste program, thats what it actually do....

3) Pls bear in mind that this porting tool has been downloaded by many & confirmed working BUT i can't guarantee that it will work flawlessly on your MTK device so continue trying & report back the solution if you found one...

4) This has been mentioned many times on this thread, if you really can't get it to work then don't just say your porting tool doesn't work...

Instead list out everything then it'll be easier to trouble-shoot
a) What OS you are using on the PC & your MTK...
b) Did you disable UAC & Anti-Virus on your PC
c) Did you execute the porting tool at C:\ drive if you're using XP else then at your Desktop READ what the porting tool says & it will ask you to wait then wait for it to continue without pressing the OK button...

As said many times, this porting tool uses Russian Master Shifu Michfood Repack Utils Huge Credits to him, it is actually DOS program with cygwin dll working at the back so all DOS limitation still applies such as it will ONLY operate properly when it is executed at the Desktop on latest OS... Tested working on XP to 8.1

As much info as possible then it'll be easy to identify where it goes wrong & did you bother to read 5 to 10 pages from the back then you would have know what is the latest story...

Last but not least, i didn't compile CTR so any features not working / bugs found pls report it here BUT again, read the whole thread first as most already answered at that thread...

Q&A

1) Touch not working, refer to here...
2) MTK Alcatel devices refer to here & here... Supported on CTRv2.4
3) All MTK devices supported except this...
4) Inverted screen solutions -> Compile your own
5) CTRv2.5
The Following 263 Users Say Thank You to yuweng For This Useful Post: [ View ] Gift yuweng Ad-Free
 
 
10th August 2012, 03:56 PM |#2  
balamu96m's Avatar
Senior Member
Flag Chennai
Thanks Meter: 1,278
 
More
Thumbs up
Nice one bro.....will be helpful for many.......!!
Good to see you back......!
--------------------
P.S: Thinking of creating a Multi-tool for MTK6573.......what are features that can be added bro ??
The Following User Says Thank You to balamu96m For This Useful Post: [ View ] Gift balamu96m Ad-Free
10th August 2012, 10:48 PM |#3  
yuweng's Avatar
OP Senior Member
Thanks Meter: 4,067
 
More
Yo, Bala bro, been quite busy with work, until now only manage to finish this tut...

Yeah, i was thinking about that too, to mod dsixda's android kitchen just for MT6573 platform that includes Bruno Martins's unpack/ repack boot.img, unpack/ repack recovery & port it to CWMR like this tut, replace a2sd with data2ext or ad2sdx; only this two mod stable on MT6573 platform so far that i have tested...

actually did try but give up half way as my scripting skill is still at novice level...

did read it on some other forum that someone is actually doing that too but i never see it got release though...

Well i guess we need dsixda expertise to be able to do that but he is retired now...

Added on Sept 04, 2012 Info Update
Dark Tremor's a2sd/ Apps2sd works well on MT6573 platform after all...

i was using the last version 2.7.5.3 Beta 04 all this while & i always use a2sd datasd all the time & it FC all apps after a few weeks of using/ sometimes a few days even after a fresh install...

After all, DT_a2sd/ apps2sd is actually apps to sd & i always push it as data2sd...

Only until recently that i play with Android Kitchen, use it to extract my system.img & update it with its built-in Darktremor Apps2SD version 2.7.5.2, it works extremely well because 2.7.5.2 doesn't support a2sd datasd feature...

So guys, if you are using DT_a2sd beta 4, don't use the command a2sd data2sd instead use a2sd cachesd...

You can checkout my other post here
The Following 14 Users Say Thank You to yuweng For This Useful Post: [ View ] Gift yuweng Ad-Free
3rd September 2012, 07:48 PM |#4  
Junior Member
Thanks Meter: 1
 
More
great tools and description
4th September 2012, 06:32 AM |#5  
yuweng's Avatar
OP Senior Member
Thanks Meter: 4,067
 
More
hello y2yu,

Glad you find it informative...

According to this site, there will be another 2 new cpu after MT6575/ MT6577... (use google chrome for translation)

This means MT6573 is 5 generation behind MT6588 & it is still unexploit with all info/ tools scattered all over the web...

Thats where i decided to compile all these info & put it here...

Now that i check, i've bought my first mediatek back in 2008...( never knew it until i check it just now ) It has serve me well for almost 2 years in spite of dropping, a few times from 8 feet height when i was on a ladder & it still works ! It was the last drop that spoilt the mic & render it unuseful. It can still make & receive call to date but the other side can't hear what i say...

At that time, made in china phone was famous for its extra loud speaker/ ringtone but doesn't support android back then...

haha, enough of history, have you manage to port CWMR to your MT6573 ? In fact, i have manage to create a plugin for dsixda's Android Kitchen which can port CWMR to any MT6573 with a few copy & paste features just like Android Kitchen...

Still testing it, may be you would like to be the first beta tester...
Attached Thumbnails
Click image for larger version

Name:	1.jpg
Views:	2958
Size:	122.3 KB
ID:	1301097   Click image for larger version

Name:	2.jpg
Views:	2953
Size:	115.7 KB
ID:	1301098   Click image for larger version

Name:	3.jpg
Views:	2956
Size:	135.5 KB
ID:	1301099   Click image for larger version

Name:	4.jpg
Views:	3047
Size:	231.7 KB
ID:	1301100  
The Following 11 Users Say Thank You to yuweng For This Useful Post: [ View ] Gift yuweng Ad-Free
8th September 2012, 09:18 PM |#6  
Member
Thanks Meter: 33
 
More
Thank you so much for this. I managed to "port" cwmr to my phone without going through the build hassle. Thanks also go to koush for the builder. I had downloaded the source but hadn't managed to completely set up my build environment as there are a couple of gotchas to iron out for ROM development.

Anyway, this serves as a good precursor to actually porting a custom recovery to new devices. Just one problem - cwmr does not recognise any of the hardware buttons for the select action. I can only scroll. The phone has 2 side buttons for volume control, 1 power button on top, and at the bottom on the home row there is a home button, the menu (these 2 also scroll, in stock recovery the home button selects), the previous, and the search. [1][2]

Do you happen to have any cure for this? Is there some place I could remap hardware buttons? One more thing. I made sure root shell access was configured but adb shell will not work (insufficient permissions). Also, adb devices, as is the case for stock recovery, will return question marks. Any idea?

edit: It is important to mention that the flashing had some errors:

Code:
/mnt/sdcard # flash_image recovery recovery.img
mtd: read error at 0x00000000 (Out of memory)
mtd: read error at 0x00020000 (Out of memory)
mtd: read error at 0x00040000 (Out of memory)
mtd: read error at 0x00060000 (Out of memory)
mtd: recovery successfully wrote block at 0x00000000
mtd: recovery successfully wrote block at 0x00020000
mtd: recovery successfully wrote block at 0x00040000
mtd: recovery successfully wrote block at 0x00060000
... <snip>
... <snip>
... <snip>
mtd: recovery successfully wrote block at 0x00420000
mtd: recovery successfully wrote block at 0x00000000
The flash of the stock recovery goes without any error.

[1] http://symphony-mobile.com/index.php...&product_id=75
[2] http://www.tinno.com/en/productinfo.aspx?proid=128
The Following User Says Thank You to jason_cheng For This Useful Post: [ View ] Gift jason_cheng Ad-Free
9th September 2012, 08:12 AM |#7  
yuweng's Avatar
OP Senior Member
Thanks Meter: 4,067
 
More
u r most welcome, jason...

i think the button key map is actually built inside /sbin/recovery so there is nothing much you can do about it unless you build the whole recovery from sources & change it from there...

i do have feedback from fellow xda member that has the same problem flashing recovery with error however he reported back, all menu options at cwm works fine...why don't you use mobileuncle tools, its easier that way...found another flashing tool for ZTE, reported unknown image but it works fine on MT6573 platform too...

As for the adb shell at cwmr, it should work by default & if it doesn't then you have the check default.prop & make sure ro.secure=0 As for stock recovery, mine doesn't work at all...

i think after 6.0.0.3 version, ported cwmr has the camera button as enter key for MT6573 if you built it from koush builder...
The Following 7 Users Say Thank You to yuweng For This Useful Post: [ View ] Gift yuweng Ad-Free
9th September 2012, 09:34 AM |#8  
Member
Thanks Meter: 33
 
More
Quote:
Originally Posted by yuweng

u r most welcome, jason...

i think the button key map is actually built inside /sbin/recovery so there is nothing much you can do about it unless you build the whole recovery from sources & change it from there...

i do have feedback from fellow xda member that has the same problem flashing recovery with error however he reported back, all menu options at cwm works fine...why don't you use mobileuncle tools, its easier that way...found another flashing tool for ZTE, reported unknown image but it works fine on MT6573 platform too...

As for the adb shell at cwmr, it should work by default & if it doesn't then you have the check default.prop & make sure ro.secure=0 As for stock recovery, mine doesn't work at all...

i think after 6.0.0.3 version, ported cwmr has the camera button as enter key for MT6573 if you built it from koush builder...

Crap, then I have to dig through the sources really hard. This phone has no camera button.

If I'm not wrong the last time I checked "mobileuncletools" uses flash_image. Either that, or nandwrite, or failing that, dd. Coming from a Linux and UNIX background I'm more comfortable with the simpler underlying commands rather than a complex front-end wrapper around those commands. NAND images have some peculiarities so we kinda have to deal with it I guess.

I had triple-checked that ro.secure != 1 :P I think this is probably a hardware issue where during recovery there is no bridging interface exposed.

Anyway a couple of other things related to the documentation side of this:

* Why not just upload your own recovery.fstab to the builder instead of editing it later?
* Changing the fstab is only needed for those who have an ext-sd, i.e. a second partition for the memory card
* The bin/ folder is empty, and the lib/ folder only contains the ext2 module, so if above not needed, this is also not needed

So in the end, I think we can simply advocate use of the builder as-is. What do you think of putting up a list/database of MTK phones and some details? Like rootable or not, cwmr available or not, etc. I think RootzWiki would be a good place for that?
The Following User Says Thank You to jason_cheng For This Useful Post: [ View ] Gift jason_cheng Ad-Free
9th September 2012, 11:36 AM |#9  
yuweng's Avatar
OP Senior Member
Thanks Meter: 4,067
 
More
AFAIK, most readers at xda are non-registered, only when they are stuck somewhere or they really needed help then only they'll register & start posting; that is including me !

You can see my other post where it is nearing to 300 over downloads while the MTK phones list feedback from users is less than 10 !

AFAIK, all MT6573 are root-able & all needs data2sd mod. There are so many apps & games at google play, MT6573's 256 or 512MB internal memory gets filled up pretty fast !

On adb shell, did you have all the three adb files (adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll) & on linux, i use ./adb shell to get it to work...
The Following 6 Users Say Thank You to yuweng For This Useful Post: [ View ] Gift yuweng Ad-Free
9th September 2012, 06:16 PM |#10  
Member
Thanks Meter: 33
 
More
Quote:
Originally Posted by yuweng

AFAIK, most readers at xda are non-registered, only when they are stuck somewhere or they really needed help then only they'll register & start posting; that is including me !

Very true.

Quote:

AFAIK, all MT6573 are root-able & all needs data2sd mod. There are so many apps & games at google play, MT6573's 256 or 512MB internal memory gets filled up pretty fast !

Indeed. I actually want to try just bind-mounting data to a second partition, but I don't know whether init scripts are supported on this phone (would be better instead of editing the init itself). But I will also try this data2sd mod, haven't looked at it yet. After clearing out loads of preincluded apps I was happy for a while, but am now running out of space again!

Quote:

On adb shell, did you have all the three adb files (adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll) & on linux, i use ./adb shell to get it to work...

Actually I have the Android SDK set up already on my system, so everything is conveniently there including adb. I will have to find some other day to troubleshoot why the bridge would not work during recovery.
The Following 2 Users Say Thank You to jason_cheng For This Useful Post: [ View ] Gift jason_cheng Ad-Free
12th September 2012, 01:12 PM |#11  
Member
Thanks Meter: 8
 
More
re-packing error
Now I am doing this on Xubuntu so maybe that's why it doesn't work:

I get the following when trying to repack:

MTK-Tools by Bruno Martins
MT65xx repack script (last update: 31-07-2012)

Repacking recovery image...
Ramdisk size: gzip: unpack/ramdisk-repack.cpio.gz: No such file or directory
Could not open ramdisk file: ramdisk-repack.cpio.gz


Any ideas?

Unpacking is no problem.
Post Reply Subscribe to Thread

Tags
custom recovery, mt65xx, mtk, porting tool, recovery

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes