[SC7731/SC8830/SC9830][Lollipo+Kitkat]Rooting, Recovery and Custom Rom Porting and Installing Full Tutorial


1) Android users....:P 
2) For kitkat/Lollipop users having chipset spreadtrum sc7731/sc8830/sc9830 (sc7731 based)


How to port spreadtrum Custom recovery


For making custom recovery we need the stock recovery...
For that we have two methods....

Step 01 :

1) Download your stock firmware file......which should be in .pac format......(Google it)
2) Now we need to extract the stock recovery from it.....which should be in .img format..

Folllow this guide : Click here


Step 02 :

  • If you have rooted your device......
  • Then download and install Wanam partition app in your rooted device .....
  • Open Wanam partitions .......
  • Give it root permisions....
  • Now scroll down and click on recovery ..... 
  • Backup it.......
  • Now you have backup of your stock recovery.......

Step 03 : 
Now we will port custom recovery for our device......
First download (anyone)....[TRY ALL TWRP RECOVERIES ......if touch is not working after porting recovery then try other recoveries]


1) TWRP Recovery (For kitkat Users)
TWrp Recovery [Touch bug in some phones]

2) TWRP Recovery (For lollipop users)
TWRP Recovery [Touch bug in some phones]

3) MIUI Recovery [Fully function.....backup,restore ....]
MIUI Recovery

4) Ultra CWM Recovery
Ultra CWM Recovery

5) Cyanogenmod Recovery [only for flashing zip files][Temporary recovery]
Cyanogenmod Recovery

6) Philz Non-Touch Recovery [only for flashing zip files][Temporary recovery]
Philiz Non-Touch Recovery

7) MIUI Themed Recovery
MIUI Themed Recovery

8) Temporary CWM Recovery
Temporary CWM Recovery

9) TWRP Recovery [lower version](it is in zip file.....first extract the .img file)
TWRP Recovery

10) TWRP [lower version]
TWRP Recovery

11) TWRP V3.0.0 Bugless Recovery [Touch bug in some phones]
TWRP V3.0.0 Bugless Recovery

12) TWRP Recovery Beta
TWPR Recovery Beta


Now follow this Guide.......

Things u will need

1.Windows PC
2.carliv image tool.
3.Stock Recovery ..
4.A Custom Recovery that matches with ur phone chipset.
5.Ur flash file -->If Any thing goes wrong ur flash file will help u to recover<--
6.working brain.

See this video: How to port spreadtrum recovery


  

Or Lets Start

[1] Create a working folder.




[2] Again create two folder in the working folder stock and port.




[3] Extract the img tool in both folder.




[4] Now Paste the stock and port recovery in recovery resources folder




[5]Now go to ur working folder>stock and run carliv.bat




[6] Now press " r " and Enter




[7] Now select ur recovery number and enter




[8]now press "1" and enter




[9]wait for unpack then close it




[10] Now go to port folder and run the carliv.bat in port folder




[11] Now press "R" and enter




[12] Now press "1" and enter




[13] Now wait for extract and dont close this just minimize the it.




[14] Now open the new folder s in the stock and port folder's.




[15] Now copy this files from stock to port:

recovery.img-base
recovery.img-cmdline
recovery.img-dt
recovery.img-kernel
recovery.img-kernel_offset
recovery.img-pagesize
recovery.img_offset
recovery.img-compress
recovery.img-tags_offset




[16] Now go to ramdisk > etc now open "recovery.fastb" with notepad++ in both folder (stock and port)




[17] Now match the path of /system , /data , /chahce from "stock recovery.fastb" to port "recovery.fastb"




[18] Now Save It.




[19] Now open the minimized cmd/carliv then press any key.




[20] Now press "2" and enter.




[21] Now go to port > output then u will see ur ported "recovey.img"






Now if you followed all steps clearly then......You have successfully ported custom recovery for your device.....

[Note:Temporary recoveries are only for flashing..... do not use them for porting...]


Step 04 :
Flashing custom recovery

If your phone is rooted.....
Then download flashify/Rashr from play store and flash with it....

If your phone is not rooted.....
Then flash it via fastboot.....

Now you have custom recovery installed......


How to port SC7731/SC8830 Custom Rom


Rooting:
----Now download this zip file.....and transfer to ur phone.....
Click here

Boot to recovery by pressing Power button+Vol down button respectively.......(it may be different for your device)
Now click on install and choose the zip file we have downloaded.......Reboot
Now you have successfully rooted your device....
Check the root access by Root checker app......

Now come to the second part......i.e......to port custom roms to our device.......
Pre-required things .......

1) A zip extractor and compressor......
2) Boot.img of your device......
3) Brain.....
4) Little patience........
5) Customrom(i will provide the link)

FOR KITKAT USERS

Step 1: Make a folder...
Extract the customrom.zip to port folder

Step 2 : Delete from port folder and paste it from your stock rom(u can take the files by using a root explorer from your phone)

---Open system in port folder

1) Open LIB folder
Delete these Folders in lib folder and replace with the folder from your stock rom

/egl ( for fix graphic )
/hw ( for fix audio, sensor, camera, GPS, bluetooth, & FM Radio )
/modules ( for fix Wi-Fi, bluetooth, graphic, mounting partition, & FM Radio )
/soundfx ( for fix audio )

Add or replace these files from your stock rom

[Note: If some files are not present then ignore]

libaudio-resampler.so ( for fix audio)
libaudioeffect_jni.so ( for fix audio )
libaudioflinger.so ( for fix audio )
libaudiopolicy.so ( for fix audio )
libaudioutils.so ( for fix audio )
libbluetooth_jni.so ( for fix bluetooth)
libbt-client-api.so ( for fix bluetooth )
libbt-hci.so ( for fix bluetooth )
libbt-utils.so ( for fix bluetooth )
libbt-vendor.so ( for fix bluetooth )
libEGL.so ( for fix graphic )
libengbt.so ( for fix bluetooth )
libGLES_trace.so ( for fix graphic )
libGLESv1_CM.so ( for fix graphic )
libGLESv2.so ( for fix graphic )
libhardware.so ( for fix Fm Radio )
libhardware_legacy.so ( for fix bluetooth & Wi-Fi )
libMali.so ( for fix graphic )
libRS.so ( for fix Fm Radio )
librs_jni.so ( for fix Fm Radio )
libRScpp.so ( for fix Fm Radio )
libRSCpuRef.so ( for fix Fm Radio )
libRSDriver.so ( for fix Fm Radio )
libSR_AudioIn.so ( for fix Fm Radio )
libsrec_jni.so ( for fix Fm Radio )
libsrid.so ( for fix Fm Radio )
libtinyalsa.so ( for fix audio )
libtinyxml.so ( for fix audio )
libwebrtc_audio_preprocessing.so ( for fix audio )
libwpa_client.so ( for fix Wi-Fi )

2) Open BIN folder
Add or replace these files from stock rom

bdt ( for fix bluetooth )
dhcpcd ( for fix bluetooth & Wi-Fi )
hostapd ( for fix bluetooth & Wi-Fi )
phoneserver ( for fix Internet from Mobile Data )
start-ssh ( for fix Tunneling VPN Access networking )
tinycap ( for fix audio services )
tinymix ( for fix audio services )
tinyplay ( for fix audio services )
wcnd ( for fix bluetooth )
wpa_cli ( for fix Wi-Fi )
wpa_supplicant ( for fix Wi-Fi )

3) Open etc folder
Delete these folders in port folder and paste from you stock rom......

bluetooth ( for fix bluetooth )
dhcpcd ( for fix bluetooth & Wi-Fi )
wifi ( for fix wifi)

Add or replace these files from stock rom.....

audio_effects.conf ( for fix audio services )
audio_hw.xml ( for fix audio hardware integration )
audio_para ( for fix audio hardware integration 
audio_policy.conf ( for fix audio services )
connectivity_calibration.ini ( for fix Wi-Fi )
connectivity_configure.ini ( for fix Bluetooth )

tiny_hw.xml ( for fix audio hardware integration )

4) From system/usr/ folder 
delete idc folder in port and paste from your stock....

5)  Delete boot.img and logo.bin(if any ) in you port folder ........and add your stock boot.img
6) Now compress it as zip and flash through recovery.....

First wipe data,dalvik,cache then flash the rom..

[Note: Do not use this method to port any miui or a rom with theme chooser]

Custom Rom Download Link

For Emui Kitkat Based Rom:

Guide for porting Emui roms(Kitkat)...Use the above method.....
the only change is that we have to do some modifications in stock boot.img.

Pre required things....

1) A img file extractor(like AIK,CARLIV.......for more google is there)
2) your stock boot.img....

Lets start .....
Step 1) Unpack boot.img stock
Step 2) Move to ramdisk folder and find file init.environ.rc
Step 3) Open init.environ.rc in a text editor.
Step 4) Find line "Export bootclasspath....
Step 5) Select line from export bootclasspath ......to the end and replace with this


export BOOTCLASSPATH /system/framework/core.jar:/system/framework/conscrypt.jar:/system/framework/okhttp.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/framework2.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/mms-common.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar:/system/framework/webviewchromium.jar:/system/framework/globalconfig-common.jar:/system/framework/hwEmui.jar:/system/framework/hwServices.jar:/system/framework/hwAndroid.policy.jar:/system/framework/hwframework.jar:/system/framework/hwcustframework.jar:/system/framework/HwKeyguardFlash.jar

Step 6) Save file and then repack img.....place it in emui rom 


For Lollipop User :

Step 1: Make a folder...
Extract the customrom.zip to port folder


Step 2: Delete from port folder and paste it from your stock rom(u can take the files by using a root explorer from your phone)


---------Open system folder...........

1) Open bin folder 
Delete this file in port folder and copy from your stock sensorservice

2) Open etc folder
Delete these folder in port and copy these folders from stock...

Bluetooth
dhcpcd
wifi 
permissions

Delete this file from port folder and copy from your stock....
fallback_fonts.xml

3) Open lib folder
Delete these folder from port and copy from stock

egl 
modules

Delete these files from port and copy from stock....

libsurfaceflinger.so
libsensorservice.so
libmedia_jni.so
libEGL.so
libGLES_trace.so
libGLESv1_CM.so
libGLESv2.so
open hw folder and replace from your camera.sc8830.so and sensors.so

4) Copy the whole usr folder to port.......except a file named keylayout in usr folder

Now compress it and and flash......
First wipe data,dalvik,cache then flash the rom..

Custom Rom Download Link


Credit:

  1. SU Droid Tech group
  2. MTK Rom Devlopment
  3. Advan s4p and s4k group 
  4. Spreadtrum porting assassins
  5. Parthib
  6. Android MTK
  7. And all who helped me......:)

Comments