[Android General] Jitheshwar:
[CENTER][COLOR="Red"]Your warranty is now void.[/COLOR]
I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed. Please
do some research before asking help and reporting bugs and please read the entire OP.
YOU are choosing to make these modifications, and if
you point the finger at me for messing up your device, I will laugh at you.
A lot.[/CENTER]

All suggestions and helps are welcome here so please help me in improving this thread by suggesting your ideas.

This guide will work for any SPRD phone (any SPRD chip) from Old versions of android to latest Oreo but recoveries that I provided in this thread will work for devices from KitKat to Marshmallow no guarantees for older or newer versions.

Buckup! Backup! Backup!

​

Before modifying system it's highly recommended to have full dump of your device. So don't forget to take backup.

It's simple to get custom recovery for rooted users as they can directly backup, modify and flash recovery or boot images on the go with the help of root. But non-rooted users need to do some extra which will be explained later. Follow the below steps:

=>Download and setup AIK (Android Image Kitchen)

=>Grab your stock_recovery.img

For rooted users​

Install Flashify, Rashr, Partitions Backup or like apps (available on play store for free) and backup the stock recovery. If you are using Flashify to backup you have to rename the backed up image with .img extention

For non-rooted users​

Download your stock firmware which will be in .pac extension extract it using this guide and copy the recovery.img

=>Now download custom recovery (for downloads see 2nd post)

=>Port recovery

For PC version of AIK

​

• Extract the AIK on desktop in a folder (extracting inside other folder(s) is not recommended)

• Place stock_recovery.img (use the name recovery.img only I added stock to refer the image) in earlier extracted folder

• Now double click on 'unpacking.bat'

• Now you'll see two folders 'ramdisk (mostly executables)' and 'split-img (kernel to boot recovery) rename those folders like this 'ramdisk.s' and 'split_img.s' (renaming is used to avoid copying/moving needed files)

• Now delete the earlier pasted stock_recovery.img and paste custom_recovery.img (rename it to recovery.img)

• Unpack it just like stock_recovery

• Delete the split-img and rename the 'split_img.s' to split_img

• Open recovery.fstab from /ramdisk.s/etc (stock recovery's fstab) and /ramdisk/etc (custom recovery's fstab) using Notepad++ or with your favorite note editor. In case of TWRP recovery this file will be named as twrp.fstab if there is recovery. fstab you can ignore it.

• Edit the partition names and mount points in custom recovery with your stock recovery's fstab. But in most cases the mount points will be shown like this 'mmclbk0p17 for system partition' in that case you need to change custom recovery.fstab with the mount points of your device, to find out mount points of partitions install Diskinfo from play store and enable all options in it which will show complete information regarding each and every partition on your device

• At last double click on 'repackimg.bat' now you'll see 'image-new.img' which is ported custom_recovery.img for your device

• The final step is flashing the recovery. It's easy for rooted users simply use Flashify app to flash. For non-Root users you need to flash it over fastboot mode for this look at this thread.

For mobile version of AIK

​

You can also port the recovery on-the-go using AIK-Mobile unfortunately to use this needs your device must be rooted with BusyBox (Stephen (stericson) is recommended) installed.

It's a flashable zip but you can extract the zip and place the files manually. Follow below steps for setup:

• Extract the AIK-Mobile.zip

• Paste the AIK-Mobile folder under data/local of extracted zip to /data/local

• Paste files under /bin of extracted zip to /data/local/AIK-Mobile/bin

• Make sure all files including folders are having these permissions "-rwrx-xr-x-".

For placing files, changing permissions and executing scripts 'Explorer' by speed software is recommended.

For porting follow above steps (steps in PC version of AIK) the only difference here is .bat files of PC version will be as .sh in mobile version which are to be executed as root for unpacking and repackaging images.

Note:Follow the instructions properly, don't quote entire OP while asking for help. Due to some touch related drivers missing in kernel of recovery in some devices touch recovery won't work in that case please use Non-Touch recovery. In lollipop or later versions don't flash <3.x.x versions which may result in SD card mounting issues and even flashing errors. First test the recovery that you ported by flash a simple mode (I prefer AIK-Mobile since it doesn't modify the system partition hence there is not chance of bootloop. Also see whether wipe options works properly or not in some devices wiping (even cache) takes ~10m in that case goto settings check the option "use rm -rf instead of formatting".

Hit thanks button instead of posting thanks it'll boost me to create more threads like this.

Credits:

Advan S4P [Official] (fb group), SuDroid Tech (fb group), [MENTION=7598239]@ki[/MENTION] , [MENTION=7606820]Jitheshwar[/MENTION] (it's me:p), and some aliens from other universe.​

Created: 27-09-2017

Last Updated: 27-09-2017