FORUMS
Remove All Ads from XDA

[Guide] [SC8830/SC7731/SC9830] Custom Recoveries Porting guide for Spreadtrum phones.

676 posts
Thanks Meter: 233
 
Post Reply Email Thread
Code:
Your warranty is now void. 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.
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), @@ki , @Jitheshwar (it's me), and some aliens from other universe.


Created: 27-09-2017
Last Updated: 27-09-2017
The Following 2 Users Say Thank You to Jitheshwar For This Useful Post: [ View ] Gift Jitheshwar Ad-Free
 
 
27th September 2017, 07:58 AM |#2  
OP Senior Member
Flag Tirupati
Thanks Meter: 233
 
More
Custom recovery downloads
1) TWRP recovery images

2)Cyanogen recovery (for lollipop)
3)Cyanogen recovery (for kikat)
4)MIUI recovery
5)Ultra CWM
6)Temporary CWM (only for KitKat and older
7)Temporary Philz (only for KitKat and older)
Temporary recoveries provided here are not for porting. You can flash those zips directly from you stock recovery these recoveries will have basic functions like flashing ROMs, Wiping (in some devices it'll take too long to wipe so just use factory reset option of stock recovery and then flash this recovery finally the ROM. Back up option of recovery might not be fully functional. Scrolling is glitchy but it'll work when you press button. These are more for users who are unable get working recovery
The Following 2 Users Say Thank You to Jitheshwar For This Useful Post: [ View ] Gift Jitheshwar Ad-Free
27th September 2017, 08:00 AM |#3  
OP Senior Member
Flag Tirupati
Thanks Meter: 233
 
More
Reserved for FAQ.
The Following 2 Users Say Thank You to Jitheshwar For This Useful Post: [ View ] Gift Jitheshwar Ad-Free
27th September 2017, 08:02 AM |#4  
OP Senior Member
Flag Tirupati
Thanks Meter: 233
 
More
The Following 2 Users Say Thank You to Jitheshwar For This Useful Post: [ View ] Gift Jitheshwar Ad-Free
20th December 2017, 01:54 PM |#5  
Senior Member
Thanks Meter: 29
 
More
Do you know how to port boot to help twrp recovery mode boot up ? Please guide me.

Boot Secure & twrp
25th February 2018, 01:36 PM |#6  
unknown's Avatar
Senior Member
Flag Hanoi
Thanks Meter: 501
 
Donate to Me
More
Quote:
Originally Posted by Jitheshwar

I have fpt x50 , vn phone , which runs android 7.0 with sc7731c
Will this guide work ??
5th August 2018, 03:13 PM |#7  
HemanthJabalpuri's Avatar
Senior Member
Flag Repalle
Thanks Meter: 225
 
More
Quote:
Originally Posted by Jitheshwar

..

Sir...
you wrote that delete only split_img.s.....
but not ramdisk.s.......
Is there any problem will arise when repacking with ramdisk.s with ramdisk and split_img of custom recovery?
14th August 2018, 09:08 AM |#8  
OP Senior Member
Flag Tirupati
Thanks Meter: 233
 
More
Quote:
Originally Posted by HemanthJabalpuri

Sir...
you wrote that delete only split_img.s.....
but not ramdisk.s.......
Is there any problem will arise when repacking with ramdisk.s with ramdisk and split_img of custom recovery?

Read again carefully you have to pack custom recoveries ramdisk with stock split_img and reversing the process will mess up the recovery and then you have to flash the stock recovery. So read the guide carefully step-by-step and follow the process exactly unless you know different working method.
The Following User Says Thank You to Jitheshwar For This Useful Post: [ View ] Gift Jitheshwar Ad-Free
14th August 2018, 09:11 AM |#9  
OP Senior Member
Flag Tirupati
Thanks Meter: 233
 
More
Quote:
Originally Posted by unknown

I have fpt x50 , vn phone , which runs android 7.0 with sc7731c
Will this guide work ??

Give it a try it may work. But none of the recoveries that are provided here will work for your device, you need to find Android 7.0 and later recoveries which will be compatible with your chipset model.
The Following User Says Thank You to Jitheshwar For This Useful Post: [ View ] Gift Jitheshwar Ad-Free
14th August 2018, 09:15 AM |#10  
OP Senior Member
Flag Tirupati
Thanks Meter: 233
 
More
Quote:
Originally Posted by kaew158

Do you know how to port boot to help twrp recovery mode boot up ? Please guide me.

Boot Secure & twrp

TWRP has nothing to do with boot.img. If you are not able to boot to recovery try different key combination. Is you messed up recovery too then flash it via fastboot and then flash the stock Rom.
The Following User Says Thank You to Jitheshwar For This Useful Post: [ View ] Gift Jitheshwar Ad-Free
14th August 2018, 12:08 PM |#11  
HemanthJabalpuri's Avatar
Senior Member
Flag Repalle
Thanks Meter: 225
 
More
Quote:
Originally Posted by Jitheshwar

Sir finally the process is to pack
⇛split_img of stock recovery ......
⇛ramdisk of custom recovery you listed by replacing recovery.fstab file

Some doubt are ... from where the recoveries are taken sir?
another one is can i port a custom recovery made for similar device to my device by using these steps?

Thanks for supporting spreadtrum devices....
Post Reply Subscribe to Thread

Tags
custom recovery, sc7731, sc8830, sc9830, sprd

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

Advanced Search
Display Modes