• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[DISCONTINUED][ROM][V2 08.12.2016] CyanogenMod 14.1 BETA (NMF26O) for SGP611/SGP621

Search This thread

lowtraxx

Senior Member
Sep 20, 2007
632
1,239
Augsburg
blog.toshsoft.de
This ROM is discontinued. The successor of CyanogenMod is LineageOS which can be found in the corresponding Thread. The Downloads will be left here for the time being.

Disclaimer: Flash at your own risk! Backup your data before flashing! I am not responsible for bricked devices, World War III or your exploding cats!
Warning: The SGP611 images are not tested, but just built by me, as I do not own the device. But as the two devices are the same except for the 4G Modem, it should work. If not, please let me know.

About:
As my beloved SGP621 was just collecting dust, I decided to try porting Android 7.1 AOSP onto it. That worked well, so I moved on to CM 14.1
And voila, with a few tweaks here and there, it works (for the most part). But this is still considered BETA, so be warned and flash at your own risk.

What works:
- Display
- Sound
- WiFi
- 4G Data
- Bluetooth
- NFC (somewhat flakey)
- LED
- Magnetic Cover Sleep/Wake
- Double-Tap to wake

What doesn't work:
- FM Radio (It works, but only if Bluetooth is off and breaks if BT is on while Radio gets enabled)
- Camera (Taking Pictures works, but sometimes the camera is not able to connect. Taking a video crashes the mediaserver.)
- LiveDisplay is not working correctly
- Performance Profiles cannot be set (CM14.1 issue)
- You tell me

If your battery depletes rapidly, please disable NFC and check if it betters things. Then comment here, so I can look into it.

Flashing Recovery (This only applies if you do not have one already. If you do, go to the Flashing section below):
If you flash for the first time, you first need to download the CM recovery for your device from below.
To flash it, you need to put your tablet into fastboot mode (VolUp + plugging in USB-Cable) and then flash the recovery like this:
Code:
fastboot flash FOTAKernel recovery-scorpion.img
If you come from stock or from a ROM that does not support Recovery on the FOTAKernel partition, you also need to fastboot flash the boot image for your device before rebooting into recovery.
Code:
fastboot flash boot boot-scorpion.img

Flashing:
If you installed the recovery to the FOTAKernel partition then, while booting, get your device into recovery mode, by hitting VolUp multiple times once the LED flashes purple. Do so until it turns orange. (If you already have another recovery installed, boot into it.)
Now select install from adb sideload and from your computer issue:
Code:
adb sideload cm-14.1-(DATE)-UNOFFICIAL-scorpion(_windy).zip

gapps:
CM14.1 was tested with open gapps for Nougat 7.1 arm (nano confirmed working, others could be problematic)

Tips for better battery life:
I installed Naptime to trigger deep doze as soon as the tablet goes to sleep. I also enabled zzmoove cpu gov and noop scheduler in the kernel options. Because of the high display brightness. This leads to me getting standby battery consumption of around 1.2% per hour (measured with GSam Battery Monitor) which is nearly the same amount I got with stock.

Changelog:
21.12.2016 - V4:
- Newest CM, Sony and Android sources
- Security patches
- Lots of UI fixes
- Support for SDCardFS
- Support for LiveDisplay
08.12.2016 - V3:
- Updated to Android 7.1.1 (NMF26O)
- Updated to newest sources (CM and Sony)
- Added workaround for charging wakelock (thanks rcstar6696)
- FM Radio works (only if Bluetooth is off, breaks if BT is on while Radio gets enabled)
04.12.2016 - V2.1:
- Updated to newest sources (CM and Sony)
- Added UHS SD-Card fix from koron393
03.12.2016 - V2:
- Updated to newest CM14.1 sources
- Updated to newest Sony kernel and driver sources
- Integrated Widevine DRM for Play Movies
- Lots of fixes and enhancements
- Better battery life
- Lowered user configurable mimimal brightness
02.11.2016 - V1:
- Initial release: Everything except Camera and Radio is working. Camera uses HAL1.

Thanks:
- Sony, for providing awesome AOSP support on github
- alviteri for providing me with pointers and help on my porting issues
- koron393 for the UHS SDCard fix

Downloads:
V4 - GDrive - CM14.1 Scorpion (SGP621)
V4 - GDrive - CM14.1 Scorpion Windy (SGP611)
Recovery - GDrive - Scorpion (SGP621) recovery
Recovery - GDrive - Scorpion Windy (SGP611) recovery

Older Versions:
V3 - GDrive - CM14.1 Scorpion (SGP621)
V3 - GDrive - CM14.1 Scorpion Windy (SGP611)
V2.1 (sdfix) - GDrive - CM14.1 Scorpion (SGP621)
V2.1 (sdfix) - GDrive - CM14.1 Scorpion Windy (SGP611)
V1.0.1 - GDrive - SGP621: cm-14.1-BETA-scorpion.zip
V1 - GDrive - SGP611: cm-14.1-BETA-scorpion_windy.zip
 

Attachments

  • Screenshot_20161122-231525.png
    Screenshot_20161122-231525.png
    59.4 KB · Views: 1,514
  • Screenshot_20161122-231633.png
    Screenshot_20161122-231633.png
    126.3 KB · Views: 1,638
  • Screenshot_20161122-231612.jpg
    Screenshot_20161122-231612.jpg
    135.3 KB · Views: 1,609
  • Screenshot_20161122-231619.jpg
    Screenshot_20161122-231619.jpg
    90.1 KB · Views: 1,579
Last edited:

bogdaniux

Member
Sep 13, 2012
15
1
Good work!!! Done it. Works fine until now. Will do more research in the morning. Anyway, there is an issue with Google Play. It says that my device isn't compatible with a lot of apps that I normally use. I flashed multiple variants of 7.1 Gapps. Which one did you use? What about build.prop? Or dpi? No idea. I will get back tomorrow with more feedback. Keep it up!

Sent from my MHA-L29 using Tapatalk
 
Last edited:

lowtraxx

Senior Member
Sep 20, 2007
632
1,239
Augsburg
blog.toshsoft.de
Good work!!! Done it. Works fine until now. Will do more research in the morning. Anyway, there is an issue with Google Play. It says that my device isn't compatible with a lot of apps that I normally use. I flashed multiple variants of 7.1 Gapps. Which one did you use? What about build.prop? Or dpi? No idea. I will get back tomorrow with more feedback. Keep it up!

Please give an example of an app which does not work, so I can test and have a look in the logs. Below solution should fix those problems.

For anyone who wants to fix this without flashing the full fixed version. Please download attached file, enable root for adb and do the following:
Code:
adb push tablet_core_hardware.xml /sdcard/
adb shell
su
mount -o rw,remount /system
cp /sdcard/tablet_core_hardware.xml /system/etc/permissions/
chmod 644 /system/etc/tablet_core_hardware.xml
reboot
Your device should reboot then and all the capabilities should be available again.
 

Attachments

  • tablet_core_hardware.xml
    3.3 KB · Views: 76
Last edited:

lowtraxx

Senior Member
Sep 20, 2007
632
1,239
Augsburg
blog.toshsoft.de
damn, you're on fire hahaha. i'll be waiting for the SGP611 version. :D

SGP611 Version is up. Everyone who flashed the build for SGP621 please follow the instructions in my last post or flash the 1.0.1 version. Otherwise some apps from the playstore may not download/work.

Good work!!! Done it. Works fine until now. Will do more research in the morning. Anyway, there is an issue with Google Play. It says that my device isn't compatible with a lot of apps that I normally use. I flashed multiple variants of 7.1 Gapps. Which one did you use? What about build.prop? Or dpi? No idea. I will get back tomorrow with more feedback. Keep it up!

Sent from my MHA-L29 using Tapatalk

Could you please try the fix described in the last post and report back if that eliminates your problems?
 
Last edited:

bogdaniux

Member
Sep 13, 2012
15
1
I have just flashed 1.0.1. The matter with Google Play is resolved. Kudos!

Sent from my Xperia Z3 Tablet Compact using Tapatalk
 

bogdaniux

Member
Sep 13, 2012
15
1
I had 3 crashes in 2h, while I was playing Clash of Clans. Always within a minute after waking the tablet from deep sleep. I tried to mimic the situation and get an adb logcat, but it doesn't crash while charging. Because it doesn't sleep. Do you think a logcat installed on the tablet could shed some light? Would that even remain logged after the crash?

Sent from my Xperia Z3 Tablet Compact using Tapatalk
 

lowtraxx

Senior Member
Sep 20, 2007
632
1,239
Augsburg
blog.toshsoft.de
I had 3 crashes in 2h, while I was playing Clash of Clans. Always within a minute after waking the tablet from deep sleep. I tried to mimic the situation and get an adb logcat, but it doesn't crash while charging. Because it doesn't sleep. Do you think a logcat installed on the tablet could shed some light? Would that even remain logged after the crash?

Sent from my Xperia Z3 Tablet Compact using Tapatalk

There should be logcat apps in the playstore, that save the logs so you can review them afterwards. Could you also please try and disable NFC and see if that resolves the crashes? The only crashes I saw till now were all NFC related.
 

bogdaniux

Member
Sep 13, 2012
15
1
The NFC setting is just blinking on and off continuously. I'll attach a logcat anyway. There are really a lot of NFC related errorshttp://cloud.tapatalk.com/s/5835b760cefb3/Log_2016-11-23_16-29-53.txt


Sent from my Xperia Z3 Tablet Compact using Tapatalk

---------- Post added at 04:59 PM ---------- Previous post was at 04:36 PM ----------

I managed to turn it off after reboot. Fingers crossed...

Sent from my Xperia Z3 Tablet Compact using Tapatalk
 

NTRNSTR

Senior Member
Jul 30, 2016
84
29
You are amazing!

CM is working great only issue I've noticed so far is that live display isn't working but that's not a serious issue.

Keep up the awesome work:victory:

Update: Ignore this part I just found out its a problem in CM and not with this rom-Another minor bug, after disabling control ringtone volume in settings-buttons the volume keys still control the ringer volume when they should be controlling the media volume.
 
Last edited:

lowtraxx

Senior Member
Sep 20, 2007
632
1,239
Augsburg
blog.toshsoft.de
I totally agree! Still, the tablet doesn't seem to sleep after charging. And, after disabling NFC, the tablet didn't crash anymore! Very happy about that!

Sent from my Xperia Z3 Tablet Compact using Tapatalk

At the moment I am looking into forwardporting an older version of the NFC lib, as it seems to have worked then. After that I will be examining the charging issue. To be clear, this happens if you USB charge while the device is on and once it reaches 100% the wakelock is kept? Do you use a Sony chagrger? Do you charge via USB or via Magnetick Dock/Connector?
 

bogdaniux

Member
Sep 13, 2012
15
1
At the moment I am looking into forwardporting an older version of the NFC lib, as it seems to have worked then. After that I will be examining the charging issue. To be clear, this happens if you USB charge while the device is on and once it reaches 100% the wakelock is kept? Do you use a Sony chagrger? Do you charge via USB or via Magnetick Dock/Connector?
It doesn't matter which charger I use, at least, apparently. I have a DK39 Sony dock, supplied by Aukey 3.0 Qualcomm fastcharger. All variants have the same result, even laptop USB charging. I didn't use my Sony charger in a while.

Sent from my Xperia Z3 Tablet Compact using Tapatalk
 

Cyberratchet

Member
Aug 31, 2011
47
2
Vienna
First of all, thank you for your efforts lowtraxx. I still love my Z3 tablet and the splitscreen function is a useful addition to the operating system.

It’s not really an issue with your rom itself, but with Android 7 in general. Google changed the way apps can request access to the external SD card. You could just edit a file in /etc/permission in the past, but that way doesn’t work anymore. I’ve only found a workaround using Xposed, which still hasn’t been ported to Android N.

Is there another way to achieve this? I’d like to keep the SD card as an external one, but I don’t think the ComicRack developer (my main usage for this tablet) will update the app anytime soon.
 
Last edited:

noname2no

Senior Member
Mar 2, 2014
50
22
How may I contribute to get this rom running on top of the SGP-612 model (wifi 32gb)? By the way, many thanks for porting CM-14.1 to the Z3TC. This tablet is worth maintaining.
 

NTRNSTR

Senior Member
Jul 30, 2016
84
29
How may I contribute to get this rom running on top of the SGP-612 model (wifi 32gb)? By the way, many thanks for porting CM-14.1 to the Z3TC. This tablet is worth maintaining.
The only difference between the SGP-612 and SGP-611 is the storage so you could try flashing just system and boot without userdata (wipe internal storage and data in recovery first) or even flashing user data and then doing a factory reset if the wrong amount of available storage is shown (that works for nexus factory images) but I'm not sure if that will work.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 19
    This ROM is discontinued. The successor of CyanogenMod is LineageOS which can be found in the corresponding Thread. The Downloads will be left here for the time being.

    Disclaimer: Flash at your own risk! Backup your data before flashing! I am not responsible for bricked devices, World War III or your exploding cats!
    Warning: The SGP611 images are not tested, but just built by me, as I do not own the device. But as the two devices are the same except for the 4G Modem, it should work. If not, please let me know.

    About:
    As my beloved SGP621 was just collecting dust, I decided to try porting Android 7.1 AOSP onto it. That worked well, so I moved on to CM 14.1
    And voila, with a few tweaks here and there, it works (for the most part). But this is still considered BETA, so be warned and flash at your own risk.

    What works:
    - Display
    - Sound
    - WiFi
    - 4G Data
    - Bluetooth
    - NFC (somewhat flakey)
    - LED
    - Magnetic Cover Sleep/Wake
    - Double-Tap to wake

    What doesn't work:
    - FM Radio (It works, but only if Bluetooth is off and breaks if BT is on while Radio gets enabled)
    - Camera (Taking Pictures works, but sometimes the camera is not able to connect. Taking a video crashes the mediaserver.)
    - LiveDisplay is not working correctly
    - Performance Profiles cannot be set (CM14.1 issue)
    - You tell me

    If your battery depletes rapidly, please disable NFC and check if it betters things. Then comment here, so I can look into it.

    Flashing Recovery (This only applies if you do not have one already. If you do, go to the Flashing section below):
    If you flash for the first time, you first need to download the CM recovery for your device from below.
    To flash it, you need to put your tablet into fastboot mode (VolUp + plugging in USB-Cable) and then flash the recovery like this:
    Code:
    fastboot flash FOTAKernel recovery-scorpion.img
    If you come from stock or from a ROM that does not support Recovery on the FOTAKernel partition, you also need to fastboot flash the boot image for your device before rebooting into recovery.
    Code:
    fastboot flash boot boot-scorpion.img

    Flashing:
    If you installed the recovery to the FOTAKernel partition then, while booting, get your device into recovery mode, by hitting VolUp multiple times once the LED flashes purple. Do so until it turns orange. (If you already have another recovery installed, boot into it.)
    Now select install from adb sideload and from your computer issue:
    Code:
    adb sideload cm-14.1-(DATE)-UNOFFICIAL-scorpion(_windy).zip

    gapps:
    CM14.1 was tested with open gapps for Nougat 7.1 arm (nano confirmed working, others could be problematic)

    Tips for better battery life:
    I installed Naptime to trigger deep doze as soon as the tablet goes to sleep. I also enabled zzmoove cpu gov and noop scheduler in the kernel options. Because of the high display brightness. This leads to me getting standby battery consumption of around 1.2% per hour (measured with GSam Battery Monitor) which is nearly the same amount I got with stock.

    Changelog:
    21.12.2016 - V4:
    - Newest CM, Sony and Android sources
    - Security patches
    - Lots of UI fixes
    - Support for SDCardFS
    - Support for LiveDisplay
    08.12.2016 - V3:
    - Updated to Android 7.1.1 (NMF26O)
    - Updated to newest sources (CM and Sony)
    - Added workaround for charging wakelock (thanks rcstar6696)
    - FM Radio works (only if Bluetooth is off, breaks if BT is on while Radio gets enabled)
    04.12.2016 - V2.1:
    - Updated to newest sources (CM and Sony)
    - Added UHS SD-Card fix from koron393
    03.12.2016 - V2:
    - Updated to newest CM14.1 sources
    - Updated to newest Sony kernel and driver sources
    - Integrated Widevine DRM for Play Movies
    - Lots of fixes and enhancements
    - Better battery life
    - Lowered user configurable mimimal brightness
    02.11.2016 - V1:
    - Initial release: Everything except Camera and Radio is working. Camera uses HAL1.

    Thanks:
    - Sony, for providing awesome AOSP support on github
    - alviteri for providing me with pointers and help on my porting issues
    - koron393 for the UHS SDCard fix

    Downloads:
    V4 - GDrive - CM14.1 Scorpion (SGP621)
    V4 - GDrive - CM14.1 Scorpion Windy (SGP611)
    Recovery - GDrive - Scorpion (SGP621) recovery
    Recovery - GDrive - Scorpion Windy (SGP611) recovery

    Older Versions:
    V3 - GDrive - CM14.1 Scorpion (SGP621)
    V3 - GDrive - CM14.1 Scorpion Windy (SGP611)
    V2.1 (sdfix) - GDrive - CM14.1 Scorpion (SGP621)
    V2.1 (sdfix) - GDrive - CM14.1 Scorpion Windy (SGP611)
    V1.0.1 - GDrive - SGP621: cm-14.1-BETA-scorpion.zip
    V1 - GDrive - SGP611: cm-14.1-BETA-scorpion_windy.zip
    11
    First test version of LineageOS

    The first version of LineageOS is here. It will most likely replace CM14.1 and can be found in this new thread. Here are the goods:

    Changelog (LineageOS):
    05.01.2017 - V1:
    - Switch to Lineage Sources
    - Newest security patches and fixes by Sony, QCom and Google
    - Camera now records video
    - SELinux is now enforced
    - GPS on SGP611 should now work reliably (thanks koron393)
    - Bluesleep wakelock should be gone and device should deep sleep now

    Flashing from CM14.1:
    If you want to upgrade, you need to take special care and follow the instructions here or you could end up with a bootlooping device. Anyways, as always, before you try to upgrade, make a backup. I repeat, MAKE A BACKUP! LineageOS is now enforcing SELinux, which leads to all kinds of complications, but makes the device more secure in the end and is well worth the extra effort needed. So lets get to it then.
    First you need to have twrp recovery, as cm recovery is, for some reason we have not been able to figure out yet, not capable of installing GApps to the device. After that, flash the update.zip any way you want (via SD or sideload) and DIRECTLY after flash GApps (if you use them. If not you should be good to go). If you forget to flash GApps you will end up in a bootloop. But do not panic, it can be fixed by (you may have guessed) rebooting back into recovery and flashing GApps.
    10
    Lineage OS is being checked out. Will do a build tonight and test if upgrade from CM14.1 works without problems. Then it is to decide if I rename this thread or open a new one. And then hopefully in a few days time, a functioning build will be provided here for you to download and enjoy ;)
    10
    So, my tablet decided it wanted to hibernate again and refuse to boot after a low-power shutdown. A couple of times it seems to end up with disk corruption which stops it powering on or entering the charging mode following a low-battery shutdown. I can't see what's happening but the only solution seems to be patience and repeated attempts until it's possible to enter fastboot and then either wipe data in fastboot or by booting an off-board twrp image and executing the wipe from there. Either way the data partition appears to have been trashed to the extent that the devices fails to boot until a factory reset. Weird thing is that the device won't even show the sony logo, the thing fails to charge and fails to power on whatsoever. Connection via fastboot is possible but screen is never powered on, no backlight.
    I'm guessing the devs here would have stumbled into the quirks of this tablet, does it sound like bad flash or other hardware or is that a known software issue?

    Many thanks

    That sounds very strange and more like a hardware defect than a software one. My battery is relatively empty, so I will try to get it to low power shutdown and report back about the behavior of my device then.

    I'm also stuck on the latest official CyanogenMod for that piece of Hardware. As i'm on scorpion windy i'll wait for your next build (with working gps).
    Keep up the good work !

    Could others please confirm that GPS is not working for them on Windy? A friend of mine keeps insisting, that GPS works on his windy with no problems, without the fix..?

    Lineage OS is being checked out. Will do a build tonight and test if upgrade from CM14.1 works without problems. Then it is to decide if I rename this thread or open a new one. And then hopefully in a few days time, a functioning build will be provided here for you to download and enjoy ;)

    In other news. Lineage OS builds and is able to upgrade the latest version of CyanogenMod. All features that used to work seem to still work, but there is still a little more testing involved before I release the flashable images. So stay tuned.
    8
    New Version is up (V2 03.12.2016). Now a flashable zip :)

    Disclaimer: Please make a backup before flashing this. There were massive changes in CM as well as in the overall structure of my ROM. Updating should work flawlessly, but I can not guarantee it.

    Changelog:
    03.12.2016 - V2:
    - Updated to newest CM14.1 sources
    - Switched to flashable zip (can still provide img files if needed)
    - Updated to newest Sony kernel and driver sources
    - Integrated Widevine DRM for Play Movies
    - Lots of fixes and enhancements
    - Better battery life
    - Lowered user configurable mimimal brightness