[UB][TX][L] CyanogenMod 12.1 Homebuild

Search This thread

updateing

Senior Member
Aug 25, 2012
489
1,140
Wuhan
Google Pixel C
CyanogenMod is a free, community built distribution of Lollipop which greatly extends the capabilities of your phone.
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

This is a highly experimental and unofficial build of CM12 on Xperia TX.

Note that this may be unstable, not booting, missing in features or anything else. Flash at your own risk!

NOTE(20150522):
I got a new phone weeks ago, so TX won't be my daily driver anymore. And this ROM will be discontinued due to limited time and energy. Thanks for your support.

Known bugs:
See post #2

"About phone" screen:
142v6nr.png


Installing instructions:
Flash the ZIP package as usual, then flash the kernel file via fastboot.
A full wipe is recommended before the installation, even if you are coming from last version of CM12.
OLD WAY FOR .IMG FILES:
1. Unzip the system and kernel image
2. Boot the phone into fastboot mode
3. fastboot -i 0xfce flash system system.img
4. fastboot -i 0fxce flash boot boot_f.elf
5. fastboot -i 0xfce reboot
6. Get into recovery at once and wipe data & cache
7. Reboot. The first boot may take very long time.


DESCRIPTION ABOUT INTERNAL STORAGE PERMISSION

ATTENTION:
CM has changed owner of internal storage to 1023:1023 (media_rw:media_rw). This is the default value in AOSP, but different from the one in Sony stock ROMs. I'm considering changing to 1023:1023 in my unofficial builds as well, but I want to hear your opinion first.

Advantage of 1023:1023 is: it's default in AOSP, using this will solve some problems in AOSP-derived ROMs (e.g. moving apps to sdcard may fail with "insufficient space" error. And maybe some more...)

Drawback of 1023:1023 is: it's incompatible with other ROMs. If you switch to other ROMs without changing owner back, you won't be able to write into internal storage, just like those who formatted int storage in 5.0 or recovery.

Advantage and disadvantage of 2800:2800(Sony stock) are the the way round... better compatibility but cause problems with AOSP.
(Changing owner only takes a few lines of code. That's easy)

So which one do you prefer? 1023:1023 or 2800:2800? Please leave your opinion in the reply. Thanks~

20150312- have 2800:2800. 20150319+ have 1023:1023.

Download:
NOTE: sdcard owner has been changed to 1023:1023 since 20150319.
If you want to switch to other ROMs, remember to do this before you flash in order to get a writable internal storage.
Code:
su
busybox chown -R 2800:2800 /mnt/media_rw/sdcard0
20150521
https://drive.google.com/file/d/0BwkmhbR5VHpAQmNhWE9IcUJYRXM/view?usp=sharing

OLD VERSION:

20150514
https://drive.google.com/file/d/0BwkmhbR5VHpAOUp0VzJva3BabjA/view?usp=sharing

20150508
https://drive.google.com/file/d/0BwkmhbR5VHpAS3JqdW9YWUkyVms/view?usp=sharing

20150501
https://drive.google.com/file/d/0BwkmhbR5VHpARUFLdTlXM090Zk0/view?usp=sharing

20150424
https://drive.google.com/file/d/0BwkmhbR5VHpAeEhJeC1WcFVYYVk/view?usp=sharing

20150418
https://drive.google.com/file/d/0BwkmhbR5VHpASjIxbVBYQ2R3am8/view?usp=sharing

20150410
https://drive.google.com/file/d/0BwkmhbR5VHpARzBIaFIwbE5Qak0/view?usp=sharing

20150404
https://drive.google.com/file/d/0BwkmhbR5VHpAYmdPLUd2UGNBbTg/view?usp=sharing

20150402
https://drive.google.com/file/d/0BwkmhbR5VHpAVkxWRmx0bWh4X2s/view?usp=sharing

20150325
https://drive.google.com/file/d/0BwkmhbR5VHpAcjdRNU11NUpEanM/view?usp=sharing
NOTE: Screen will go out if brightness is set to minimum. Fix is in the attachment (lights.msm8960.so.zip) Extract this to /system/lib/hw and it will be OK.

20150319
https://drive.google.com/file/d/0BwkmhbR5VHpAWWtCQ1FEOHVaMms/view?usp=sharing

20150312
https://drive.google.com/file/d/0BwkmhbR5VHpAWnM2RnNzVXFwbUk/view?usp=sharing
Rec and permission fix: https://drive.google.com/file/d/0BwkmhbR5VHpAV0ZPUW9RZjF1RXM/view?usp=sharing
Step 1. FIash the ROM zip
Step 2. Flash kernel in fix
Step 3. Put system folder in fix.7z to the phone
(IF YOU HAVE FLASHED BEFORE APPLYING FIX) Step 4. Execute these commands in adb shell/Terminal Emulator
Code:
su
chown 2800:2800 /mnt/media_rw/sdcard0
If you find these instructions hard to understand, you may try this flashable zip by Antiga Prime. Thanks!

20150302
https://drive.google.com/file/d/0BwkmhbR5VHpAa0ZtSXQ5UUxuQ2M/view?usp=sharing

20150128
https://drive.google.com/file/d/0BwkmhbR5VHpARW0xQkswWE5aOWs/view?usp=sharing

20150123
https://drive.google.com/file/d/0BwkmhbR5VHpAM0c2SHd5TzVlems/view?usp=sharing

20150110
https://drive.google.com/file/d/0BwkmhbR5VHpAWkUyTHhqS1M1Nnc/view?usp=sharing

20150103
https://drive.google.com/file/d/0BwkmhbR5VHpANi1UVG1YbVJoQlk/view?usp=sharing
Kernel with TWRP bug fixed: https://drive.google.com/file/d/0BwkmhbR5VHpATjBvblRBU05VbXM/view?usp=sharing

20141226
https://drive.google.com/file/d/0BwkmhbR5VHpANFhTdzQyQTJEUmc/view?usp=sharing
No more separate kernel :)

20141219
System: https://drive.google.com/file/d/0BwkmhbR5VHpAX25JbXFVRWJxMjQ/view?usp=sharing
Kernel: https://drive.google.com/file/d/0BwkmhbR5VHpAWE5jQUc5aFR2Q28/view?usp=sharing
Cyanogen Recovery is able to install from internal storage now, but it requires signature verification. The kernel file contains Cyanogen recovery without that verification process. Next time this will be merged into system zip file and there will be no more standalone kernel image.

20141212
Kernel: https://drive.google.com/file/d/0BwkmhbR5VHpAYktOYTA1RnJtam8/view?usp=sharing
System: https://drive.google.com/file/d/0BwkmhbR5VHpAZXRockhtY1V0STA/view?usp=sharing

20141207
System: https://drive.google.com/file/d/0BwkmhbR5VHpAcFVYUWpwenhrVnc/view?usp=sharing
Kernel: https://drive.google.com/file/d/0BwkmhbR5VHpAbUF0LVAybm9ZVGs/view?usp=sharing

20141205
System (Google Drive): https://drive.google.com/file/d/0BwkmhbR5VHpAX2VaNUdPUUtTVU0/view?usp=sharing
My removable disk is not with me at this moment, so I couldn't make a TWRP included kernel. Kernels from previous versions should be compatible though.
Kernel (Google Drive): https://drive.google.com/file/d/0BwkmhbR5VHpAUVp2azBRX1VRR28/view?usp=sharing

20141203
Kernel (Google Drive): https://drive.google.com/file/d/0BwkmhbR5VHpAUXA1OXFnakZOZ0U/view?usp=sharing
System (Google Drive): https://drive.google.com/file/d/0BwkmhbR5VHpAbXhXVDRpOFFQQ2s/view?usp=sharing

20141130
System: http://pan.baidu.com/s/1o6LWX5K
Google Drive: https://drive.google.com/file/d/0BwkmhbR5VHpAQjdUcG1RbGxmQms/view?usp=sharing
Kernel: http://pan.baidu.com/s/1gdovtnl
Google Drive: https://drive.google.com/file/d/0BwkmhbR5VHpAcW1GbmF6cVRNSEU/view?usp=sharing
NOTE: Build time and CyanogenMod version in About Phone are not changed. They will when I get enough time to make a clean build.

20141128
System: http://pan.baidu.com/s/1qWCzw4W
Google Drive: https://drive.google.com/file/d/0BwkmhbR5VHpAdUtabGdVblJ3Njg/view?usp=sharing
Kernel: http://pan.baidu.com/s/1qWwQuhm
Google Drive: https://drive.google.com/file/d/0BwkmhbR5VHpAbFo5UDM1VzJSRjA/view?usp=sharing
No standalone kernel from now on. CM's custom recovery has been included (and it's tap-able :) )Seems not finished yet.
And Superuser has been integrated as well. No need for other apps.

20141127
System ZIP: http://pan.baidu.com/s/1jG3inaQ
Kernel: http://pan.baidu.com/s/1mgBlDgs
Google Drive mirror(kernel): https://drive.google.com/file/d/0BwkmhbR5VHpAYVdMNXVEZDNXZEk/view?usp=sharing
Google Drive mirror(system): https://drive.google.com/file/d/0BwkmhbR5VHpAeGJlakhLc3lYNGM/view?usp=sharing
(Included a unit test app for messaging by mistake, just delete it)

20141125:
System ZIP: http://pan.baidu.com/s/1mgkho5E
Kernel: http://pan.baidu.com/s/1bnm1xV5

20141121:
System ZIP (Recovery flashable): http://pan.baidu.com/s/1i37nOTf
Kernel (Flash after the system - reboot to bootloader in Recovery after flashing the zip above): http://pan.baidu.com/s/1pJHQYld

Initial ver
System image: http://pan.baidu.com/s/1B5Ofk
Kernel: http://pan.baidu.com/s/1nt0ua9N


Device specific sources are on my GitHub (updateing), and kernel is built on kernel-msm repo listed there.

Changelog (FROM UPSTREAM)

20150521
FM Transmitter enabled (it's so lucky that (it seems) only our device fully supports it)

20150514
->post #2

20150508
mainly upstream changes

20150501
->post #2

20150424
Android 5.1.1
-> post #2
new WiFi driver

20150418
workaround about flickers in some apps -> post #2

20150410
-> post #2

20150404
goodbye Microsoft :)
try to fix abnormal record of battery comsumption of mobile network

20150402
first Android 5.1 build

20150325
Xperia logo functions normally when a notification is cleared when screen is off

20150319
changed internal storage permission to 1023:1023
upstream changes
-> post #2

20150312
upstream changes. (one noticable feature: LiveDisplay)

20150302
upstrem changes
added a FM radio app, but it's not working now.

20150128
-> post #2
mostly upstream features and fixes (new wallpaper, setup wizard, etc)

20150123
-> post #2
theme engine (upstream)
no more sudden change of brightness when turning screen off
SELinux enforcing (mostly upstream with minor changes for TX)
more customization

20150110
mostly upstream changes

20150103
TWRP included (built from source, not a copy of Kitkat kernel. I didn't realize CM Recovery was not meant for custom ROMs...)
-> post #2

20141226
Android 5.0.2
USB Mass Storage support (Settings-Storage-(3dot menu))
-> post #2

20141219
-> post #2
weather shown in status bar
Gallery is materialized
Battery icon selection

20141212
-> post #2
more materialization
icon fixes

20141207
some features from upstream, such as vibrator intensity control
show network mode in network search result
-> post #2

20141205
Mostly upstream fixes, e.g. appearance of Settings app, clickable time & date
Reduced some unused kernel modules
Select dlmalloc as memory allocator. It's jemalloc in previous versions, but fusion3 have dlmalloc choosen. Let's see what will happen... (seems smoother)

20141203
Android 5.0.1
fix: (post #2)

20141130
upstream fixes and new features
TEST: one case about working GPS in post #2

20141128
fix: (in post #2) and some info about GPS
new: CM's handsome recovery
new: integrated Superuser

20141127
fix: (in post #2)

20141125
fix: (in post #2)
new: Message app
new: a small number of personalization settings (quick pulldown etc)

20141121
fix: data and WiFi icon movement
fix: no audio
fix: NFC Service FC
fix: Download / Documents / Call History FC
new: full set of fonts
new: multi user support / Guest Mode


Credits:
Finally thanks CyanogenMod team who merged sources so quickly, and Sony who made all this happen, and a lot more on Gerrit who helped me solve the compliation errors. :)
 

Attachments

  • lights.msm8960.so.zip
    3.8 KB · Views: 1,302
Last edited:

updateing

Senior Member
Aug 25, 2012
489
1,140
Wuhan
Google Pixel C
One possible bug: no sound. Extract the attached file to /system/etc
If there's nothing wrong, you can ignore this. I can't remmeber if I inlcuded this in the system image...
FIXED in 20141121

BUG #2: NFC Service FC after boot. -> Delete /system/etc/permissions/android.hardware.nfc.hce.xml via Recovery (mount /system first)FIXED in 20141121

BUG #3: GApps not working -> Try Gapps in this post

BUG #4: Download and Call History FC.FIXED in 20141121

BUG #5: WiFi hotspot doesn't turn on.FIXED in 20141125

BUG #6: Camera stops working after switching user. -> Delete /data/camera/cache_data.dat and (in terminal emulator) su && pkill mediaserver DIRTY FIX in 20141127

BUG #7: GPS satellites are found but can't get lock -> PLEASE TEST! After every step, try if it can get a lock in 2 mins. If not, do next step and reboot.
1. Add "QUIPC_ENABLED=0" at the end of /etc/gps.conf <- Some successful reports.
2. Set "INTERMEDIATE_POS" to 1, uncomment "ACCURACY_THRES", and set "ACCURACY_THRES" to 1000 (this is the target accuracy - choose as you like)
3. Comment out ACCURACY_THRES
STEP 1 INCLUDED SINCE 20141203

BUG #8: Contacts -> Menu -> Import/Export -> Import from storage FC FIXED in 20141125

BUG #9: Dialer -> Call History -> Menu -> Clear Call Logs -> (Select some) -> OK FC FIXED in 20141125

BUG #10: FC when receiving SMS via native Messaging app. Hangouts works though. EMERGENCY FIX: http://pan.baidu.com/s/1gdeRIbL push to /system/priv-app/Mms FIXED in 20141127

BUG #11: Moving 2 apps to internal storage will fail on the second one. SEEMS FIXED (20150123)

BUG #12: Call diverting can't be set After many tries I found this was not a bug of this ROM. It's the network operator to blame. I inserted my SIM to an ancient Nokia and it couldn't set call diverting either. And when I inserted an SIM which had been confirmed that call diverting was working, the settings in this ROM would also work without any problem.

BUG #13: Hanging up when an outgoing call is still ringing will cause Dialer FC. -> Put http://pan.baidu.com/s/1gd28sjp into /system/priv-app/DialerFIXED in 20141128

BUG #14: Audio quality over Bluetooth is terrible. The sound is "slowed down" and pops over time. This fixes A2DP audio quality, but causes phone calls to fail when BT headset is connected. So if you use this phone and BT headset/carkit as daily driver, please replace /system/etc/audio_policy.conf with the one in previous version (or the one in attachment) INFO(FROM 20141219)Bluetooth call and music are all OK now, but there's something that has to be done in order to get music working: make a call when BT headset is connected. You can call any self-service number and hang up after connected. Otherwise the audio quality will still be terrible...

BUG #15: FC when selecting Clock -> Alarms -> (select profile) FIXED in 20141203

BUG #16: Error when finishing manual search for mobile networks FIXED in 20141203

BUG #17: After receiving MMS, default Messaging app will crash. (Hangouts is working) FIXED IN 20141207

BUG #18: Volume keys are not usable when screen is off.Works as we expect now.

BUG #19: User switching is broken (reboot and cannot switch to desired user) Can't reproduce this on 20150103

BUG #20: BT audio is broken... again.(just as well that this only happens when NuPlayer is is use. - I doubt whether we should use this on this old hardware platform) -> Turn NuPlayer off in Development Settings, then look at BUG #14

BUG #21: Music files on int/ext sdcards can't be selected as ringtone (plays a beep). Turning SELinux to permissive solves this.REPORTED FIXED in 20150514, don't know when it got fixed

BUG #22: FM Radio produces no sound.FIXED in 20150514. Note that FM will still remain on when you remove the headphones but no signal can be picked up under such circumstance.

BUG #23: USB Mass Storage is not working. Shows a drive w/o disc on PC. FIXED in 20150319

BUG #24: (Android 5.1) Glitches in some apps, e.g. Fuubo (a Sina Weibo client) (gone with battery saver activated. The animation is still shown but no glitches) WORKAROUND: Add this line to build.prop debug.hwui.render_dirty_regions=false FIXED in 20150424

BUG #25: Mute and hold button in call screen are missing/disabled FIXED in 20150410

BUG #26: Due to new WiFi driver, MAC address will be changed. Will fix in next build. FIXED in 20150501
 

Attachments

  • audio_policy.zip
    1.3 KB · Views: 635
Last edited:

icALASAD

Senior Member
Apr 7, 2013
60
9
Rustavi
One possible bug: no sound. Extract the attached file to /system/etc
If there's nothing wrong, you can ignore this. I can't remmeber if I inlcuded this in the system image...

BUG #2: NFC Service FC after boot. -> Delete /system/etc/permissions/android.hardware.nfc.hce.xml via Recovery (didn't pack this in...)

Thanks for the rom. I can't find /etc/permissions/android.hardware.nfc.hce.xml, when I go into file manager from recovery only system/bin is shown, what to do? :confused:
 

WhiteNeo

Senior Member
Feb 13, 2013
2,449
4,097
Thanks for the rom. I can't find /etc/permissions/android.hardware.nfc.hce.xml, when I go into file manager from recovery only system/bin is shown, what to do? :confused:

Mount system partition via recovery before entering aroma file manager. :good:
@updateing
Great work!! Gonna give this a shot for XV :good:
Will try to compile with your sources on git. Any recommendations? :)
 

icALASAD

Senior Member
Apr 7, 2013
60
9
Rustavi
Mount system partition via recovery before entering aroma file manager. :good:

@updateing
Great work!! Gonna give this a shot for XV :good:
Will try to compile with your sources on git. Any recommendations? :)
Thanks, it works.




I've installed PA GApps for Android 5.0 and I'm getting a few app crashes here and there. Downloads/Documents doesn't work at all, Google+ can't connect to the server for some reason, Play Newsstand crashes (downloaded from Play Store) and few things like that. Should I be posting these bugs? Are they rom related or is it because of GApps package?


Also, root works. I'll wipe everything and clean install GApps, see how it goes. Everything crashes for some reason right now.
 
Last edited:

WhiteNeo

Senior Member
Feb 13, 2013
2,449
4,097
Thanks, it works.




I've installed PA GApps for Android 5.0 and I'm getting a few app crashes here and there. Downloads/Documents doesn't work at all, Google+ can't connect to the server for some reason, Play Newsstand crashes (downloaded from Play Store) and few things like that. Should I be posting these bugs? Are they rom related or is it because of GApps package?

Might try the gapps from here.. Link
In other devices' forums, I have read about rom-related issues with certain google apps. So might possibly be rom related..
A logcat of the issues might come in handy. :)
 
  • Like
Reactions: mr.ahoora7

icALASAD

Senior Member
Apr 7, 2013
60
9
Rustavi
Might try the gapps from here.. Link
In other devices' forums, I have read about rom-related issues with certain google apps. So might possibly be rom related..
A logcat of the issues might come in handy. :)
Downloading this right now, I'll see how it goes and let you know asap.

---------- Post added at 09:38 PM ---------- Previous post was at 08:38 PM ----------

Hmm... Downloads/Documents doesn't seem to work. I've cleaned everything and installed rom and gapps from scratch, music didn't work at first, but then I applied the fix and it's working now, DSP manager started working too. Every crash I had seems to be gone, for now at least. Only problem remains Downloads, tried cleaning data, but doesn't help. SuperSU BETA did work, I was able to root it by just flashing zip in recovery. All in all this rom's pretty stable considering that it's an experimental for now.
 
  • Like
Reactions: aeaee and agnesch

icALASAD

Senior Member
Apr 7, 2013
60
9
Rustavi
Also multiple users doesn't work, when you click on that profile icon in the right corner of notification dropdown it just opens up your LOCAL profile, not even the Google one.

---------- Post added 21st November 2014 at 12:03 AM ---------- Previous post was 20th November 2014 at 11:10 PM ----------

And also this
cf552697cbb6cffb6bc61cb7fd4289a4.jpg


---------- Post added at 12:54 AM ---------- Previous post was at 12:03 AM ----------

Also dialer crashes when I go to history tab.
 
  • Like
Reactions: updateing

updateing

Senior Member
Aug 25, 2012
489
1,140
Wuhan
Google Pixel C
Downloading this right now, I'll see how it goes and let you know asap.

---------- Post added at 09:38 PM ---------- Previous post was at 08:38 PM ----------

Hmm... Downloads/Documents doesn't seem to work. I've cleaned everything and installed rom and gapps from scratch, music didn't work at first, but then I applied the fix and it's working now, DSP manager started working too. Every crash I had seems to be gone, for now at least. Only problem remains Downloads, tried cleaning data, but doesn't help. SuperSU BETA did work, I was able to root it by just flashing zip in recovery. All in all this rom's pretty stable considering that it's an experimental for now.

Yes the download manager and dialer are confirmed bugs. I'll sync and make a new build to see if they are fixed.

I'll try adding multi-user support in this build.
 
Last edited:

icALASAD

Senior Member
Apr 7, 2013
60
9
Rustavi
Wi-Fi icon moves back and forth in status bar when little arrows show up and in Settings some menus have the same icon, like 'Buttons' and 'Home' have the same house icon, also 'Profiles' and 'Location' both have location icon.
 
  • Like
Reactions: updateing

updateing

Senior Member
Aug 25, 2012
489
1,140
Wuhan
Google Pixel C
Wi-Fi icon moves back and forth in status bar when little arrows show up and in Settings some menus have the same icon, like 'Buttons' and 'Home' have the same house icon, also 'Profiles' and 'Location' both have location icon.

Will fix in next build. Thanks!
EDIT: wait for upstream to fix the icons in settings...
 
Last edited:

Top Liked Posts