[ROM][SNAPSHOT][5.1.1] CyanogenMod 12.1 for Xperia SP

Search This thread

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,950
Île-de-France
adriandc.github.io
logo-cid.png

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 5.1 (Lollipop),
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.


Downloads Links
CyanogenMod 13.0 Now Official :
XDA : http://forum.xda-developers.com/xperia-sp/orig-development/rom-t3347677
Nightly : http://download.cyanogenmod.org/?device=huashan

CyanogenMod 12.1 (Unlocked Bootloader) :
Final Build : https://mega.nz/#F!uk0iWSKS!KQ1HKLXJC6oPpoO61zK7Sg

Google Applications (optional) :
OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 5.1, Micro or Pico)

Recommended Recovery (optional) :
TWRP 3.0 : http://forum.xda-developers.com/xpe...t/recovery-twrp-3-0-0-touch-recovery-t3309938

About GApps : Flash the GApps before the first boot. If not, a clean flash is recommended.


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 12.1 ROM zip from the Recovery
- (Optional) Flash the GApps
- Reboot

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

Additional Links

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
About CM-12.1 : https://en.wikipedia.org/wiki/CyanogenMod

Main Q&A Thread : http://forum.xda-developers.com/xperia-sp/help/qa-cyanogenmod-12-1-t3070956

Q : Is root access included into CM ?
A : Go into Settings, About Phone. Tap "Build number" 7 times.
> Go back, open Developer options. Change "Root access" option.

Q : Is the ROM suited for daily usage ?
A : Definitely yes.

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


CyanogenMod available for Huashan also thanks to :
- The CyanogenMod Team
- Mrcl1450 (Marcelo)
- uberlaggydarwin (Brinly)
- Everyone involved in working and testing.​

XDA:DevDB Information
Cyanogenmod 12.1, ROM for the Sony Xperia SP

Contributors
Adrian DC
Source Code: https://github.com/CyanogenMod/android_device_sony_huashan

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x

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

Created 2016-03-15
Last Updated 2017-03-20
 
Last edited:

AdrianDC

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

FEATURES AND ISSUES
Code:
[B]- Boot :[/B] Ok
[B]- GApps :[/B] OpenGApps Micro Ok
[B]- GPS :[/B] Ok
[B]- WiFi :[/B] Ok [I](real SONY MAC address)[/I]
[B]- Bluetooth :[/B] Ok [I](real SONY MAC address)[/I]
[B]- WiFi Hotspot :[/B] Ok (2.4GHz and 5GHz)
[B]- RIL - Phone - Data :[/B] Ok
[B]- Camera :[/B] Ok
[B]- Camcorder :[/B] Ok
[B]- Accelerometer :[/B] Ok
[B]- Compass :[/B] Ok
[B]- Gyroscope :[/B] Ok
[B]- AOSP sensors :[/B] Ok
[B]- FM Radio :[/B] Ok
[B]- Vibrator :[/B] Ok
[B]- Microphone :[/B] Ok
[B]- Audio & external audio :[/B] Ok
[B]- Bluetooth audio :[/B] Ok
[B]- NFC :[/B] Ok
[B]- Kernel :[/B] Ok
[B]- Graphics :[/B] Ok
[B]- 3D Rendering :[/B] Ok
[B]- Offline Charging :[/B] Ok [I](with SONY design)[/I]
[B]- SEPolicies :[/B] Fully enforced
 
Last edited:

AdrianDC

Recognized Developer
Dec 22, 2009
2,206
12,950
Île-de-France
adriandc.github.io
About my CyanogenMod 12.1 Addons packages
  • FM Transmitter : Enables the FM transmission, built in the QCOM FM (Verify your country's laws first)
  • Gestures : Add my Gestures Doze implementation (108747)
  • QuickBoot : Add the hibernation feature to the developer settings

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_hardware_qcom_fm" path="hardware/qcom/fm" 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_huashan" path="device/sony/huashan" remote="github" />
  <project name="AdrianDC/android_kernel_sony_msm8960t" path="kernel/sony/msm8960t" remote="github" />
  <project name="AdrianDC/proprietary_vendor_sony" path="vendor/sony" remote="github" />

</manifest>
 
Last edited:

sadab

Senior Member
Apr 26, 2013
127
46
Dhaka
SD Card

Can anyone will tell me what causes my external sd to change directory . On previous build(20150710) my sd card location was on /storage/sdcard1 but after flashing any latest update my sd card location changes to /mnt/media_rw/sdcard1/ . I can't use my sdcard . It happened on every latest update i flashed . i didn't find any way to fix my sd card location that's why i can't update the rom to latest build . I clean installed the rom . but the result was zero.

EDIT : The actual problem is on the latest build's kernel image . I just flashed the latest build and after the boot i flashed the my old 20150710 build's kernel . Now the external sd card location is on the /storage/sdcard1 directory .
 
Last edited:

K-Ge

Member
Apr 7, 2015
21
5
Feature request: An option to toggle video stabilizer on/off on CM 12.1 stock camera

First of all, i apologize if i'm rude to posting here and suddenly asking something. I was already asking this question on Q&A thread for 5 days, and still no answer. I assume, that my question on Q/A thread was impossible to do in normal way.

My request are an option to toggle video stabilizer on/off when recording video using CM 12.1 Stock camera app, or disable it all the way.

I don't know if it possible via flashing some update, third party camera app or have to edit some system parameter using root apps. I will gladly become first tester if it will available.

When recording video at sufficient light situation, most of the time, video stablizer works well. But when it comes to low light situation, video stabilizer become a hassle and even, degrade the quality of videos. (unnecessary stabilize, videos shaking by itself because capturing noise as stabilized point.)

Thanks alot. You are doing great work for humanity!
 

AbboodSY

Senior Member
May 3, 2014
395
276
Homs
Will this rom wont lag after a few days? Most of these roms does :C


Of course it will lag even if your phone is the Z10 as long as you are squeezing it with all android apps ! keep in mind that the SP has approximately 500MB of free ram so it wont stay smooth if you filled it with all GP store's apps! and please everyone stop asking such noob questions in the development thread!!

Sent from my Xperia SP using XDA Forums Pro.
 

dic1911

Senior Member
Feb 22, 2014
805
797
dic1911.github.io
Google Pixel 4a 5G
Of course it will lag even if your phone is the Z10 as long as you are squeezing it with all android apps ! keep in mind that the SP has approximately 500MB of free ram so it wont stay smooth if you filled it with all GP store's apps! and please everyone stop asking such noob questions in the development thread!!

Sent from my Xperia SP using XDA Forums Pro.

you're right, but those noobs don't even read before they ask *sighed*
 
  • Like
Reactions: christianounico

gmsalomao2

Senior Member
Dec 25, 2014
218
55
Currently on nightly 2016-02-24

I was trying to install gReader Pro 4.2 from Play Store and always getting "error -505" after trying many many things, I decided to install from ADB and got this error:

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

I have installed gReader on my Nexus 7 with CM12.1, so it's probably not related to Lolipop incompatibility.
 

AbboodSY

Senior Member
May 3, 2014
395
276
Homs
Currently on nightly 2016-02-24

I was trying to install gReader Pro 4.2 from Play Store and always getting "error -505" after trying many many things, I decided to install from ADB and got this error:

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

I have installed gReader on my Nexus 7 with CM12.1, so it's probably not related to Lolipop incompatibility.


Then download the APK from any external link on the internet..

Sent from my Xperia SP using XDA Forums Pro.
 

gmsalomao2

Senior Member
Dec 25, 2014
218
55
Then download the APK from any external link on the internet..

Sent from my Xperia SP using XDA Forums Pro.
I did. That is how I could try to install from ADB terminal, on my PC.

Here is the output of logcat:
E/Finsky (6893): [1] com.google.android.finsky.installer.x.onReceive(2496): Error -505 while installing com.noinnion.android.greader.readerpro: INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.noinnion.android.greader.readerpro signatures do not match the previously installed version; ignoring!
03-18 11:39:55.834 W/Finsky (6893): [1] com.google.android.finsky.receivers.ag.a(2143): Install failure of com.noinnion.android.greader.readerpro: -505 null
03-18 11:39:55.878 I/Finsky (6893): [1] com.google.android.finsky.receivers.u.a(755): Cancel running installation of com.noinnion.android.greader.readerpro (com.noinnion.android.greader.readerpro)

UPDATE: SOLVED!
Here's what I did:
1 - Found out where signatures where stored (/data/system/packages.xml).
2 - Tried to edit the file, but it would restore on every reboot.
3 - So I did the following:
Code:
~$ adb shell
~$ su
~# chmod 666 /data/system/packages.xml
4 - Opened Solid Explorer app (gave it root access) and opened the 'packages.xml' file directly from the phone.
5 - Removed the gReader entry that was in the file and saved.
6 - Still in Solid Explorer, navigated to /data/dalvik-cache/ and deleted everything.
7 - Reboot
Code:
~$ adb reboot

8 - Installed gReader Pro successfully :)
 
Last edited:

Ypolitos

Member
Nov 11, 2015
19
2
Hi, is there any way to shoot raw dng on huashan cm12.1? I installed camera2 zip file from cm13 addons of adrian dc but nor dng neither manual exposure can I adjust.
 

AndyCZ0527

New member
Mar 21, 2016
4
0
Battery drains while phone off

Hi. I have been trying Nightly for about two weeks in my xperia 5303, I am still having the same problem:

My battery drains when my phone is off. In 8 hours drians more or less 30%, and also drains the same amount in airplane mode.

Do you know if is there something to fix this. Do this happen to anyone?

By the way, so far that is my only problem. Everything else goes perfectly (at least that is what Ive felt).

1% every 15 to 20 minutes in Stand by mode.
3% every 1 minute while normal use (I think it is ok, but not sure).

Thank you.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48
    logo-cid.png

    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 5.1 (Lollipop),
    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.


    Downloads Links
    CyanogenMod 13.0 Now Official :
    XDA : http://forum.xda-developers.com/xperia-sp/orig-development/rom-t3347677
    Nightly : http://download.cyanogenmod.org/?device=huashan

    CyanogenMod 12.1 (Unlocked Bootloader) :
    Final Build : https://mega.nz/#F!uk0iWSKS!KQ1HKLXJC6oPpoO61zK7Sg

    Google Applications (optional) :
    OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 5.1, Micro or Pico)

    Recommended Recovery (optional) :
    TWRP 3.0 : http://forum.xda-developers.com/xpe...t/recovery-twrp-3-0-0-touch-recovery-t3309938

    About GApps : Flash the GApps before the first boot. If not, a clean flash is recommended.


    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 12.1 ROM zip from the Recovery
    - (Optional) Flash the GApps
    - Reboot

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

    Additional Links

    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
    About CM-12.1 : https://en.wikipedia.org/wiki/CyanogenMod

    Main Q&A Thread : http://forum.xda-developers.com/xperia-sp/help/qa-cyanogenmod-12-1-t3070956

    Q : Is root access included into CM ?
    A : Go into Settings, About Phone. Tap "Build number" 7 times.
    > Go back, open Developer options. Change "Root access" option.

    Q : Is the ROM suited for daily usage ?
    A : Definitely yes.

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


    CyanogenMod available for Huashan also thanks to :
    - The CyanogenMod Team
    - Mrcl1450 (Marcelo)
    - uberlaggydarwin (Brinly)
    - Everyone involved in working and testing.​

    XDA:DevDB Information
    Cyanogenmod 12.1, ROM for the Sony Xperia SP

    Contributors
    Adrian DC
    Source Code: https://github.com/CyanogenMod/android_device_sony_huashan

    ROM OS Version: 5.1.x Lollipop
    ROM Kernel: Linux 3.4.x

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

    Created 2016-03-15
    Last Updated 2017-03-20
    23
    Today's build is fully updated with the latest kernel, that I am ready to merge as it is.
    The replaced fake touchscreen issues are gone, and everything works fine so far.


    Only a bit of sepolicies fixing will come later, rest won't change much anymore.

    Merging into 12.1 Nightlies once it's confirmed to be ok for everyone.
    22
    About my CyanogenMod 12.1 Addons packages
    • FM Transmitter : Enables the FM transmission, built in the QCOM FM (Verify your country's laws first)
    • Gestures : Add my Gestures Doze implementation (108747)
    • QuickBoot : Add the hibernation feature to the developer settings

    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_hardware_qcom_fm" path="hardware/qcom/fm" 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_huashan" path="device/sony/huashan" remote="github" />
      <project name="AdrianDC/android_kernel_sony_msm8960t" path="kernel/sony/msm8960t" remote="github" />
      <project name="AdrianDC/proprietary_vendor_sony" path="vendor/sony" remote="github" />
    
    </manifest>
    21
    CyanogenMod 12.1 Huashan official SNAPSHOT released !

    Thread & downloads folder cleaned up a bit, project considered finished and won't be reopened.

    12.1 builds main interest for users will be FM Transmitter support, otherwise, join CM-13.0 :good:.
    19
    With the new kernel update I still work on, about 450-500 commits ahead so far,
    I have nearly 0%-1% battery lost overnight on both SPs with CM-12.1 and CM-13.0,
    so you could try my Beta builds to compare.

    Sent from my Xperia SP running CyanogenMod 12.1
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone