Hovatek Forum DEVELOPMENT Android [Development] [JellyBean] How to manually port Carliv Touch Recovery to an MTK Android phone
Can't login? Please, reset your password.
Hovatek is recruiting! Apply Now


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

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

hovatek
hovatek
hovatek
Administrator
49,570
08-01-2015, 09:17 PM
#1



Credits

* Carliv
* Bgcngm
* Michfood

Features

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.

Requirement

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

Procedure

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

Code:

ro.product.model
ro.product.brand
ro.product.name
ro.product.device
ro.product.board
ro.product.manufacturer
ro.build.product
ro.product.platform

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

Code:

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:

Code:

ro.build.fingerprint=yyyyy/xxxxx/xxxxx:4.2.1/JOP40D/xxxxx_S129_130710:user/release-keys

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

Code:

setprop sys.usb.vid xxxx

xxxx is your idVendor

Code:

#5.mass_storage,adb
write /sys/class/android_usb/android0/idProduct yyyy

yyyy is your idProduct

* In carliv's init.rc, look for

Code:

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 
This post was last modified: 24-02-2015, 08:14 PM by hovatek.

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
hovatek
hovatek
hovatek
Administrator
49,570
21-02-2015, 02:26 PM
#2
updated

Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.
Users browsing this thread:
 1 Guest(s)
Users browsing this thread:
 1 Guest(s)
YtWhTl
live chat
whatsapp telegram instagram