Part 1 :- To Flash existing modified EBR files through CWM/TWRP
There are plenty of guides for re-partitioning mtk devices, so why this one?
Well almost all of them suggest to use SPFlashTool to flash the "EBR" Files.
But we can do that by using CWM/TWRP (Custom Recoveries) as well!!!!!
no need to use SPFlashTool!
no need to format the Internal SDCard through PC!!
Just take your modified "EBR" files and put them into a Flashable Zip.
Edit the "updater-script" file to include the following lines.
package_extract_file("EBR1", "/dev/ebr1"); #put the name of your EBR1 file in place of "EBR1" package_extract_file("EBR2", "/dev/ebr2"); #put the name of your EBR2 file in place of "EBR2"
Note :- If your device uses both the files then add both the lines and If your device uses only "EBR1" then add only the line of "EBR1".
Now add the following lines to format your "/system" , "/cache" and "/data" partitions.
format("ext4", "EMMC", "/[email protected]", "0", "/system"); format("ext4", "EMMC", "/[email protected]", "0", "/cache"); format("ext4", "EMMC", "/[email protected]", "0", "/data");
and if you just want to increase the "/data" partition then just include the lines for formatting "/cache" and "/data".
now save the "updater-script" file and replace it in the Flashable zip!!
Or , you can use this sample flashable zip file.
download it and put your EBR files in it!!!!
edit the "updater-script" file according to your need and replace it in the Flashable zip!!
copy the Flashable zip file to your external SDCard
reboot to recovery
select install from zip file and choose the flashable zip file
Remember after flashing the EBR files do not restore your previous CWM/TWRP Backup.
Just Flash any CWM/TWRP Flashable ROM available for your device!!
Wipe Dalvik Cache if you haven't done it already!!
reboot and see for yourself!!!
I will not be in anyway responsible for any damage this might cause to your phone.
if you'll follow the instructions correctly, then everything will be fine.