yashsingh1/xdaforums huggingface dataset:
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo fellas! So I got confirmation camera and functions are fine on xpeng (moto g200 5G / Edge S30) so it should be fine for us too but I'd still like confirmation just in case for some reason it won't be

@Kkjin just to check, are you referring to Widevine L1? That is mentioned under known bugs in the first post as Motorola wipes DRM keys upon bootloader unlock so unfortunately we're stuck on L3.

An example of what I mean is even with stock ROM, as soon as you unlock bootloader? It will still show as L1 capable, but apps that try to use L1 will either fail to display video or crash as the secure media codecs will fail to work due to a missing DRM certificate
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. i just install it on my edge+2023 and camera is black screen and stuck, cannot do nothing. i reset om settings but did not help
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
i mean i have to back to stock rom, because that build messed my phone. the file transfer on android was bugged
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@clubwagon can you please provide logcat? Which camera app? Did you check a few camera apps just in case one was broken?
[Motorola Edge 40 Pro  / Moto X40 (China)] rawhide85:
@ThE_MarD, it's damned great to see a dev respond so quickly to forum members! Thank you brother! Cheers
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. i was trying to go back to the official build that for me was working good. but i cannot finish the instalation , i have " installation aborted" " cannot downgrade version"something like that. what can i do to revert to the oficial.noghtly build?
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
I think you can't since the nightly is a lower security patch level.
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
I got this.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@clubwagon before you try to change can you get me logcat with the camera bugs? Did you try multiple camera apps btw?

Also can you clarify your data issue?
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
can someone help me to solve this please? i try the lenovo smart assistant but it get stuck when unzipping file. also i try the tiny fastboot and get error
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
i solved it. thanks. i was using wromg motorola build on tiny fastbbot.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Can someone else please test the build and provide a logcat if any bugs? 🙈
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi @ThE_MarD . i did not.provide the logcat because i was in hurry and have to flash with stock as soom posible. but i can say the motocamera and the stock cam from lineage os in this last buid did not work. black screens and anything was not responsive even resetting. also that last build was full of bugs, everytime you want to download somethimg on the browser internet , this crashed. when connecting to pc and do file transfer did not work. that was i did noticed before to flash stock rom. i will return to the nigjthly build lineage, that was working fine for me . what i dont like is tne low volume on videos recording. thats why i did flash the last one build. anyways . greetings
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Ok thanks. I wonder if that kernel ASB merge broke user data maybe and I think the camera fix patch set did change form when I made the test build so I'll repo sync all the merged QPR2 changes and I'll do a new test build without any of the device changes I had to see if that helps
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build is going up! It'll be ready within 30 minutes of this post. lineage-21.0-20240331-UNOFFICIAL-rtwo contains a fresh sync of LOS sources for QPR2 without the kernel ASB merge and without device changes to see if that helps with camera and userdata problems

Please backup everything off your device before testing! I'm still on vacation and can't test! Also don't tell my wife! She'll kill me if she knew I even touched my build PC lolol...

Any issues logcat with your report please!

LineageOS for rtwo - Browse /lineage-21/lineage-21.0-20240331-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)] dvaldes409:
Thanks again for all your hard work @ThE_MarD . I haven't tried the new build but I'll leave some findings here from the latest official build.

Using the edge +, fast charging isn't currently working. For some reason when plugging in the OEM charger, it ramps up into the 40s watt range for a few seconds and then goes down to 4-7 watts. I have tried other chargers and they behave similarly.

Another thing I mentioned earlier is the brightness slider, it seems that there is a graphical bug, most of the brightness changes happen in the top 25% of the scale, with the bottom 75% doing very little. Weirdly, apps that handle brightness also, like VLC media player control perfectly and linearly from 0-100%.

When in low brightness, black backgrounds flicker between black and gray. It seems like the OLED screen is going from turning off pixels to displaying dark gray pixels. This is with anti-flicker on and off. It is subtle so not a deal breaker.

Finally, there is an indication of an active alarm for 6am every morning that won't go away despite deleting all the alarms. This shows both on the clock widget and the toolbar. The phone doesn't actually alarm and other alarms work fine.

If you need a logcat for any of those scenarios let me know.

Also, for whoever is wondering RCS is currently broken, but that is currently a known widespread issue with Google messages and Magisk/Spoofed fingerprints.
[Motorola Edge 40 Pro  / Moto X40 (China)] dvaldes409:
Is there a way to make full complete backups and restores like it used to be possible back in the day? I'd love to try new builds and help troubleshoot but it takes me about two days and a ton of work to set the phone back up completely from a fresh install. Thanks for the hard work
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
I use:

GitHub - NeoApplications/Neo-Backup: backup manager for android

backup manager for android. Contribute to NeoApplications/Neo-Backup development by creating an account on GitHub.

github.com

Seems to be the go to post `Migrate`.
[Motorola Edge 40 Pro  / Moto X40 (China)] Big Dumb Object:
As alternative, App Manager also provides backup functionality in simplified form and many other great features.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@dvaldes409 thanks for the reports. Hmm, for quick charging it definitely works for my RETEU (XT2301-4) as I can use the 125W Turbo Charging brick and my phone cooks but it charges ridiculously fast, so there might be something going on in the kernel maybe that we might need to adjust for XT2301-1 variants?

Tbh I didn't realize the brightness slider is like this, but it seems to happen to a bunch of Motorola devices so I will add this as a bug on rtwo

For the low brightness flicker, is your minimum refresh rate set to 48Hz? If so that is mentioned in our known bugs in the first post since Motorola only used 48Hz for peek display so they never fully calibrated it

The alarm thing tbh I have never heard anyone ever mention... Have you tried to force stop any alarm clock apps you have and then cleared storage on them?
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi i have a question. why the last builds are not color brillant as the stock rom or like the previous builds that looked very nice in colors. last builds have lack of brillant colors. also i have noticed on settings in the option of colors when you want change on natural, boosted or adaptive does not work. i try to use boosted and nothing change. thanks in advance to developers.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@clubwagon are you on the official LOS 21? I just checked and the colors do change for me
[Motorola Edge 40 Pro  / Moto X40 (China)] clubwagon:
hi. yes im using the official nightly.
[Motorola Edge 40 Pro  / Moto X40 (China)] debx:
Have here a Bluetooth bug.

When the Phone is after restart the first time conected via Bluetooth with the car. I see the Album informations like Picture, Singer, Song etc.. I disconect the Phone cause i stop the car and come back. After connecting is only the song name present.
[Motorola Edge 40 Pro  / Moto X40 (China)] djfw:
I'm looking to buy a new Moto handset here in Australia.

How do I confirm this release supports what is available here?

I can purchase what is called a Moto Edge 40 with a model of MOT207037 but there are no Moto Edge 40 Pro available.

I want to purchase locally so that I have good matching to local networking.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@debx Hmm tbh not sure what on our device could affect that, as that is just data transfer and not audio based... Can you please logcat it as it happens? I can try to check if logcat gives hints as to maybe why it could happen?

@djfw the Edge 40 is NOT the same device as Edge 40 Pro. Edge 40 has a MediaTek SoC whereas Edge 40 Pro is a flagship and has the Qualcomm Snapdragon 8 Gen2 SoC so it has considerably more performance.

I do not follow Edge 40 for custom ROMs so I am unsure of the status of it sorry
[Motorola Edge 40 Pro  / Moto X40 (China)] effectively0:
Qi Charging? Doesnt seem to activate my Qi charger even without a case.
[Motorola Edge 40 Pro  / Moto X40 (China)] effectively0:
Anyone else getting connectivity issues? Bluetooth in car sometimes doesnt play audio (only silence). Effect is reproducible 100% when trying to play the same song on repeat (silence when replaying the song). Some other times the car doesnt register any song playing so car volume cannot be changed. Tried changing bluetooth settings in Developer Options to no avail (Disable Bluetooth A2DP hardware offload, Bluetooth AVRCP Version, Bluetooth MAP version). Reproducible in 2 cars I've tried. Bluetooth audio is sometimes choppy for the first few seconds when connecting after a reboot, not sure if thats just unrelated lag while the phone is starting up other processes at reboot

SMS sometimes bugs out and only sends, doesn't receive (no error message or indication, have to periodically send myself a SMS and see if it receives). Have to take SIM card out and put back in and even then, sometimes it only receives some of the backed up messages, then the rest hours later.

Google Maps wont get gps lock unless the app is starting new, have to kill the app and restart if task switched to a different app for too long. Funnily enough the gps lock will work if I manually input start location into the navigation (any place on the map works) and hit Go to start navigation. Also it doesnt save my location history to my Google account for Maps Timeline. I have a hunch this might be a bug with MicroG or MindTheGApps, but if anyone else knows the fix please let me know.

Is this the place to report bugs?
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
A new test build is going up! It will be done upload in 30 minutes from this post. lineage-21.0-20240409-UNOFFICIAL-rtwo contains AOSP QPR2 and also April ASB as well and synced LOS sources and merged kernel March ASB (April is small but I'll test it myself later). I also fixed camera, RIL and userdata is working again! I also implemented a QCIRLD restart upon boot completed to see if that helps with those who have SMS issues and also boosts to mic and speaker/handset volumes to test with any audio recordings and volume for playback. Please test ALL functions and report any bugs with a logcat

LineageOS for rtwo - Browse /lineage-21/lineage-21.0-20240409-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)] clubwagon:
hi. the motocam crashes everytime. i reset in settings, but does not help. also the sms problem continues.
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Hmm yeah I think I'll need to tweak Moto Camera maybe a bit I'll try to check the logs thanks. Can you please provide logcat?

Using ADB and fastboot | LineageOS Wiki

wiki.lineageos.org

How to capture logs | LineageOS Wiki

wiki.lineageos.org
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
I've been testing the new build, its stable for me and works better than older ones and official..

but, it doesn't currently support LSPosed, not even the actively maintained fork of it: https://github.com/pumPCin/LSPosed as the manager will always crash

.This may be down to lack of QPR2 support (so far, in LSPosed) or something in Marc's test build, but anyways ill forward logs on it soon

I also can't get Bluetooth headphones sound output, but that could be because i messed with clearing some (BT and midi audio) packages as well as removed some more stuff, i hope so but ill investigate further asap
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG_1988:
This version of LSposed (forked from official) does work on this latest test build, BUT I have been experiencing odd issues with HideMyApplist and some other LSposed things.

https://github.com/mywalkb/LSPosed_mod/releases/tag/v1.9.3_mod
[Motorola Edge 40 Pro  / Moto X40 (China)] khalvat:
I have the sms problem even on x40 stock rom. After sending a sms I can receive it but before I send it sometimes I don't receive anything
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Another thing, if someone can download and share the entire package of update U1TRS34.8-30-13-1 (like with Motorola Rescue and Assist or OTA CDN), so Marc can get the blobs for updating it in LOS, it will be nice.. it's not on lolinet yet. For the same version, which is March 2024 update btw, i also made a GPL request: https://github.com/MotorolaMobilityLLC/kernel-msm/issues/598 so if that releases, additional Moto A14 QPR2 readiness patches may be picked
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG_1988:
Same experience here trying one other mod (LSPosed-v1.9.3-7229-zygisk-release), but I cannot seem to find the link to that one anymore. Is there a telegram group or somewhere that you use to keep up with Lsposed mods? I am struggling to find a good source to follow for when people make these modified versions.
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG_1988:
I requested in the telegram lolinet group multiple times for the latest March OTA, but they have ignored my questions.

Seems like Moto is dropping the ball a little bit as their updates are very sporadic, and they still haven't incorporated lockscreen customizations in any 40 series phone as far as I know. I saw pictures that someone posted of a 50 series phone that had the customizations working.

https://t.me/lolinet/67407
[Motorola Edge 40 Pro  / Moto X40 (China)] EthanG_1988:
They uploaded the package to lolinet overnight. https://mirrors.lolinet.com/firmwar...-DEFAULT_regulatory-DEFAULT_cid50_CFC.xml.zip
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Heyyo @fosgate24360, it might work as it is kernel source code built in a different environment, but no idea if it'll actually boot there as there's other parts in the images that are different from stock ROM which could cause problems but tbh I don't think it has been attempted yet. We do have a few small changes in order to work on LOS though for automatic brightness and the UDFPS, so those could potentially conflict
[Motorola Edge 40 Pro  / Moto X40 (China)] fosgate24360:
Ok thanks for the reply.....one game I play is laggy/stutters and thought maybe a different kernel would solve the issue. I rooted the phone and tried different cpu govs and i/o scheduler combinations but still have the issue. maybe its graphics related
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
If you flash RETUS firmware (or as it looks like, the latest RETEU version), this LineageOS is already suitable for daily use, and runs smooth as butter.. so why not just get over with it and switch entirely?

Even then, i wouldn't advise it to non-advanced users that know how to behave (in general on the internet.. what they install and from where, what they click, etc) because the current build is still SELinux permissive, removing a layer of security that benefits the average user
[Motorola Edge 40 Pro  / Moto X40 (China)] kamma:
does 125W charging work on the LineageOS and what is the best camera app to use with LOS ?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
yes, there is full fast charging support

Default LOS camera works fine and better than stock ROM one, i think mainly because of not being affected by Motorola's bad image processing (camera criticism for rtwo isn't the sensors fault, but software). Most of the GCAM ports as far i know aren't working yet until someone reports this to the authors, last time i checked BSG-MGC it also didn't work (crashes).
[Motorola Edge 40 Pro  / Moto X40 (China)] kamma:
great, thanks for reply.

and what about contactless payments?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
We got a new build published to [UNOFFICIAL] Builds Download page, it's the one from 20 Aug (20230820), today. It syncs LOS sources, gets August 2023 security patch, updates fw blobs to latest Moto release, pulls in some specific patches, etc.

But @ThE_MarD will come with more details soon
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
It works, NFC was fixed a while ago
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Yep! pretty much that. If anyone is having issues they didn't before? You might need to also update your device firmware from rtwo global T1TRS33.43-20-28-2. Vendor blobs mainly changed IMS, RIL, Camera and some audio so I don't think UDFPS should be affected but who knows since rtwo device firmware seems to be super picky right meow... This build is also still selinux permissive. I'm definitely getting closer to getting enforcing going but I keep running into newer denials so hopefully those eventually all get resolved heh

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20230820-UNOFFICIAL-rtwo at SourceForge.net

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

sourceforge.net

update: Turns out a change to try and fix automatic brightness broke HBM and LHBM so UDFPS doesn't work correctly unless brightness is turned down
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Thanks @ThE_MarD and @mxz55 for the new build! Unfortunately telephony still doesn't work on Edge+ (2023); I've tested with either RETEU (XT2301-4_RTWO_RETEU_13_T1TRS33.43-20-28-2) or RETUS (RTWO_G_T1TR33.43-48-21) firmwares as base. So US Edge+ users are still out of luck here, but it's great to see a lot of progress on other parts of the system stability. Hope we will be able to use this ROM daily soon :)
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@jimmie32 dang, well hopefully we can figure out what the heck is going on there as I'm guessing your logs from before are probably the same so I'll try to check over them again just incase maybe I spot something I missed.... just to check, UDFPS works fine for you?
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Thanks! Good question about UDFPS - it works on T1TRS33.43-20-28-2 (RETEU) (on RETEU it works after some reboots but sometimes it fails to enroll) but not T1TR33.43-48-21 (latest RETUS). I'll grab a new logcat shortly from the RETEU firmware, but I think it would be the same errors from my previous logs. Stay tuned...
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
Ok cool, I just found out there's a kernel issue with HBM, so Markus has a fix in the works and UDFPS is probably broken for everyone on that latest build unless you turn the brightness down near the minimum.

I think it's due to a recent fix attempt for automatic brightness that might have messed with HBM and the local HBM our UDFPS relies on. I can test a build with that commit reverted to see if it goes back to how it was with working HBM and UDFPS but with broken automatic brightness.
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Thanks! Here's the logcat (https://gist.github.com/jimmielin/91483403aa055b9d519f7f501f7daea8) and radio (https://gist.github.com/jimmielin/c5dc45353eb7329488f5e64d89291fed). Hope this is helpful! Happy to test any fixes, hopefully telephony will work soon.

I can confirm that UDFPS can only work under low display brightness.
[Motorola Edge 40 Pro  / Moto X40 (China)] Krullendhaar:
Sorry for being slightly of-topic, but...

I want to buy this phone. My region (the Netherlands) only sells the Edge 40 Pro. I also found out (through this thread) that the Edge+ (2023) exists and it has a bigger battery.

Are there big differences between the phones? As far as I can tell, the battery size, fast charging capabilities are different, the edge 40 pro has two sim card slots and the storage sizes are different. Any other points to consider?
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
@jimmie32 thanks for the logs. Tbh I'm still a bit confused as to what is going on there even with these, but it seems there are a lot of differences for the modem on Edge+ so I'm thinking of trying a build using RETUS vendor blobs to see if maybe it'll like it better?

@Krullendhaar can you please make a separate thread for that? It would be more beneficial for anyone looking at the differences between Edge+ and Edge 40 Pro and X40
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Yes, that would be really good! For the Edge 30 Pro (hiphi) I think there needed to be two separate releases for US / non-US, so perhaps the vendor blobs are at fault here. I'm happy to test whatever builds you create :)
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
New test build is going up! lineage-20.0-20230824-UNOFFICIAL-rtwo This time trying out RETUS vendor blobs to see if that helps get their device going or if the issue might be elsewhere

RETEU and RETCN maybe test this too please just to see if using their blobs is still ok for us. I might be a day or two until even I can test it

Build fixed and re-uploaded

LineageOS for rtwo - Browse /lineage-20/lineage-20.0-20230824-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)] ryansff:
Just flashed the new build on my Edge+ 2023, and no dice, same continuous reset of mobile data. It recognizes my carrier now as T-mobile displays briefly as it tries to connect. Previous builds just showed "Sim card 1". Progress?? Maybe.
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Same, just tried on edge+ and still the same issue. So maybe there is something specific to US hardware that isn't working nicely with LOS...
[Motorola Edge 40 Pro  / Moto X40 (China)] ThE_MarD:
I have found that it was the Motorola camera desktop blobs that broke MotCamera4 so I won't be trying to include the full stack of that as it also didn't allow the camera app to be updated via the play store either oof

I noticed that Bluetooth headsets are broken for me so I'll try to also find a fix for that