[Desire 626 Android Development] sandix:
THIS MOD IS FOR THE METROPCS VARIANTS ONLY!!!!

Most of you reading this will know me from my AdvancedStock ROM. Well This new mod I created will allow you to mount an External Partition on the external SD Card as the /data partition on the phone allowing for as much space as you want on the phone for all apps, user data, pretty much everything. This mod replaces the usual /data mount point so that the SD Card can take over. It is a little complicated to explain but here goes:

Partition: A specific area of the drive.

Mount Point: Where the Partition is mounted during or after boot.

NAND: Internal Storage

SD Card: Your EXTERNAL SD Card. (Not INTERNAL)

Your phone has whats called partitions on its internal NAND storage device (mmcblk0). This storage device holds the OS, User data, etc. This NAND is what is changed when flashing ROMs, Wiping data, etc. Your phone also has what is call mount points. Mount points, for all intents and purposes, is a sort of folder on the NAND storage that can mount these partitions so your phone boots up, can download things, run apps, etc. This mod changes the /data mount point (Where all USERDATA is stored, like apps, app data, settings, wifi, etc.) to the SD Card(mmcblk1). Doing this mod, you will have 2 partitions on the SD Card, mmcblk1p1 and mmcblk1p2. This mod, in order to be used, requires that the SD Card have TWO(2) partitions. mmcblk1p1(fat32), & mmcblk1p2(ext4). This new kernel will use the mmcblk1p2 partition to store the USERDATA by replacing the mount point that was originally mmcblk0p2 (Or something to that affect). This is done by unpacking the kernel modifing the fstab(File with a list of mount points and partitions).

So at the end of formatting the SD Card the partition table should look something (does NOT need to be exact:)

----------------------------------------------

| FAT32(500MB) | EXT4(28GB) |

----------------------------------------------

PARTITION 1 | PARTITION 2

mmcblk1p1 | mmcblk1p2

I hope this explination helps everyone under stand exactly what this does. This is not a apps2sd mod, this is a DATA2SD mod. ALL user data, not just apps, will be stored on the SD Card.

Wiki: https://urgero.org/626ExtData

Download: https://www.mediafire.com/?poalj63aubajkd2

Need to Factory Reset (Post MODDED KERNEL install): https://www.mediafire.com/?qaxcyhxusfc1f2u (Flash in TWRP, Not tested)

Download for latest Firmware(1.23.155.0.3): https://www.mediafire.com/?0po4jm2a6k8rx7u

Warnings:

You always run the risk of bricking a device when using non-oem firmware.

Although I have tested this extensively (And currently using it as my Daily Driver) expect bugs.

Under Settings -> Storage you will see "Unavailable/8.00GB" This is fine and can be ignored.

This can cause a bootloop if not used properly. and can Soft-Brick your device.

This process requires the phone to act AS IF it was factory data reset. But it was not. You will need to re-download all your apps, configure the phone again as if you did a factory data reset. This is required because of the new kernel. If you want to revert back to before, just flash the boot from the backup you will be making in the install steps.

Notes before installing:

1. The external data partition MUST be Partition 2 no if ands or buts!

2. This **MAY** cause some lag on the device if the SD Card is class 4 and lower, or if the SD Card is old.

3. The partition SIZES do not matter as long as there are two partitions as explained in the instructions.

4. The Wipe data function in TWRP will STILL BE MAPPED TO THE INTERNAL DATA NOT THE NEW EXTERNAL ONE SO DO NOT WIPE DATA OR FACTORY RESET WILL USING THIS KERNEL OR YOU WILL LOSE THE DATA FROM BEFORE THE KERNEL WAS FLASHED.

Install:

You need TWRP installed, so go to xda forums and install it.

Then boot into TWRP.

Select Backup.

Select Storage Device

Select Micro SD

Select All options and click "Backup"

Wait until it is done.

plug your phone in and in Windows/Linux/Mac go to your phone in a file manager then Phone\TWRP\BACKUPS\<SOME_RANDOM_NUMBERS\todays date and copy everything out of there.

Put htc626s_extData.img on the INTERNAL SD CARD.

Reboot into android and Install AParted

Open it and press the green plus button twice.

For Partition 1: Make sure the file system is fat32, this is important!!!! (Size it how you like) This is required so Android does not bug you about an unsupported filesystem.

For Partition 2: Make the file system ext4(Size it how you like)

Hit "Apply Changes"

Wait and then reboot back into TWRP.

Go to Install -> Then in the bottom right select "Install Image" and browse to the htc626s_extData.img file you downloaded and put on the internal SD Card.

Select "Boot" and install.

wait a second.

then click Reboot System.

First boot up time will be long, but after that it will boot up like a new phone!!! Dont worry, your data is still on the OLD data partition, the phone just does not have access to it.

Enjoy and profit from the new space.

Any question let me know here, PM, or whatever.