yashsingh1/xdaforums huggingface dataset:
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] Murderburger:
has anyone managed to get Android Auto working on this rom?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
What happens when you use AA?

Afaik AA has given issues on sdm660/632 moto platforms which I don't believe were resolved.

Many devs don't have AA head unit to play with
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] Murderburger:
Android auto says its fully working on the phone just doesn't show up on the car. Does work fine on stock
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
I checked the latest build, and it was fixed.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Is it all HD audio or APTX only? I couldn't get the HD to show up in BT settings on my Sony HD ones. Can't test APTX at the moment ..
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
Sorry, I can only confirm the bug from your logcat is fixed since I have the hardware to test.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] eschilli:
i followed the instructions exactly, but my phone is indefinitely booting now
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Is this also true on last release?

Completely redid the audio parts but I don't have any aptx devices.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
Yes, tested on the latest 20210919. Thank you for fixing it.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Thank you for confirm that aptx is good to go!
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] eschilli:
is the source code anywhere
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Look at main post thx🤣
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] eschilli:
oh, i'm an idiot
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] davidbtc2009:
@SyberHexen thanks for all the hard work on the ROM. I was just wondering how close this may be to official status? I have held off on buying one for a bit but pulled the trigger last night. If it will be a while i will continue using my pixel.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Well The rom itself is ready, just have to finalize the device tree to submit for official.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] davidbtc2009:
Cool. I am really looking forward to my first 5G phone. I run either LineageOS or GrapheneOS exclusively and will not even consider a device that doesnt have one or the other (GrapheneOS is pixel only)
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
What happens if you were to flash this without flashing "copypartitions" beforehand?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
It copies partitions from the active slot to the inactive (excluding oem, system, boot, and vendor).

Let's say you restored your firmware to the latest stock, you're on slot A and slot B has yet to be populated. Then you flash Lineage. Now you boot slot B and your phone doesn't work, so you go to install "copypartitions". If you didn't know to first switch to slot A, it will copy B to A, effectively wiping those partitions.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
I accidentally flashed LineageOS instead of stock (the roms were on the same SD card) via TWRP and didn't realize it until my phone rebooted to a black screen smh. I never flashed "copypartitions" because I was intending on flashing stock. Only sign of life I have from the phone is in device manager on my PC, where it shows up as "Qualcomm HS-USB QDLoader 9008 (COM4)".

I tried using the Lenovo Rescue and Smart Assistant but it doesn't work as the tool needs access via fastboot and the phone is stuck in EDL mode. I've been trying variations of blank-flash to no success either. Any help is appreciated. Thanks!

EDIT: Forgot to mention I did make a backup of EFS/Persist.

qboot logs:

Motorola qboot utility version 3.86
[ -0.000] Opening device: \\.\COM4
[ 0.002] Detecting device
[ 0.003] ...cpu.id = 355 (0x163)
[ 0.003] ...cpu.sn = 185447161 (0xb0db2f9)
[ 0.003] Opening singleimage
[ 0.073] Loading package
[ 0.076] ...filename = pkg.xml
[ 0.077] Loading programmer
[ 0.083] ...filename = programmer.elf
[ 0.083] Sending programmer
[ 11.244] ERROR: sahara_download()->IO error
[ 11.244] Check qboot_log.txt for more details
[ 11.244] Total time: 11.245s
FAILED: qb_flash_singleimage()->sahara_download()->IO error

Motorola qboot utility version 3.86
[ -0.000] Opening device: \\.\COM4
[ 0.050] Detecting device
[ 34.549] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error
[ 34.549] Check qboot_log.txt for more details
[ 34.549] Total time: 34.550s
FAILED: qb_flash_singleimage()->sahara_greet_device()->change_mode()->do_hello()->IO error
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
AFAIK, that shouldn't be possible. Only tool that makes it easy nuke the bootloader is fastboot.

I also haven't seen any reported successes using the blankflash for this phone. If the bootloader is updated for Android 11, an updated blankflash could follow. Might be your best bet.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
Exactly why I'm so confused as to how this could've happened, haven't bricked a device in years with the last time being in the Windows Phone 8 days lol.

EDIT: Is there a way to get the bootloader.img and gpt.bin files from the LineageOS firmware in the the OP's post?

EDIT2: Decided to just send it in for repair to Motorola as the device is only 3 months old. Hopefully it doesn't push my network unlock date further in the future if they decide to replace it with another device (as I bought it from Metro by T-Mobile).
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Regarding copypartitions.zip this has been a thing in Motorola groups since oreo a/b with Motorola due to the slots not being completely setup in most cases.

Where did you find blankflash?

The one on Lolinet does not work =/

But I've put together a tested and working blankflash which is available on telegram group
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
Yeah I tried the one on Lolinet, then tried building one from the latest firmware release with star lol. It always seems to fail as soon as the programmer gets sent to the device.

I'm kinda new to Telegram and need a bit help finding the blankflash. Is it located in the files list under group info? Ty!

EDIT: I found one in the group labeled “Blankflash_XT2113_KIEV_RETUS_10_QZK30.Q4-40-79.zip” dated for August 12. Going to give that a try.

EDIT 2: Worked first try lmao. I’m at the bootloader right now about to flash stock. I’m going to give Lineage another try tonight. Ty!

EDIT 3: Decided to boot without flashing anything and surprisingly enough it did. Not to mention it still looks like it’s on stock firmware so I’m not sure what was going on. It’s working now so I’m not complaining lol.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Yes in group much is shared at

Moto G 5G/One 5G Ace | Kiev 2020 | Official™ |

Join in the channel to find out the latest updates ➡️ @MotoG5GUpdates	Spanish Group ➡️ @MotoG5GES	Off-Topic Group ➡️ @motoroladiscussion

t.me

But I asked for the file to be uploaded for those not yet on that platform, glad that it worked for you!
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
Just wanted to confirm that attempting to flash LineageOS without flashing "copy partitions" first does indeed result in a brick for my device. Tried it two more times after I was able to recover the device. Everything goes smoothly if following the OP's instructions though. Should be a no brainer, but just posting as a warning for anyone else.

Again if you flash this without flashing "copy partitions" first you will most likely end up with a bricked device. Another thing to note is if you do accidentally go ahead and install LineageOS first via TWRP, you will not have the option to go back and install "copy partitions" to fix your mistake as your device will either crash or auto reboot. You will have to then recover with blank-flash and start again.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Is HD Audio working at least, yet?

On 9-19-2021 revision I couldn't get it to show in the BT "checklist" from long pressing on the BT icon .. In stock it has a "AAC Whitelist" in Dev Settings when unticked HD shows right up. I have those Sony C200 earbuds in white. HD audio is a must as I do music production and high bass i?on Viper4Android. On SBC there is waaay too much digital noise ..

I can do another logcat on stock here if you need one, switching on and off the whitelist possibly .. so you can see what it's doing and incorporate it into Kiev Lineage OS for this device. I have the XFinity one, by the way. United States.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] davidbtc2009:
An interesting thing. I couldnt download the copypartitions thing so i skipped that step. I booted TWRP, flashed Lineage (it said it wrote A and B) rebooted, did the fastboot -w and rebooted to a fully working Lineage
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] garleest:
What's the battery life like with this rom? Same as stock, better than stock, worse than stock?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
Ive switched to using my Nord N10 5G as my main android device for now so I can't give an accurate answer. As far as I can tell though battery life seems to be about the same.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] peakage:
Is anyone else having audio quality issues via headphone jack? The media audio is uncomfortably loud and staticy even on the lowest setting, and if you raise the volume, it gets so noisy and blown out that it sounds like a dirty cassette tape in a cheap deck. It's like it's being massively overly pre-amped. Is this a known issue?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Not known issue but I can revert the gains for headphones as I increased volumes for many usecase.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Na .. 👍
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] peakage:
Thanks for taking the time for the fast reply. I think that would be good, I've tested the media output with multiple apps, and used multiple headphones / external speakers. Otherwise, if that's something I can change in build prop, I can just do that, like if it's just my device having the issue for some reason.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
It is changeable in build prop as a matter of fact. I've had issues not being able to get the right one because this type of Android version has a few. @SyberHexen ?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] nasdaq0:
Dear guys, did i over look it?

Whats working, whats not working?

Is Volte operational?

I figure 5G is not depending on ROM.

Thanks for the help
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Changeable in vendor/etc/mixer_paths.xml
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
VoLTE, VoWiFi, 5G is all good to go.

Only known problem is device won't enter off ode charger atm
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] peakage:
I must be doing something wrong, because any attempt I make to change that file results in it being instantly blanked to 0 bytes, and trying to copy an edited version results in root explorer saying the copy failed. Is there another way I can do this? Sorry for being a bother.

I fixed the issue by formatting/wiping in TWRP and flashing the ROM again. That doesn't change the mystifying issue with Android not letting me write to to /vendor/etc, but it took care of my problem. Thanks for the pointers, and the ROM is great.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] spydergt:
think i fuc*ed up guys please tell me if and or how i can fix this.

I unlocked the boot loaded and fastboot'ed the TWRP then i sideloaded the lineage OS to the device, it said it was going to parition A, rebooted and now screens just black / blank. no signs of life from the device but it is making the usb connections when i plug into my laptop CMD is not showing any adb devices or fastboot devices , not sure where to go from here any advice ?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] spydergt:
think im in a similar boat you get any further
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
Yup, I used the blank-flash listed in the Telegram group to recover from a bricked state.

Telegram Group
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] spydergt:
*edit* use the link below to telegram for the blank flash

*edit*

i dont know why or whats up but when i go to blank flash im ending up with

FAILED: qb_flash_singleimage()->sahara_download()->general error

any idea how to get past this issue? thanks
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
Not sure if you still need it but this is the direct link from Telegram for the blank-flash:

Moto G 5G/One 5G Ace | Kiev 2020 | Official™ |

Join in the channel to find out the latest updates ➡️ @MotoG5GUpdates	Spanish Group ➡️ @MotoG5GES	Off-Topic Group ➡️ @motoroladiscussion

t.me

EDIT: Try rebooting the phone by holding Power+Volume Up (l think) for about 12 seconds and try again.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] spydergt:
TY probably im still stuck at

FAILED: qb_flash_singleimage()->sahara_download()->general error
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] spydergt:
You Sir , ... weight off my very soul .. thank you so much im back into bootloader the link you sent had the correct files for my phone , im not sure what files / differences i found in the other files but the link and files there in worked like a bloody charm you are awesome thank you for keeping that data alive
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
I can't take credit, all thanks go to @SyberHexen. Nonetheless glad you were able to recover your device!
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] spydergt:
weird stuff going on not sure what, I got it back up and tried again , got into TWRP and couldn't find the zips on my card so I rebooted it to recovery and it was just black screen all over again , I had to re do the process, its back up I'm done for the night ill root it and be good with what I can do with admin access
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] GCPDetective:
You still have the issue even after flashing copypartitions from the OPs post?

EDIT: I'm working on about 5 different android devices right now so I tend to forget what I did on which device lol. I'm pretty sure I flashed a different vbmeta image on this device to get around the brick issue when I was flashing a GSI image not relevant to this thread. I don't remember the thread the vbmeta image was posted in, but I do remember it downloading straight from the android developer website. I can link it if you want to give it a try. I really need to start documenting stuff for future reference lmao.

EDIT 2: Thank god for browsing history! Found this dated all the way back to October 12. This is where I got the vbmeta image from: https://xdaforums.com/t/guide-how-to-flash-a-generic-system-image-on-the-moto-g-stylus.4131199/
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] nasdaq0:
UPDATE: THE ISSUES HAS MOSTLY DISAPPEARED. do no know why tough!

Thanks for this great rom. Working greatly.

Only little issue i encountered is bluetooth audio. Not working properly (often music is being played but not heard on the headset), maybe in conjunction with AudioFX. When i connect and disconnect with AudioFX it sometimes works again. Phonecalls seem to work relatively reliable.

Any idea what this might be?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] SyberHexen:
Is your bt device aptx?

I stream Spotify nightly on this rom with no issues
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] nasdaq0:
i don' really know. i have xiaomi eardots TWS and some other simple headsets all sometimes work sometimes not ;-))

it's such a charm besides that, Volte etc..
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] aafaqali:
Hi @SyberHexen I've been trying to compile for my device but having error on lineage-18.1 due to vendor files, I've Android 10 on my stock device, is there anything I am missing ?

and also It got compiled and I've run the compiled the Lineage successfully but GSM was not working also it gets power off if the device was disconnected from cable.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] AndreyM79:
hi I would like to have lineage os on motorolla g5 g plus(nairo),I would like to know-will this build work or will I get a bootloop????thank you!!!
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Has anyone gotten HD AAC bluetooth audio working yet in this ROM ? In stock it's too digital sounding with Viper4Android FX. I have a feeling that if someone can or has gotten it working it'll be alot smoother sounding (no digital noise, scratching, background "low quality mp3" sounding, and such ..).

Either that, or any pointers I can try to "up" the streaming quality permanently ? I'm trying the APTX-HD audio library in Magisk as I type this up but that's APTX. I'm trying to change the HD AAC codec in some way positive .. I tried doing the dev settings for bluetooth (streaming quality, bit rate, etc.) none of them stick on reboot ..

Going to try to find maybe a module or app somewhere that keeps them permanent, maybe ..

Any pointers or anybody know more than this yet ?

I know this is just "one thread" and someone OUT there may know .. hm .. .. I guess it's just a matter of finding them, it or finding the answer in general ..

Thanks in advance
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
APTX is nice(er) by the way, ya, I understand this. But nothing beats these Sony Wi-C200 earbuds in Walmart, even, pumping out this much bass (I'm a semi-pro music producer btw. As in sub-box in the trunk bass, through Viper4Android) for the price they are, money-wise. The things are 20$ for crying out loud ..

I just see finding the answer for HD AAC as a strength than a weakness. Especially since this ROM is so new and this solo dev here puts all this time and effort into porting it for who knows how ever many/little people ..

Reguardless, I'm thinking this device is nicer than the Moto G7 Power, my previous Motorola device. So hence, the reason for my question. It's just hard for me to believe that this hardware sending out this bluetooth signal itself .. Motorola didn't make any nicer .. Or at least be nicer hardware than a phone from years ago anyways ..

Personally? I am not trying to move back to my Galaxy S5 with a "seemingly" better codec hardware and having to use Android 6.0.1 SLIM ROM OS lol .. .. .. No RAM .. .. If I don't have to.

Like I said, I'm a music producer. Basically an audiophile. I do all my audio mastering myself. So I kind of would like to have this HD audio out of these earbuds instead of these 40 to 80$ plus APTX ones .. Idk .. .. ..

Just a bit of background/reason for my persistence instead of the typical "post & leave" type of thing so common these days .. **sigh**
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Well .. I seem to have fixed it in Stock Android on this device apparently ..

I:

1. installed the APTX Magisk module from the default repos, reboot, not fixed

2. installed Audio Compatibility patch (again, default repos, Magisk), patched everything I could and did NOT "remove notification" policy helper or whatever it was called, during install with the volume up/down buttons, DID NOT REBOOT ..

3. BEFORE REBOOTING install that Audio Modification Library in Magisk, the same

4. REBOOT

5. FIXED

It's not super super high quality now but it's at least better. And if I "up" the treble a bit extra it covers the rest of the "low quality mp3" noise.

Again, this is in stock, so .. if this helps any in Lineage OS Unofficial Kiev here, then that's great news, then.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Actually nope .. Low quality HD AAC is back on stock.

What say you, guys .. .. ..
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
@roiikka sorry, what model of earphone are you using? Your saying this is reproducable on stock, but works properly on other phones? Your mentioning AAC a lot, something that's inherently lossy. Viper4android is too. Idk, kinda lost. Maybe post a new logcat, preferably on lineage, so we can see what's happening?
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Oh! Was saying that it's lossy on Stock, non-existant on this ROM, Kiev Lineage Unofficial and was giving as much background/reasons as I could in hopes it would be implemented, possibly. My fault.

I use the Sony Wi-C200 earbuds. They have amazing bass response on my S5, lossy-ish on Stock Kiev and it stays no HD, only APTX apparently here on these custom ROMs of the 5G Ace, Moto One. I get the infamous "greyed out HD" switch in dev settings. In Stock for the 5G Ace it has "disable AAC whitelist", you untick it, it says reboot, you do so and bam! HD AAC audio over bluetooth. No SBC needed. And APTX works. You guys want a logcat of that switch? I'd be more than happy to do so just say so and I'll get back on stock real quick. I'm on @SyberHexen s nice port of Havoc OS testi.g right now and same thing as his Lineage OS port but sticking with wired earbuds and seeing what you guys can do with this bluetooth thing.

Been seeing this thing about Sony needing to use LDAP or whatever it's called now, all this "contracts" smorgisporg. But it works on stock OS, like I said. It says "HD AAC", ya.

You guys want a log of that Disable AAC Whitelist switch ? **Standing by** ..
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
It's right here in the specs:

https://www.sony.com/electronics/support/wireless-headphones-bluetooth-headphones/wi-c200/specifications

SBC with AAC fallback. No way to know what's actually happening without a logcat or hardware to test though.
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Ok let me get one of this Whitelist switch for you guys. I really think that that's where it's at on this model of the device. One sec.

Also, while I'm doing this: How do I properly restore a nandroid backup on this thing? A-B slot-wise and such. Backing up via the recommended TWRP here, booted from the command prompt in Windows. Just so I don't have to re-do everything to get back in to Havoc OS again for the time being. Thanks in advance ✌
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Actually never mind about the backup restore. It freezes TWRP, I forgot. I think it's the encryption thing. Got to figure that out later, maybe.

Getting stock back now via Lenovo Rescue and Smart Assistant. Give me like 30 minutes to a hour or so
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Ok, here I attached the logcat.

This is me turning on the screen, turning "off" the switch and toggling bluetooth, repeating the process again and then just toggling the switch itself off then on again

And a screenshot of the switch

In Android 10 Stock

EDIT: Trying to send the logcat by attachment. How do I put it up? I tried in a code box but it said it's too long even shortened ..

EDIT 2: See next post
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
Had to put it in a folder
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] roiikka:
I can test it out when you guy(s) are done if you decide to take me up on it and integrate it into the ROM

Goodmorning
[Moto G 5G ROMs, Kernels, Recoveries, & Other Devel] fddm:
Just had a quick look. It spits out an error for SBC sink that seems to imply that the rom is not built with support. It's even possible Moto didn't pay license fees for it, so it couldn't be enabled, idk. Will need to give it a closer look.