[ROM][UNOFFICIAL][Android 11]LineageOS 18.1 for Moto E5 Play (James)

Search This thread

Mohannad_saleh

New member
Nov 6, 2021
2
0
I've never used the diag port, but it looks like you do this:
Code:
setprop sys.usb.config diag,adb
You'll either need to root the phone, or boot into TWRP and set that property through build.prop or something like that. I'm not sure if it will stick that way or not. I haven't felt the need to root this ROM, so I don't know what the best method for that is.
Thanks man. But I already tried this method and it didn't work. I have root permission and everything.
 

lp8545

New member
Nov 25, 2021
2
0
Hi, so I successfully flashed my Moto E5 Play. But during the process when i tried to wipe the data, cache, and dalvik cache it said failed to wipe. Although it failed (probably due to the encryption being forced) I flashed the rom and Gapps. It asked me for my encryption password. I entered it and eveything started as usual, but A bunch of apps keep failing. Can anyone help please?
 

lp8545

New member
Nov 25, 2021
2
0
Hi, so I successfully flashed my Moto E5 Play. But during the process when i tried to wipe the data, cache, and dalvik cache it said failed to wipe. Although it failed (probably due to the encryption being forced) I flashed the rom and Gapps. It asked me for my encryption password. I entered it and eveything started as usual, but A bunch of apps keep failing. Can anyone help please? UPDATE PHONE KEEPS BOOTING INTO RECOVERY
 

sugarbrie

Member
Oct 18, 2018
30
4
Hi, so I successfully flashed my Moto E5 Play. But during the process when i tried to wipe the data, cache, and dalvik cache it said failed to wipe. Although it failed (probably due to the encryption being forced) I flashed the rom and Gapps. It asked me for my encryption password. I entered it and eveything started as usual, but A bunch of apps keep failing. Can anyone help please? UPDATE PHONE KEEPS BOOTING INTO RECOVERY
If it boots into recovery, then do a factory reset which may wipe everything except the custom rom.
 

rosalesosmar

Member
Sep 2, 2020
9
0
hello friends, do you know how to unlock the bootloader of this model? I want to flash the rom but the motorola page says that my device is not supported to unlock the bootloader, is there a solution?
2okPze5.png

Please read this entire post before attempting to install!!

This ROM is built for and tested on a moto e5 play "james" XT1921-1 (Comcast). I think it will work on the other "james" variants. If you're asking about hannah or pettyl or another e5 variant...don't. I build for my own phone, because I feel like it.

Code:
/*
* Your warranty is now void.
*
* I am 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 get upset at me for messing up your device, I will feel bad and go away.
*
*/


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 restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

Instructions:
Follow Instructions Carefully - installation will fail otherwise :

  • WARNING: There doesn't seem to be a way to back up and restore using the 64 bit TWRP (probably due to forced encryption). Your data is toast if you install this, and toast again if you mess up a later installation. YOU HAVE BEEN WARNED!
  • Download TWRP for james from whodat711's Lineage 17.1 thread, linked below.
  • fastboot boot twrp-james-bootonly.img (ONLY BOOT IT!! TOO BIG TO FLASH!)
  • -- then --
  • Wipe -> ADVANCED -- select system + vendor -> SWIPE TO WIPE
  • reboot bootloader
  • fastboot boot recovery again
  • -- then --
  • Format data, Wipe cache & dalvik-cache
  • Flash ROM, Gapps 11 arm64 together (Download Gapps from downloads section)
  • Done-Reboot Now
  • Wait...and wait... the first boot takes 8 minutes (with gapps).

What's working:
  • WiFi
  • Camera and Camcorder
  • Bluetooth
  • Fingerprint
  • GPS
  • Sensors
  • Video Playback
  • Audio
  • RIL (Calls, sms/mms, VoLTE)
  • SELinux: Enforcing

Known issues:
  • Trust complains about the build being signed with a public key. This is an unofficial build, so it is slightly less secure. The warning can be turned off in settings.
Downloads:

Reporting Bugs
  • I guess just post them to this thread. I probably can't help, but maybe somebody else can.

Thanks to:
@whodat711 for bringing Lineage 17.1 to james.
@JarlPenguin for maintaining the kernel, vendor, and common-device trees.
(Note: If either of you want to build 18.1 for james, I will gladly run your builds and stop posting my own.)
The LineageOS team

Changelogs:

Code:
2021-06-13:
Initial 18.1 release.

2021-07-14:
Video recording sync issue is fixed.
Fix some SELinux denials.
July security patch.

2021-08-08:
August security patch.
Remove unneeded camera libs.

2021-10-10:
October security patch.


Source code:

hello friends, do you know how to unlock the bootloader of this model? I want to flash the rom but the motorola page says that my device is not supported to unlock the bootloader, is there a solution?
 

jacques_xda

Member
Dec 23, 2015
15
0
Laval
Hi,
I installed the rom on a moto e5 play (rjames I guess / xt1921-1, the one with the sensor) and it is working perfectly well.
As I say in french "excellent travail" .
Thanks,
Jacques :)
 

musical_chairs

Senior Member
Mar 6, 2012
1,072
1,226
Here's a new build just because:
I'm not aware of any interesting changes. The developers I had been following moved to the 4.9 kernel and at this point I have not attempted to get that rolling on james. Neither have I poked at newer versions of android/lineage. So yeah, boring, but it's where things are at right now. Anyway, have a great day!
 

Urahx

New member
Dec 20, 2021
2
0
Moto E5
Xiaomi 11 Lite 5g NE
Hello, I have Moto e5 (nora) and i flashed LineageOS 17.1 and HavocOS 3.12, when i returned to stock ROM there's some features that doesn't work. Can u help me with that?
Features doesn't work:
Peak Display - Adaptive brightness - and the Device Doesn't read the SIM Card (no service)
Thank you.
 

mitya89

New member
Thanks so much @musical_chairs for posting this. After getting my bootloader unlock code from Motorola (which took a couple of tries) it was really easy to install your latest ROM above.
I need some help with VoLTE. Using T-Mobile in USA with the VoLTE option enabled in the phone, whenever placing or receiving a call, it goes from LTE to H+ then back after the call. If VoLTE is disabled, it goes to GSM for the call. If I force the phone to use LTE only, it won't send or receive any calls. I checked the SIM on another Android phone and it stays in LTE for voice calls. Any ideas or steps I'm missing? My concern is T-Mobile USA is going to VoLTE only fairly soon.
 

frustro

New member
Jul 5, 2022
1
0
Hey thanks for the build! Flawless install for me and had been a daily driver for just over a week. I did encounter something not working for me.
Pics attached.
 

Attachments

  • Screenshot_20220705-075835_Google_Play_Store.png
    Screenshot_20220705-075835_Google_Play_Store.png
    85.9 KB · Views: 14
  • Screenshot_20220705-075449_RPM_Speed_and_Wow.png
    Screenshot_20220705-075449_RPM_Speed_and_Wow.png
    32.1 KB · Views: 13

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    2okPze5.png

    Please read this entire post before attempting to install!!

    This ROM is built for and tested on a moto e5 play "james" XT1921-1 (Comcast). I think it will work on the other "james" variants. If you're asking about hannah or pettyl or another e5 variant...don't. I build for my own phone, because I feel like it.

    Code:
    /*
    * Your warranty is now void.
    *
    * I am 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 get upset at me for messing up your device, I will feel bad and go away.
    *
    */


    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 restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    Instructions:
    Follow Instructions Carefully - installation will fail otherwise :

    • WARNING: There doesn't seem to be a way to back up and restore using the 64 bit TWRP (probably due to forced encryption). Your data is toast if you install this, and toast again if you mess up a later installation. YOU HAVE BEEN WARNED!
    • Download TWRP for james from whodat711's Lineage 17.1 thread, linked below.
    • fastboot boot twrp-james-bootonly.img (ONLY BOOT IT!! TOO BIG TO FLASH!)
    • -- then --
    • Wipe -> ADVANCED -- select system + vendor -> SWIPE TO WIPE
    • reboot bootloader
    • fastboot boot recovery again
    • -- then --
    • Format data, Wipe cache & dalvik-cache
    • Flash ROM, Gapps 11 arm64 together (Download Gapps from downloads section)
    • Done-Reboot Now
    • Wait...and wait... the first boot takes 8 minutes (with gapps).

    What's working:
    • WiFi
    • Camera and Camcorder
    • Bluetooth
    • Fingerprint
    • GPS
    • Sensors
    • Video Playback
    • Audio
    • RIL (Calls, sms/mms, VoLTE)
    • SELinux: Enforcing

    Known issues:
    • Trust complains about the build being signed with a public key. This is an unofficial build, so it is slightly less secure. The warning can be turned off in settings.
    Downloads:

    Reporting Bugs
    • I guess just post them to this thread. I probably can't help, but maybe somebody else can.

    Thanks to:
    @whodat711 for bringing Lineage 17.1 to james.
    @JarlPenguin for maintaining the kernel, vendor, and common-device trees.
    (Note: If either of you want to build 18.1 for james, I will gladly run your builds and stop posting my own.)
    The LineageOS team

    Changelogs:

    Code:
    2021-06-13:
    Initial 18.1 release.
    
    2021-07-14:
    Video recording sync issue is fixed.
    Fix some SELinux denials.
    July security patch.
    
    2021-08-08:
    August security patch.
    Remove unneeded camera libs.
    
    2021-10-10:
    October security patch.


    Source code:
    3
    Here's a new build just because:
    I'm not aware of any interesting changes. The developers I had been following moved to the 4.9 kernel and at this point I have not attempted to get that rolling on james. Neither have I poked at newer versions of android/lineage. So yeah, boring, but it's where things are at right now. Anyway, have a great day!
    3
    Android 12 build coming soon?:sneaky:
    by the way this Rom is great I don't know why it's not Official on LineageOS website well apart from front Flash it doesn't work but everything is perfect
    Thanks! I guess I've been too lazy to do the work of pursuing official builds. For a while the vendor tree was a royal mess, there's no way any maintainer in their right mind would have merged it.

    The front flash works in Open Camera, though not with the Lineage camera app - I haven't yet figured out how to enable it there.
    2
    just flashed it now , everything going fine, not a bug seen
    Great! Thanks for the feedback.
    2
    Ok, so I can just do the following:
    Code:
    repo init -u https://github.com/LineageOS/android.git -b lineage-18.1
    repo sync
    croot
    lunch james-userdebug
    make bacon
    And that should be enough to build the rom, right?
    Something like that. I do
    Code:
    source build/envsetup.sh
    instead of croot, but maybe my way is outdated.

    Also, how did you make the vendor tree (in case if I have a different device )? did you just copy everything from /vendor/ & /system/ from your stock phone?
    I fork other people's vendor trees and use them as a base. For james, I used https://github.com/moto-msm8937/proprietary_vendor_motorola and https://github.com/HyperTeam/proprietary_vendor_motorola. I've never tried to start from scratch on a new device. I'm not quite on that level.

    oh, also, this the mainfist you used, right?
    Code:
    <manifest>
      <project path="device/motorola/james" remote="github" name="musical-chairs/android_device_motorola_james" />
      <project path="device/motorola/msm8937-common" remote="github" name="musical-chairs/android_device_motorola_msm8937-common" />
      <project path="kernel/motorola/msm8953" remote="github" name="musical-chairs/android_kernel_motorola_msm8953" />
      <project path="vendor/motorola" remote="github" name="musical-chairs/proprietary_vendor_motorola" revision="lineage-18.1-james2"/>
    </manifest>

    Many thanks for your help, this is my first build.
    Yup, that's what I'm working with. I believe I had to add
    Code:
      <!--Dependencies-->
      <project path="external/bson" name="LineageOS/android_external_bson" />
      <project path="system/qcom" name="LineageOS/android_system_qcom" />
    to get it to build successfully.

    You're welcome! Hopefully it is a pleasant learning experience for you!