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

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

Search This thread

Wheels564

Senior Member
Apr 13, 2019
195
120
Genoa, U.S.A.
I'm not actually using it as a daily driver anymore. I'll compile one occasionally for fun when I sync the roomservice file that has it included. I'm usually building updates for Clark (moto x pure).
 
  • Like
Reactions: feduss

Bobcus Leper

Senior Member
Feb 6, 2014
2,078
1,257
Moto X4
Moto G Stylus

May 2021 security patches!
umts_spyder --> https://mega.nz/file/YR8QTKRS#cbOcRH0RRvto7gaFKnG8cvdptVemjV6D3JmFxh_IyHg
md5sum --> https://mega.nz/file/ZJ1WQCiB#8ZRrKtyrYwbspK_-XGPyT5aLqMLQWmAD75yZLfjQA4U

@Tomoms and I have fixed a selinux denied that caused wifi stop working (due to a new netd patch in march asb)
I've since moved on to a Moto G Stylus 2021, but I keep browsing this forum from time to time for old times sake. Thanks for helping to keep these old devices alive!
 
  • Like
Reactions: feduss

MLX

Senior Member
Mar 12, 2016
163
37
19
Buenos Aires
I love to buy old devices and see that there is still some activity, myself being a developer for an almost unknown device (samsung galaxy pocket plus, GT-S5301). Things like this make "obsolete" technology useful.
 
  • Like
Reactions: feduss

MLX

Senior Member
Mar 12, 2016
163
37
19
Buenos Aires
Gg :D! New rom with june and july patches will arrive soon i think
Nice! Let's prepare for an update I guess
I want to work on the safestrap, but as it'll be my main device I'm not sure if I'll be able to take such a risk (I want to use the phone as daily driver, RIP my main one).
Do you know anything regarding how does safestrap work, or any dev related to it? It seems similar to the Defy bootmenu, and I have some experience with that but it's always better if there is any guidance/documentation :p
 

stargo

Inactive Recognized Developer
Jan 7, 2011
538
1,717
Fürth
Hi,

to build the current safestrap recovery, you need cm-10.2 and the following local manifest:

XML:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
  <project name="CyanogenMod/android_device_motorola_maserati" path="device/motorola/maserati" remote="github" />
  <project name="CyanogenMod/android_device_motorola_spyder" path="device/motorola/spyder" remote="github" />
  <project name="CyanogenMod/android_device_motorola_targa" path="device/motorola/targa" remote="github" />
  <project name="CyanogenMod/android_device_motorola_umts_spyder" path="device/motorola/umts_spyder" remote="github" />
  <project name="CyanogenMod/android_device_motorola_omap4-common" path="device/motorola/omap4-common" remote="github" />
  <project name="CyanogenMod/android_kernel_motorola_omap4-common" path="kernel/motorola/omap4-common" remote="github" />
  <project name="TheMuppets/proprietary_vendor_motorola" path="vendor/motorola" remote="github" />
  <remove-project name="CyanogenMod/android_bootable_recovery" />
  <project name="stargo/android_bootable_recovery" path="bootable/recovery" remote="github" revision="twrp2.7-safestrap" />
</manifest>

The install-app can be found here:

I can try to answer your questions, but I haven't really looked at safestrap in a few years...

EDIT: "Thanks" to the locked bootloader you can't easily break the phone so experimenting with safestrap is safe. You can always (if your battery is not discharged) flash the last motorola image and get back to safestrap from there.

Cheers,
Michael
 
Last edited:

Wheels564

Senior Member
Apr 13, 2019
195
120
Genoa, U.S.A.
I can use my phone for testing unless you need a umts. It's not used as a daily driver anymore. BTW the June security update has already been merged and July can be added with the repopick command.
 
Last edited:

feduss

Senior Member
I noticed you had a similar issue with a March update. When you get it fixed are you able to merge the patches with Lineage so that others who build it don't have the same issue?
nope, i didn't do it because idk how to pull request my changes...with last the rom i've released i've added one selinux rule and changed another one...but this time it's different, because wifi doesn't have an avc denied, but this:

Code:
WifiHW  : Supplicant not running, cannot connect

btw, these are the selinux changes:

In device/qcom/sepolicy/common/system_app.te, add the following line:
Code:
allow system_app netd_service:service_manager { find };


and add (thanks to @Tomoms ) -system_app after -dumpstate in line 98 of system/sepolicy/netd.te:

So the new row is:
Code:
neverallow { domain -system_server -dumpstate -system_app} netd_service:service_manager find;
 
Last edited:

Wheels564

Senior Member
Apr 13, 2019
195
120
Genoa, U.S.A.
nope, i didn't do it because idk how to pull request my changes...with last the rom i've released i've added one selinux rule and changed another one...but this time it's different, because wifi doesn't have an avc denied, but this:

Code:
WifiHW  : Supplicant not running, cannot connect

btw, these are the selinux changes:

In device/qcom/sepolicy/common/system_app.te, add the following line:
Code:
allow system_app netd_service:service_manager { find };


and add (thanks to @Tomoms ) -system_app after -dumpstate in line 98 of system/sepolicy/netd.te:

So the new row is:
Code:
So the new row is:
neverallow { domain -system_server -dumpstate -system_app} netd_service:service_manager find;
I wish I could help you my coding is still in the infant stage. Everything I've learned is self tought. I did google the problem and found this: https://forum.xda-developers.com/t/wifi-settings-wpa_supplicant-and-some-basics.2089314/ Hope that helps you out.

Edit BTW you could always fork device/qcom/sepolicy/common from Lineage and save your fixes there. Then if anyone needs it you can direct them there. I did take a peek at your work there. (y)
 
Last edited:

feduss

Senior Member
I wish I could help you my coding is still in the infant stage. Everything I've learned is self tought. I did google the problem and found this: https://forum.xda-developers.com/t/wifi-settings-wpa_supplicant-and-some-basics.2089314/ Hope that helps you out.

Edit BTW you could always fork device/qcom/sepolicy/common from Lineage and save your fixes there. Then if anyone needs it you can direct them there. I did take a peek at your work there. (y)
Hi!
Unfortunately, those fixs didn't work...but i have a roomservice.xml (local_manifest) with my 2 forked repos for you...it should works

edit 02/08/2021: update remove-project in roomservice.xml
 

Attachments

  • roomservice.xml
    1.6 KB · Views: 2
Last edited:

feduss

Senior Member
Last edited:

Wheels564

Senior Member
Apr 13, 2019
195
120
Genoa, U.S.A.
@Tomoms is our lifesaver!

Reverting a commit of june 2021 asb (https://review.lineageos.org/c/LineageOS/android_external_wpa_supplicant_8/+/311806) we have a working wifi!

And the negative storage is gone, now it's displayed correctly (doing these commits: https://review.lineageos.org/q/topic:"fix-adopted-size")

umts_spyder --> https://mega.nz/folder/BJlDkCLS#_sHw7ZC18jUIgPoazjq0cg
spyder (not tested) --> https://mega.nz/folder/8dsSlQjA#ufaiNLsHOiLE7NkcFA8t8g
new roomservice.xml --> soon
Dirty flashed rom on spyder and all seems good from here. Wifi works but I don't have a sim to test calling. Nice job.
 
  • Like
Reactions: feduss

MLX

Senior Member
Mar 12, 2016
163
37
19
Buenos Aires
EDIT: "Thanks" to the locked bootloader you can't easily break the phone so experimenting with safestrap is safe. You can always (if your battery is not discharged) flash the last motorola image and get back to safestrap from there.
Thanks for the sources and build guide! Noticed the brick-proof thing, just flashed stock twice xD
Sadly I need to sell my device (saving money), but as soon as I get another one (I hope I'll have time to develop then) I'll be back :)
 

MLX

Senior Member
Mar 12, 2016
163
37
19
Buenos Aires
@Tomoms is our lifesaver!

Reverting a commit of june 2021 asb (https://review.lineageos.org/c/LineageOS/android_external_wpa_supplicant_8/+/311806) we have a working wifi!

And the negative storage is gone, now it's displayed correctly (doing these commits: https://review.lineageos.org/q/topic:"fix-adopted-size")

umts_spyder --> https://mega.nz/folder/BJlDkCLS#_sHw7ZC18jUIgPoazjq0cg
spyder (not tested) --> https://mega.nz/folder/8dsSlQjA#ufaiNLsHOiLE7NkcFA8t8g
new roomservice.xml --> soon
As said before, I'll sell my device. Let's check if this is stable enough! Will report back, with SIM testing :p
 
  • Like
Reactions: feduss

ZexGX

Senior Member
May 9, 2009
53
9
Southern California
I still have my Verizon XT912. Needs a battery though... Considering repairing it for ~$10 to have a backup device for offline GPS/music. What apps/functions are you using your phones for when running LineageOS 14.1?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    LineageOS14.1 (Nougat) unofficial builds for the Droid Razr

    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/spyder (Droid Razr)
    https://download.lineageos.org/umts_spyder (Razr)
    (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
    • Playback of DRM-protected content
    • Reboot to recovery

    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_packages_apps_Safestrap/releases/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 with XT912:
    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 Droid Razr, ROM for the Motorola Droid RAZR

    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
    8
    Hi,

    Has spyder been removed from lineageos? I built fine last month, but now no product found... Gerrit doesn't show anything on search for "spyder".
    On a new machine... New repo.

    Something changed in the build-system which now confuses spyder with umts_spyder and doesn't want to build any of the two. I'm still searching for the cause.

    The devices are still in LineageOS:
    https://github.com/LineageOS/android_device_motorola_spyder
    https://github.com/LineageOS/android_device_motorola_umts_spyder

    Cheers,
    Michael
    7
    Support has ended.

    LineageOS no longer officially supports this device.

    You are now officially on your own.


    You can find the final builds here: http://droid.cs.fau.de/Official_Lineage_Builds/
    or here (MEGA Mirror)

    These directories include the ROM files, addonsu package for 14.1, and the weather provider APK if needed.
    I'm expecting this information to hit the OP post very soon.

    It was a good run. These phones lasted many more years than they were intended to in the wild, and with Verizon killing 3G support for non-VoLTE devices later this year, they will become useless in the United States on their network. They are likely already useless on most others. Their time is up. I suggest anyone at all still holding on with one of these as a daily driver to consider your upgrades very very soon.

    Goodbye Moto.

    Edit: I'm no longer using one of these, my battery puffed up after 7 years and I am not replacing it. do not ask me questions about this device.
    7

    And another one :)

    Cheers,
    Michael