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

[PORT][RECOVERY] Carliv Touch Recovery v2.7 [Jellybean] for porting to MTK phones

OP carliv

6th October 2013, 12:23 AM   |  #1  
carliv's Avatar
OP Recognized Contributor
Flag εїз
Thanks Meter: 3,566
 
612 posts
Join Date:Joined: Mar 2013
Donate to Me
The version 2.7 is the final version for Jellybean kernels (or older). This is the end of the road for it. Won't be more updates. Instead for newer kernels (kitkat, maybe lollipop) you should check my new version.

DISCLAIMER:
Rooting your phone and using custom Recoveries and ROMS have risks and may result in bricking your device, and has nothing to do with Google or the device manufacturers. In case of any mishap I am not responsible if you brick/ruin your phone in any way.
Basic computer skills are required and minimal knowledges about phones and phones utilities too.
Make sure that whatever you do, you are doing it at your own responsibility.


It is a CWM based recovery and is compatible with it. In this version I used Napstar-xda's full touch module as base. The navigation it is posible by touching the menu item. In long display menu (as choose zip from sdcard) for scroll page down Swipe Right and for scroll page up Swipe Left. For Go Back also Swipe Left.
If the Swipe doesn't work (usually if your phone is multitouch but has only 2 points of touch), use bottom virtual navigation keys or volume buttons Down for Scroll down, Up for Scroll up, and the back button for Go Back.

Version 2.7 update (11-dec-2014):

- rebuilt from base (cwm 6.0.3.7) and add improvements on top.
- reintegrated bottom virtual navigation keys, to compensate the non-function of swipe in some phones
- better compressed backups integration - pigz support from cm-11
- new "nvram backup/restore" menu functionality: the nvram partition will be backed up in clockworkmod/backup/.nvram/nvram-xxxxx folder as nvram.img. This will help if you lose IMEI and other communication features. It will work only if you have the nvram partition defined in recovery.fstab. If the nvram partition is damaged (as in flashing an oversized recovery) this will not help you, and you need SPFlashTools to reflash with format your phone official firmware, and after that flash this recovery, boot in recovery and restore nvram.
- the recovery has now an increased stability, many issues are solved
- the content of the backup folder will contain only what an usual clockworkmod backup contain, and that will make it easy to restore backups made with older versions.
- new GUI images, very light (the difference between non-touch modded cwm and this one is only 14 Kb, for 720x1280 resolution)
- some other changes.


You can flash in recovery the attached AromaFM_installer.zip, and the aromafm.zip will be placed at its place, so you can use aroma fm menu.

For port follow my new guide from here. If you want to use the automated method, that works only for older versions at my friend yuweng's thread.

Currently there are two lunfile paths in the world of mtk devices. This will make your USB Mass storage to work in recovery or not. Search that path in your device to see what you have.
  • Lunfile path 1 (old): "/sys/devices/platform/mt_usb/gadget/lun%d/file" - this can be found in many devices mt6572, mt6589, mt6589T, and other old ones.
  • Lunfile path 2 (new): "/sys/devices/platform/mt_usb/musb-hdrc.0/gadget/lun%d/file" - this is related to new devices mt6582, mt6592...
Find where is your path and download the image to port from correct section.
There are two sections, corresponding to those two lunfile paths, with 15 images each. These 15 images are corresponding to different resolutions. Choose the one that match exactly your phone resolution. If your phone has the resolution 720x1280, then take an image with "720x1280" in name. There are few landscape versions for tablets with landscape format, so don't confuse "720x1280" with "1280x720".

Lunfile path 1 (old): "/sys/devices/platform/mt_usb/gadget/lun%d/file"
Download your resolution from HERE.

Lunfile path 2 (new): "/sys/devices/platform/mt_usb/musb-hdrc.0/gadget/lun%d/file"
Download your resolution from HERE.


IMPORTANT:

These are compiled recoveries for porting purposes only. DON'T take any of them and flash it in your phone as it is. It won't work, they include a dummy kernel. You need to port it to your device as I show in my guide, to make it work.


CREDITS:
- Napstar-xda - for touch module;
- Philz-cwm6 - for get partition size method;
- xiaolu - for the new fonts;
- C3C0 - for initial mtk tweack hint - Unused now;
- Koush and all CWM team for the recovery;
- bgcngm for unpack/repack utils;
- sk8erwitskil for aromafm menu


RULES for posting your ports!
If you manage to port this to your device, add proper credits in your thread, post or article.
If you want that to be posted in a list with working devices, then post here a link to the thread or the post on xda (only on xda). Why not a free hosting link, like google drive, dev-host, mega-coz or other? Because if in the future you will port a new version, you have to replace it in that thread or post and the link from list remain the same.


ATTENTION:
There is a possibility that the touch feature to not work in all phones. It was tested in many phones, and in some of them it doesn't work. There isn't a switch, a toggle or other method to make it to work, it depends on your phone touchscreen capability from recovery. If this doesn't work in your phone, I'm sorry, it happens, and my advice is to try something else.


Few clarifications:
  • I provided all necessary infos to help you to port it to your devices.
  • It is ment to be ported to all MTK devices, but this doesn't mean it will work in all.
  • In some devices with a cheap screen display (usually those with anly one or two points of touch) there is a big chance to not work, or to work only partial.
  • If the recovery has the screen flipped, you need to use the non-touch version, and to compile it by yourself from source, or to ask a developer from your device to do it, with BOARD_HAS_FLIPPED_SCREEN true flag in device BoardConfig.
  • This recovery is compiled in CM-10.1 environment (android 4.2.2) and is proved to be working in devices with kernels up to Android 4.3. For kitkat use my new version.
  • The main purpose for this recovery was to keep it under 6Mb, to fit in that small recovery partition that was used in these MTK phones.
  • If your phone's kernel is bigger than 4.3Mb and the recovery size is 6Mb, don't botter to try it. It won't work, because it will exceede those 6Mb.
Attached Thumbnails
Click image for larger version

Name:	CTR-2_7-01.png
Views:	1318
Size:	54.5 KB
ID:	3059376   Click image for larger version

Name:	CTR-2_7-02.png
Views:	1252
Size:	56.4 KB
ID:	3059377   Click image for larger version

Name:	CTR-2_7-03.png
Views:	1196
Size:	54.2 KB
ID:	3059378   Click image for larger version

Name:	CTR-2_7-04.png
Views:	836
Size:	54.2 KB
ID:	3059379   Click image for larger version

Name:	CTR-2_7-05.png
Views:	760
Size:	56.4 KB
ID:	3059382   Click image for larger version

Name:	CTR-2_7-06.png
Views:	738
Size:	55.7 KB
ID:	3059383   Click image for larger version

Name:	CTR-2_7-07.png
Views:	696
Size:	50.3 KB
ID:	3059384   Click image for larger version

Name:	CTR-2_7-08.png
Views:	628
Size:	54.0 KB
ID:	3059385   Click image for larger version

Name:	CTR-2_7-09.png
Views:	578
Size:	53.9 KB
ID:	3059387   Click image for larger version

Name:	CTR-2_7-10.png
Views:	556
Size:	55.5 KB
ID:	3059388   Click image for larger version

Name:	CTR-2_7-11.png
Views:	546
Size:	56.5 KB
ID:	3059389   Click image for larger version

Name:	CTR-2_7-12.png
Views:	570
Size:	77.5 KB
ID:	3059390   Click image for larger version

Name:	CTR-2_7-13.png
Views:	616
Size:	78.8 KB
ID:	3059391   Click image for larger version

Name:	port_recovery2.png
Views:	680
Size:	102.0 KB
ID:	3059392  
Attached Files
File Type: zip AromaFM_installer.zip - [Click for QR Code] (1.52 MB, 896 views)
Last edited by carliv; 25th December 2014 at 03:51 PM.
The Following 229 Users Say Thank You to carliv For This Useful Post: [ View ]
6th October 2013, 12:23 AM   |  #2  
carliv's Avatar
OP Recognized Contributor
Flag εїз
Thanks Meter: 3,566
 
612 posts
Join Date:Joined: Mar 2013
Donate to Me
Prompt Carliv Touch Recovery, version 2.7, for phones with custpack partition
This is for phones with an extra custpack partition (Alcatel or TCL).

Lunfile path 1 (old): "/sys/devices/platform/mt_usb/gadget/lun%d/file"
Download your resolution from HERE.

Lunfile path 2 (new): "/sys/devices/platform/mt_usb/musb-hdrc.0/gadget/lun%d/file"
Download your resolution from HERE.
Last edited by carliv; 20th December 2014 at 11:47 PM.
The Following 44 Users Say Thank You to carliv For This Useful Post: [ View ]
6th October 2013, 12:23 AM   |  #3  
carliv's Avatar
OP Recognized Contributor
Flag εїз
Thanks Meter: 3,566
 
612 posts
Join Date:Joined: Mar 2013
Donate to Me
Prompt Carliv Touch Recovery, version 2.7, for phones with "ubifs" file system
This is for phones with "ubifs" file system.

Lunfile path 1 (old): "/sys/devices/platform/mt_usb/gadget/lun%d/file"
Download your resolution from HERE.

Lunfile path 2 (new): "/sys/devices/platform/mt_usb/musb-hdrc.0/gadget/lun%d/file"
Download your resolution from HERE.



CREDITS:
- Christian Troy - for ubifs initial code;
Last edited by carliv; 20th December 2014 at 11:48 PM.
The Following 34 Users Say Thank You to carliv For This Useful Post: [ View ]
6th October 2013, 12:24 AM   |  #4  
carliv's Avatar
OP Recognized Contributor
Flag εїз
Thanks Meter: 3,566
 
612 posts
Join Date:Joined: Mar 2013
Donate to Me
List of compiled or ported recoveries for various devices.
Last edited by carliv; 20th December 2014 at 08:43 AM.
The Following 46 Users Say Thank You to carliv For This Useful Post: [ View ]
6th October 2013, 08:54 AM   |  #5  
SuperDroid-BOND's Avatar
Recognized Contributor
Flag Your Heart, SweetHeart
Thanks Meter: 3,451
 
1,337 posts
Join Date:Joined: Dec 2012
Donate to Me
More
Angry CTR Recovery Ported to Canvas 2 / A110/ Noir Q10/Cynus T2
Master @carliv

Master,
Once Again a Masterpiece of yours is on XDA & So, Once again this disciple of yours has done this first.....

Here is My Thread for

CTR Recovery & CWM Recovery 6.0.4.0 for Micromax A110.

Thanks a ton for this again & again. Don't know how to thank you for all of your work. but I do remember my words and waiting for that to thank you once.
Last edited by SuperDroid-BOND; 6th October 2013 at 10:44 AM.
The Following 4 Users Say Thank You to SuperDroid-BOND For This Useful Post: [ View ]
6th October 2013, 11:00 AM   |  #6  
Senior Member
Flag Cebu
Thanks Meter: 172
 
771 posts
Join Date:Joined: Nov 2011
Donate to Me
More
thanks for your efforts!

edit: ported the 720x1280 ver. for my device and it seems to be working all fine but the log info seems to be blocking the navigation button. I guess that's just it, thanks again!
Last edited by dnle71; 6th October 2013 at 11:11 AM.
6th October 2013, 11:27 AM   |  #7  
carliv's Avatar
OP Recognized Contributor
Flag εїз
Thanks Meter: 3,566
 
612 posts
Join Date:Joined: Mar 2013
Donate to Me
Quote:
Originally Posted by dnle71

thanks for your efforts!

edit: ported the 720x1280 ver. for my device and it seems to be working all fine but the log info seems to be blocking the navigation button. I guess that's just it, thanks again!

No. it shouldn't be that way. This has something to do with some values from default_recovery_ui. I put those values arbitrary because I don't have your phones. It's not really blocking, only visual, but the buttons still work. I guess it looks like in the old AmonRa recovery with touch buttons.
I will take that in consideration for future improvements. For other phones with same resolution, may be different.

It will be really helpfull if you post here your phone res and the maxX and maxY values from settings.ini from cotrecovery folder, if you had that installed before.
Last edited by carliv; 6th October 2013 at 11:34 AM.
The Following 6 Users Say Thank You to carliv For This Useful Post: [ View ]
6th October 2013, 11:51 AM   |  #8  
Senior Member
Flag Cebu
Thanks Meter: 172
 
771 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Quote:
Originally Posted by carliv

No. it shouldn't be that way. This has something to do with some values from default_recovery_ui. I put those values arbitrary because I don't have your phones. It's not really blocking, only visual, but the buttons still work. I guess it looks like in the old AmonRa recovery with touch buttons.
I will take that in consideration for future improvements. For other phones with same resolution, may be different.

It will be really helpfull if you post here your phone res and the maxX and maxY values from settings.ini from cotrecovery folder, if you had that installed before.

touch is working even if it was somewhat blocked or something but the touch could extend above even if im not actually touching the nav buttons.

cot settings here.
;
; COT Settings INI
;

[Settings]
Theme = hydro ;
SDTheme = 0;
ORSReboot = 0 ;
ORSWipePrompt = 1 ;
BackupPrompt = 1 ;
SignatureCheckEnabled = 0 ;
BackupFormat = 0 ;
maxX = 742 ;
maxY = 1278 ;
touchY = 1067 ;
Language = en ;
6th October 2013, 01:21 PM   |  #9  
carliv's Avatar
OP Recognized Contributor
Flag εїз
Thanks Meter: 3,566
 
612 posts
Join Date:Joined: Mar 2013
Donate to Me
Quote:
Originally Posted by dnle71

touch is working even if it was somewhat blocked or something but the touch could extend above even if im not actually touching the nav buttons.

cot settings here.
;
; COT Settings INI
;

[Settings]
Theme = hydro ;
SDTheme = 0;
ORSReboot = 0 ;
ORSWipePrompt = 1 ;
BackupPrompt = 1 ;
SignatureCheckEnabled = 0 ;
BackupFormat = 0 ;
maxX = 742 ;
maxY = 1278 ;
touchY = 1067 ;
Language = en ;

Can you download and port again your resolution 720x1280? I changed some settings and it is updated to 6.0.4.0
Tell me if it works to re-compile all res again.
The Following 6 Users Say Thank You to carliv For This Useful Post: [ View ]
6th October 2013, 02:30 PM   |  #10  
Senior Member
Flag Cebu
Thanks Meter: 172
 
771 posts
Join Date:Joined: Nov 2011
Donate to Me
More
Quote:
Originally Posted by carliv

Can you download and port again your resolution 720x1280? I changed some settings and it is updated to 6.0.4.0
Tell me if it works to re-compile all res again.

still the same.. also notice my finger, the nav button detects it.
Attached Thumbnails
Click image for larger version

Name:	06102013314.jpg
Views:	2179
Size:	239.9 KB
ID:	2306113  
Last edited by dnle71; 6th October 2013 at 02:32 PM.

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

Tags
carliv, cwm, mtk, recovery, touch
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes