[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
// UPDATE (28-07): public test builds are out, get it at https://sourceforge.net/projects/lineageos-for-rtwo/files/lineage-20/ and please reply with feedback & bug reports

// UPDATE (08-05-2023): We are past the alpha stage, now we will move to the next chapter: a new topic

[ROM] LineageOS 20 (Android 13) for the Motorola Edge 40 Pro / X40 / Edge+ 2023 (rtwo) has been made. The current topic will no longer be used, please forward all testing feedback to "UNOFFICIAL" or later "OFFICIAL" release topic instead

See release comments: post by The_MarD

Hello,

Basically i brought some people together, it consists of:

- @ThE_MarD, Developer (first attempt)

- @npjohnson, Developer (second attempt) / to work together with Marc

^ As of June 2023, no longer needed.. real progress is being made as per "It boots now!" and there is a dual maintainership plan with the person that helped to get it booting, as well as The_MarD can rely on them as a secondary developer during the current phases. That person will be entered below as the new secondary developer involved in this project:

- @SGCMarkus, Developer

- @mxz55 (as device sponsor & eventually to help coordinate the project)

There's been a bunch of discussion where this plan got incubated, but it was in the Edge 30 forum (not the right place), hence im creating a dedicated topic here. Previous discussion examples:

1) https://xdaforums.com/t/rom-officia...la-edge-30-dubai.4536169/page-6#post-88509185 with less relevant posts before it, and more relevant posts after it, such as: here, here, and here

This new topic will be used to clarify the state of things, and post any updates for those that are interested in LineageOS for this device. First of all, to the state there's some updates:

09-05-2023: Motorola rejected the device sample request, so we will fall back to what was intended and i will source it

10-05-2023: The device can't be purchased in Canada yet (country of ThE_MarD) and will be released in Canada & US rebranded as Edge+ (2023), with the same codename rtwo.

To not lose time on that, i've ordered the Edge 40 Pro to my house, and tomorrow i will ship it on to ThE_MarD in Canada, using priority shipping that's likely to take 7-15 days. Of course, i will include a Type A & Type B power adapter in the box

As it's essentially the same hardware (except for the Edge+ 2023's larger battery and its lack of 125W Fast Charging), a LineageOS ROM should be compatible with all variants of rtwo: the European Edge 40 Pro, the Chinese Moto X40 (perhaps only after conversion to global firmware), and the Edge+ (2023) for NA markets.. therefore, development can be based on the Edge 40 Pro and still serve all variants

Roadmap:

- Refer to Post #3

After the device (that was shipped as per the Roadmap) arrives to The_MarD, he will attempt to add LineageOS support for the Motorola Edge 40 Pro. Device has released sources for an older firmware version which would be sufficient to have official LineageOS support, even though another pending request for release of the latest firmware version sources would be beneficial on the long term, or maybe the precompiled kernel can even lead to unofficial side builds in case anyone experiences bugs that have already been fixed.

As you can read from the previous discussion links, there's a comprehensive plan for this project, like in the case that The_MarD is unsuccessful to get LineageOS running on this device, another experienced developer can be next up to try. In this case, The_MarD will ship the device on to said developer (at my costs, as sponsor) and that would be @npjohnson as said here, when we got him on board. Even though it's likely to not be needed, to say that @ThE_MarD can accomplish it. And the final gesture from me as sponsor is that the developer who accomplishes it, gets to keep the device. I will re-buy an Edge 40 Pro for myself to run LOS on, in case we succeed.

^ Regarding the strike-through part, refer to the "As of June 2023" part at the top of OP, same applies.

Except for the few odd posts from me, this thread shall be used by the main Developer to share progress updates with the community. If the main Developer needs to, testers/help from other devs on XDA can be requested here as well.

I'll put some information on what bringing support to this device means to me (why i wanted it so bad, that im willing to fork over so much money and effort towards the cause) below in Post #2.