yashsingh1/xdaforums huggingface dataset:
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@debx if you check my post, you'll see I did mention the boot animation won't work on every reboot as I did say "mostly" and "75%" lol oof... I'm not sure why Motorola haxxed the crap out of their boot animation service compared to previous devices, but yeah, they definitely screwed with it a lot and it's giving us race conditions where the boot animation isn't ready by the time the system wants to start displaying it... super annoying bug...
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Youre right. And the bug nervs maybe some people. But hey, the most important thing is, we use Los21. And mostly stable! Thanks for your great work. And the Bootlogo...how often show somebody on the Bootlogo... For me marginal thing. The System works great and im Happy. 🙂
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Anybody on the new build who has new telephony issues compared to the old build?

Or maybe the opposite? Anyone who had telephony issues and they were resolved?
[Motorola Edge 40 Pro  / Moto X40 (China)] voided:
Hi xuyh0120,

Great to hear that you are compiling a KernelSU. Can you kindly share it here? Thanks in advance.
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
Seems SMS is not working for me, 2fa not coming through anymore.
[Motorola Edge 40 Pro  / Moto X40 (China)] Oxofrmbl:
What are the proper update instructions? I can open the link in op. Shows oauth thing, and when I try to login, it says 404 forbidden
[Motorola Edge 40 Pro  / Moto X40 (China)] xuyh0120:
Workflow runs · xddxdd/nix-kernelsu-builder

A set of nix packages (derivations) to build Android boot.img and AnyKernel installation zip files for given kernel source code. - Workflow runs · xddxdd/nix-kernelsu-builder

github.com

Go into any "Build and populate cache" builds and download the moto-rtwo-lineageos-21 file.

Note that these are automated builds from the latest kernel source code. These worked for me before, but are untested for the latest LOS update because I temporarily switched back to stock rom. Use at your own risk.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@Soketto can you please fill out the Google form for telephony results from that build post please? Also, was SMS working on a previous build?

@Oxofrmbl I've changed the link, please check the first post again please
[Motorola Edge 40 Pro  / Moto X40 (China)] Oxofrmbl:
Works now thx
[Motorola Edge 40 Pro  / Moto X40 (China)] cidtheratboy:
Sorry Boys, your NOOB guide is not NOOB enough!

Using a moto edge 40 - xt2303-2

Using ADB i found the moto key, recieved and applied the unlock key.

Can identify device via abd.

Tryed to flash, unsucessful.

:\Moto\Minimal ADB and Fastboot>fastboot flash --slot=all dtbo dtbo.img

Warning: skip copying dtbo_a image avb footer (dtbo_a partition size: 8388608, dtbo_a image size: 25165824).

Sending 'dtbo_a' (24576 KB) OKAY [ 0.567s]

Writing 'dtbo_a' (bootloader) Preflash validation failed

FAILED (remote: '')

fastboot: error: Command failed.

I Have no clue as to why it won't flash.
[Motorola Edge 40 Pro  / Moto X40 (China)] nTOHS:
Hello.Please help.I can't flash the phone.Before was ok
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@cidtheratboy please try to redownload the images as there's a chance your download is corrupt or maybe it's the version of your fastboot is too old. I recommends using the latest version directly from Google https://developer.android.com/tools/releases/platform-tools

@nTOHS same I'd recommend the latest tools directly from Google and also make sure the images you want to flash are in the same directory as the fastboot, otherwise you'll need to redirect the command to the folder where you have it
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
Thanks, filled out, answered no to 5G questions though as my carrier does not provide 5G on current plan so can't check that. Yes, I do think in the prior build it was working, but when going back a bit further it was not (also along with issues I had with 4G)
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo, new test build is going up! It's uploading meow so it might take 30 mins to be available. lineage-21.0-20240303-UNOFFICIAL-rtwo contains the kernel source A14 rebase and A14 device firmware but it retains the A13 eqs IMS system stack, so please check this to ensure those who had working VoLTE before the last build can still use it. I'm planning to try and get the kernel rebase and A14 device firmware merged so we can push for official builds and then see if we can do anything about the IMS / telephony stuff

LineageOS for rtwo - Browse /lineage-21/lineage-21.0-20240303-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net

Edit: sorry corrected link to correct build date
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Hi,

thanks for the new Update.

I flashed firstly all 5 images.

Then the new LOS Image.

After first reboot:

Bootlogo was there

After several times rebooting while installing Magisc etc. pp. was the Bootlogo gone.

SMS works

4/5G works

W-Lan works

The new Image is almost faster and the flicker after app closing is no more there.

Edit./

When i open app in a bunch of apps and close goes back to the bunch. Great!

(hope its understandable)

Hope helps.
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
Just to update on the latest build 20240303 SMS messages work for me
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi guys. im testing this last build. what i notice is the cam recording have low volume. when i record clips on telegram i have high and clear volume, but with the moto cam i have low volumen on videos. also i cannot reproduce audio clips on the sms app even using google messages app. and i cannot play the bible app audio book. it used to work on my other lineage device, but i cannot play in this build. and last the colors on this build looks pale. thats it. thank you.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo, the time has come! I've applied for official builds of LineageOS 21 for rtwo! We have the A14 kernel source merged and A14 device firmware too so we are ready

https://review.lineageos.org/c/LineageOS/hudson/+/385633
[Motorola Edge 40 Pro  / Moto X40 (China)] Adithyansm:
Can i flash this in edge 40 neo?
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
No, its a different device with entirely different chipset. Unfortunately custom roms can't really be made for mediatek powered phones.
[Motorola Edge 40 Pro  / Moto X40 (China)] Adithyansm:
Actually they can , I m using one on my redmi9i which is a mtk device
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
@Adithyansm this topic and section is for rtwo (Edge 40 Pro, Edge+ 2023, Moto X40).. please don't post here again, thanks. The answer is: no, there is no way you can use this release. Look for a GSI.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
While custom ROMs are possible on MediaTek SoC's, it is a lot harder than Qualcomm as QCOM cares about the open source community by hosting their own git server (CodeLinaro) whereas MTK doesn't care about open source...

Tbh I have no idea about Google Tensor but I'm guessing it's also a lot easier than MediaTek and also tbh no idea for Exynos, Unisoc and Rockchip

Anywho? Back on topic! Lol.... I'd like to especially thank @mxz55 for personally donating me an rtwo as tbh it's the nicest thing anyone online has ever done for me and for also being supportive with testing and also providing feedback and also tips about ASB updates ❤️

The second special thanks definitely to Markus Ornik as he's incredibly well versed in AOSP and was instrumental in the open source kernel we have and also getting rtwo to boot and he fixed darn near every hardware bug faster than I could even update my sources with his fixes heh (y) pretty much the only bug we have left is that darn telephony MMS...

Also thanks to all those who helped test rtwo LOS public test builds and reporting bugs and if stuff worked of not :)
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
what about these bugs
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo! Exciting news! Looks like LineageOS official for rtwo will be coming soon as our request to be added to the Hudson build server was merged!

https://review.lineageos.org/c/LineageOS/hudson/+/385633

@clubwagon sorry about that I must have missed it, I'll try to test Moto Camera vs other apps and see what is going on
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
thank you ThE_MarD
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@clubwagon hmm yeah I see, it does seem like the volume is a bit low, not sure why but yeah usually swapping to custom ROMs the mic and speaker volumes are quite reduced... I'll try to boost them in my next test build
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Info about rtwo variants | LineageOS Wiki

wiki.lineageos.org

Now it's just waiting for the first official build

Finally : )
[Motorola Edge 40 Pro  / Moto X40 (China)] GedeonBlack:
@ThE_MarD Thank you very much for all your commitment and hard work! Greatly appreciated.

I tried to build your current branch (lineage-21) with the lineageos4microg patches and docker buildsystem, but unfortunately couldn't get it to work. Building it for lineage-20 worked previously (Using that build right now).

I have attached the build log and would be very grateful if you could maybe just briefly comment on whether the error is familiar to you and if you know where it might come from (e.g. if its caused by the lineageos4microg patches).

I also attached the local_manifest files I used for building.

Sorry to bother you, I'm a total noob at building for android 😅
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
i would like to have lineage os with microg on the moto edge plus 2023
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo folks! So I think our official LOS weekly builds will be on Saturdays as I think we will be alphabetically closer to rs998 (LG G5 US variant) and it gets builds on Saturdays

@GedeonBlack on lineage-21 each device's vendor repo contains the vendor firmware so you can remove the firmware.xml stuff from your local manifest

The selinux denials I'm guessing are from microG as I haven't experienced them on any of my LOS builds, so they probably need to fix it in their source. In the meantime, you can try to ignore selinux neverallow and see if your build will continue just add an entry in rtwo's BoardConfig.mk like this

msm8996-common: Allow Never Allows · Bauuuuu/android_device_lge_msm8996-common@1dfc3cc

* No easy easy way to fix all of these without losing WiFi/BT mac. * Most vendor blobs are still N, so quite old/legacy. Change-Id: I7a7d84677511db0d3cc3315dac072910641b58ed

github.com
[Motorola Edge 40 Pro  / Moto X40 (China)] GedeonBlack:
@ThE_MarD I just tried building your image "raw" by following your instructions here, as well as the LineageOS build instructions and then using your rtwo_clean_build.sh. So no lineageos4microg, no patches, no docker buildsystem - just performing the build in a fresh Ubuntu VM with all the dependencies installed.

I get the exact same SELinux errors again. Maybe something changed upstream?

I attached the build-log again.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
It now really has official status, topic name should be changed soon. The first build was added to the LineageOS device page:

https://download.lineageos.org/devices/rtwo/builds

Due to the use of different keys, dirty flashing from unofficial to official shouldn't be possible, if someone will flash this during a clean install before Marc or myself, please be sure to leave feedback on this build
[Motorola Edge 40 Pro  / Moto X40 (China)] vasilkotsov1:
I've do the dirty flash on top of unofficial LineageOS and work really well.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
I just flashed the first official build and she works fine! Topic updated to official status and install/upgrade link changed to official LOS wiki and official download link added too (y)
[Motorola Edge 40 Pro  / Moto X40 (China)] Big Dumb Object:
Many congratulations on completing a monumental task! Looks like rtwo now the best device in the LineageOS portfolio.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
congrats! on this achievement.
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Congratulations!! Thank you so much ThE_MarD, SGCMarkus, and mxz55, especially for your support of the edge+ (RETUS variant) together with all the rtwo variants despite the initial telephony difficulties with the US model.
[Motorola Edge 40 Pro  / Moto X40 (China)] frilalo:
Great News!

One Question: We still should not lock Bootloader after flashing?

Second one: what about Google Pay?

thx for the reply
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
1. Bootloader should never be re-locked on any ROM except for stock (or you'll instantly brick your device.. it's a mistake many people regret)

2. Like any custom ROM, it snaps Safetynet and Google Play certification, the only way to get around that is using something like this Magisk module: https://github.com/chiteroman/PlayIntegrityFix/releases (preferably combined with playcurl module to auto-update its fingerprints: https://github.com/daboynb/PlayIntegrityNEXT/releases/tag/playcurl).

Then, as long you pay attention to keep both modules updated, Google Pay and anything else that requires fully passing, keeps working.

Of course, Google can momentarily block a certain fingerprint before the fp updater gets a chance to distribute a new one, however PlayIntegrityNEXT (playcurl) is set to check for updates needed every 6 hours, and Google blocking one is exceedingly rare, i've not encountered any issues whatsoever with momentarily not passing certification in over 2 months.
[Motorola Edge 40 Pro  / Moto X40 (China)] maicol07:
Thank you @ThE_MarD, I've just dirty-flashed the ROM over the unofficial one, and it works fine!

I only have one question: will GAPPS be maintained when OTA comes on Saturday(s)?
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@maicol07 if you use the Lineage Update to handle the OTA then yes it will backup and restore GApps automatically (y)
[Motorola Edge 40 Pro  / Moto X40 (China)] dvaldes409:
Just wanted to chime in. I've been looking for the right time to switch to a custom ROM from the stock rooted one. I installed the new official build and everything is working perfectly. Instructions on LOS site are great. Gapps work great. Magisk with the mentioned play integrity modules work perfect. Battery life seems better than stock so far. Only thing I have seen so far is that brightness is a bit dimmer than stock unless you raise the brightness pretty far up or enable the outdoor mode in display settings. With brightess raised towards max it is as bright as stock.
[Motorola Edge 40 Pro  / Moto X40 (China)] maicol07:
Thank you! What about Magisk instead? Does it handle it all by itself or do I need something like this module?

GitHub - mModule/mSurvival: Magisk Survival (addon.d) script for use with custom roms.

Magisk Survival (addon.d) script for use with custom roms. - mModule/mSurvival

github.com
[Motorola Edge 40 Pro  / Moto X40 (China)] voided:
Thank you and everyone's for the great work! One of the reason i got the Motorola X40 Pro is because of it's abilities to support USB display output. I'm excited to inform that it is working!

However, I'm having an issue about Bluetooth with my Jabra Elite 7 Active. AAC Bluetooth Audio Codec does not work (no sound) until i switch back to SBC. Hopefully you can have a look into this. Thanks in advance!
[Motorola Edge 40 Pro  / Moto X40 (China)] Big Dumb Object:
Magisk preservation during OTA on A/B type devices is a known problem, so you really may want to try mSurvival. However, I assume you will end up by following these instructions, because personally, I've had no success with this module (but not on rtwo). But if it will work out for you, please let me know.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@maicol07 yeah it will probably need a survival addon-d script as that is what the Lineage Updater uses to backup and restore addons like GApps, so Magisk would also need it but check what Big Dumb Object mentioned as tbh I haven't used Magisk in a very long time

@voided thanks for the bug report. Can you please provide logcat with that Bluetooth device while trying to use AAC and it won't work? It's hard to diagnose some bluetooth device issues without owning the device, so hopefully in your log there will be hints as to what's going on

How to capture logs | LineageOS Wiki

wiki.lineageos.org
[Motorola Edge 40 Pro  / Moto X40 (China)] Yqsy:
I've flashed the official version and sometimes I can't receive the SMS, my carrier is from China
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@Yqsy that is a known bug workarounds you can try is to toggle airplane mode on and wait 10 seconds then toggle it off or reinserting your sim card. A permanent solution is still in the works and if I can get QPR2 to compile I'll do a test build where upon boot completed it will restart QCRILD which I'm hoping will work just as good
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
I notice the same Problem. I just stop and start 4G and SMS button. Then i check with sending sms to someone. After a while incoming a buch of not received sms massages. This works since i restart the phone.

Congratulations for the great work and thank you so much!

Another question.

I se there two more files but cant anyvhere read about. Also not in the wiki.

The superempty and vbmeta.

Whe need them to install or not? And if this two files delete the old installed rom on the phone?
[Motorola Edge 40 Pro  / Moto X40 (China)] voided:
@ThE_MarD, attached is my logcat. Hopefully this helps. Thanks in advance.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@debx those extra images are uploaded purely because some devices require it, so it's not a requirement to flash those as we don't need to. Please just follow the wiki guide and you'll be fine (y)
[Motorola Edge 40 Pro  / Moto X40 (China)] voided:
Hi @xuyh0120, using the KernelSU kernel now. So far hasn't experience any major issue. Thanks!

I do notice that the auto "Build and populate cache" has been failing for the past 3 days. Looking forward for more great work from you:) Thanks again!
[Motorola Edge 40 Pro  / Moto X40 (China)] Yqsy:
Thank you for all the work you've put into this device.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
So just a small update I'm trying to still compile QPR2 (the quarterly big update from Google and also ASB for March) and I think I'll get a test build ready soon but I'll try to test it out before I post it as I just heard from OP11 devs that camera is broken for them and also other moto devs who work on our sm7325-common devices (doesn't include rtwo, but it does include my Dubai which is the Motorola Edge 30) so things might not fare much better for our rtwo...

I'll try to then check into that Bluetooth logcat as I haven't had time for that and tbh my other devices I need to test with QPR2 but main priority is rtwo on QPR2 and then figure out what's next lol oof
[Motorola Edge 40 Pro  / Moto X40 (China)] Yqsy:
I found out that the device can't accept SMS can be resumed by soft reboot operation. google play store has a lot of apps that quickly perform soft reboot command, I use: Super Reboot
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
So QPR2 unfortunately is a mess on rtwo... It boots but Camera is super broken and media codecs seem screwed up too as YouTube messes up... Oof!

Just a heads up btw come Monday I'll be on a vacation with my family to the Philippines and that will be for two weeks but I'll try to chime in every once in a while if I can
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Hopefully when you're back moto will publish a March 2024 build with blobs fixed for QPR2.

It looks like moto is doing bimonthly releases now, the last U1TR34.8-30-8 was January 2024 patch so hopefully they'll sort out a lot of the QPR2 work too.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@jimmie32 tbh I don't think Qualcomm merges QPR changes, so it might not... Odds are custom ROMs are going to need to find workarounds...

This might actually fix our headset audio issues tbh so I think I'll redo my LOS source sync to the current merged stuff so I can release a test build with this

https://review.lineageos.org/c/LineageOS/android_device_oneplus_sm8550-common/+/387149
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Err, well they merged the QPR2 stuff... So I guess we won't be able to have official builds on rtwo until a fix for our super broken camera issue can be fixed, oof, so I couldn't just resync QPR1...

I really wish they would have separated QPR2 like they've done in the past like 18.1. This should have been a 21.1 since it broke a lot of devices...

Hopefully Bruno or Markus can find a fix for us sooner than later so we can get our builds rolling again :(
[Motorola Edge 40 Pro  / Moto X40 (China)] Big Dumb Object:
At least it was official once. This paves the way for LOS for MicroG for those who are waiting for it.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
That's true, but the timing with my vacation isn't good for this QPR2 as tomorrow is when I start flying out with my family... oh well, maybe when I get back a fix will be found and we can resume official builds? 🙈

My Motorola Edge 30 (dubai) also has super broken camera too...
[Motorola Edge 40 Pro  / Moto X40 (China)] effectively0:
Anyone having problems with Quick Share? LineageOS 21 cannot be detected by other devices even when visible to Everybody. When I try to use Quick Share on this device to send, it crashes as soon as it opens.
[Motorola Edge 40 Pro  / Moto X40 (China)] stenmarsh:
Good afternoon

First of all a huge thank you for the work you have done. It's great what you're doing.

I don't know what the problem is with the camera, it doesn't interest me. But all the waiting for the system to be released was crushed by the second screen system not working. I connect my monitor via type-c cable and the picture appears three times and then the phone freezes until I unplug the monitor. Hope you can get the system debugged. Plus it would be great to integrate "motorola ready" into the system.
[Motorola Edge 40 Pro  / Moto X40 (China)] effectively0:
Does wireless charging work for other people? doesnt work for me and I dont see option to enable in settings.
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
I

I got this too, had to set phone refresh rate min and max to 60 to be able to watch stuff mirrored. so try that. For `Ready For` / Moto desktop thing could try extract from official rom and see if it works?

Yes works fine, I use every day on x40 and don't recall there being any setting. Its picky on positioning and cases though.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo, a new test build is up! lineage-21.0-20240326-UNOFFICIAL-rtwo contains QPR2 and fixed camera! Please test all functions! There's also a boost to mic and speaker volumes and also trying to restart QCRILD service upon boot completed to see if that helps get SMS working for all users after a reboot

Any issues please report and provide logcat

Also note! I'm on vacation and unable to test this build! So if it doesn't boot or something? Please let me know so I can take the build down

LineageOS for rtwo - Browse /lineage-21/lineage-21.0-20240326-UNOFFICIAL-rtwo at SourceForge.net

LineageOS for rtwo (Motorola Edge 40 Pro / X40 / Edge Plus 2023)

sourceforge.net
[Motorola Edge 40 Pro  / Moto X40 (China)] Kkjin:
Looking forward to the perfect official version...

Can the L1 cache be restored?