Tutorial/Guide for Re-partitioning MTK6589 + Increase your System & Data Partitions + Flash through CWM/TWRP + no need to use SPFlashTool
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.
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.
Note :- If you are going to increase your "/system" partition then you'll have to format the 3 partitions,
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
Flash it.
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!!!
Disclaimer :-
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.
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.
Code:
[FONT="Comic Sans MS"][SIZE="3"][COLOR="Red"]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"[/COLOR][/SIZE][/FONT]
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.
Code:
[FONT="Comic Sans MS"][SIZE="3"][COLOR="Red"]
format("ext4", "EMMC", "/emmc@android", "0", "/system");
format("ext4", "EMMC", "/emmc@cache", "0", "/cache");
format("ext4", "EMMC", "/emmc@usrdata", "0", "/data");
[/COLOR][/SIZE][/FONT]
Note :- If you are going to increase your "/system" partition then you'll have to format the 3 partitions,
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
Flash it.
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!!!
Disclaimer :-
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.
Last edited: