[ROM][FINAL][7.1] CyanogenMod 14.1 for Xperia SP

Search This thread

Kaffeetrinker

Senior Member
May 15, 2015
326
164
33
Eppelborn
Am I right that the regular CMUpdater is still broken in CM14 for users who are using the adoptable storage feature?
I'm still on CM13 because of Xposed, so I don't know.

But I just had an idea how to fix it:
Regular CMUpdater uses a folder inside the user folder.
This folder is not accessible in CM Recovery because it's on the encrypted SD card. That's why CMRecovery won't find the update.

Would it be possible to

1. create a symlink/hardlink from
/storage/emulated/0/cmupdater
to
/storage/obb/cmupdater
So, we have no need to mess with the Update-Downloader. This hardlink should (of course) only be created when there's adopted storage.
One could also implememt the alternative download folder into the Downloader I guess.

and

2. Tell the recovery to look for updates not only in
/storage/emulated/0/cmupdater
but also in
/storage/obb/cmupdater
Because this folder is accessible even on devices with adopted storage when in CM recovery.

I think choosing the obb folder is a good idea because updates are (in some way) non-user-specific data. Just like the data that are supposed to go into the obb folder.

I'd try creating the hardlink myself, but as far as I've read, SELinux prevents me from creating hardlinks. Does a Rom developer have influence on these SELinux rules?

Do you think this is possible? If yes, would you be interested / having time to implement this?

EDIT:
I just got that I wasn't right about the nature of the obb folder.
But maybe there's another folder that could be used in the mentioned way.

EDIT2:
I was right about the obb folder. The obb folder that's on internal storage can be accessed via
/data/media/obb
I think you could also add
/data/media/cmupdater
Would look best.

@Adrian DC
I made a mistake when mentioning you when I posted this, so maybe you oversaw (or overlook? I always mix up these two words) my idea.
What do you think? Stupid, interesting, something else?
 
Jan 1, 2017
11
0
Offline charging problem

I have Sony Xperia SP with cyanogenmod 14 official. Now my Hp is not charging battery lvl 0%. When I connect my Xperia with charger, the logo Sony is appear first and then the lvl of battery (0%) and the red led and then green led appear. And after 2 second after that the backlights screen is on and then no one appear in LCD. I have charging for a couple hours but the Xperia still not charging. Can you help me? My battery level still 0% every time I connect to charger.
 

Xcpro

Senior Member
Aug 7, 2015
68
28
Verona
I have Sony Xperia SP with cyanogenmod 14 official. Now my Hp is not charging battery lvl 0%. When I connect my Xperia with charger, the logo Sony is appear first and then the lvl of battery (0%) and the red led and then green led appear. And after 2 second after that the backlights screen is on and then no one appear in LCD. I have charging for a couple hours but the Xperia still not charging. Can you help me? My battery level still 0% every time I connect to charger.
Volume button blocked? With fake fastboot mode?

Sent from my Xperia SP using XDA-Developers mobile app
 

Cyrus.xda

Senior Member
Jul 28, 2015
127
25
Hi Mr Adrian I Have Very Bad Problem I Have Multirom Primary Android 4.3 Official And Secondary Cm 14.1 i just want to go to recovery TWRP YOU JUST DESIGNED FOR MULIROM BUT SUDDENLY I PRESS VOLUME DOWN AND STRAIT IM JUST GO TO CM RECOVERY WITHOUT DOING ANYTHING BUT WHEN I GO BACK TO MY OFFICIAL ROM DOESN'T ACCESS TO MY INTERNAL STORAGE ANY MORE EVERY APP JUST WORKS FINE BUT ACCESS DENIED FOR INTERNAL STORAGE BUT ON MY SECONDARY ROM CM 14.1 EVERYTHING IS OK LAST TIME I FACED THIS PROBLEM I JUST I HAVE TO WIPE EVERYTHING RELOCK BOOTLOADER AND FLASH OFFICIAL ROM AGAIN TO ACCESS MY INTERNAL STORAGE BECAUSE I DO EVERYTHING EVEN RESTORE FROM BACKUP BUT DIDN'T HELP ITS SOS FOR ME BECAUSE I CAN'T DO THIS AGAIN IF ANYTHING GOT WRONG ITS BECAUSE SOMETING WITH CM RECOVERY THAT CAUSE MY INTERNAL STORAGE ACCESS DENIED IN MY PRIMARY ROM ANDROID 4.3 IM SO SORRY I DONT HAVE ANY LOGS PLEASE PLEASE HELP ME ???

Sent from my Xperia SP using Tapatalk
 
Jan 1, 2017
11
0
You have to remove the elastic cord that block the volume button when you insert usb charge. After charge is starting you can replace It.

Sent from my Xperia SP using XDA-Developers mobile app

Do you mean I should remove the rubber band? The result still same please look this video

http://sendvid.com/9fhc8wk5

---------- Post added at 01:49 AM ---------- Previous post was at 01:45 AM ----------

You have to remove the elastic cord that block the volume button when you insert usb charge. After charge is starting you can replace It.

Sent from my Xperia SP using XDA-Developers mobile app

You should NOT flash a ROM build by Adrian DC.

Why bro? Give me the reason, sorry iam newbie.
 

OsGhaly

Senior Member
Jan 26, 2014
605
351
Cairo
Do you mean I should remove the rubber band? The result still same please look this video

http://sendvid.com/9fhc8wk5

---------- Post added at 01:49 AM ---------- Previous post was at 01:45 AM ----------





Why bro? Give me the reason, sorry iam newbie.
Just use a charger with a little bit higher voltage than the stock charger (charge it to 5% to be able to boot your phone) then use the stock charger to complete charging to 100%.

Sent from my Xperia SP using Tapatalk
 
Jan 1, 2017
11
0
Just use a charger with a little bit higher voltage than the stock charger (charge it to 5% to be able to boot your phone) then use the stock charger to complete charging to 100%.

Sent from my Xperia SP using Tapatalk

Ok I'll try with iPad charger. And I charge with usually or I charge with the volume button press with rubber band help?

I just try to charge with iPad adapter. But the result still same. The Sony appear, the red led is appear. Nd then off and the system restart the Sony appear. What's happen with my Xperia? Yesterday I try to charge with volume button press and then volume down press charging. But the result still same.
 
Last edited:

AdrianDC

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

Xcpro

Senior Member
Aug 7, 2015
68
28
Verona
Do you mean I should remove the rubber band? The result still same please look this video

http://sendvid.com/9fhc8wk5

---------- Post added at 01:49 AM ---------- Previous post was at 01:45 AM ----------





Why bro? Give me the reason, sorry iam newbie.
Yes. And yes, could be a charger problem. Or maybe could be a permanent blocked volume button, in that case you have to send to repair center. Good luck.

Sent from my Xperia SP using XDA-Developers mobile app
 

todonormal

Senior Member
Jun 3, 2011
389
94
Puerto Rico, Caqueta
Ok I'll try with iPad charger. And I charge with usually or I charge with the volume button press with rubber band help?

I just try to charge with iPad adapter. But the result still same. The Sony appear, the red led is appear. Nd then off and the system restart the Sony appear. What's happen with my Xperia? Yesterday I try to charge with volume button press and then volume down press charging. But the result still same.

Your phone working good before with cyanogenmod 14.1? Do you use equal sd card?
Disconnect.
Pulse button back(hardware reset) 20 seg
Comment your results
 

Top Liked Posts

  • There are no posts matching your filters.
  • 91
    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 7.x (Nougat),
    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 14.1 Release post : https://wiki.cyanogenmod.org/w/Huashan_Info


    Downloads Links
    CyanogenMod 14.x (Unlocked Bootloader) :
    Xperia SP (Huashan) : https://mega.nz/#F!i4dnRRQS!Vg9KW-BnNg6jjcg35u7jXA

    Google Applications (optional) :
    OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 7.x, 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/xpe...t/recovery-twrp-3-0-0-touch-recovery-t3309938

    Useful alternatives to CM Updater (with Deltas) : CM Downloader on Play Store
    About CyanogenMod : ChangeLog available on http://www.cmxlog.com/14.1/huashan/
    About CyanogenMod 14 Device Side : See my GitHub trees linked below


    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 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 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

    CyanogenMod day-to-day updates :
    - (Information) Don't wipe anything unless you want to
    - (Information) Being Nightlies, try to have a safe backup once a month
    - Update to latest Nightly using CM Updater or CM Downloader (link above)
    - 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-14.x Huashan Regular Questions and Answers : Q&A Thread

    About CM-14.x : 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 Huashan also thanks to :
    - The CyanogenMod Team
    - Everyone involved in working and testing​

    XDA:DevDB Information
    CyanogenMod 14.1, ROM for the Sony Xperia SP

    Contributors
    Adrian DC
    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.4.x

    Version Information
    Status: No Longer Updated

    Created 2016-09-14
    Last Updated 2017-03-20
    58
    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, only Ext4 support missing from ROM
    - 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
    - Graphics : Ok
    - 3D Rendering : Ok
    - Clock : Ok (RTC real hardware clock, in TWRP recovery too)
    - Powered-off alarm : Ok
    - Offline Charging : Ok
    - 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
    44
    Reserved

    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="CyanogenMod/android_packages_apps_FMRadio" path="packages/apps/FMRadio" 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>
    37
    GPS is perfect for me and I use it every day, can't tell for now.
    Neither for awake, for now I'm getting my best battery lifetimes & no deep-sleep issue.

    Small screenshot of tonight's work on 7.1 ;).
    36
    New 14.1 build coming soon, with various improvements and working camcorder.

    As always, DO NOT forget to upgrade GApps to 7.1 too.

    PS: Build restarted because camcorder commits were missing somehow.