• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][5.{0,1}][AOSP][{Un,}Official] CM12.{0,1} (Lollipop)

stargo

Inactive Recognized Developer
Jan 7, 2011
537
1,714
0
Fürth
CM12.{0,1} (Lollipop) official/unofficial builds for the Droid 4

CyanogenMod is a free, community built, aftermarket firmware distribution of Android 5.0/5.1 (Lollipop), which is designed to increase performance and reliability over stock Android for your device.

Code:
#include <std_disclaimer.h>
/*
 * Your warranty is now void.
 *
 * We are 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 any of us for messing up your device, we will laugh at you.
 * Collectively, and at the same time.
 */
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.

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.

These are WIP builds of porting CM12.{0,1} to the Droid 4 (and also other devices using the same device/motorola/omap4-common-infrastructure). They probably won't work, so don't expect too much. Use on your own risk!

Builds:
Last official build:
http://droid.cs.fau.de/cm-12.1/official/

Old manual builds:
http://droid.cs.fau.de/cm-12.0/pre-alpha-test/new_safestrap/

Changes (only device/family specific, CM base is always synced before build and contains more changes):
  • 2015-04-16:
  • 2015-02-01:
  • 2015-01-28:
    • Mobile data fixes
    • Remaining com.android.phone crashes on VZW finally fixed (thanks @joojoobee666)
  • 2015-01-24:
    • Fixed sw-keyboard popup when hw-keyboard is used (thanks @joojoobee666)
    • Fixed reboot to recovery
    • Fixed sepolicy for whisperd (dock service)
  • 2015-01-22:
    • Fixed su-permissions
    • Crashes on Verizon most likely fixed, please report back
  • 2015-01-20:
    • Fixed flashlight
  • 2015-01-18:
    • SELinux updates.
      This requires manual action for applications to continue being able to access their own files when upgrading from 2014-01-14 or 2014-01-15 (older versions are fine)!

      Due to SELinux-bugs in 2014-01-1{4,5}, you have to relabel your data-partition on the first boot when upgrading from 2014-01-14/-15. This only needs to be done once. To do this, enable adb/usb debugging and grant root to adb (both in developer settings) and execute via an adb shell:

      Code:
      su -c 'for i in /data/*; do echo "${i}"; restorecon -DFrv "${i}"; done; sync; reboot'
  • 2015-01-1{4,5}:
    • More fixes for {,umts_}spyder
    • sepolicy updates
    • GSM fixes
    • notable CM changes: su integration fixed
  • 2015-01-11:
    • Updated SELinux policies (mostly for spyder/umts_spyder)
    • Added kernel stability fixes
    • Video decoding fixes
  • 2015-01-09:
    • Enabled SELinux enforcing
    • Add SELinux-policies for motorola services
    • Enable ro.telephony.get_imsi_from_sim on VZW devices (thanks @joojoobee666)
  • 2015-01-02:
    • Sync CM changes
  • 2014-12-23:
    • Fixed stock camera
  • 2014-12-22:
    • Sync CM changes
    • Fix build due to P2P changes (fix pushed into CM)
    • Enabled security for adb (keys/not root by default)
  • 2014-11-30:
    • Added APN fixes for CDMA/LTE
    • Enabled multiuser mode (might not work yet)
    • Last update for a couple of weeks
  • 2014-11-27:
    • Fixed graphics glitches
  • 2014-11-26:
    • Fixed HW video-decoding
    • Enabled doze mode (no pickup sensor in the devices!)
    • CM resync as always
  • 2014-11-23:
    • Probably fixed mobile data on LTE
    • Fixed WiFi-tethering
  • 2014-11-22:
    • Requires a recovery supporting SELinux

What's working:
  • Phone (tested on Verizon and on GSM/UMTS in Europe)
  • Mobile data (at least on GSM/UMTS in Europe)
  • WiFi
  • WiFi-tethering
  • GPS
  • Camera
  • Playback of DRM-protected content (using Widevine from OnePlusOne)

What's not working:
Probably most everything else, including, but not limited to:
  • Some connectivity issues (should be solved now)
  • Data encryption

Gapps (CM-12.0):
Dhacker29 provides gapps for Lollipop:
http://d-h.st/YQG
http://d-h.st/jzr
http://droid.cs.fau.de/cm-12.0/gapps/ (Mirror)

Gapps (CM-12.1):
https://github.com/cgapps/vendor_google/releases/

Installation:

GSM users:
To use this CM12.{0,1}-ROM on GSM-networks you should install Mentor.37's GSM patch

Source / Repositories:

XDA:DevDB Information
CM 12.{0,1} on Motorola Droid4, ROM for the Motorola Droid 4

Contributors
stargo, Hashcode, Dhacker29
Source Code: https://github.com/CyanogenMod

ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.0.x
Based On: CyanogenMod

Version Information
Status: No Longer Updated

Created 2014-11-23
Last Updated 2016-02-16
 

sharptv

Senior Member
Jan 1, 2011
310
67
0
thank you @stargo, I am so pleased to see this thread, I was wondering when this thread is going to appear. Looks like I will continue to cling onto my droid 4 for a while, no virtual keyboard can beat a droid 4 keyboard.

Is data encryption enabled by default like on the nexus 6? I read that it greatly reduces the performance of the device. I meant this: http://www.xda-developers.com/android/disable-data-encryption-nexus-6/

Once again, thank you so much for your efforts in keeping this device alive.
 

stargo

Inactive Recognized Developer
Jan 7, 2011
537
1,714
0
Fürth
thank you @stargo, I am so pleased to see this thread, I was wondering when this thread is going to appear. Looks like I will continue to cling onto my droid 4 for a while, no virtual keyboard can beat a droid 4 keyboard.
:)

Is data encryption enabled by default like on the nexus 6? I read that it greatly reduces the performance of the device. I meant this: http://www.xda-developers.com/android/disable-data-encryption-nexus-6/
No, data encryption is not enabled by default (and still doesn't even work for us).

Cheers,
Michael
 

gabhroo123

Senior Member
Dec 11, 2012
76
107
0
Cast Screen

Hey stargo. thanks a lot for this! :good:
The 'Cast Screen' under settings pull-down menu is not working. It does not find any of the chromecasts that I have nearby.
Not a big deal, and not a priority at all for me, but just wanted to let you know.

Thanks again!
 

Shobai

Senior Member
Jan 13, 2010
107
8
0
G'day,

just wanted to confirm the procedure for updating SafeStrap, since some people have CM11 in their stock slot:

in the first step (when you say 'go back to stock'), are you saying simply to boot the stock slot, regardless of ROM (since once SS is unistalled the 'slots' don't exist)?

Or do you mean boot to stock ROM, in stock slot?

I'm guessing it's the former, but I'd like to be sure before taking the plunge =)

thanks for your work! I gave the 2011 version a run over the weekend, it worked pretty well all things considered =)
 

thelolotov

Senior Member
Nov 27, 2009
205
46
0
Hey stargo. thanks a lot for this! :good:
The 'Cast Screen' under settings pull-down menu is not working. It does not find any of the chromecasts that I have nearby.
Not a big deal, and not a priority at all for me, but just wanted to let you know.

Thanks again!
May not ever work, IIRC, chromecasting the screen requires hardware we just don't have. :[
 

sharptv

Senior Member
Jan 1, 2011
310
67
0
G'day,

just wanted to confirm the procedure for updating SafeStrap, since some people have CM11 in their stock slot:

in the first step (when you say 'go back to stock'), are you saying simply to boot the stock slot, regardless of ROM (since once SS is unistalled the 'slots' don't exist)?

Or do you mean boot to stock ROM, in stock slot?

I'm guessing it's the former, but I'd like to be sure before taking the plunge =)

thanks for your work! I gave the 2011 version a run over the weekend, it worked pretty well all things considered =)
assuming that cm11 is currently installed in your stock slot and you want to update to the new test safestrap by stargo:

uninstall the existing safestrap using the original safestrap, for instance, if the existing safestrap is 3.73, you should install safestrap 3.73 and uninstall the recovery.

DO NOT REBOOT YOUR PHONE IN THE PROCESS

after you have uninstalled the existing recovery, uninstall safestrap(3.73), and then install the new safestrap by stargo, and install the recovery.

your safestrap is now updated, and nothing will be wiped.

YOU MUST NOT REBOOT YOUR PHONE DURING THE PROCESS, you can only reboot after a recovery has been installed.

hope you find this useful
 

rblanca

Senior Member
Dec 12, 2011
258
33
0
May not ever work, IIRC, chromecasting the screen requires hardware we just don't have. :[
It need some kernel changes... but it should work...original gnex have the same cpu/gpu and they make it work... @lucize was seeing that but i dont know what happend with that

---------- Post added at 07:38 AM ---------- Previous post was at 07:37 AM ----------

By the way....thanks michael for your great work!...please make a donation link to send you some beer money!
 

stargo

Inactive Recognized Developer
Jan 7, 2011
537
1,714
0
Fürth
The 'Cast Screen' under settings pull-down menu is not working. It does not find any of the chromecasts that I have nearby.
Not a big deal, and not a priority at all for me, but just wanted to let you know.
Yes, our GPU driver does not support WFD. And in contrast to the GNEX, Motorola added much stuff to our version, so it's not easy to sync it back with the upstream kernel. Last time I tried that, I ended up with a non-working display and couldn't figure out why...

just wanted to confirm the procedure for updating SafeStrap, since some people have CM11 in their stock slot:

in the first step (when you say 'go back to stock'), are you saying simply to boot the stock slot, regardless of ROM (since once SS is unistalled the 'slots' don't exist)?
Just boot to whatever you currently have installed in the stock slot. And I have to underline what @sharptv said, never reboot your phone in the process (it might work when you have the stock ROM in the stock slot, but it will surely break in every other case).

Cheers,
Michael
 
  • Like
Reactions: theprogramguy

sharptv

Senior Member
Jan 1, 2011
310
67
0
Will cm12 be pre-rooted in future? I can't seem to find anything solid on this, hopefully someone will be able to shed some light on this.
 

maisdoiscorregos

Senior Member
Aug 26, 2011
321
69
0
Dois Córregos

stargo

Inactive Recognized Developer
Jan 7, 2011
537
1,714
0
Fürth
Data doesn't come up on its own, still needs some prodding (selecting the APN) and will go out randomly. Still not ready for prime time, sadly.... :<

It does come up a lot quicker, however.
That's VZW weirdness :(

But if it comes up, then data is actually passing? Because that is what my patch was intended to fix. Before that the data-indicator would show up, but data would not actually get transmitted...

Can you probably send me the output of "ip route list" and "ip addr list" when LTE data is connected?
Would be interesting to see, what is actually happening now. I can only guess from here...

Regards,
Michael
 

sd_shadow

Recognized Contributor
Sep 21, 2011
16,438
7,371
113
South Dakota
goo.gl
That's VZW weirdness :(

But if it comes up, then data is actually passing? Because that is what my patch was intended to fix. Before that the data-indicator would show up, but data would not actually get transmitted...

Can you probably send me the output of "ip route list" and "ip addr list" when LTE data is connected?
Would be interesting to see, what is actually happening now. I can only guess from here...

Regards,
Michael
LTE was working on first build, just took 10+ mins to connect then worked good.

Sent from my XT907 using Tapatalk
 

thelolotov

Senior Member
Nov 27, 2009
205
46
0
That's VZW weirdness :(

But if it comes up, then data is actually passing? Because that is what my patch was intended to fix. Before that the data-indicator would show up, but data would not actually get transmitted...

Can you probably send me the output of "ip route list" and "ip addr list" when LTE data is connected?
Would be interesting to see, what is actually happening now. I can only guess from here...

Regards,
Michael
The deal is, the data works at first, then at random intervals it breaks and needs to be manually reset. I'm travelling right now so I can't really risk using CM12 right now, but I'll get you some logs when possible. JJB is having the same issue, I'll ask him to try and get you some details.