[Oppo Find 7 and 7a] italianquadcore:
Read-Me First

1) This procedure may brick your phone and make it useless. Use this procedure at your own risk.

2) This procedure is not official, so it is not supported by Oppo company.

3) This procedure is only for advanced users with a good low-level knowledge of Android storage and adb-fastboot commands.

4) This procedure WILL ERASE ALL YOUR PERSONAL DATA on your phone. Please BACKUP ALL YOUR DATA before using this procedure.

5) This procedure has been tested only on Oppo Find 7 (x9076) phone.

6) This procedure will use an external Micro-SD card to make user run some scripts.

Goal/Purpose

This procedure will resize the two partitions ("userdata" and "sdcard") used by Oppo Find 7 to store personal data, such as apps, photos, images, and so on.

Due to the fact the Oppo Find 7 (x9076) uses an only-3GB "userdata" partition to store apps, while all the remaining space (24 GB) is used for "sdcard" partition to store other data, this matter doesn't provide with enough space to store apps and their related data.

This procedure should be used to enlarge the size of "userdata" partition, to let user have more space for apps and less space for personal data in order to use some ROMs that currently do not provide with support for unified storage ("Unified Storage Layout" or LVM), such as Color OS, CyanogenMod and other ROMs based on CyanogenMod rom.

With the provided compressed file, you will receive some ".sh" files to be used to resize the storage partitions. The namefile of these scripts just means two numbers, the first one is the new size (in GB) of "userdata" partition, while the second one is the new size (in GB) of "sdcard" partition. So, for example, the script "8_19.sh" should be used to have 8 GB for the resized "userdata" partition, and "19 GB" for the resized "sdcard" partition.

How to

1) Make a backup of all your data on your phone.

2) Download and unzip the compressed file.

3) Just unzip the included "external_sd.zip" file on root of your external MicroSD card.

4) Restart into recovery.

5) Run terminal window and execute "adb shell" to go into adb shell.

6) Run command "cd /external_sd/new_scripts".

7) Be sure that all .sh files are in folder "/external_sd/new_scripts".

8) Run one of the provided ".sh" file. Do not unplug the usb cable and wait until the end of the procedure. If you've selected "unified.sh" script, please remember that you have to update the custom recovery (as described in thread "Unified Storage Layout" - http://www.oppoforums.com/threads/tutorial-unified-storage-layout-for-oppo-find-7a.17952/).

9) Enjoy your new storage partitions.

Issues

1) If the procedure will end with the error "Persist partition is damaged. After rebooting into recovery, please run persist_fix application.", you have to reboot into recovery again, and then run the script included inside "persist_fix" folder (it is part of the zipped file "external_sd.zip").

Make sure that "persist" partition will have the "ext4" formatting, because it is happened, many times, that during backup and restore of "persist" partition, something happens to damaged the "ext4" formatting.

2) It is happened, once only, that you cannot reboot into recovery again due to some problems during backup-restore procedure of "recovery" partition. This problem may be simply solved flashing the recovery with "fastboot" command.

Tips & Hints

1) I suggest users of Oppo Find 7a, to use alternate unified procedures (such as “Unified Storage Layout” or LVM) instead of this procedure, due to low storage sizes. It is a non-sense to waste space for two partitions (one dedicated only to the apps, and the other one to user’s data) when you can use only a big one, shared for both apps and data.

2) If you have not enough know-how to use this procedure or if you are afraid of doing something wrong using this procedure, you can wait for a definitive decision from Oppo about storage layout. With last final release of ColorOS (2.0 kitkat), Oppo still continues to use two partitions, with only 3GB dedicated to apps, and the remaining storage space dedicated to user’s data.

There are some rumors about Oppo regarding storage layout, that is Oppo will use the LVM storage layout in the future. Anyway we hope that Oppo may release the guidelines for storage as soon as possible, maybe with next ColorOS release.

3) This procedure makes a backup of the most important partitions in order to restore them after the resizing procedure. The backup is stored on the external MicroSD card at the end of the procedure, so please keep the backup for future reference and to restore it if something goes wrong in the future.

Please take note that only ColorOS is bundled with updated images of few partitions (some of them managed by the backup/restore procedure), but not for all partitions, so the only way to restore an image of a partition currently is to restore it from a stored image (such as the images stored by this procedure).

4) During testing period, I’ve discovered that “persist” partition, managed by this procedure, may lose the “ext4” file system formatting during the backup/restore procedure. On Internet there is a lot of mainstream about this partition, but mainly there is a lot of confusion regarding it. Someone even suggests formatting (so erasing it) this partition whenever users encounter problems on using phone.

As far as I understand, “persist” partition is a mountable partition, it contains important code (binaries and data), mainly regarding wi-fi connections. It is used by all ROMs, including stock and custom ones.

So it is mandatory to preserve the contents of this partition to avoid bootloops, missing or poor wi-fi connections and other serious problems on using this phone.

If you want to know what is the contents of this partition, you can simply boot your ROM, use a terminal prompt, input “su” (you need root permissions) and simply go into “/persist” folder (it is mounted by the ROM).

At the end of the resize procedure, the “ext4” formatting will be checked in order to prevent any problems on “persist” partition. If “ext4” file system formatting is lost, a message will be shown to the user. The user must reboot into recovery, and then use the script included inside “persist_fix” folder (included in “external_sd.zip” file). This script will restore an image of “persist” partition and then check if the problem is solved or not. Please use this script whenever you have problems on “persist” partition (on Internet there is a lot of mainstream about “persist” partition, not only related to Oppo Find 7).

Copyrights

Some scripts included in this procedure are based on scripts written by Coldbird and included into "Unified Storage Layout" procedure. All rights are reserved to Coldbird.

Thanks

1) Thanks to Coldbird, to aut0mat3d and to all people involved into "Unified Storage Layout" procedure.

2) Thanks to all people involved into "LVM Partition Remapping" procedure.

3) Thanks, in advance, to all people that will test this procedure.

References

Why there is only 9.x GB user space on Find 7a (http://www.oppoforums.com/threads/faq-why-there-is-only-9-x-gb-user-space-on-find-7a.11787/)

Unified Storage Layout (http://www.oppoforums.com/threads/tutorial-unified-storage-layout-for-oppo-find-7a.17952/)

Partition Repairscripts for Oppo Find7, Find7a (http://www.oppoforums.com/threads/tool-partition-repairscripts-for-oppo-find7-find7a.20271/)

LVM Partition Remapping (http://xdaforums.com/find-7/orig-development/ref-lvm-partition-remapping-t2865843)

Tested ROMs

1) Color OS – releases 1.2.6 and 2.0.0 Kitkat.

2) AICP – Release 20141018.

Issue: it is not possible to use the "sdcard0" mounting partition, it is set to read-only permission. To solve this issue, you have to flash another ROM before this, reboot and let it write its own folders onto "sdcard0" partition. Finally you can flash AICP rom and use it normally.

3) AOKP – Nightly 2014-10-18.

4) CyanogenMod CM11 – Nightly 20141025.

5) Dirty Unicorns – 20141011 v8.0 weekly.

Issue: bootloop – When a window, for selecting the language, appears, it seems to be blocked and after 5 seconds it reboots.

6) Mokee – 141025 release

7) Nameless ROM – 20141027 nightly

8) Omnirom 20140923 nightly and 20141031 nightly

Issue: bootloop – When a window, for selecting the language, appears, it seems to be blocked and after 5 seconds it reboots.

9) Paranoid Android – 4.6 beta 5 20141021

Issue : no boot – This ROM doesn't boot at all.

Tested also with 4.6 beta 4 20141007 – no problem.

Tested machine

Custom Recovery : TWRP 2.8.0.1

Google Apps : gapps-kk-20140606-signed.zip

New Internal Storage : 8 GB for "userdata" + 19 GB for "sdcard"

External Storage : 32 gb micro-sd class 10