Hi, Guest! Login / Register

Deals: How to buy a brand new original iPhone, Samsung Galaxy, Google Pixel, Macbook and more for less than $2... LEARN MORE (Mar, 2018)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

[Development] [JellyBean] How to manually port Carliv Touch Recovery to an MTK Android phone

(This post was last modified: 02-24-2015, 08:14 PM by hovatek. )


* Carliv
* Bgcngm
* Michfood


Version 2.7 update (11-dec-2014):
* Rebuilt from base (cwm 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.


* PC
* Download ALL phones Boot & Recovery repack Util for WINDOWS v2
* Stock Boot and Recovery images (see https://forum.hovatek.com/thread-691.html for how to backup)


1. Download Carliv Touch Recovery Image 

For your screen resolution (to check your device's screen resolution, visit http://www.whatismyscreenresolution.com

* Install ROM ToolBox Lite or any root browser
* Launch the root browser and navigate to /sys/devices/platform/mt_usb/ to determine your Lunfile path
* If you have a gadget folder directly inside the mt_usb folder then yours is old, download yours  HERE (try https://www.androidfilehost.com/?w=files&flid=22386 if you're having issues with the link)
* If in the mt_usb folder, you have musb-hdrc.0/gadget instead then yours is new download yours  HERE (try https://www.androidfilehost.com/?w=files&flid=22387 if you're having issues with the link)

2. Unpack the images

* Unpack the ALL phones Boot & Recovery repack Util for WINDOWS v2 zip file and open the folder. You should have a bin folder, MTK_pack, MTK_unpack, STD_pack and STD_unpack.
* Copy the phone's boot image, recovery image and the carliv touch recovery image downloaded into the above folder
* Drag the three images one at a time and drop them over MTK_unpack . The tool will automatically unpack them into folders
* You should now have three additional folders: boot image folder, recovery image folder and carliv recovery folder

3. Edit Carliv recovery.fstab

* Using Notepad++, open recovery.fstab in the phone's recovery folder and also carliv folder (recovery.fstab is located in folder/rmdisk/etc)
* Recovery.fstab contains the mount points. Using the phone recovery.fstab as a guide , edit the carliv recovery.fstab so that its mount points correspond to that in the phone's recovery.fstab then save the modified carliv recovery.fstab

4. Edit carliv recovery  fstab

* Using Notepad++ , open fstab in the boot image folder and also carliv folder (fstab is located in folder/rmdisk)
* Edit the content of the carliv fstab file so that it matches with that from the boot image fstab (you can get the correct mount points from phone's recovery.fstab) then save

5. Replace carliv kernel and kernel_header

* Open the boot image folder and copy kernel and kernel_header. Paste them into the carliv folder. When prompted,go ahead with replacing the existing files in the carliv folder 

6. Edit carliv default.prop

* Open both phone recovery and carliv's default.prop using Notepad++  (default.prop is located in folder/rmdisk)
* Replace the values for the following parameters in carliv's default.prop with the corresponding ones in the phone's default.prop


* For ro.build.description , you'll have a pattern like this:

ro.build.description=xxxxx-user 4.2.1 JOP40D xxxxx_S129_130710 release-keys

replace xxxxx with the value of ro.product.device

For ro.build.fingerprint , you'll have a pattern like this:


replace xxxxx with the value of ro.product.device and yyyyy with the value of ro.product.manufacturer

7. Edit carliv init.rc

* Using Notepad++, open carliv folder's init.rc and the boot image folder's  init.usb.rc (both located in folder/rmdisk)
* In  init.usb.rc , look for

setprop sys.usb.vid xxxx

xxxx is your idVendor

write /sys/class/android_usb/android0/idProduct yyyy

yyyy is your idProduct

* In carliv's init.rc, look for

write /sys/class/android_usb/android0/idVendor xxxx
write /sys/class/android_usb/android0/idProduct yyyy

replace xxxx with your  idVendor and yyyy with your idProduct

8. Repack ported carliv

* Drag the modified carliv folder and drop over MTK_pack
* Once complete, you'll see a file named new_image. Thats your ported Carliv Touch recovery 
Need further assistance? Speak with a Hovatek Representative:
Working Hours: Mondays - Saturdays ; 09:00 - 18:00 (GMT +1:00)
Need further assistance? Speak with a Hovatek Representative:
Working Hours: Mondays - Saturdays ; 09:00 - 18:00 (GMT +1:00)

Users browsing this thread:
1 Guest(s)