[ROOT][TWRP][MOD]Change R819 System Storage up to 3.5GB

Search This thread

distan7

Senior Member
Mar 12, 2011
365
146
Jakarta-Indonesia
Modding partition for MT6589 involves hex-editing two files EBR1 and EBR2 which you can find in ROMs that can be flashed using SP Flash Tool. Editing these files is easy, you only need to change a few things and flash them. Finding such ROM, in other way, is not so easy for this phone.

What I share here is a Aroma Installer file you must flash in TWRP (Did not work on Oppo recovery so please don't ask). Install / flash the zip file just like flashing ROMs and it will start-up a GUI and you just follow the instructions.

First, for the sake of common understanding let's agree with these terms below so you'll know what I mean when I said SD Card or Internal etc.
  • Phone Storage / SD Card : This is where you keep your music, photo, video, downloaded files etc.
  • System Storage / Internal : This is where your phone stores installed apps with their data, dalvik files etc.
  • Oppo ROM : Old default ROM in R819 before official ColorOS (green bootlogo).
  • ColorOS : The current official ROM for R819 (silver bootlogo)
  • Stock ROM / AOSP ROM for R819. Some refer this to Stock ROM, some say AOSP ROM.
Now here are the steps to do this. Looks complicated and advanced ? Well maybe, but not until you try them.

A. Root your device (skip if you're rooted already)
You can do this with simply running an application called Framaroot. Thread at xda-dev here. Choose the latest version, or you can just donwload Framaroot-1.8.1.apk
  1. Install Framaroot then open Framaroot
  2. Choose Install SuperSU and tap on Boromir. You can also try with Faramir (it depends on Framaroot version)
  3. If you see a message saying "Success" then you're rooted. Just reboot your device.
  4. If Framaroot suddenly closed with no message, just simply re-open Framaroot and re-do the Rooting Process
B. Flash TWRP Recovery & Nandroid Backup (skip if you have done this already)
We'll need TWRP Recovery to do this process.
  1. Download TWRP recovery first. Thread at xda-dev here or you can just download openrecovery-twrp-2.6.3.0-R819.img.
  2. Open Google Play and install Mobile Uncle Tools
  3. Flash TWRP using Mobile Uncle Tools :
    • put the downloaded openrecovery-twrp-2.6.3.0-R819.img in root folder of your SD Card
    • Open Mobile Uncle Tools
    • Choose recovery update
    • Choose openrecovery-twrp-2.6.3.0-R819.img (it should be on top of the list)
    • Reboot into recovery and see if you can see TWRP
  4. Make Nandroid Backup
  5. Reboot back to system.
C. Backup, backup, backup
You need to make backup, many kind of backups. Nandroid backups, Application Backup and also your entire SD Card backup.
  1. If you're using ColorOS you can use built-in app called "Backup & Restore". It make backup of your contacts, messages, MMS, call logs, Calendar, Clock (and alarm), Weather, Settings and Theme. It also make backups of your user installed apps and data. Or maybe you have the all powerful Titanium Backup or Helium or other kind of apps that can do backup, please do so. Make backups.
  2. Connect your device to PC and make backup of your SD Card. Everything. This SD Card partition will get resized and needs to be formatted. So this means you'll have a copy of your Backup you made using Application, and Nandroid backup made by TWRP.
D. It's Flashing Time
You're rooted, twrp-ed and backed-up. Now it's time for flashing
  1. Download OPPO-R819-ReParted-v1.5-by_Distan7.zip and copy to your SD Card.
  2. Boot into recovery (TWRP). If you find this hard to do, just open Google Play and download Quick Boot and open it.
  3. In TWRP, tap Install, choose my mod zip file and follow the instructions. You can choose between five partitions size for your Internal storage : 1 GB (Factory Default), 2 GB (recommended), 2.5 GB (my current settings), 3 GB and 3.5 GB. Don't ask about 4 GB please.
  4. After installation, don't forget to Wipe SD Card. Remember SD Card gets partitioned and needs to be formatted. If during boot there's a message about encryption or storage needs repair, just go to settings and find Factory Reset.
  5. Oh by the way, I did tell you to backup stuffs before you start the installer, right ?
E. Restore
Why do you make backups ? So you can restore stuffs. Here are some reading for restoring data :
  1. Your SD Card is now around 1 GB to 2 GB smaller in size, so don't get confused when your data won't fit into your SD Card as it used to.
  2. Restoring Nandroid Backup in TWRP works for me, but some users said they had problem with Google Apps sync after nandroid restore. I don't know if it's related to my mod or not.
  3. You can restore from your backup made in "Backup & Restore" or using Titanium Backup or else.
  4. Don't forget to check your APN, sound settings, bluetooth pairing, WiFi etc.
Small talks
I tried this many, many times, testing the partition result and also the installer. I was about to release EBR1 and EBR2 to be flashed with Flash Tool, but I remember that Meteos APK and ReParted could also flash EBR files. I don't understand anything in Meteos smalife file while ReParted makes more sense. It basically edify updater-script executed under Aroma installer.

I also found out that if you don't have any apps installed on SD Card before installing this mod, there's a good chance you don't have to do a factory reset. All my apps are installed at internal, and flashing this mod many times with different sizes and I didn't have to restore a single app or settings. But SD Card do need to be formatted.

Oh by the way, please leave feedback in the forum so we all can learn too.

Change logs :

2014-01-05 : v1.5 - Add 2.5 GB and 3.5 GB mod
2014-01-04 : v1 - 2 GB and 3 GB mod

Credits :

1. ReParted script is authored by Xakep from lenovo-forums.ru
2. Aroma Installer for ReParted is modified by rainextra
3. Aroma Installer itself is created by Amarullz
4. Mod 2GB, 2.5GB, 3GB and 3.5GB is made by myself
 

Attachments

  • OPPO-R819-ReParted-v1.5-by_Distan7.zip
    1,009.6 KB · Views: 10,572
Last edited:

distan7

Senior Member
Mar 12, 2011
365
146
Jakarta-Indonesia
How I Test This Mod :
  • My phone is running ColorOS v1.0.0i-full. I didn't try this on Stock AOSP or Oppo ROM. In fact I don't have AOSP ROM. However I don't see any reason why this shouldn't work on AOSP ROM or Oppo ROM.
  • I'm using TWRP for recovery. Will this mod work using Oppo Recovery ? I don't know. Maybe someday I'll try. I tested with Oppo Recovery (stock Color OS recovery) and the installer can not run. So you'll need TWRP.
How to Make Your Own EBR Mod :

Inside the zip file you'll find EBR1 and EBR2. These are the original file (1 GB). The other files are self-explained by their file name. If you want to make a 4 GB go ahead yourself. Here's a how-to in xda-dev, the one I found easier to follow. What you need is a hex editor (HxD or WinHex).

EBR 1 (Hex Offset : 000001E0)
1.0 GB : 00 00 83 00 00 00 00 28 22 00 00 00 20 00 00 00
2.0 GB : 00 00 83 00 00 00 00 28 22 00 00 00 40 00 00 00
2.5 GB : 00 00 83 00 00 00 00 28 22 00 00 00 50 00 00 00
3.0 GB : 00 00 83 00 00 00 00 28 22 00 00 00 60 00 00 00
3.5 GB : 00 00 83 00 00 00 00 28 22 00 00 00 70 00 00 00

EBR 2 (Hex Offset : 000001C0)
1.0 GB : 00 00 83 00 00 00 00 54 40 00 FF D7 BD FF 00 00
2.0 GB : 00 00 83 00 00 00 00 54 60 00 FF D7 9D FF 00 00
2.5 GB : 00 00 83 00 00 00 00 54 70 00 FF D7 8D FF 00 00
3.0 GB : 00 00 83 00 00 00 00 54 80 00 FF D7 7D FF 00 00
3.5 GB : 00 00 83 00 00 00 00 54 90 00 FF D7 6D FF 00 00

Use my EBR1 and EBR2 as your base point, see the changes from 1GB to 2GB to 3GB and read the thread above, you can figured out the hex code for editing. Do the same with EBR2. Yes you need to edit both file. I bet making a 2.5 GB or a 4 GB mod isn't hard.

How To Flash Your Own EBR Mod :

Now supposed you've made your 4 GB Mod : EBR1-4GB and EBR2-4GB. Open my zip file (no need to extract) and add these two files along with their friends.

Next step is to modify two files : aroma_config and updater-script

aroma_config
Here's before editing :
Code:
  "<~settings.resize>","",2,
    "1GB",    "Default Factory",0,
    "2GB",    "Recommended",0,
    "3GB",    "For more Space",0
#    "2,5GB",  "<~settings.resizeo3>",0,

Make the change into this :
Code:
  "<~settings.resize>","",2,
    "1GB",    "Default Factory",0,
    "2GB",    "Recommended",0,
    "3GB",    "For more space",0,
    "4GB",    "Give me MORE !",0

updater-script
Here's before editing :
Code:
#if file_getprop("/tmp/aroma-data/customize.prop","selected.1") == "4"
#    then
#      package_extract_file("E25", "/dev/ebr2");
#    endif;

Make the change to this :
Code:
if file_getprop("/tmp/aroma-data/customize.prop","selected.1") == "4"
    then
      package_extract_file("EBR1-4GB", "/dev/ebr1");
      package_extract_file("EBR2-4GB", "/dev/ebr2");
    endif;

Then all you have to do is replace aroma_config and updater-script in the zip file.

Any feedback would be welcome

:)
 
Last edited:

sicksoul

Member
May 14, 2010
34
3
is this file: OPPO-R819-ReParted-v1.5-by_Distan7.zip can be used in other phone (mtk base 6589 with 4 GB Rom) such as lenovo a850,a830,a820,p780?
 

abuthabet87

New member
Mar 1, 2014
4
0
Riyadh
I just followed the instructions and it worked like a charm :)
I also installed the AOSP ROM with root and made huge modifications using xposed framework.
I really like the new experience so far.
 

Supermatt01

Senior Member
Nov 20, 2010
796
94
Surabaya
Redmi Note 10 Pro
8 gigs

Hello, I have the 8 gig device. I'm running a CN rom now though and the partition is not good. 3.xx gigs for internal memory 3.xx gigs for external memory. I want to make it one block of memory. How would I do that? Could I take your updater script and put in the erb files from my stock KK rom and rezip it and install from there? Or will I need to code some stuff?
 

Jacob_DK

Senior Member
Nov 14, 2010
51
33
As an Oppo ambassador, I'd like to thank the OP a lot for making the effort to put some life into this device again. The original 1 GB storage makes the phone almost unusable in the long run.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Modding partition for MT6589 involves hex-editing two files EBR1 and EBR2 which you can find in ROMs that can be flashed using SP Flash Tool. Editing these files is easy, you only need to change a few things and flash them. Finding such ROM, in other way, is not so easy for this phone.

    What I share here is a Aroma Installer file you must flash in TWRP (Did not work on Oppo recovery so please don't ask). Install / flash the zip file just like flashing ROMs and it will start-up a GUI and you just follow the instructions.

    First, for the sake of common understanding let's agree with these terms below so you'll know what I mean when I said SD Card or Internal etc.
    • Phone Storage / SD Card : This is where you keep your music, photo, video, downloaded files etc.
    • System Storage / Internal : This is where your phone stores installed apps with their data, dalvik files etc.
    • Oppo ROM : Old default ROM in R819 before official ColorOS (green bootlogo).
    • ColorOS : The current official ROM for R819 (silver bootlogo)
    • Stock ROM / AOSP ROM for R819. Some refer this to Stock ROM, some say AOSP ROM.
    Now here are the steps to do this. Looks complicated and advanced ? Well maybe, but not until you try them.

    A. Root your device (skip if you're rooted already)
    You can do this with simply running an application called Framaroot. Thread at xda-dev here. Choose the latest version, or you can just donwload Framaroot-1.8.1.apk
    1. Install Framaroot then open Framaroot
    2. Choose Install SuperSU and tap on Boromir. You can also try with Faramir (it depends on Framaroot version)
    3. If you see a message saying "Success" then you're rooted. Just reboot your device.
    4. If Framaroot suddenly closed with no message, just simply re-open Framaroot and re-do the Rooting Process
    B. Flash TWRP Recovery & Nandroid Backup (skip if you have done this already)
    We'll need TWRP Recovery to do this process.
    1. Download TWRP recovery first. Thread at xda-dev here or you can just download openrecovery-twrp-2.6.3.0-R819.img.
    2. Open Google Play and install Mobile Uncle Tools
    3. Flash TWRP using Mobile Uncle Tools :
      • put the downloaded openrecovery-twrp-2.6.3.0-R819.img in root folder of your SD Card
      • Open Mobile Uncle Tools
      • Choose recovery update
      • Choose openrecovery-twrp-2.6.3.0-R819.img (it should be on top of the list)
      • Reboot into recovery and see if you can see TWRP
    4. Make Nandroid Backup
    5. Reboot back to system.
    C. Backup, backup, backup
    You need to make backup, many kind of backups. Nandroid backups, Application Backup and also your entire SD Card backup.
    1. If you're using ColorOS you can use built-in app called "Backup & Restore". It make backup of your contacts, messages, MMS, call logs, Calendar, Clock (and alarm), Weather, Settings and Theme. It also make backups of your user installed apps and data. Or maybe you have the all powerful Titanium Backup or Helium or other kind of apps that can do backup, please do so. Make backups.
    2. Connect your device to PC and make backup of your SD Card. Everything. This SD Card partition will get resized and needs to be formatted. So this means you'll have a copy of your Backup you made using Application, and Nandroid backup made by TWRP.
    D. It's Flashing Time
    You're rooted, twrp-ed and backed-up. Now it's time for flashing
    1. Download OPPO-R819-ReParted-v1.5-by_Distan7.zip and copy to your SD Card.
    2. Boot into recovery (TWRP). If you find this hard to do, just open Google Play and download Quick Boot and open it.
    3. In TWRP, tap Install, choose my mod zip file and follow the instructions. You can choose between five partitions size for your Internal storage : 1 GB (Factory Default), 2 GB (recommended), 2.5 GB (my current settings), 3 GB and 3.5 GB. Don't ask about 4 GB please.
    4. After installation, don't forget to Wipe SD Card. Remember SD Card gets partitioned and needs to be formatted. If during boot there's a message about encryption or storage needs repair, just go to settings and find Factory Reset.
    5. Oh by the way, I did tell you to backup stuffs before you start the installer, right ?
    E. Restore
    Why do you make backups ? So you can restore stuffs. Here are some reading for restoring data :
    1. Your SD Card is now around 1 GB to 2 GB smaller in size, so don't get confused when your data won't fit into your SD Card as it used to.
    2. Restoring Nandroid Backup in TWRP works for me, but some users said they had problem with Google Apps sync after nandroid restore. I don't know if it's related to my mod or not.
    3. You can restore from your backup made in "Backup & Restore" or using Titanium Backup or else.
    4. Don't forget to check your APN, sound settings, bluetooth pairing, WiFi etc.
    Small talks
    I tried this many, many times, testing the partition result and also the installer. I was about to release EBR1 and EBR2 to be flashed with Flash Tool, but I remember that Meteos APK and ReParted could also flash EBR files. I don't understand anything in Meteos smalife file while ReParted makes more sense. It basically edify updater-script executed under Aroma installer.

    I also found out that if you don't have any apps installed on SD Card before installing this mod, there's a good chance you don't have to do a factory reset. All my apps are installed at internal, and flashing this mod many times with different sizes and I didn't have to restore a single app or settings. But SD Card do need to be formatted.

    Oh by the way, please leave feedback in the forum so we all can learn too.

    Change logs :

    2014-01-05 : v1.5 - Add 2.5 GB and 3.5 GB mod
    2014-01-04 : v1 - 2 GB and 3 GB mod

    Credits :

    1. ReParted script is authored by Xakep from lenovo-forums.ru
    2. Aroma Installer for ReParted is modified by rainextra
    3. Aroma Installer itself is created by Amarullz
    4. Mod 2GB, 2.5GB, 3GB and 3.5GB is made by myself