• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][T][UB][L] CyanogenMod 12.1 - Neo's Homebuilds [DISCONTINUED]

WhiteNeo

Elite Member
Feb 13, 2013
2,449
4,097
0
CyanogenMod 12.1 is a free, community built distribution of Android 5.1 (Lollipop) which greatly extends the capabilities of your phone.




ROM Features:
  • Based on latest CyanogenMod 12.1 sources
  • Compiled with SaberMod 4.9 and JustArchi's Optimizations V4.1 for maximum performance
  • Full F2FS support - no mount issues during ROM updates
  • SELinux set to 'permissive' by default
  • Android default UID and GID for internal storage
    (No more write issues after formatting sdcard!)
  • Slim and fast user build

Kernel Features:
  • Based on latest CAF kernel sources (LA.AF.1.1.c1)
  • Compiled with ArchiToolchain 4.9 and several Cortex-A9 optimizations
  • Overclocking up to 1.62 GHz
  • Underclocking up to 162 MHz for maximum battery life
  • User-customizable CPU Voltage driver (thanks to faux123)
  • Intelliactive and IntelliMinMax CPU governors (thanks to faux123)
  • In-kernel Thermal Driver (thanks to franciscofranco)
  • SIO and FIOPS IO schedulers
  • F2FS (Flash-Friendly File System) support (Performance comparison vs EXT4)
  • FauxSound support for maximum audio gain control (thanks to faux123)
  • Latest TWRP recovery, including a Materialised TWRP theme by z31s1g
Be aware that improper usage of kernel features can cause serious damage to your device!
Only use the stuff above if you know what you're doing!


In agreement with the GPL, you can find the sources and defconfig used to compile this kernel right here.


Known Issues:
Please keep in mind that CM12.1 sources are still work in progress. As a result, some features may be broken or only partially working.
That's why I decided to only list device-specific issues below.
  • Below ~60% battery, the displayed battery level will reduce significantly on rebooting. This is a known issue with all AOSP based ROMs.

    After switching to a new battery, I noticed this behavior is related to automatic battery calibration and directly affected by the health of your phone's battery.

Disclaimer:
By downloading and installing this ROM, you agree that I cannot be held responsible for any damage caused to your device while installing or using it. Please keep in mind that it's YOU who chose to do these modifications to your device!

Installation:
  • Make sure your bootloader is unlocked - if not, follow this guide: Link
  • First installation? Flash the boot.img from ROM zip via Flashtool (use Fastboot mode!)
  • Boot into TWRP recovery
  • Do a factory reset and wipe system partition
  • Flash latest ROM zip (check "Downloads" section)
  • Flash suitable GApps for CM12.1 or CM12
  • Flash latest SuperSU from here: Link
  • Reboot

Downloads:
  • Final CM12.1 version: Link (Last updated: Jan 08, 2016)
  • Final CM12 version: Link (Last updated: April 05, 2015)
  • CM default su binary: Link (Don't flash if you're using SuperSU!)
  • Uninstaller zip: Link (Restores default storage permissions)

Credits:
  • CyanogenMod Team for their active development on the CM12.1 sources.
  • updateing for helping me with lots of compilation issues and initial bugfixing on Xperia V.
  • JustArchi for his awesome optimizations!

Changelog:

- 20160108 (final build):
  • Latest CM12.1 changes
  • Fixed the lags in power save mode by slightly increasing the cpu clock
    .​
    Thanks to everyone for using and supporting my work! It's been a great time with you all! :)
- 20151115:
  • Latest CM12.1 changes
  • Optimized system for better RAM performance
  • Enabled CM Performance Profiles support
  • Reduced minimum screen brightness
  • Reverted Toast UI to AOSP default
  • Experimental fix for vibrate intensity settings
- 20151010:
  • Latest CM12.1 changes
  • Reverted SONY lockscreen clock to AOSP default
  • Reverted softkeys to AOSP default
  • Removed Xperia fonts
- 20150929:
- 20150912:
- 20150824:
  • Latest CM12.1 changes
  • Recreated NeoKernel with latest CAF sources from here.
  • Updated ArchiDroid's Optimizations to V4.1
  • ROM is now built with SaberMod 4.9 toolchain!
  • Re-colored recoveryboot LEDs. Got sick of this ugly purple! :D
  • Replaced stock TWRP ui with latest Materialised Play theme from here. Credits to z31s1g for the great theme and ElArchibald for his help!
  • Recoveries present on FOTAkernel will be ignored from now on - fixes installation issues caused by broken CWM or outdated TWRP versions
  • Disabled Dex-Preoptimization to allow greater and easier customizability, as well as more free space on system partition
  • Fixed Xposed framework causing bootloops
  • Fixed GPS for some users (Got rid of QUIPC)
- 20150808:
- 20150726:
  • Latest CM12.1 changes
  • Added medium L2 clock rates to NeoKernel, should improve battery life
    .​
    NOTE: The device tree used to build this ROM is now fully open-source! :)
- 20150620:
  • Latest CM12.1 changes
  • Fixed delayed PIN screen on boot
  • Added SONY styled lockscreen clock from here. (Credits to idid idamrep!)
  • Included all stock Xperia fonts in the ROM
- 20150603:
  • Latest CM12.1 changes
  • Enabled Multiuser UI with a maximum of 3 users
  • Fixed Google Play Services repeatedly force closing
  • Updated TWRP sources to latest
- 20150516:
- 20150424:
- 20150419:
  • Latest CM12.1 changes
  • Added unlimited call log mod from here
  • Fixed backup issues in TWRP (using updated sources now)
  • Fixed installation reverting system partition to EXT4
- 20150412:
  • Latest CM12.1 changes
  • Reverted updates in F2FS sources (should fix the random bootloops)
  • Fixed non-working sensors (added prebuilt sensors.msm8960.so)
- 20150405 (CM12.1 build):
  • Initial release of CM12.1 (Android 5.1)
  • Merged all kernel features and optimizations from CM12
  • Updated TWRP to 2.8.6.0
    .​
    NOTE: A full wipe is recommended, but not required!
- 20150405 (CM12 build):
  • Final CM12 build (Android 5.0)
  • Latest CM12 changes
  • Added SIO and FIOPS io schedulers
  • Added in-kernel Thermal Driver (thanks to franciscofranco)
  • Updated F2FS sources in kernel
  • Switched to official CM12 libril
  • Reverted to TWRP 2.8.4.0 to fix some ui bugs
- 20150329:
  • Latest CM12 changes
  • Compiled with JustArchi's ArchiDroid Optimizations V4
  • Updated CAF kernel source
  • Additional kernel optimizations for Cortex-A9
  • Disabled debug flags in kernel
  • Switched to ArchiToolchain 4.9 for kernel
  • Switched to SaberMod 4.8 toolchain for ROM
  • Removed USB "Mass Storage" and "Charge only" modes
- 20150321:
- 20150314:
- 20150309:
  • Latest CM12 changes
    (Introduces a bug: Clock in statusbar disappears on reboot. Hide/unhide statusbar clock in Settings as a workaround)
  • Removed FM Radio - Have a look at this one!
- 20150303:
  • Latest CM12 changes
  • Fixed the segmentation fault when trying to mount/remount
  • Most likely fixed the volume errors some people encountered
  • Reverted to AOSP LLVM compiler (QCOM one needs more work)
  • Other minor bugfixes
- 20150301:
  • Latest CM12 changes
  • Added FM Radio
  • Replaced AOSP LLVM compiler with Qualcomm one, optimized for krait cpus (thanks to MusterMaxMueller)
  • ROM is now built with Linaro 4.8 instead of SaberMod 4.8
  • Kernel is now built with Linaro 4.9 instead of SaberMod 4.10
  • Updated kernel source to latest CAF
  • Minor changes and improvements in device tree
- 20150222:
- 20150215:
  • Latest CM12 changes
  • FolderMount and "sd issue" fixed - ROM is now using android default uid for sdcard0
  • Added intellimm and intelliactive cpu governors (thanks to faux123)
  • Added ultra low CPU clocks to kernel (162 and 270 MHz)
  • F2FS (Flash-Friendly File System) support
  • Latest Faux Sound features
  • Graphite Loop Optimizations in kernel
  • O3 optimized GPU drivers
  • Updated TWRP to version 2.8.5.0
  • Some changes and cleanup in installer zip
    .​
    NOTE: From this version on, you will have to flash my neo-uninstall.zip before switching ROMs!
- 20150207:
- 20150201:
- 20150125:
- 20150117:
  • Latest CM12 changes
  • Merged official CM device repos
  • Updated TWRP to version 2.8.4.0
  • Added "Charge only" USB mode
  • Cherry-picked HeadsUp Settings
  • Other minor fixes and improvements
- 20150104:
- 20141228:
- 20141224:
  • Initial release
If you like my work and want to support me, please hit that thanks button, give some positive feedback or consider a small donation for my efforts. :)

XDA:DevDB Information
CyanogenMod 12.1, ROM for the Sony Xperia T

Contributors
WhiteNeo
Source Code: https://github.com/WhiteNeo-?tab=repositories

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
Based On: CyanogenMod 12.1

Version Information
Status: No Longer Updated

Created 2014-12-26
Last Updated 2016-01-08
 

WhiteNeo

Elite Member
Feb 13, 2013
2,449
4,097
0
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:
    Code:
    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:
    Code:
    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:
    Code:
    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:
    Code:
    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:
    Code:
    parted /dev/block/mmcblk0 print
    This command should display some text like this:
    Code:
    Model: MMC MAG2GA (sd/mmc)
    Disk /dev/block/mmcblk0: 15.6GB
    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  15.6GB  11.9GB               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:
    Code:
    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] 15.6GB
    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:
    Code:
    cp -a /external_sd/sdcard0/* /sdcard/
    13. Reboot
    14. Enter the following terminal commands to fix storage permissions:
    Code:
    su
    chmod 777 /mnt/media_rw/sdcard0
    chown 1023:1023 /mnt/media_rw/sdcard0
    chown -R 1023:1023 /mnt/media_rw/sdcard0
 
Last edited:

LeonardK

Senior Member
Dec 25, 2014
209
40
0
Because it's built from sources and so on and so forth.
So in this case 'original' means the AOSP sources? I thought it meant sth like 'based on the original (=stock) ROM'.

@WhiteNeo: Is it possible to link the sources? ;)

Found Bugs (CM or device specific?):
- Calculator Button Widget behaves strangely (not the 'big' widget)
- Themes Showcase doesn't change tab (eg. to Wallpapers) and Options makes it crash.

Both theme to be general issues I think
 
Last edited:

WhiteNeo

Elite Member
Feb 13, 2013
2,449
4,097
0
Been running for a few hours and i just want to congratulate you once again! ;)
just one minor thing that im sure you already know but i'll point out ..keyboard gesture isn't working..
That's literally the only thing i have noticed that is not working :)
Keyboard gesture won't work on AOSP because it requires a proprietary lib by Google. You can install Google Keyboard to have the same look with swype :)

Alternatively, check my XV CM12 thread for the material Xperia keyboard I attached to one of my latest comments. :)
 

dantefff

Senior Member
Oct 25, 2013
73
24
0
Thank you very much WhiteNeo. You are giving our phone a new live.

By the way, for people that has tried it yet, what about camera quality? Is it better than 4.4 cyanogen roms?
 

LeonardK

Senior Member
Dec 25, 2014
209
40
0
Google Search Bar

The Search bar sometimes has display issues, that is the icons on it arent displayed anymore.
On my previous post: It should be @WhiteNeo of course, didnt know it would automatically link it ;)
 

WhiteNeo

Elite Member
Feb 13, 2013
2,449
4,097
0
The Search bar sometimes has display issues, that is the icons on it arent displayed anymore.
On my previous post: It should be @WhiteNeo of course, didnt know it would automatically link it ;)
All of the bugs that have been mentioned so far appear to be sources related, so no need to post them here.
I recommend creating a new issue at https://jira.cyanogenmod.org if you detect any bugs that are obviously not related to our phones' hardware. :)
 
  • Like
Reactions: thedisturbedone

thedisturbedone

Elite Member
Nov 5, 2011
1,309
440
0
Thanks for the build! The ROM is super smooth and bug free for me so far, except maybe the front camera being fuzzy when i tested it. I'm going to try and see how long i can live without xposed. Great work!

Oh wait.. snapshare doesn't work. ****!
 
Last edited:

tajimura

Senior Member
Dec 25, 2009
983
202
0
31
Tashkent
I've got a glitch - mobile data is on, but the "H" symbol is gone. Meaning there is no "H". Up-and-down arrows are in place when data is being transmitted, but no "H". Other than that everything's just fine.
 

Imhuurd

Senior Member
Jan 30, 2014
61
16
0
24
Maldives
My feedback

Everything works well.. :D
im amazed by this new experience..

Some things i've noticed
- From facing camera stretches the image from camera sometime
- I experienced whistle from speaker while calling, however, i flashed a zip, which fixed it, i will attach the zip file

other than that, everything is working well in my point of view.. :p
i will post more soon if i come across some..