[ROM] CyanogenMod 13.0 for Photon Q (Android 6.x) [UNOFFICIAL]

Search This thread
Jul 5, 2015
28
2
0
Lahore
Chrome started to crash for us after it has been updated from 54 to 55 at the beginning of December 2016. The EGL context initialization slightly changed and exposed an error in adreno EGL blob from JB which we are using. Chrome devs know about the issue and Chrome contains a workaround for older GPU blobs, but the assert is done by checking whether the android version where Chrome 55 (or newer) is running is older than KitKat, which doesn't work for us. ( https://chromium.googlesource.com/chromium/src/+/3f80f942c662cf8777d794375640d42cce93408d )

I've pushed the blob fix here: https://github.com/TheMuppets/propr...mmit/00c08be8fb201397d4ab77fc163df1b8f200f7fa

All you have to do to stop the Chrome crashes is to replace the /system/lib/egl/libEGL_adreno200.so file with the hexedited version downloaded from https://github.com/TheMuppets/propr...ommon/proprietary/lib/egl/libEGL_adreno200.so

I'd like to get the new LineageOS xt897 builds started ASAP, I just need to spare some "free" time for it, that's all.

its not working for my atrix hd phone. it freezes out my phone or stuck at boot logo. i think it will only work for Motorola Photon Q 4G LTE.
 

gtmaster303

Senior Member
Oct 19, 2010
1,569
426
0
hey guys, im running the latest nightly that was last available from cyanogenmod. ive noticed that when using the keyboard, if i type fast enough some letters dont register, even though the button was pressed. anyone else notice that? really hoping it's not hardware related...
 

arrrghhh

Inactive Recognized Developer
Feb 10, 2007
11,907
3,853
0
hey guys, im running the latest nightly that was last available from cyanogenmod. ive noticed that when using the keyboard, if i type fast enough some letters dont register, even though the button was pressed. anyone else notice that? really hoping it's not hardware related...

Unfortunately this is almost certainly hardware related.

Take a backup of your current state, flash stock and see if you want to make 100% certain...
 

zzangu83

Member
Aug 13, 2013
24
4
3
hey guys, im running the latest nightly that was last available from cyanogenmod. ive noticed that when using the keyboard, if i type fast enough some letters dont register, even though the button was pressed. anyone else notice that? really hoping it's not hardware related...

This is hardware problem and solution is changing your keydome. Sometimes, just cleaning your mainboard where is under the keydome pad might be a good solution. You can clean mainboard by alcohol or pcb cleaner.
 

neminem_

Member
Nov 4, 2013
8
1
0
Chrome started to crash for us after it has been updated from 54 to 55 at the beginning of December 2016. The EGL context initialization slightly changed and exposed an error in adreno EGL blob from JB which we are using. Chrome devs know about the issue and Chrome contains a workaround for older GPU blobs, but the assert is done by checking whether the android version where Chrome 55 (or newer) is running is older than KitKat, which doesn't work for us. ( https://chromium.googlesource.com/chromium/src/+/3f80f942c662cf8777d794375640d42cce93408d )

I've pushed the blob fix here: https://github.com/TheMuppets/propr...mmit/00c08be8fb201397d4ab77fc163df1b8f200f7fa

All you have to do to stop the Chrome crashes is to replace the /system/lib/egl/libEGL_adreno200.so file with the hexedited version downloaded from https://github.com/TheMuppets/propr...ommon/proprietary/lib/egl/libEGL_adreno200.so

For the benefit of any future googlers running into this same issue I'd been beating my head against all weekend, after experimenting with upgrading my Photon Q only to 4.4.4 via Cyanogenmod 11 (figured I'd rather keep it closer to the OS the hardware was designed for): hi! This was posted to a CM13 thread, but yes, it absolutely was also the case in Cyanogenmod 11 as well. I haven't tried that blob fix (dunno if it exactly applies to CM11?) - but I just downgraded my Chrome install back to v54, and it's not crashing anymore in CM11. :)
 
Last edited:

tobby88

Senior Member
Jul 4, 2012
229
58
48
Hanover
OnePlus 5
I've pushed the blob fix here: https://github.com/TheMuppets/propr...mmit/00c08be8fb201397d4ab77fc163df1b8f200f7fa

All you have to do to stop the Chrome crashes is to replace the /system/lib/egl/libEGL_adreno200.so file with the hexedited version downloaded from https://github.com/TheMuppets/propr...ommon/proprietary/lib/egl/libEGL_adreno200.so
After switching to my Droid 4 for a while (because I thought it's a hardware issue) I am back on my Photon Q. Works great again :) This not only helped with the Chrome crashing issues but also with some other crashing or not fully rendering apps like dict.cc, HVV and some more.

I'd like to get the new LineageOS xt897 builds started ASAP, I just need to spare some "free" time for it, that's all.
Oh that would be great :) But the Q runs also great with the latest CM nightly (19th of December). :) I now installed Servicely to quit nearly all apps in background. This helped a lot when doing a little multitasking - I had several lags before. But for sure this will sometimes end the app you want to switch back to when it is in background... ^^
 

rahimali

Senior Member
Jul 25, 2007
1,578
775
143
forum.xda-developers.com
Flashing this on a Razr M

A few questions please if someone doesn't mind answering.

If I remove the first "assert" line from updater-script, will I be able to flash this on a Razr M (XT907) with JBBL without any other changes (like a different TWRP) required?

Is the 121916 nightly the latest one available?

Do I need kabaldan's fixed boot.img and if I do, can I replace the one in the 121916 zip with it prior to flashing?

Thanks a lot!
 

rootdefyxt320

Senior Member
Oct 4, 2012
488
440
0
Sydney, NSW
A few questions please if someone doesn't mind answering.

If I remove the first "assert" line from updater-script, will I be able to flash this on a Razr M (XT907) with JBBL without any other changes (like a different TWRP) required?

Is the 121916 nightly the latest one available?

Do I need kabaldan's fixed boot.img and if I do, can I replace the one in the 121916 zip with it prior to flashing?

Thanks a lot!

Flash latest Photon Q TWRP: https://dl.twrp.me/asanti/
Yes, you can put kabaldan's fixed boot.img in the zip file.
And no need to fix updater-script since your flashing Photon Q version of TWRP which contains the correct codename of asanti_c.
And 121916 is the latest one available.
 
Last edited:

goglum

Member
Dec 15, 2007
25
3
0
Last edited:
  • Like
Reactions: ajislav

The Solutor

Senior Member
Dec 14, 2006
1,020
152
93
Turin
for the record, a couple of days ago a new version of Mokee ROM was released.

https://download.mokeedev.com/?device=xt897


It's quite fast, especially f installed on F2FS filesystem and it's practically a vanilla CM13, with few additions/variations like the chinese input method, and the specific Mokee updater.

Personally I've just updated my phone to JB 4.1.2 from ICS, but people who can't live w/o the latest novelty will find a good rom there.
 
Last edited:

dedik46

Senior Member
Sep 25, 2014
175
29
0
Allready install lineage 13 on my xt926 so far all working well and fast, try to install xposed and viper both are working well too, i hope that we soon get lineage 14.1 and still can be install it on my xt926
Thank you so much for the update
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    This is for CyanogenMod 13.0, Android version 6.0.1, unofficial builds whose primary purpose is meant as preview.

    Credits: All credits go to kabaldan, stargo and CyanogenMod contributors.

    Disclaimer
    Code:
    Use at your own risk, responsibility is all yours, provided as-is, no warranties...
    You know the drill.

    What has changed/is new can be viewed at cyanogenmod gerrit: http://review.cyanogenmod.org/#/q/status:merged
    Latest change for the January 30, 2016. build is at http://review.cyanogenmod.org/#/c/130563/
    Latest change for the February 13, 2016. build is at http://review.cyanogenmod.org/132753
    Latest change for the March 21, 2016. build is at http://review.cyanogenmod.org/127971


    • SELinux is disabled (if you care about security you'd might wan't to wait for an official build)
      • SELinux enabled in March 21. build
    • ART preopotimization is enabled: speeds up first boot after wiping dalvik cache: only some of framework, GApps (if present) and user installed apps need to be compiled. It also saves some space in /data as system apps odex/art/oat files are stored in /system partition instead of /data/dalvik-cache. This is the reason for the large size of the update package.
    • disabled GPU page faults logging in kernel as it only (unnecessarily) spams the logs
    • Included the new Snap camera app (the old AOSP Camera2 is still kept as a fallback): Both are called "Camera" but you'll be able to easily differentiate between them by the icon.
    • Keyboard backlight behaviour has been updated to resemble stock-like behaviour. Details can be read in the commit message of the change (Patchset 1, not PS2, or here). Feel free to test and share what you think.
      • Reverted to old keboard backlight behaviour in March 21 build
    All relevant changes (i.e. differences from default/stock CM13) can be viewed at my github repo

    Installation (first time install):
    1) Download the build
    2) Boot into recovery (power button + voulme up)
    3) Make a full nandroid backup
    4) Flash update package (install zip ...)
    5) Wipe data/cache (factory reset)
    6) Reboot to system

    Update (if you're updating existing cm-13.0 or upgrading from cm-12.1)
    1) Download newer update zip file and install it from recovery.
    2) Wipe dalvik-cache
    3) Reboot to system

    It might be useful to enable aplogd logging, especially if you come across some issues.
    You can enable aplogd in terminal or adb shell
    Code:
    su
    setprop persist.log.aplogd.enable 1
    Logs are saved in /data/aplogd/

    In case of a full system reboot include /proc/last_kmsg as well.

    NOTE !!! :
    Please do make a full nandroid backup! In case anything goes wrong or you simply wan't to go back, you should be able to recover/restore in a jiffy. If, by chance, you have issues restoring system when twrp claims it failed to mount system, a relatively simple workaround is to flash whichever CM update, flash GApps you used previously and then restore only data, wipe dalvik, reboot... hope for the best...

    Downloads

    March 21, 2016.
    Some of changes:
    Code:
    Enabled SELinux enforcing
    Reverted to old-style keyboard backlight behaviour: it won't be brighter than screen but it also won't completely turn off kbd backlight on very bright conditions (I shoud really put some effort into it...)
    Using Flo's PowerHAL
    Updated interactive governor in kernel
    Enabled Motorola memutils in kernel (should improve memory operations)
    Quite a bit of other updates/changes/fixes
    All details can seen at CM gerrit and my github repo (not very practical but...)
    MD5: 96ce2fc03b43c0123fcdc559fb531761
    File size: 348,852,931 bytes
    Download

    February 13, 2016.
    MD5: 19d3cb88cdc9a1cf1857b3e263298b19
    File size: 348,081,995 bytes
    Download

    January 30, 2016.
    MD5: 454c62323c5e8f93f96ec6a9de580a2f (or use the attached to post md5sum file)
    File size: 343,989,482 bytes
    Download
    10
    I can't resist asking what I feel is the natural followup question - Will there be an official release [soon/ever]?

    I so want to upgrade but with only one Photon Q as my daily driver I'm concerned about leaving the official update path.

    Regardless, props to you for proving it can be done. :good:

    Before I trigger the official cm-13.0 builds for xt897, the following requirements have to be met:
    - CVE kernel patches needs to be merged /* done today, finally */
    - SELinux policy issues needs to be resolved (so we can run enforcing) /* in progress */
    - an appropriate PowerHAL implementation needs to be used /* looking into it; the flo PowerHAL, used also by d2 looks promising */

    Yes, I'm very slow/busy/lazy, sorry for that, but moving forward nevertheless :) .
    8
    cm-13.0-20160213-UNOFFICIAL-xt897

    Uploaded new build (check first post) or directly download
    MD5: 19d3cb88cdc9a1cf1857b3e263298b19
    File size: 348,081,995 bytes

    Some of (more important) changes:
    - CVE patched kernel as kabaldan mentioned
    - Kernel updates to f2fs filesystem
    - Using simpler dialog during initial dexopt (first boot after wiping dalvik cache). More details here. (haven't measured but seems to improve dexopt times slightly)
    - Enabled call recording (actual support depends if call recording is legal in your country)
    - etc. (quite a bit changed/updated/fixed/improved in the past two weeks...)

    Latest sync point on cyanogenmod gerrit is http://review.cyanogenmod.org/132753
    Other/all differences from official cyanogenmod can be seen here.
    7
    Any news about porting cm14 for Photon Q?

    No time for Android when you're building a castle. But don't worry, only the roof, the ballroom, the cowshed and a few animals are left to do.

    Anyway, cm14.0 was going rather well the last time I messed with it, before I switched back to cm13.0 on my daily driver Q (to polish a few things that will be required by 14 anyway and can be done under 13 already). I'll get back to the work on cm 14.1 hopefully soon.
    6
    cm-13.0-20160321-UNOFFICIAL-xt897.zip

    Uploaded new build.
    All credits and thanks go to kabaldan, stargo and other CM contributors.

    NOTE:
    Build from March 20 has been invalidated in favor of March 21 as the previous update (March 20) introduced a bug in interactive governor where CPU frequency would be stuck at minimum (384 MHz) if io_is_busy set to 0.
    io_is_busy: sysfs flag that determines if waiting for IO should increase CPU utilization/bump up CPU frequency (performance vs. power). Glimpsed through it, seems to be used only by performace profiles (configurable under Battery settings). Not sure if these are toggled unless instructed/enabled by a setting (under Battery).
    Not fully functional yet, can't set Power save profile.
    Other partially fail with "E/PowerHAL( 762): Error opening /sys/kernel/cpufreq_limit/limited_[min/max]_freq: Permission denied" (Probably just needs to set group to system)

    March 21, 2016.

    Latest sync point: http://review.cyanogenmod.org/127971

    Some of changes:
    Code:
    Enabled SELinux enforcing
    Reverted to old-style keyboard backlight behaviour: it won't be brighter  than screen but it also won't completely turn off kbd backlight on very  bright conditions (I shoud really put some effort into it...)
    Using Flo's PowerHAL
    Updated interactive governor in kernel
    Enabled Motorola memutils in kernel (should improve memory operations)
    Quite a bit of other updates/changes/fixes
    All details can seen at CM gerrit and my github repo (not very practical but...)
    MD5: 96ce2fc03b43c0123fcdc559fb531761 (check first post for md5sum file in the attachements)
    File size: 348,852,931 bytes
    Check first post or download here
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