[Android General] newbit:
Resizing Partition Userdata with internal SD

If your Android System says you cannot install anymore Apk's because of insufficient memory or storage.

You can resize your partition layout much more easier than told in the internet.

You only need to make your resize changes in the scatter file and flash your Fullbackup back including the preloader.bin

You need

- A Fullbackup of your phone -> Full Backup Runbo F1 Phone (MTK 6752A Chipset)

- all binarys extracted from your Fullbackup -> MTK Scatter File Tool Kit by NewBit

- A Backup of your preloader.bin and modified to flash it back -> Backup Preloader.bin and modification for Unbrick and Partition Resizing

- A modified scatter file with your partition changes

How to modify your scatter file for partition resizing

the original scatter file entry says:

- partition_index: SYS0
partition_name: preloader
file_name: NONE
is_download: false
type: SV5_BL_BIN
linear_start_addr: 0x0
physical_start_addr: 0x0
partition_size: 0x40000
region: EMMC_BOOT_1
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: BOOTLOADERS
reserve: 0x00

- partition_index: SYS19
partition_name: userdata
file_name: userdata.img
is_download: true
type: EXT4_IMG
linear_start_addr: 0x61000000
physical_start_addr: 0x61000000
partition_size: 0xDD000000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
reserve: 0x00

- partition_index: SYS20
partition_name: intsd
file_name: NONE
is_download: false
type: EXT4_IMG
linear_start_addr: 0x13e000000
physical_start_addr: 0x13e000000
partition_size: 0x0
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: INVISIBLE
reserve: 0x00

You have to change first partition_size: 0xDD000000 from partition_index: SYS19 (userdata) to 0x1BA000000

Then change linear_start_addr: 0x13e000000 and physical_start_addr: 0x13e000000 from partition_index: SYS20 (intsd) to 0x21B000000

And make sure your preloader.bin is_download: true in partition_index: SYS0 (preloader)

These three entry should now look like this:

- partition_index: SYS0
partition_name: preloader
file_name: preloader.bin
is_download: true
type: SV5_BL_BIN
linear_start_addr: 0x0
physical_start_addr: 0x0
partition_size: 0x40000
region: EMMC_BOOT_1
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: BOOTLOADERS
reserve: 0x00

- partition_index: SYS19
partition_name: userdata
file_name: userdata.img
is_download: true
type: EXT4_IMG
linear_start_addr: 0x61000000
physical_start_addr: 0x61000000
partition_size: 0x1BA000000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
reserve: 0x00

- partition_index: SYS20
partition_name: intsd
file_name: NONE
is_download: false
type: EXT4_IMG
linear_start_addr: 0x21B000000
physical_start_addr: 0x21B000000
partition_size: 0x0
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: INVISIBLE
reserve: 0x00

The complete Scatter file can be found here. View attachment 4064222

Once the scatter file is made for resizing, flashing back your Fullbackup with the new scatter file and modded preloader.bin-> Flashing Fullbackup / TWRP