[Android General] FSadino:
[INCREASE DATA PARTITION] [0,5Gb > 5,5Gb] Modding EBR files & Scatter-File Address

Here is how to increase/decrease /Data partition on any Mediatek devices

You just need to follow all mention steps in order to change Scatter File and EBR files ​

Its very important to take nandoid backup because you will lose all your data

- Make a nandroid backup with recovery (CWM or TWRP - not stock)
- Create new EBR files with EBRTweak
- Put the new EBR files in a folder with scatter file of your ROM
- Check that you installed USB Preloader driver (necessary for Flashtool)
- Download the latest version of [URL="http://xdaforums.com/showthread.php?t=1982576"]Flashtool[/URL].
- Run Flashtool, load scatter file, select DOWNLOAD OLNLY mode, select DOWNLOAD and after 2 second connect the phone (OFF and without battery) to the PC. If flash didn't star leave teh phone connected and insert the battery.
- After flash completion switch on the phone in recovery mode.
- By the recovery restore the Nandroid backup
. By the recovery clear the cache and dalvik.
- By the recovery reboot the phone in standard mode.
- Wait that the phone complete the boot.

New Scatter-File Address

Be sure - USB-Debugging on Phone is on and all proper USB-Driver are installed!

Tools you need:

Let's Start

1. Start EBRTweak and select size for your partition.

Please remember, size from

Userdata

is included.

EBRTweak create for you the new EBR-Files.

Example to 2.5GB

Your Userdata is 1GB. We increase the new size to 2.5GB, then the Userdata have 2.5GB.

1GB before plus 1.5GB from Fat-Partition = 2.5GB = A0000000 Hex Address!

2. Rename your EBR1.bak & EBR2.bak to EBR1_org/ EBR2_Org.

3. Rename your Scatterxxx.txt to Scatterxxx_Org.txt.

4. Next open the Notepad++ and load your Original Scatter.

5. Open Windows Calculator in Hex-Mode and add to your usrdata Address the new Address (38380000+A0000000=D8380000).

6. Look at the userdata bzw. FAT Entry. Change only the FAT-Entry to the new Adress and save it.

Please proof it - be sure you have the correct new Address.

Enclosed you will found the Addresses to change.

7. If you are finished, save the new Scatter to Scatterxxx_2_5.txt and copy the new EBR1 & 2

and the changed Scatter in your "!Files_to_FlashTools" Folder. Rename it to EBR1_2_5/ EBR2_2_5.

If you have newer Processor (MT 659x) or you have created your Backup with MTK v.2.53, than you have the newer Scatter-File.

So, you have to add the new Size to Linear and also to Physical Address.

The changed Linear & Physical-Addresses must be replaced in Fat-Partition.

Tipp: You can try the calculating with your Original Scatter.

The most have Hex 40000000 = 1GB. Also add this to your Linear - and then to your Physical Address.

The correct Result you see under Fat-Section!

For the Partition-Size on Fat-Partition you can use 0x0 as Size.

How to use "EBRTweak"

Step 1: You need EBR1 and EBR2 files from your original stock rom

Step 2: Download EBR Tweak (Included on FSadino_EBR_Changer_Kit)

Step 3: Put EBR1 and EBR2 files in the same folder of the program

Step 4: Now its time to run the program and select the new size to

your phone storage, remember that your internal sd storage will get smaller

Step 5: It's done, you have made ​​two new EBR files (green rectangle) and

two backup files (red rectangle).

Special thanks

nrupesh2912 for is work on A250

gamerboy_010 for testing and support

bovirus for EBRtweak v1.2 and support

grittyKitty EBRtweak v1.0a

Burs EBRtweak 1.0 (First release)

ChinaPhoneArena source

ALWAYS REMEMBER!!!

I Will Not Be Responsible For Any Bricked Devices or Any Problem So Use It At Your Own Risk.​