Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,811,702 Members 53,590 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
distan7
Old
(Last edited by distan7; 8th January 2014 at 06:02 AM.)
#1  
distan7's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 397
Join Date: Mar 2011
Location: Jakarta-Indonesia
Default [ROOT][TWRP][MOD]Change R819 System Storage up to 3.5GB

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
Attached Files
File Type: zip OPPO-R819-ReParted-v1.5-by_Distan7.zip - [Click for QR Code] (1,009.6 KB, 284 views)
The Following 5 Users Say Thank You to distan7 For This Useful Post: [ Click to Expand ]
 
distan7
Old
(Last edited by distan7; 3rd March 2014 at 03:45 PM.)
#2  
distan7's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 397
Join Date: Mar 2011
Location: 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 ? [S]I don't know. Maybe someday I'll try.[/S] 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

Galaxy Mini S5570 (Retired) - Galaxy Tab 2 7" P3100 - Lenovo P780 (MIUI v5) - Oppo R819 (ColorOS)
 
distan7
Old
#3  
distan7's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 397
Join Date: Mar 2011
Location: Jakarta-Indonesia
Reserved
Galaxy Mini S5570 (Retired) - Galaxy Tab 2 7" P3100 - Lenovo P780 (MIUI v5) - Oppo R819 (ColorOS)
 
sicksoul
Old
#4  
Junior Member
Thanks Meter 0
Posts: 16
Join Date: May 2010
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?
 
distan7
Old
#5  
distan7's Avatar
Senior Member - OP
Thanks Meter 140
Posts: 397
Join Date: Mar 2011
Location: Jakarta-Indonesia
Quote:
Originally Posted by sicksoul View Post
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?
I don't think so. Partition layout could be very different across phones.

For Lenovo P780 - 4 GB version you can read from here
Galaxy Mini S5570 (Retired) - Galaxy Tab 2 7" P3100 - Lenovo P780 (MIUI v5) - Oppo R819 (ColorOS)
Tags
ebr, mt6589, partition, r819
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes