FORUMS
Remove All Ads from XDA

[ROM][7.1][AOSP][{Un,}Official] LineageOS 14.1 (Nougat)

537 posts
Thanks Meter: 1,713
 
By stargo, Recognized Developer on 13th November 2016, 05:11 PM
Post Reply Email Thread
LineageOS 14.1 (Nougat) unofficial builds for the Droid 4

LineageOS is a free, community built, aftermarket firmware distribution of Android 7.1 (Nougat), 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.
 */
LineageOS 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. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.

These are WIP builds of porting LineageOS 14.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:
Current official builds:
https://download.lineageos.org/maserati (Droid 4)
(When migrating from Lineage unofficial, flash this first (manually mount /data in TWRP before flashing and unmount it afterwards) and then directly flash the new image without rebooting)

Su addon for official builds: http://droid.cs.fau.de/lineage-14.1/addonsu/ (The official addon doesn't currently install on Omap4)

Manual beta builds:
http://droid.cs.fau.de/lineage-14.1/

Changes (only device/family specific, CM base is always synced before build and contains more changes):
  • 2017-06-10:
    • Hotspot fixed
    • Security updates
    • CM base updated
    • Last build before enabling official builds
  • 2017-05-15:
    • Security updates
    • CM base updated
  • 2017-04-11:
    • Fixed mobile data on Verizon
  • 2017-04-05:
    • DRM playback fixed
  • 2017-04-04:
    • Camcorder working, thanks to @Android-Andi (thumbnail picture is still wrong, but recorded video seems fine). This probably also fixed other media-related issues.
    • CM base updated
  • 2016-11-27:
    • CM base updated
  • 2016-11-13:
    • SELinux is enforcing
    • PackageInstaller works on ext3-based userdata again
  • 2016-11-05:
    • First build

What's working:
  • Phone (tested on Verizon and on GSM/UMTS in Europe)
  • Mobile data
  • WiFi
  • GPS
  • Camera
  • Video recording
  • Reboot to recovery
  • Playback of DRM-protected content

What's not working:
Probably most everything else, including, but not limited to:
  • HDMI
  • Data encryption (investigating, needs new unreleased safestrap)

Gapps:
OpenGApps
If you install Gapps after the ROM has been booted for the first time you either need to wipe data or manually delete /data/system/users/0/runtime-permissions.xml and reboot. Without this Gapps will crash constantly. This is due to a new permissions-system introduced in Marshmallow.

Installation:
  • You need a recovery supporting SELinux
  • A version of Safestrap (3.75) which supports SELinux can be found here: https://github.com/stargo/android_pa...ases/tag/v3.75
  • A newer version of safestrap which will format userdata as ext4 will be released shortly. You can also just reformat userdata to ext4 in the old Safestrap for now.
  • Please read the instructions on how to install this version and follow the order of the steps in it.

GSM users:
These versions (both unofficial and official) automatically switch to GSM/UMTS without installing additional patches.

Source / Repositories:
XDA:DevDB Information
LineageOS 14.1 for Motorola Droid4, ROM for the Motorola Droid 4

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

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.0.x
Based On: LineageOS

Version Information
Status: Beta
Beta Release Date: 2017-06-10

Created 2016-11-13
Last Updated 2017-06-23
The Following 21 Users Say Thank You to stargo For This Useful Post: [ View ]
 
 
14th November 2016, 03:06 AM |#2  
Senior Member
Thanks Meter: 64
 
More
awwwweeeeesommmmme.

hows she feel compared to CM13?

slower? same? snappier?
14th November 2016, 05:00 AM |#3  
Junior Member
Thanks Meter: 2
 
More
The real trick was getting this and gapps onto the stock slot. Pico gapps are too big, and it took a lot of removing aosp apps in the aroma Installer to make it all fit. But, having done that, it actually runs really well. I honestly don't think I've ever seen my phone run this well since 5.0 came out. I'd definitely call it an improvement.
14th November 2016, 05:23 AM |#4  
Senior Member
Thanks Meter: 64
 
More
Quote:
Originally Posted by ramblingPrankster

The real trick was getting this and gapps onto the stock slot. Pico gapps are too big, and it took a lot of removing aosp apps in the aroma Installer to make it all fit. But, having done that, it actually runs really well. I honestly don't think I've ever seen my phone run this well since 5.0 came out. I'd definitely call it an improvement.

so realistically, there's no way to smoothly install this unless there is a version of Gapps that has only the necessities and doesn't produce conflicts with the stock rom slot size?

or can it be installed on another slot and run ok with no issue as well as install a prepackaged Gapps build, and not a cut-down version of pico?
14th November 2016, 05:36 AM |#5  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by Careless_

so realistically, there's no way to smoothly install this unless there is a version of Gapps that has only the necessities and doesn't produce conflicts with the stock rom slot size?

or can it be installed on another slot and run ok with no issue as well as install a prepackaged Gapps build, and not a cut-down version of pico?

You can definitely install it in another slot, and without having to mess heavily with gapps. My goal was just to get it to work in the stock slot, which is something I managed to do. I was worried that wasn't even an option.
14th November 2016, 03:37 PM |#6  
Bobcus Leper's Avatar
Senior Member
Thanks Meter: 1,255
 
More
Quote:
Originally Posted by Careless_

so realistically, there's no way to smoothly install this unless there is a version of Gapps that has only the necessities and doesn't produce conflicts with the stock rom slot size?

or can it be installed on another slot and run ok with no issue as well as install a prepackaged Gapps build, and not a cut-down version of pico?

I installed it to slot 1 with pico gapps, and a 700mb system partition. I have about 40MB free in /system. At this point, I think that we should ditch installing CM14.1 to the stock slot, because you can format the /data partition of a slot to EXT4. EXT4 provides faster R/W over EXT3, and can help to reduce lags when writing apps or files to /data.

Sent from my Motorola XT912 using XDA Labs
The Following User Says Thank You to Bobcus Leper For This Useful Post: [ View ] Gift Bobcus Leper Ad-Free
14th November 2016, 11:57 PM |#7  
Senior Member
Thanks Meter: 64
 
More
Good to hear. I will try it soon.

Can anyone confirm:

Bluetooth: Working?
Bluetooth audio stutter: Fixed?


those are my main concern. i work in a building with no reception anyways- so I'd rather have bluetooth music playback working rather than being able to call people at this point.

lol
15th November 2016, 02:02 AM |#8  
Junior Member
Flag Toronto
Thanks Meter: 4
 
More
Consistently runs for about 90s to 2 minutes, then hangs and reboots completely.

It doesn't matter what I do, it will always reboot suddenly after running around that long, even if I just sit on the home screen.

Edit: Timed it starting from when the lock screen appears, just sitting on the home screen. Ran for exactly 1m20s, then the screen goes black and it starts booting again.


Traced the problem to Linux Deploy loading on boot, it crashes whenever I try to use chroot.
15th November 2016, 11:11 AM |#9  
Senior Member
Thanks Meter: 31
 
More
Quote:
Originally Posted by Bobcus Leper

I installed it to slot 1 with pico gapps, and a 700mb system partition. I have about 40MB free in /system. At this point, I think that we should ditch installing CM14.1 to the stock slot, because you can format the /data partition of a slot to EXT4. EXT4 provides faster R/W over EXT3, and can help to reduce lags when writing apps or files to /data.

Sent from my Motorola XT912 using XDA Labs

Hi, so even if you don't use gapps and space isn't a problem in the stock slot, you still think installing in a virtual slot is a better option? Thanks
15th November 2016, 11:25 AM |#10  
Junior Member
Thanks Meter: 2
 
More
Quote:
Originally Posted by moodroid

Hi, so even if you don't use gapps and space isn't a problem in the stock slot, you still think installing in a virtual slot is a better option? Thanks

Speaking as someone who worked to get this thing running on the stock slot with gapps, I'd say keeping it running on the real partitions is always going to be the better option. The overhead of a virtual slot is always going to slow this old phone down, and if the whole point is to keep this phone alive as more than just a toy, it's going to need every bit of help it can get.
The Following User Says Thank You to ramblingPrankster For This Useful Post: [ View ] Gift ramblingPrankster Ad-Free
15th November 2016, 12:45 PM |#11  
Mentor.37's Avatar
Senior Member
Flag cyberspace
Thanks Meter: 378
 
Donate to Me
More
microG GmsCore instead of the Gapps
Glad to see the cm14 on this old glory.
About the problem of installing the gapps in the little /system partition, I can advice everyone to use the great microG GmsCore project instead of the gapps.
I started using microG time ago in the Safe Slot of my modded SafeStrap for the Droid 4 and now I'm using it also on my Photon Q and G2.

microG is totally better than Gapps:
- it is really small and can be simply installed in the little partitions of the xt894
- it is very light weight compared to Gapps and for the xt894 this is good for performance in daily use and battery life
- it is the better solution for the privacy

Sorry for the OT but I really think that this is the best solution for this phone.
The Following 3 Users Say Thank You to Mentor.37 For This Useful Post: [ View ] Gift Mentor.37 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes