[Sony Xperia T, TL, TX, V] WhiteNeo:
FAQ:

How to update to latest build?

1. Reboot to recovery

2. Flash latest rom zip

3. Flash latest gapps linked in OP

4. Flash SuperSU

5. Wipe Cache & Dalvik Cache

6. Reboot

How to safely uninstall this rom?

1. If you were using F2FS, revert to EXT4 before uninstalling!

2. Reboot to recovery

3. Flash neo-uninstall.zip

4. Proceed with the installation steps of your new rom

Should you face storage issues with your new rom, run the following Terminal commands:

su
chmod 777 /mnt/media_rw/sdcard0
chown 2800:2800 /mnt/media_rw/sdcard0
chown -R 2800:2800 /mnt/media_rw/sdcard0

Troubleshooting:

I can't create folders in internal storage!

Follow the instructions on updating to latest build. While flashing, my rom will apply its required storage permissions automatically.

Alternatively, you may simply run the following Terminal commands:

su
chmod 777 /mnt/media_rw/sdcard0
chown 1023:1023 /mnt/media_rw/sdcard0
chown -R 1023:1023 /mnt/media_rw/sdcard0

Camera any Gallery won't save my photos!

Follow the instructions on updating to latest build. While flashing, my rom will apply its required storage permissions automatically.

Alternatively, you may simply run the following Terminal commands:

su
chmod 777 /mnt/media_rw/sdcard0
chown 1023:1023 /mnt/media_rw/sdcard0
chown -R 1023:1023 /mnt/media_rw/sdcard0

I can't move apps to sdcard!

Moving apps to internal storage is quite buggy and discouraged. I recommend repartitioning your device with the instructions below. :)

Advanced Modifications:

Switching to F2FS:

First of all, make sure you're running homebuild version 20150215 or later!

1. Copy all important files from internal storage to the external sdcard

2. Reboot to recovery

3. Do a full backup (make sure to select external sdcard as target location)

4. Disable MTP in "Mount" menu

5. Go to "Wipe" > "Advanced Wipe" menu

6. Check "System", then tap "FS Options" and "Change FS"

7. Select "F2FS", then swipe to apply the change

8. Repeat steps 5 and 6 for "Data" and "Cache" partitions, as well as internal storage

9. Navigate to TWRP Settings and check "Use rm -rf instead of formatting"

10. Restore your previous backup

12. Reboot to system

13. Restore your copied files from external sdcard

14. Reboot

Reverting to EXT4:

1. Copy all important files from internal storage to the external sdcard

2. Reboot to recovery

3. Do a full backup (make sure to select external sdcard as target location)

4. Disable MTP in "Mount" menu

5. Go to "Wipe" > "Advanced Wipe" menu

6. Check "System", then tap "FS Options" and "Change FS"

7. Select "EXT4", then swipe to apply the change

8. Repeat steps 5 and 6 for "Data" and "Cache" partitions, as well as internal storage

9. Navigate to TWRP Settings and check "Use rm -rf instead of formatting"

10. Restore your previous backup

12. Reboot to system

13. Restore your copied files from external sdcard

14. Reboot

Repartitioning your device:

Note:

Up to 14GB of free space on external sdcard might be required to perform the steps below! (Should be less if your internal storage isn't completely bloated :D)

The value XXXX used below has to be replaced with a calculated number and varies depending on your desired space. I recommend 5120, as it's a decent balance between general data storage (used for most apps) and space on internal storage for apps with bigger data (games). Refer to step 13 of this link if you want to calculate your own partition sizes. :)

1. Copy all important files from internal storage to the external sdcard with the following terminal command:

rsync -P -a /sdcard /ext_card/sdcard0/

2. Reboot to recovery

3. Do a full backup (make sure to select external sdcard as target location)

4. Navigate to "Mount" menu, disable MTP and unmount all partitions listed there

5. Navigate to "Advanced" > "Terminal Command" and type the following code:

parted /dev/block/mmcblk0 print

This command should display some text like this:

Model: MMC M8G2FB (sd/mmc)
Disk /dev/block/mmcblk0: 7818MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 131kB 2228kB 2097kB TA
2 2228kB 3801kB 1573kB Boot
3 3801kB 5374kB 1573kB Boot2
4 6291kB 27.3MB 21.0MB Kernel
5 27.3MB 28.3MB 1049kB TZ
6 29.4MB 32.5MB 3146kB modemst1
7 33.6MB 36.7MB 3146kB modemst2
8 37.7MB 40.9MB 3146kB fsg
9 40.9MB 46.1MB 5243kB ramdump
10 46.1MB 54.5MB 8389kB ext4 apps_log
11 54.5MB 71.3MB 16.8MB FOTAKernel
12 71.3MB 1359MB 1288MB System
13 1359MB 1621MB 262MB Cache
14 1621MB 3769MB 2147MB Userdata
15 3769MB 7818MB 4050MB SDCard

We're going to remove Userdata and SDCard partitions, so check if these partitions also have the numbers 14 and 15 on your phone.

6. Type the following terminal commands to proceed with resizing the partitions:

parted /dev/block/mmcblk0 rm 14
parted /dev/block/mmcblk0 rm 15
parted /dev/block/mmcblk0 mkpartfs logical ext2 1621 [B]XXXX[/B]
parted /dev/block/mmcblk0 name 14 Userdata
parted /dev/block/mmcblk0 mkpartfs logical ext2 [B]XXXX[/B] 7818
parted /dev/block/mmcblk0 name 15 SDCard

7. Leave the terminal screen and go to "Wipe" > "Advanced Wipe" menu

8. Check "Data", then tap "FS Options" and "Change FS"

9. Select "EXT4" or "F2FS", then swipe to apply the change

10. Repeat steps 8 and 9 for internal storage (is named "sdcard" in this menu)

11. Restore your previous backup

12. Restore your backed-up files from external sdcard with the following terminal command:

cp -a /external_sd/sdcard0/* /sdcard/

13. Reboot

14. Enter the following terminal commands to fix storage permissions:

su
chmod 777 /mnt/media_rw/sdcard0
chown 1023:1023 /mnt/media_rw/sdcard0
chown -R 1023:1023 /mnt/media_rw/sdcard0