[ROM][SNAPSHOT][6.0.1] CyanogenMod 13.0 for Xperia TX

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io

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.
 */

About CyanogenMod
CyanogenMod is a free, community built, aftermarket firmware distribution of Android 6.0 (Marshmallow),
which is designed to increase performance and reliability over stock Android for your device.

All the source code for CyanogenMod is available in the CyanogenMod GitHub repo.
And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review.

Official CyanogenMod 13 Release post : http://www.cyanogenmod.org/blog/cm-13-0-release-1
Hayabusa CyanogenMod Wiki : https://wiki.cyanogenmod.org/w/Hayabusa_Info


CyanogenMod 13.0 for Sony Xperia Blue


Downloads Links
CyanogenMod 13.0 (Unlocked Bootloader) :
Xperia TX (Hayabusa) : https://mega.nz/#F!L8cRRKiI!SzWmsKUyEdJgaMjB8ksxYw

Google Applications (optional) :
OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 6.0, Micro or Pico)
Information : Flash the GApps before the first boot. If not, a clean flash is recommended.

Recommended Recovery (optional) :
TWRP 3.0 : http://forum.xda-developers.com/xperia-t-v/t-development/recovery-twrp-3-0-0-touch-recovery-t3319588

Useful alternatives to CM Updater (with Deltas) : CM Downloader on Play Store
About CyanogenMod : ChangeLog available on http://www.cmxlog.com/13/hayabusa/


Unification of the user partitions into UserData
Read more about the UserData unification : https://wiki.cyanogenmod.org/w/Hayabusa_Info

Migrate to the one big partition for CM-13.0 :
- (Optional) Backup all your data, applications, internal storage, ...
- (Optional) If wished, do a full Nandroid backup from Recovery
- Flash the latest ROM zip of your device to start the unification
- Read and follow the instructions from the zip if anything goes wrong
- (Optional) Restore your Nandroid backup if you want to
- Flash the same ROM zip for CyanogenMod 13.0

Reverse the migration for older ROMs :
- (Optional) Backup all your data, applications, internal storage, ...
- Reboot to recovery and do a Factory reset (data will be lost)
- Flash restore_sdcard-YYYYMMDD-blue.zip
- Read and follow the instructions from the zip if anything goes wrong
- Flash the ROM you want now and restore your data


Flashing and updating
CyanogenMod clean install :
- (Optional) Flash the boot.img kernel from the ROM zip with Fastboot or Flashtool
- (Optional) Wipe the data & cache (Backup to make sure not to loose data)
- Flash the CyanogenMod 13.0 ROM zip from the Recovery
- (Optional) Flash the GApps to have the Google Applications
- (Optional) Every additional zip you want to flash
- Reboot

CyanogenMod update / upgrade :
- (Information) Don't wipe anything unless you want to
- (BETA / UNOFFICIAL) Nothing to wipe when switching
- Flash the latest CyanogenMod 13.0 ROM zip from the Recovery
- (Optional) Flash the GApps on first install / upgrade. Not required later, but do update sometimes
- (Optional) Every additional zip you want to flash
- Reboot


About the builds


Issues and reports
- Report issues only if you use the ROM kernel
- If an additional mod is installed, make sure it's unrelated, and mention it
- Make sure the issue wasn't discussed earlier in the threads
- Share a log of the error with CatLog for example


Q&A - FAQ
CM-13.0 Hayabusa Regular Questions and Answers : Q&A Thread

About CM-13.0 : https://en.wikipedia.org/wiki/CyanogenMod

The CyanogenMod team would like to thank everyone involved
in helping with testing, coding, debugging & documenting! Enjoy!




CyanogenMod available for Hayabusa also thanks to :
- The CyanogenMod Team
- CodeZero and SdtBarbarossa for originally importing Huashan CM13 sources & confirming the revival was possible
- Everyone involved in working and testing​


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

Contributors
Adrian DC
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.4.x
Based On: CyanogenMod

Version Information
Status: Snapshot
Current Stable Version: 20161220-SNAPSHOT
Current Beta Version: UNOFFICIAL

Created 2016-07-15
Last Updated 2017-03-20
 

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
Reserved

FEATURES AND ISSUES
Code:
- Boot : Ok
- GApps : OpenGApps Micro Ok
- Dual Recovery : Ok (see below)
- WiFi : Ok (real SONY MAC address)
- Bluetooth : Ok (real SONY MAC address)
- WiFi Hotspot : Ok (2.4GHz and 5GHz)
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- MicroSD : Ok
- Accelerometer : Ok
- Compass : Ok
- Gyroscope : Ok
- AOSP sensors : Ok
- FM Radio : Ok
- Vibrator : Ok
- Microphone : Ok
- Audio & external audio : Ok
- Bluetooth audio : Ok
- NFC : Ok
- Kernel : Ok, Updating frequently based on Huashan kernel
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok (RTC real hardware clock, in TWRP recovery too)
- Powered-off alarm : Ok
- Offline Charging : Ok (with SONY design)
- Encryption : Status unknown
- SEPolicies : Fully enforced

IMPORTANT FEATURES TO KNOW
  • Boot sequence : Once the LEDs light up :
    - Press Volume - to open CyanogenRecovery,
    - Press Volume + to open the FOTA recovery (TWRP usually) if available
  • Powered-off alarm : When you have set an alarm
    - If you power down the device, it will wake automatically 5 minutes before
    - If you let the device charge offline, it will automatically reboot 5 minutes before
  • Gestures : Events like hand-wave and pocket removal can be enabled in the Settings
  • Force reboot : You can reset the device by holding Power and Volume+ 5 seconds
 
Last edited:

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
Reserved

Current status of the ROM Builds
  • Nightlies : Only once everything is considered working and stable.
  • Beta : When needed. Newest changes to test, full builds or kernels / packages to flash.

Current local manifest of the ROM build
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- https://github.com/CyanogenMod/android -->
<manifest>

  <project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" />
  <project name="CyanogenMod/android_device_sony_common" path="device/sony/common" remote="github" />

  <project name="CyanogenMod/android_external_stlport" path="external/stlport" remote="github" />
  <project name="CyanogenMod/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" />
  <project name="CyanogenMod/android_hardware_sony_thermanager" path="hardware/sony/thermanager" remote="github" />

  <project name="AdrianDC/android_device_sony_blue-common" path="device/sony/blue-common" remote="github" />
  <project name="AdrianDC/android_device_sony_hayabusa" path="device/sony/hayabusa" remote="github" />
  <project name="AdrianDC/android_kernel_sony_msm8x60" path="kernel/sony/msm8x60" remote="github" />
  <project name="AdrianDC/proprietary_vendor_sony" path="vendor/sony" remote="github" />

</manifest>
 
Last edited:

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
Alright migration helpers finished, ready for public release !

Please read the details added to the main post about the process.
No help will be given if you do not want to read everything
I spent time writing & displaying on error during the flash processes.

Should you read everything correctly and follow all the instructions
given to you by all the securities embedded in my zips, and still have issues,
then maybe shall I and other consider helping you.

I'm not saying that to be mean but because this is meant to be performed totally autonomously,
and the details I gave on the first post and all instructions & warnings from the zip
have to be enough for the less experienced users who takes time to read,
since I will then be adding this all on the CM Wiki pages.

To upgrade, you'll need the zips for the unification mentioned in the OP,
the latest CM13 release for your device, and optionally, the latest TWRP release from today.
 
Last edited:

cornpoppy

Member
May 18, 2009
16
11
0
Thanks for updates! The zip file for user data unification works great. But there seems some UI issue for cm-13.0-20160722-UNOFFICIAL-hayabusa.zip. Tapping on the bottom part of the screen doesn't response properly, but triggers notification drop down menu.
 

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
Thanks for updates! The zip file for user data unification works great. But there seems some UI issue for cm-13.0-20160722-UNOFFICIAL-hayabusa.zip. Tapping on the bottom part of the screen doesn't response properly, but triggers notification drop down menu.
CM failed commit, fixed last night.
I made a new release overnight.
 

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
About the sleep of death : So far, nothing relevant found or a certain way to reproduce it,
totally random & I must be the one who has it the less on the whole planet, which makes it even harder...

About the touchscreen issues in call : I think Xperia TX Hayabusa is not affected by that bug,
because its Clearpad touchscreen already has the support for the new system handling incall suspends,
however I might be wrong and it could not work properly, although it's very unlikely.
Please report on that just to confirm it's alright for Hayabusa too (In-call + proximity, touchscreen must be ignored).
 
  • Like
Reactions: cornpoppy

Antiga Prime

Senior Member
Sep 25, 2012
994
637
113
@Adrian DC

Hey, so first of all, thanks for reviving this old phone. Was actually planning on testing, made backup, formatted data/caches/sdcard (ext4) inside TWRP, and tried flashing the unification zip file, I got the error

Code:
Device does not have a SDCard partition anymore
Unification unnecessary
Any ideas? Thanks

Edit:

I previously expanded my data partition according to this guide, don't know if that's relevant or not.
 
Last edited:
  • Like
Reactions: AdrianDC

Antiga Prime

Senior Member
Sep 25, 2012
994
637
113
Go in TWRP and share the output of "adb shell /sbin/sgdisk —print /dev/block/mmcblk0".
Here you go, it would seem like the sdcard isn't labeled:

Code:
Number  Start (sector)    End (sector)  Size       Code  Name
   1             256            4351   2.0 MiB     FFFF  TA
   2            4352            7423   1.5 MiB     FFFF  Boot
   3            7424           10495   1.5 MiB     FFFF  Boot2
   4           12288           53247   20.0 MiB    FFFF  Kernel
   5           53248           55295   1024.0 KiB  FFFF  TZ
   6           57344           63487   3.0 MiB     FFFF  modemst1
   7           65536           71679   3.0 MiB     FFFF  modemst2
   8           73728           79871   3.0 MiB     FFFF  fsg
   9           79872           90111   5.0 MiB     8300  ramdump
  10           90112          106495   8.0 MiB     8300  apps_log
  11          106496          139263   16.0 MiB    8300  FOTAKernel
  12          139264         2654207   1.2 GiB     8300  System
  13         2654208         3166207   250.0 MiB   8300  Cache
  14         3166208         9166015   2.9 GiB     0700  Userdata
  15         9166016        30535646   10.2 GiB    0700
Update:
@Adrian DC, so I see your script checks for the partition name at one point, so that was the root of the error, probably something that wouldn't happen to many people; I most likely forgot to give that partition it's name, fixed using `parted` and it worked, rebooting now.
 
Last edited:
  • Like
Reactions: AdrianDC

Antiga Prime

Senior Member
Sep 25, 2012
994
637
113
So flash worked, but Android only sees about 3gb of internal storage (the exact same amount that was allocated to the UserData partition originally), even though I can see it has the proper size:

Code:
Number  Start (sector)    End (sector)  Size       Code  Name
   1             256            4351   2.0 MiB     FFFF  TA
   2            4352            7423   1.5 MiB     FFFF  Boot
   3            7424           10495   1.5 MiB     FFFF  Boot2
   4           12288           53247   20.0 MiB    FFFF  Kernel
   5           53248           55295   1024.0 KiB  FFFF  TZ
   6           57344           63487   3.0 MiB     FFFF  modemst1
   7           65536           71679   3.0 MiB     FFFF  modemst2
   8           73728           79871   3.0 MiB     FFFF  fsg
   9           79872           90111   5.0 MiB     8300  ramdump
  10           90112          106495   8.0 MiB     8300  apps_log
  11          106496          139263   16.0 MiB    8300  FOTAKernel
  12          139264         2654207   1.2 GiB     8300  System
  13         2654208         3166207   250.0 MiB   8300  Cache
  14         3166208        30535646   13.0 GiB    8300  Userdata
I can't see "internal storage" in TWRP, only "Legacy SDCard", and "Legacy SDCard" can't even be mounted.
 

dzadzev

Senior Member
May 24, 2011
318
189
0
Macedonia
So flash worked, but Android only sees about 3gb of internal storage (the exact same amount that was allocated to the UserData partition originally), even though I can see it has the proper size:



I can't see "internal storage" in TWRP, only "Legacy SDCard", and "Legacy SDCard" can't even be mounted.
Flash fix-userdata zip, format that new partition ...
 
  • Like
Reactions: Antiga Prime

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,943
208
Île-de-France
adriandc.github.io
@Adrian DC, so I see your script checks for the partition name at one point, so that was the root of the error, probably something that wouldn't happen to many people; I most likely forgot to give that partition it's name, fixed using `parted` and it worked, rebooting now.
Exactly, good job on understanding it all by yourself !

As you can see, my scripts will refuse to work if there is anything wrong on the device.
Also notice the fact that even if you had change the partitions sizes, everything will work.


To everyone : If you restore a backup, or fail to follow the instructions saying you have to Factory Reset,
and when required flash fix-userdata-YYYYMMDD-blue.zip, you won't see the full partition size.

Very important about all TX Users ! I need to know if one of you ever had a Sleep of Death !
 
Last edited: