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

[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
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    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:
    2
    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!
    2
    The issue is that whenever I run james/extract-files.sh I am getting:
    Code:
    $DEVICE must be set before including this script!
    It's probably happening because I haven't given extract-files.sh any attention; I'm not used to working that way - I just build from the vendor tree. So something is probably messed up there. I just lunch and make bacon.

    You'll want to switch the vendor tree to the lineage-18.1-james2 branch as I did my best to unify my vendor tree to JarlPenguin's, to keep it in sync with his device tree. I don't think the build will boot without doing that.

    I have some updates to push as soon as I get a chance. I fixed the error I posted earlier, also fixed some camera-related SELinux denials. Unfortunately, video record sync is still borked. Once I get a few minutes to clean everything up, I'll push my latest changes to github and then try to get a new build up.