yashsingh1/xdaforums huggingface dataset:
[Moto Maxx Android Development] fgl27:
the bug is related to the below link. is not related to power like that... you comentend before "the phone powers off immediately after it unlocks" and that is the issue posted a few pages back not power related I assume...

https://xdaforums.com/moto-maxx/development/rom-lineageos-t4039895/post81730655

if you have that problem yours HW is probably malfunctioning, how the stock ROM prevent the issue I don't know and no one reported a issue like that ever.

you can technically connect via adb over wifi so when you remove the power the logs will show something, but for that you need to connect to wifi so you can't have the issue you also reported "the phone powers off immediately after it unlocks" so I don't know you are confusing me.
[Moto Maxx Android Development] darkghost568:
I managed to take some logs. If I leave it plugged in over USB it doesn't shut down. But while not plugged in over USB it shuts down approximately 20 seconds after unlocking. I took a log while booting. I also took another log where I booted up unplugged and then plugged in after 18 seconds after unlocking as it was about to shutdown. Let me know if these help.

boot_logcat.txt

poweroff_logcat.txt

(EDIT: It wouldn't let me upload the txt for some reason, and was too long for pastebin, so I uploaded the raw here.)

---------- Post added at 02:58 PM ---------- Previous post was at 02:05 PM ----------

[MENTION=5747496]fgl27[/MENTION]

YES! I connected via adb wifi like you suggested and got a full logcat! :D Linked Below :)

fullcrash_logcat.txt

(You were right about the power issue. It's not about being plugged-in or not-plugged-in power, since it shutdown while it was plugged-in to charger. But when I have it connected over wired adb, it doesn't shutdown. When connected via WiFi adb it still crashes.)
[Moto Maxx Android Development] fgl27:
can you do the same process that causes a reboot but catch a "dmesg -w" log?
[Moto Maxx Android Development] darkghost568:
Sure, here is the full crashlog I got over WiFi: crashlog_dmesg.txt
[Moto Maxx Android Development] fgl27:
Thanks.I'll analyze it all
[Moto Maxx Android Development] nowcrazy:
Eu instalei a rom mais ela não inicia, ela reinicia o aparelho.
[Moto Maxx Android Development] fgl27:
can you provide a dmesg from sooner in the boot process as early on the process the better, that one I can see OK, but only after all the problems have already happen, so I don't see the problem starting... you can technically connect via adb usb right after the boot logo changes for the boot animation.

[MENTION=3640868]Einsteindks[/MENTION] [MENTION=3533525]newbe1droidx[/MENTION] [MENTION=4713114]darkghost568[/MENTION]

Do all of you have a sim on the device?

I know some don't, but I wanna know for sure, [MENTION=4713114]darkghost568[/MENTION] logs point to a crash on the radio service something related to the SIM, but I have no idea what causes only for some and not to all, seems related to CDMA configs that is only on xt1254...

Also anyone know what is the latest radio image version AKA latest "baseband version" for the xt1254?

As this is a sim/radio related maybe you guys aren't using latest and now is needed, so do yo guys are using the latest? do you guys know?
[Moto Maxx Android Development] Einsteindks:
Best I know, the radio is flashed with the last, best, official radio from the stock ROM. I also used the reset flash zip to clear it, in my trials of your ROMs. As for the SIM, no, no SIM. My xt1254 isn't on a plan right now, but I still have the SIM when it was. Could be worth a shot with it installed. The SIM was never deactivated, only dropped from the plan. Should I try?
[Moto Maxx Android Development] darkghost568:
I'm using the latest radio for sure, since I got it from the latest Verizon update recovery tool thing. Also I can't start earlier in the boot process since it only starts happening when I disconnect from wired adb, and switch to wireless.
[Moto Maxx Android Development] fgl27:
Only if the test build doesn't work... test build on next post.
[Moto Maxx Android Development] fgl27:
[MENTION=3640868]Einsteindks[/MENTION] [MENTION=3533525]newbe1droidx[/MENTION] [MENTION=4713114]darkghost568[/MENTION]

test this let me know if there is any improves

https://drive.google.com/open?id=1iPIJEap8PGd4Dxh0umBOe1r7ztswM2Jz
[Moto Maxx Android Development] darkghost568:
I also used the reset flash zip to clear the radio, and am using it with a SIM with data on Verizon. Radio signal and data were working fine for me, it was only when I unplugged from ADB that I started having issues. Will try and flash the new test build soon and report back.
[Moto Maxx Android Development] Einsteindks:
Damned bust, at least for me. Tried simple system only install, nothing else touched (yes, cache/dalvik erased), then did a full wipe & flashed w/o SIM and then with SIM. Damned nothing. Love to know why/how the radio's the culprit. Layman's curiosity.
[Moto Maxx Android Development] fgl27:
[MENTION=4713114]darkghost568[/MENTION] point to a radio related issue and there was changes to the radio libs on android 10 that could be the cause those changes don't seem needed at least on my device so I remove it, they are probably only needed for new devices.

You particularly never shared a log, maybe you have another issue. Also I have no idea until [MENTION=4713114]darkghost568[/MENTION] test and share a new log if there was a improve, maybe thre is others error that the radio one is hiding as the logs get flooded with one error you can see anything else maybe the radio wasn't solved yet.
[Moto Maxx Android Development] Nido221:
1..As for as I know this is the the latest radio /baseband version at xt 1254.

?

2. Perhaps I don't know if it is valuable to share my own experience regarding reboot problem over newly installed rom relating to radio.

I was facing the same problem after I flashed my nougat rom.

Radio was the culprit.

Solution was as soon as rom reboots I quickly tried to switch On the Airplane mode. After many attempts I was succeeded to switch on ✈️.

Rom stopped rebooting.

Used mobile 10 to 15 minutes in airplane mode ON.

After that giving 2 to 3 reboots manually it got stable.
[Moto Maxx Android Development] newbe1droidx:
Yes that is latest radio
[Moto Maxx Android Development] fgl27:
[MENTION=3640868]Einsteindks[/MENTION] [MENTION=3533525]newbe1droidx[/MENTION] [MENTION=4713114]darkghost568[/MENTION] [MENTION=5774875]Nido221[/MENTION]

new test build

https://drive.google.com/open?id=1b6gwmCigOC-bBh8JOTX-Kznmy9O4bTfF

this will probably not reboot, after if the device can't connect to a network follow the below process to share logs, is needed to test this with a cdma carrier SIM as a gsm I know that it works.

Logs process:

Right after the device finishes booting and the bug is displayed generate the log (don't make this zip after the device is running for some time as the logs get too full and it flushes old logs I need the full boot process log)

Use the app BHB27 Kernel Adiutor > Logs > One click all Logs to a ZIP (ROOT is needed for this install add on su bellow) share the zip

Download addonsu-17.1-arm-MOD.zip
[Moto Maxx Android Development] Nido221:
[MENTION=5747496]fgl27[/MENTION] thanks for a great build.

I have flashed the latest build. It was stable at first flash.

Running very smooth for 6hrs.

No problem at all

Cellular, GPS, WiFi, Bluetooth, Nfc all functions perfectly.
[Moto Maxx Android Development] fgl27:
That isn't a CDMA network is it?

anyone test the XT1254 on a CDMA network? on latest test build
[Moto Maxx Android Development] Nido221:
It's not CDMA.
[Moto Maxx Android Development] newbe1droidx:
I will later today, thx so much fgl27
[Moto Maxx Android Development] newbe1droidx:
[MENTION=5747496]fgl27[/MENTION] All right! Working fine without gapps and kernel flashed. Have 4g LTE, CDMA makes calls no problem. All working well. Will flash gapps and kernel later. Thanks so much for your help and hard work. I have a droid turbo by the way for other turbo users!!!
[Moto Maxx Android Development] newbe1droidx:
[MENTION=5747496]fgl27[/MENTION] here is the logs
[Moto Maxx Android Development] newbe1droidx:
This rom is great so far, flashed gapps, kernel and root and no problems so far on xt1254 vzw. Thanks so much!!!
[Moto Maxx Android Development] GISJason420:
Which radio did you flash/ use?? I'm sorta in the same boat, and yeah I notice it works fine as long I use airport / turn it on every now and then for just a few mins, but then it reboots or crashes.
[Moto Maxx Android Development] fgl27:
Next version already resolved all of those issues if you can't wait 30 min or so for it be released see bellow...
[Moto Maxx Android Development] newbe1droidx:
So far so good! No problems yet. Thanks so much
[Moto Maxx Android Development] Nido221:
Cheers!!!

& Thanks [MENTION=5747496]fgl27[/MENTION].

So we have a Q rom which is smooth & stable at both CDMA & GSM carriers.

Mine at GSM. Rooted with isu. Very fine.

I flashed in three steps.

1.. Flashed only Rom withou Gapps.Reboot ... Fine

2.. Flashed Gapps Micro.Reboot... Fine

3..Flashed isu.... Fine
[Moto Maxx Android Development] imcensored1:
Thank you for the build. I just updated from your RR pie (though I wiped everything). Everything so far is running great except for Trebuchet... It crashes every time I hit the home button. The pixel launcher is working though. Ill play with it more once all of my apps finish downloading.

---------- Post added 10-04-2020 at 12:37 AM ---------- Previous post was 09-04-2020 at 11:46 PM ----------

On the plus side Nova Launcher works perfectly. So far so good. Thanks again!!
[Moto Maxx Android Development] newbe1droidx:
Working fine so far, thx so much
[Moto Maxx Android Development] al_mat:
[MENTION=5747496]fgl27[/MENTION], will quark be official los 17.1?
[Moto Maxx Android Development] fgl27:
no the process is too much exhausting on the developer side, plus makes no difference on the ROM the only difference will be the name makes no sense to do so.
[Moto Maxx Android Development] al_mat:
I understand...

Other question, have you bought any replacement battery? I've bought at MercadoLivre, but a generic one.
[Moto Maxx Android Development] fgl27:
I bought a replacement one there also, it was old from 2015 but was from a Motorola one... even it be old it worked well before my device turned off when I use it below 35%, now I can go down to 1% (I don't ofcourse as it mess up the battery)...

The problem with the battery is that you can't find a new one , because they are all old, Moto stop producing it I believed in 2015, and this generic who knows, they are probably old as well and as they are generic they may not be good even when new.

I bought my on 2018 and change last year, I have no idea where to find a good one now, but when I did was 50 R$.
[Moto Maxx Android Development] al_mat:
I've bought one, 66r$ + 31.9r$(shipment). The problem of a used one is too much older. My phone shuts down at 60%, and any % when use audio or video.
[Moto Maxx Android Development] FlavioV:
Did anyone get Magisk working on this rom? Maybe using a canary build? I tried it once but it said Magisk not installed, even though I just flashed it...

I'd like to give LOS another try but I need Magisk for certain modules, mainly QuickSwitch for the extra features in recents (I use the og Pixel launcher).
[Moto Maxx Android Development] fgl27:
No, I have no idea why is that as some other devices that are similar to quark seem to have it working, try to get support from magisk thread.
[Moto Maxx Android Development] FlavioV:
I couldn't find anything in the Magisk forums, and I can't provide a log since my quark is still on Pie. So I figured I'd ask here first.

Might do a TWRP backup and give it a try on my own. :good:
[Moto Maxx Android Development] Einsteindks:
Droid Turbo xt1254 model is OLD, and not likely to get any support. I've looked already. I like all my system updates on the system partition, not spread out. The ol' boy runs on 'Q', and that's impressive! The need for rooting a phone is all but gone. I'm considering this my transition experience. My LG v40 is getting Q, as well, officially.
[Moto Maxx Android Development] E398:
[IMG="Reboot Reason"]https://i.postimg.cc/J0J2bSDG/Screenshot-20200508-155435-BHB27-Kernel-Adiutor.png[/IMG]

Hoi, can someone help clarify this situation? Is this battery nearing its death?

I'm getting some random reboots going below the 60% mark, very randomly, most of them happens while listening to music.
[Moto Maxx Android Development] fgl27:
The screenshot shows a device that power it self off.

So are you getting random power of or reboots?

Because you show something on the image and complains about something else.
[Moto Maxx Android Development] E398:
Random power offs. I have very limited knowledge on logs, so searching ro.boot.bootreason shows only info about power offs? What should i search? I can PM you in portuguese if it helps.
[Moto Maxx Android Development] fgl27:
if is power off you can just follow this:

if you think you will be better understood on portuguese write on both languages and just hide the portuguese XDA doesn't allows other then english languages only.

like this:

se tu acha que vai ser melhor entendido em português escreva nos dois idiomas e oculte a parte em português, XDA não permite apenas outros idiomas, o inglês sempre deve estar presente.

Só cola no início do post o resultado do tradutor da google PT-BR para EN esconde o PT e pronto.
[Moto Maxx Android Development] E398:
The BCL trick did work! I heard that you talked with a folk about a replacement battery, is it worth it? Cause all moto maxx batteries are like 5years old right?

Tchê, vi que tu conversou com um outro cara aqui no tópico a respeito de pegar uma bateria e fazer a troca, contudo pelo que eu entendi não há muito o que se fazer já que essa suposta bateria nova mesmo sendo Motorola é uma bateria com 5 anos de vida de qualquer modo. Vale apena o risco? Qual tua experiência com isso?
[Moto Maxx Android Development] fgl27:
If you can find a new battery (at least unused) that is from 2017 or newer that will probably last you a year or two.

I searched to see if I could find one that is for sure new but I can't only images on the internet like this

That point that they produce battery up to 2017.

The only odd thing is that for some reason this old battery are going high on price here on Brazil, I bought my for 50 (in 2018) now I see they going for 75 or higher makes no sense, so the cost is another reason to really search before buy one.

Se tu conseguir encontrar uma bateria nova (pelo menos não usada) que seja de 2017 ou mais recente, provavelmente vai funcionar OK por um ano ou dois.

Pesquisei para ver se conseguia encontrar um que fosse nova, mas não consigo com certeza apenas imagens na internet como esta
[Moto Maxx Android Development] fgl27:
This new version improves some things.

Now is possible to restore the system partition via TWRP, so a full backup (boot, system and data) can be made and restored, only this version and future have this feature, on future updates of TWRP all android 10 will be able to be backuped but by then we don't needed it.

The performance profiles in the battery options are now optimized and will work better

Magisk doesn't work but latest beta version 20409 has improves but new bugs, any previously magisk version from 20409 just doesn't work this latest does work at least I can see on the logs it booting and working the problem is that after flashing the latest magisk beta zip the device will not boot, and magisk prevents from read the full logs so I can't boot or boot to give logs SU permission, so I have no idea why is like this, maybe on a future version will be better.
[Moto Maxx Android Development] newbe1droidx:
Thx so much brother, hope your all well there...
[Moto Maxx Android Development] fgl27:
All good, thank you :good:
[Moto Maxx Android Development] brontic:
I think it's the most useful update of the others for me. The sound and vibration at the beginning of charging became separate at last, it seemed to me that unlocking by swipe on the active display improved. In addition the item "Google Play update" appeared in the "security" settings (but maybe I have not noticed this before?). And also it seems to me that the UI has become faster and smoother. Thanks for the work!
[Moto Maxx Android Development] fgl27:
Previously ROOM had a issue on the battery profiles, prevent all minus performance one from using all available cores, this new ROM is 100%.

I update the ROOT addon zip, the only change is on the zip it self that now is more reliable it now has fully supports to all TWRP included future unreleased one, the SU it self didn't changed.
[Moto Maxx Android Development] brontic:
Thanks for the update! Everything works great! But I wanted to ask about the red records in TWRP in the process of setting up the mod. It says something like this: "Failed to map fail `@/cash/recovery/block.map` ... and so on..." -screenshot- I saw it every time I installed the next mod, except for the last mod of May 10. Is there nothing wrong with that? Or maybe something is wrong with my system? P.S.: True, I remembered that I installed the mod on May 10 after downloading it through the browser, and I installed the rest of the mods directly from the phone settings. Perhaps this is the case?
[Moto Maxx Android Development] wscsuperfan:
So I'm new to unlocking, customizing my phone and have been reading quite a bit on this forum about this. I have a Droid Turbo XT1254 running 6.0.1 (Build # MCG24.251-5-5). If I wanted to try to load Q on this device, am I correct in that these are my steps:

1) Download "Sunshine" and unlock the bootloader

2) Download latest and install latest versions of Minimal ADB, Fastboot, Motorola Device Manager and TWRP on PC and setup phone

3) Download latest "Q" ROM and GApps as referenced on first page of this thread to phone and proceed with install.

4) Enjoy updated Droid Turbo!!

Sound right?
[Moto Maxx Android Development] fgl27:
Is yours data partition encrypted?

Technically if nothing fails is all OK, I have searched and seems that there is a permission missing for the updater (Setting>System>Updater)).

I will add the permission see if that helps, but technically it will only take effect after you update from the next unreleased version to the next next.

As you don't have problems with updates we fine, and you let me know if it stops after next next update...

BTW you can screenshot on TWRP just like on Android (power + volume down) the path of the saved image will show on the TWRP text output technical is pictures/screenshots. :good:
[Moto Maxx Android Development] fgl27:
If you follow the installations instructions after having the device unlocked will work.

After you have TWRP working before change the OS make sure to make a backup of data, boot and system just to be sure and that also give you a easy way back in case you don't like it.

I only have a xt1225 so I didn't use those workarounds to unlock the device so I can't help on that but...

If you have any issue and you need to go back to stock firmware there is some threads that explain how to also try to check those and see if you understand the process.

I use the fastboot process to re-flash the stock firmware that process works even on locked bootloader. Bellow are some of the stock ROM files that we collect.

https://androidfilehost.com/?w=files&flid=41177
[Moto Maxx Android Development] brontic:
- No, I didn't encrypt data partition

- Wow! It's good news for me, I'll see! Thank you so much!

- I didn't know about this before, now I will do just that, it's important for me, thanks!
[Moto Maxx Android Development] wscsuperfan:
THanks!
[Moto Maxx Android Development] Nido221:
For clarification, Google Play System Update was also there in both 'Security' and

'Android Version' sections of the last 12th April update.
[Moto Maxx Android Development] Nido221:
Yes, I can confirm that this is the right sequence to unlock bootloader, install TWRP, and flash the Custom Rom.

But be cautious while TWRP flashing .

Just to add little bit?

After TWRP you can flash old to new versions of Radios, Boot Loaders, Boot logos and Boot animations.
[Moto Maxx Android Development] wscsuperfan:
So when you say "be cautious", any tips you have or problems you've run along in past?

Do I need to do anything else to root before I try any of this?
[Moto Maxx Android Development] wscsuperfan:
I've gotten temporary root going with auto-initroot and got Sunshine installed and all checks passed. When I try to make purchase, it hangs in PayPal with "checking this device" or "unable to communicate with PayPal servers". Anyone else experience this or able to work around this?
[Moto Maxx Android Development] Einsteindks:
A) I thought Sunshine worked with/without root. B) Could be just communication glitch? On/off radio? Airplane mode?
[Moto Maxx Android Development] wscsuperfan:
I'll try without root. I've had radio and wifi on.

Edit: If I run Sunshine w/out root it tells me

"Root was not found. For the firmware running on your phone, you need to use the initroot temproot before using Sunshine."
[Moto Maxx Android Development] wscsuperfan:
So got Sunshine to work (had to purchase out of app) and bootloader unlocked. Got latest TWRP installed. Wiped Data/System/Cache/Dalvik and then flashed latest Q from first page in this thread and full GApps and then rewiped cache and dalvik.

Now when phone reboots.....I get what looks like an upside down smiley face with a circle going from right-to-left and it just sits there and then eventually reboots into recovery. Thoughts?
[Moto Maxx Android Development] Einsteindks:
That's what was happening to us xt1254s before patched. Gotta get THE latest Lineage, and 'small' GaPPs package (I use mini). You also flash the Kernel and iSU as well? Don't bother with Magisk yet, still not working.
[Moto Maxx Android Development] wscsuperfan:
I downloaded the what was linked on page 1 from the Google Drive link. I'll also start over with the "small" GApps package. I did not do anything with Magisk or iSU or kernel. I only backed up what I had, then wiped System/Data/Cache/Dalvik then installed the ROM (lineage-17.1-20200513-MOD-quark.zip) and GApps
[Moto Maxx Android Development] Einsteindks:
The BHB27 kernel V9.39 is worked for P and Q ROMs. Runs fine on mine. The iSU (in the OP) helps manage SU, but I've yet to realize any problem, or benefit, from it. Flashed it all the same. My flash order was ROM, kernel, gapps, iSU, and Moto camera Mod 6.2.5.1 (last, best camera app from Moto for the Maxx/Turbo series).
[Moto Maxx Android Development] wscsuperfan:
Is flashing kernel necessary? If so, where do I download that from and is it possible to restore from backup after flashing kernel? iSU is also not necessary, is it? And the camera mod comes from where?

---------- Post added at 11:18 PM ---------- Previous post was at 10:30 PM ----------

I've restored to stock (from my TWRP backup) to get phone back to working order. Will try again to work on this later tonight or tomorrow.....but am curious why I can't get it to boot.
[Moto Maxx Android Development] Einsteindks:
A good search will find those items. I saved them to avoid remembering where they are. Neither are truly necessary, just small pluses. You did remember to wipe cache and dalvik before reboot? Never hurts one last time, just in case.
[Moto Maxx Android Development] wscsuperfan:
I'll try again tomorrow....but I did wipe cache and davlik before boot

It tried to boot it appears....just never fully loaded and then would reboot
[Moto Maxx Android Development] Einsteindks:
Having just come off of the last official update, your radio and bootloader should be the latest versions. ROMs generally don't mess with those. ROMs do replace the boot animation. The unlocked bootloader warning can also be returned to stock appearance. The file I have saved is fixedOElogo.zip. (I may have renamed it to be obvious). There are tutorials out there, but also the simple zips you flash in TWRP.