yashsingh1/xdaforums huggingface dataset:
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG_1988:
Thanks for your work.

I am on your latest unofficial build.

On Bluetooth audio: I tried every developer setting and bluetooth setting I could, and could not get audio to come through any headset (I tried multiple). The headsets all connected, but are just silent. Strange.

I did some searching here and on Telegram, and I cannot find a solid answer: Is it possible to add Moto's "Ready For" engine to the build? In stock, Ready For has the ability to have a sort of "desktop" experience, and can be used wired or wirelessly.

Edit: I found the port that is mentioned on Telegram (https://t.me/AyraProject/1834), but unfortunately it just uses "mobile desktop" which appears to just be a window to see the phone screen. I cannot seem to control the phone from the computer, and I cannot get the actual "desktop" experience that the stock rom provides (it is a lot like Samsung Dex).

Edit2: I tried JDSP+Audio modification library to see if that changed anything with BT audio, and all it did was make my phone start force stopping a bunch of things lol. I don't think it was going to fix anything.

Very interested to see if anyone comes up with a workaround for BT audio.
[Motorola Edge 40 Pro  / Moto X40 (China)] effectively0:
Did you buy the China version Edge 40 Pro and have a non-China ROM flashed to x40? I wonder if that could be it.
[Motorola Edge 40 Pro  / Moto X40 (China)] khalvat:
I have not flashed anything. There is official Chinese ROM on moto x40
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Thanks for the Update.

Its correct Bluetooth doesnt work. Connecting is there but no sound. The bootlogo to.

I would help with logcat, but i doesnt have big expirience with...sry. I bring the phone back to the last build.

Edit./ Oh cool cant flash with previous one. Aborted with Error SPL
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG_1988:
I don't know how to interpret it, but using the BTCarMono app (Play store link), I can make bluetooth audio play through a headset, but the audio is low quality (I think it might be doing some audio codec change). I am sure you will find the official fix.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
try downloading all the files again. on my case im using the nightly official build. is stable. exept sms sometimes.

LineageOS Downloads

download.lineageos.org
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG_1988:
I think I found another bug in this latest unofficial build. It looks like USB file transfer is not working. The device is not seen at all by my computer no matter what I do. ADB does work as well as using ADB Explorer, but only if the USB connection dialog is set to "USB Tethering".

EDIT: Okay, looks like it was a combination of an old Lenovo driver, the motorola mobile USB drivers, and the Google USB driver (from SDK manager). Uninstalled all those drivers, then only reinstalled the Google USB driver (from SDK manager), and now I can access it the device both in ADB and windows explorer USB transfer. Issue solved.
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Thanks.

nope it doesnt work.

The complete interrupt calls:

"Error: recovery: Current SPL: 2024-04-05 Target SPL: 202402-05 this is considered a downgrade

Error: recovery: Denying OTA because its SPL downgrade

Install completed with status 1.

Installation aborted"

The good thing about the Beta was and is, i cant dongrade..., that all the time works 4+ cell. I use only 4G..
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. what i did is reinstall the stock rom and then install again the nightly build.
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Oh, so in this case i may lost all my data. Better i wait and **** on Bluetooth. How ever i can be lucky that the Moto works.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build going up! It'll be uploaded within 30 minutes of this post. lineage-21.0-20240412-UNOFFICIAL-rtwo contains a fix for Bluetooth and MotCamera4 so please test both asap! I think LOS team will be resuming official LOS 21 builds so if we want to get on that list we need to confirm rtwo is stable!

I also noticed a fix for Miracast/WiFi Display (not Chromecast related) that we probably needed anyways so optionally if someone could test this too please

I also updated vendor blobs to rtwo_g-user 14 U1TRS34.8-30-13-1 7c77a-12bae6 release-keys - RETAIL variant

LineageOS for rtwo - Browse /lineage-21/lineage-21.0-20240412-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)] debx:
I did it,

- No bootlogo

- 4G+ is on air

- No Bluetooth function

Maybe, i dont know if is important. I didnt flash the revovery.img.

Edit./

- Bluetooth. It works! I had to activate the new button under the settings of your Bluetooth device (Headset etc.) "Spatial Audio". Wow the sound is great! Thanks man!
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. is this build stable?
[Motorola Edge 40 Pro  / Moto X40 (China)] voided:
Hi @ThE_MarD ,

Have you tried to switch the Bluetooth Audio Codec to SBC? That works for me with Jabra ELite 7 Active.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Ok thanks! How is MotCamera4?

I got a report that MotCamera4 is fine again which is good, but we did miss the LOS 21 reship lol oof, but I'll do a separate request to reship rtwo builds
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Good Morning, yes actually is stable.
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
About SMS after activated Fly Mode.

I can reproduce it as follows.

Deactivating fly mode.

Sending SMS and was received.

The receiver send me SMS back.

I dont receive it.

After dis and activate the Simcard, no otherthings to do, i receive the SMS.
[Motorola Edge 40 Pro  / Moto X40 (China)] vasilkotsov1:
Hello I have a issue with Moto Camera. I update from Official LineageOS to last unofficial built.After reboot of the device the Moto Camera App crash again and I have to redone the whole process to make app work again.I update the app with newly version from ApkMirror.

I will attach a screen recorded video and logcat.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. i see you have gcam installed on your phone. can you please tell me.where i can download it fot this device? thanks.
[Motorola Edge 40 Pro  / Moto X40 (China)] vasilkotsov1:
You can finds link in main post.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
what post, send link please.
[Motorola Edge 40 Pro  / Moto X40 (China)] vasilkotsov1:
BSG GCam APKs - Google Camera Port

Modified Google Camera app by BSG.

www.celsoazevedo.com
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
thankyou but all these crash for me
[Motorola Edge 40 Pro  / Moto X40 (China)] vasilkotsov1:
Which version you download.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
MGC_9.2.113_A11_V4_scan3d

i test the first 3 versions
[Motorola Edge 40 Pro  / Moto X40 (China)] vasilkotsov1:
You have to download apk for snapdragon.
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Hope helps with cam isues,

i use Bigkaka 9.2.14 V7.0 snap Version and this Config without any Problems.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
I can confirm the change in last build.. camera crashes. I can't use Moto Camera 3 or BSG MGC without recurring crashes, the workaround is to install MotCam3 `9.1.12.2` from APKmirror, after which it keeps crashing, however the workaround is to go to Apps > Moto Camera 3 > top right click "Uninstall updates", then any version, including the one shipped with LineageOS for rtwo, will stop crashing and work. In fact , after "Uninstall updates" you will end up with the LOS-shipped version, and the crash fix will persist even if you then clear that app's data, so the way it fixes it is mysterious. Worth mentioning this workaround doesn't stop BSG crashing, only Moto cam.

This procedure has to be repeated after each phone reboot, you'll only be crash free during uptime afterwards. Clearly something got bugged, and that it temporarily resolves with that workaround can provide a lead for @ThE_MarD which is why i mentioned it. I'll attach logs asap.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Oof lol... Well I should have waited for official then until I could test more myself XD

Before the next official build I'll nuke MotCamera4 until I can find a more concrete solution I guess

A new official build is out! If anyone experiences MotCamera4 issues please try what @mxz55 said or just disable it
[Motorola Edge 40 Pro  / Moto X40 (China)] vasilkotsov1:
No I don't have any issues with other camera apps just with Moto Camera other apps work perfectly whit no issues.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
You're not using the same as me, in fact the following statement is wrong:

I am used to BSG variant `com.android.MGC_[version number]`, not "snap". I have used MGC_ for years on several Motorola devices, including my old Edge 30 and now my Edge 40 Pro, including with LineageOS. It has always worked perfectly fine, until yesterday, with the last build, so the causal connection is clear to me. I want to empathize that users don't have to download "Snapdragon" variant. If you are using it, that may play a role in why the general camera issue in last build, the one causing Motorola Cam 3 crashes for the several users discussing that now, doesn't affect your 3rd party camera app (BSG).
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Ah, well, i just flashed official and it looks like the camera 'bug' doesn't exist in the new official build from today.. so i think something was accidentally missed in the last test build by @ThE_MarD ?

Good news anyways. We seem to have the perfect build with full April 2024 ASB, and made it to resume official LineageOS builds after the global A14 QPR2 pause.

Edit: can really confirm. Moto Cam 3 as well as BSG MGC cam work fine, without crashing.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Oof, turns out i was wrong in last post.. the exact same camera crashes began again after a while (not right after installing new build, not for a good while). I also know that when it first began, it came out of nowhere after nearly a day of functioning as normal, later on the day camera just stopped to be openable.

I wonder how the randomness comes to be, but that may be another clue.

The workaround, and Marc investigating it, is the way to go for now.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@mxz55 Yeah I think the crashes might be selinux related so something there must have changed with our favorite QPR2 lol...

It definitely seems like those camera.mot props are important to MotCamera4, but for bsg camera can you share the logs please? Either here or pm
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
I will put it in the attachment below:
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Next bug.

Backligt is from alone and rigt now on maximum.

One more bug,

phone has blackscreen. Cant waking up. Only long press on power button can bring him to restart!
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@mxz55 hmm I'm not sure why that camera crashes for you as I didn't see any specific selinux denials or errors on that log, but I am trying out MGC_9.2.113_A11_V4_snap.apk and it seems to be working ok for me so maybe it's the APK filename? This build did just come out so it could be the developer of it fixed something?

I think same would be true for A14 MotCamera4 as I fixed the selinux denials but it still fails to get the aux camera information... So I'm thinking since A13 and lower Motorola camera apps seem fine we might need to downgrade ours until Motorola releases a version that is QPR2 safe. Tbh I don't think much would change if we downgrade as most users on xpeng and Dubai haven't mentioned any noticeable changes

@debx can you please logcat next time your screen won't wake? Is it only in certain conditions? Outside in the sunlight? Indoors in the dark? What's your Live display settings for stuff like display mode and anti-flicker? Also what's your minimum and max refresh rates?
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
It was in daylight and the Display flicker. I ad the informations as screenshots
[Motorola Edge 40 Pro  / Moto X40 (China)] maicol07:
Hi, when trying to upgrade via the settings Updater I get install error every time I try to install it (download finished without issues). The only relevant logcat line is "Ignoring incompatible update lineageos-....zip"

Any idea on how to solve this?

Thanks
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@debx can you please try to disable LiveDisplay's display mode and then try again in the sunlight? I think maybe it's not triggering properly.

It's either that or I forgot to ask if you're using automatic brightness or not, but maybe that could be interfering too? Please try with automatic brightness turned off

@maicol07 are you trying to switch maybe between official and unofficial builds? The Lineage Update won't allow it so you'll need to manually flash via recovery and then reboot to recovery and reflash add-ons like GApps before rebooting to system
[Motorola Edge 40 Pro  / Moto X40 (China)] maicol07:
No, I'm already using the first official build (switched from unofficial). I'm trying to update from 20240316 to the last one released Saturday
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@maicol07 hmm that is odd, but if Lineage Updater doesn't want to do it you can still update manually via a PC and Lineage Recovery by following the instructions in my previous post

The only thing I can think of is the updater won't allow auto update for A14 QPR update which is a big change to the system
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
today i had my first software update on the official lineage os updater and did work fine.👍
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build is going up! It is uploading now so it might take 30 minutes to become available. lineage-21.0-20240416-UNOFFICIAL-rtwo switches MotCamera4 from rtwo A13 as it uses an older SDK version to avoid the finding aux camera intermittent crashes that the A14 variant has. There's also a mic and speaker/handset volume boosts to test, especially for video recording. It also includes a small kernel source code update from MMI-U1TRS34.8-30-13-1. Please report any bugs with logcat!

LineageOS for rtwo - Browse /lineage-21/lineage-21.0-20240416-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)] maicol07:
@ThE_MarD here is my logcat. I'll go ahead with the manual flash. I'll retry with the next build
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Well yesterday the A13 MotCamera4 seemed fine...but today she's crashing the same. Oof. I've asked other Moto devs if it's happening to them as well, since I just got my first report from an xpeng (Moto g200 5G / Edge S30) user that the A12 MotCamera4 it uses also has the same crashing bug... So unless a system-wide fix is found? I think I'll have to drop the Motorola camera app from all my devices... I'm guessing there would need to either be an APK hack or Motorola would need to fix their app which tbh I'm unsure if we will even see on rtwo, unless they merge A14 QPR2.

The recent kernel source code drop they released was not QPR2, which when I think about it makes sense since the MotCamera4 APK version didn't change when I updated blobs, just a few camera, RIL and a few other miscellaneous libs...

@maicol07 I'm not sure which GApps or mods you're using but I'm guessing it's interfering with the system as your logs show a few system services crashing which isn't present on my phone as I only run LOS + MindTheGApps 14 and others are able to use the updater.

You can try to maybe check for newer versions of your mods?

@mudtub I would recommend the same
[Motorola Edge 40 Pro  / Moto X40 (China)] maicol07:
My setup is LOS + MindTheGapps-14.0.0-arm64-20231025_234300 + Magisk (with some modules)
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@maicol07 which version of Magisk? I'd recommend checking for a canary build or something since QPR2 changed a lot I'm guessing it'll also need updating
[Motorola Edge 40 Pro  / Moto X40 (China)] maicol07:
26.4
[Motorola Edge 40 Pro  / Moto X40 (China)] djfw:
I had to give up trying to find a phone that LOS supports that I could buy in Australia.

So, I need to confirm that XT2301-4 and PAWE0001SE are the same phone that has international support and that it is supported by this version of LOS. This is because I am buying out of the UK and they use the PAW reference rather than the XT reference.

I have checked the radio support by the phone and it seems to have coverage for all the radio bands I need here. Are there any other gotchas I need to check before I buy from offshore?

Thanks for all your help.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Yes, both stand for the Motorola Edge 40 Pro (rtwo), which is fully supported by this LineageOS. Go ahead and buy it.

All variants of rtwo, for any continent, have global radio support. If any of it would've been less than ideal on stock (Theoretically; not reported by anyone), LineageOS unifies all configs, thereby improving upon it. Radio hardware is identical across variants.

The maintainer, Marc, is also using an European rtwo, Motorola Edge 40 Pro, in Canada, it's perfectly fine on radio and so was it when he still ran stock. We also have the other variants represented in our userbase across the globe: Motorola Edge+ (2023) sold in North American markets, and Moto X40 sold in Asian markets, like China. This LineageOS supports all these variants with the same unified ROM, and radio is just fine on all of them for global users.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Regarding the camera issues, it's not necessarily a big deal for the official build end user until hopefully being fixed by coming Saturday (next official build)

Because LineageOS camera app (Aperture, org.lineageos.aperture ) still works while MotCam4 is in a crashing loop, so pre-workaround. Aperture is pushed as main camera app for users anyways, although Motorola Cam has its own fanbase and thus is included as well.

For the un-introduced, to choose Aperture (LineageOS's camera app), click the app with this icon:

The one on the left.

And the camera app with a different icon, Motorola's, if you keep accidentally opening it you can just click "Disable app" in Android apps list or use only Aperture's shortcut to your home screen/bottom bar. This is what most people do anyways even if it all works, as they become used to one specific camera app of the 2.
[Motorola Edge 40 Pro  / Moto X40 (China)] djfw:
Thank you for the assurance. I am very grateful. I did so much digging around the internet to get this info together I left holes :)
[Motorola Edge 40 Pro  / Moto X40 (China)] djfw:
Oh I forgot to ask, I could not find any references to TWRP and Motorola edge, so am I to assume Magisk is the only way to root the 40 pro?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
yes, Magisk, by patching init_boot.img and boot.img using Magisk app, and then flashing them back using fastboot. Therefore it only takes 3 minutes to root, and only the most basic knowledge of using adb/fastboot and getting into Bootloader Mode.

There's no TWRP, but that is a relic of the past in the Android scene anyways. It's basically abandoned, out of support, not coming out or even getting ported for most devices these days.

LineageOS Recovery is all you need.

No problem. The post with the info (the one you quoted) has been edited with more info, btw.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@mxz55 speaking of Magisk, is there a specific build to use with QPR2?
[Motorola Edge 40 Pro  / Moto X40 (China)] maicol07:
@ThE_MarD is the QCIRLD restart mentioned here added to the latest official build? It seems to be missing since SMS has known issues:

[ROM][OFFICIAL] LineageOS 21 (Android 14) for the Motorola Edge 40 Pro / X40 / Edge+ 2023 (rtwo)

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...

xdaforums.com
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. with this last official update, i feel my phone warm and the battery drain more fast. im using it as always while im working listening music, also the motocam crashes unlike the previous build.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
I'm also on it, and have none of the issues you describe (except for cam, read earlier posts about that). Can't reproduce, in fact, this build feels smoother than ever.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@maicol07 the QCRILD restart test unfortunately didn't work, but a user on Telegram mentioned some console commands that work good for him so I think I'll try to find a way to include them in a way that will hopefully be selinux compliant
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Did anyone that's used to bypass Play Integrity/SafetyNet using one or a combination of these Magisk modules:

GitHub - chiteroman/PlayIntegrityFix: Fix Play Integrity (and SafetyNet) verdicts.

Fix Play Integrity (and SafetyNet) verdicts. Contribute to chiteroman/PlayIntegrityFix development by creating an account on GitHub.

github.com

GitHub - daboynb/PlayIntegrityNEXT

Contribute to daboynb/PlayIntegrityNEXT development by creating an account on GitHub.

github.com

.. experience difficulties to pass verdicts at all, no matter what you do? I can't get it to pass, despite doing and clearing everything, down to GSF ID's and any Google apps. I use the modules latest versions, and playcurl from PlayIntegrityNEXT is pulling valid device fingerprints.

This problem started on last official build and second-last test build, the one that included Bluetooth fix; maybe codec related changes caused the problem (@ThE_MarD)?

YASNAC results stay like this:

In case this affects more people, the upcoming official build on Saturday will be fully stable if it's resolved, because camera crash is fixed in LOS by temporarily removing MotCam4 (falling back on LineageOS cam, Aperture). The verdict issue im experiencing is the only thing that worries me at the moment.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@mxz55 tbh I don't see how a Bluetooth codec change would affect play integrity... One of the only things I can think of is I can try to downgrade our build fingerprint and description to an A13 version to see if that helps? But I dunno if that will works or not tbh but it's worth a try?
[Motorola Edge 40 Pro  / Moto X40 (China)] mudtub:
I'm able to pass continually but haven't gone to unofficial (maybe tripped kernel detection?)

Yep probably something with addons lol

Haven't experienced any significant thermal/battery changes.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Nvm, ill have to continue pinpointing it myself more.. others dont seem to experience it. No need to test with A13, its not relevant; i had plenty of A14 builds that it still worked. If i can't figure it out ill clean install.

I figured attestation involves DRM stuff, therefore codecs/device specific configs may play a role; im pretty sure i reproduced the attestation fails existing/not existing between the build before the BT fix and the build with it. But nvm lets assume it's still on my side and coincidence. I will do a clean install tomorrow when the new official build pops up.