yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Android Development] collinschen02:
Many thanks for your hard work,As described stock nauget modern is required to support this pie, any chance to put it into the build for easy flashing ?
[X Style (Pure) Android Development] randomblame:
No. The problem with that is it puts everyone at risk every time they flash and update the rom. Flashing the modem once per user is way less risk.
[X Style (Pure) Android Development] collinschen02:
I remember someone had experience to extract the NON-HLOS.bin from a build and flash it separately.
[X Style (Pure) Android Development] kb8no:
[MENTION=9767697]daurwid[/MENTION] Sorry I haven't responded. I had the solution for [MENTION=9539450]moviefirst[/MENTION] but your problem is way more complex and seems to be all about modem flashing and that is not just a normal fastboot stock flash solution. This is way over my head. It was very weird that you had a 68R modem. The forum I referenced is not very active but there are people who might be more experienced in this who still have it subscribed (like me) and might have thoughts. I have read that injudicious modem flashing has led to brick situations and I tiptoe around it very cautiously. I have never flashed a modem alone but only with a upgrade in association with a stock ROM. Too scared. I will be following your saga and very interested if you figure it out. I wonder if reformatting like Hashbang had us doing with his early Nougat builds might help. I see there has been some related posting in this forum as I write this.
[X Style (Pure) Android Development] moviefirst:
[MENTION=4465682]kb8no[/MENTION] thanks for the solution. Frankly, it was a strange case for me because both phones were already on stock nougat before I installed Pie. Both phones also functioned well only the one with the 02R modem had the problem with the lock screen. But that is now happily solved. :good:
[X Style (Pure) Android Development] kb8no:
When you fastboot the stock ROM (it's so labyrinthine how Motorola does it) sometimes NON-HLOS.bin does not flash on the first try. It is a known peculiarity that nobody can explain other than they tell you to be on your toes and watch to see that it didn't say "failed" and flash it a second time. I bet the first time you missed the "failed" and the Nougat modem didn't flash and you thought it did and that's how you ended up with the Marshmallow modem. You had an easy solution. daurwid's problem is more difficult.
[X Style (Pure) Android Development] daurwid:
Gratefully, I'm no longer concerned about not having baseband listed as <not found> on the bootloader. As I mentioned in my replies, I have full functionality of my phone using the Lineage16 build our OP provided. The screen lock functionality works fine now. The only thing not working right which others are also experiencing is when you turn off Hotspot, the phone will reboot.
[X Style (Pure) Android Development] kb8no:
It is like balancing your check book and you are 1 cent off. It's not much but it's not right. It could be trivial or it cold be a lurking gorilla behind a tree. It's unsettling and your phone is complaining in the bootloader. We'll never have to worry about a newer modem and maybe you will luck out not having to poke a sleeping dog and it will just work but we don't know why. Hopefully someone very smart is reading this exchange and thinking about why this is happening.
[X Style (Pure) Android Development] randomblame:
I have the same behavior with my style on the nougat modem no baseband listed in bootloader screen - I don't think it's an issue
[X Style (Pure) Android Development] randomblame:
It would be insanely helpful if anyone can tell me if there is a jtag or serial out port anywhere easily accessed for early debugging of kernel I found a couple mentions in old threads but no time for sleuthing right noe looks like it all goes through the USB. Really jealous of the Nexus 5x headphone serial out
[X Style (Pure) Android Development] Hashbang173:
I can't remember if the Motorola Nexus 6 had a way for uart. Remember to revert this of course: https://github.com/HashBang173/andr...6bc08a9#diff-78ec901c9c29ef6a20b79592fd93f941

https://www.contextis.com/en/blog/kgdb-on-android-debugging-the-kernel-like-a-boss
[X Style (Pure) Android Development] randomblame:
sweet, I'm not sure it's quite as early as I'd like it to be but better than nothing

*edit yeah too late in boot to be useful for my needs oh wells
[X Style (Pure) Android Development] randomblame:
Built twrp, lots and lots of empty storage partitions listed ? works fine just annoying. Modem assert cannot be read on my phone maybe it's just unlucky
[X Style (Pure) Android Development] Hashbang173:
You building from the TWRP tree? https://github.com/TeamWin/android_device_moto_clark

Is the modem assert from my repo saying your modem is too old? If so, pull your modem image and look for QC_IMAGE_VERSION_STRING. There will probably be at least 2 of them, which is why I did this to skip the first one (not a good way to do this by far, I know) https://github.com/HashBang173/andr...ineage-16.0/recovery/recovery_updater.cpp#L46
[X Style (Pure) Android Development] Henry Hilliard:
you guys are awesome

It's great to see active development on this device. So many thanks to all the contributors. Looking forward to making this my daily!
[X Style (Pure) Android Development] randomblame:
Using a modified version of the los16 tree with lineage14.1 TWRP minimal manifest and branch android9 of TWRP itself. I assume it's the device tree at fault for the weird storage config the problem though is It says it can not read the modem on this as well as the old build
[X Style (Pure) Android Development] Hashbang173:
"failed to read current MODEM build time-stamp"?
[X Style (Pure) Android Development] randomblame:
aye tested on both the pure and style that's the string that's returned
[X Style (Pure) Android Development] Hashbang173:
Can you pull your modem image and find where QC_IMAGE_VERSION_STRING is? Is there one after the first 19MiB?
[X Style (Pure) Android Development] randomblame:
Yeah I'll take a look
[X Style (Pure) Android Development] krhodney:
Wonderfull Job, waiting estable version. Congratulations!
[X Style (Pure) Android Development] randomblame:
There is only one instance of it between 6-7MB into the file. Adjusting the offset to 6MB allows it to function on my pure anything over that and it fails to read it. I'm uploading a build with the modem assert in it for testing

OK new build in OP This will read your modem version before installation and disallow installation on devices with old incompatible modems. let me know how it works need as many people to test it as possible. So far it works on both my 16gb pure and 32gb style
[X Style (Pure) Android Development] camcho1:
I can t download

This site can not be accessed
[X Style (Pure) Android Development] randomblame:
Fixed the link try again
[X Style (Pure) Android Development] camcho1:
Nop can t download :D
[X Style (Pure) Android Development] randomblame:
https://www.androidfilehost.com/?fid=1395089523397906953 works for me?
[X Style (Pure) Android Development] camcho1:
downloading thank you
[X Style (Pure) Android Development] Itz_GoodPlayer:
Please, Random, fix the lock screen bug, every 2 times i unlock my device it crashes and reboot. Im using Trusted Face from SmarLock
[X Style (Pure) Android Development] randomblame:
If it doesn't work, don't use it. Sounds like camera related breakage
[X Style (Pure) Android Development] Itz_GoodPlayer:
I already tried to disable it, but no results, system still crashing.
[X Style (Pure) Android Development] randomblame:
Wipe
[X Style (Pure) Android Development] kb8no:
Standard Nougat modem 09R on Pure flashed no problem.
[X Style (Pure) Android Development] randomblame:
Good this ought to cut back on the tech support
[X Style (Pure) Android Development] camcho1:
Módem 07R work fine

X Style 1572
[X Style (Pure) Android Development] Marco275:
Just came across this new plan of the know it alls from the EU. Hope this is not gonna effect the good work you guys do.
[X Style (Pure) Android Development] collinschen02:
I see on XDA Samsung discussion, there's separate nougat modem available for flashing and works fine,mostly it's extracted from Samsung nougat stock rom, flash stock rom seems difficult for people like me,too much fastboot inputs.
[X Style (Pure) Android Development] Strephon Alkhalikoi:
I made a batch file to make flashing the stock ROM easier, using the flash-all.bat from a Pixel 2 XL stock ROM package as a template. However, I want to point out that flashing the stock ROM by manually typing the commands is not difficult, merely time consuming. I can post the batch file when I can get in front of my PC again.

EDIT: File below. Remove the TXT extension to use. Note that the batch file will install NON-HLOS.bin twice. This is intentional, as the original version of the batch file only ran the command to install NON-HLOS.bin once. On my Moto X the modem did not install using the batch file and I had to manually install it in order to install the latest version of this ROM.
[X Style (Pure) Android Development] collinschen02:
Thank you so much, I just started to learn and still not improved very much for android and Linux system, I am a mechanical engineer.
[X Style (Pure) Android Development] xecutionkrk:
camera works?
[X Style (Pure) Android Development] Itz_GoodPlayer:
Please, Random, add Hand Wave and Pick Up gestures to Ambient Display. The Magisk Module causes the crashes in the system randomly when unlocking.
[X Style (Pure) Android Development] moviefirst:
Read first page
[X Style (Pure) Android Development] collinschen02:
EDIT: File below. Remove the TXT extension to use. Note that the batch file will install NON-HLOS.bin twice. This is intentional, as the original version of the batch file only ran the command to install NON-HLOS.bin once. On my Moto X the modem did not install using the batch file and I had to manually install it in order to install the latest version of this ROM.

Many thanks for the help. I assume that I need unzip the latested stock from, put this bat file into the rom folder and just click the bat file to install.
[X Style (Pure) Android Development] Strephon Alkhalikoi:
Pretty much. You need to make sure your drivers are the right ones and, of course, access to Fastboot.
[X Style (Pure) Android Development] xecutionkrk:
still a no
[X Style (Pure) Android Development] randomblame:
Maybe you should fix it then ;)
[X Style (Pure) Android Development] randomblame:
Been down with the flu too much codeine to get any work done the last couple days
[X Style (Pure) Android Development] moviefirst:
Get well soon:good:
[X Style (Pure) Android Development] :
Thats the 2nd time this winter you've been sick? Are you ok?
[X Style (Pure) Android Development] Henry Hilliard:
If only your immune system were as badass as your developing skills...
[X Style (Pure) Android Development] randomblame:
I have 3 kids they are plague spreaders I even had the flu shot and it totally let me down again this year
[X Style (Pure) Android Development] collinschen02:
Bless you !
[X Style (Pure) Android Development] AndroidMilos:
Get well soon OP. When I had three young boys, they would always bring home the next strain of flue and guess who they passed it on to- that's right- me. hahah.

You have done a fantastic job on Lineage-16.0 ! Hopefully you can eventually get the camera issue fixed.
[X Style (Pure) Android Development] :
Last time I was sick was back in 2008. It was the first time and last time I took a flushot. My wifes boss just got an exceptionally bad case of the measles. Her boss babysits her grand kids and one of the grand kids got a MMR vaccine just 2 weeks prior. Feel better and home school if you can.
[X Style (Pure) Android Development] kadopt:
Anyone has a twrp flashable version of the modem?

Went to flash latest build and complains that modem is not supported. Previous version flashed fine. I have 2.0149

and min version is 2.0185.

If not, link to full rom with correct modem is appreciated.

Thx
[X Style (Pure) Android Development] Strephon Alkhalikoi:
The site has a search engine for a reason, and it's not to make the site look pretty. In all seriousness, there's a thread pinned in General with a link to the stock ROM, and I provided a batch file in this thread for use with that ROM.
[X Style (Pure) Android Development] kadopt:
Obviously I've flashed stock nougat before using this rom, and before this one I was using hasbang's oreo builds. It's only now complaining about modem version (after two years using oreo and nougat). That why I asked for the correct version, not just stock.
[X Style (Pure) Android Development] josuearisty:
Same here.

I have been following this thread since the beginning and I dont know if I missed something lately but I dont see that modem file here.

Can anybody please guide us on how change it?

Enviado desde mi Moto X 2014 mediante Tapatalk
[X Style (Pure) Android Development] Strephon Alkhalikoi:
Since you apparently need to have it spelled out for you, get the modem (NON-HLOS.bin) from the Android 7 stock ROM in the General forum. The correct modem is found THERE. The command to flash it is right THERE, even though I provide it below. You have to execute the command below twice for some reason, otherwise the modem may not install properly.

This is not rocket science guys.

-----------------

At a command prompt...

fastboot flash modem NON-HLOS.bin
[X Style (Pure) Android Development] collinschen02:
May I ask Do you mean the modem extracted from the stock nougat rom can be flashed separately on top of customized rom in order to flash pie as pie rom requires certain modem version being installed by developer ?
[X Style (Pure) Android Development] kadopt:
[MENTION=2807229]Strephon Alkhalikoi[/MENTION]

I went and extracted the modem from the same firmware I flashed before (XT1572_CLARK_RETEU_7.0_NPHS25.200-15-8_cid7_subsidy-DEFAULT_CFC.xml.zip),

flashed the modem twice as you said, in the bootloader the modem version is the same (even after reboots) but in TWRP recognised as the correct version.

Maybe the double flash was the answer as I flashed the entire rom before only once (didn't know about that issue).

[MENTION=9514219]collinschen02[/MENTION] [MENTION=3269357]josuearisty[/MENTION]

Use this file, it has the 2.6.-00185 modem, Minimal ADB and Fastboot and fastboot drivers.

Flash as instructed by [MENTION=2807229]Strephon Alkhalikoi[/MENTION] (run the command twice: "fastboot flash modem NON-HLOS.bin")

[edit]the pw for the file is the codename of the device[/edit]
[X Style (Pure) Android Development] randomblame:
Just because the ril was working does not mean you were on a compatible modem some people were experiencing strange issues with older modems like no lockscreen functionality. this will eliminate lots of issues going forward
[X Style (Pure) Android Development] randomblame:
This is a personal request to everyone in this thread: please be polite and helpful. If someone asks a question please do not chastise them for not searching. If you can take the time to respond please just answer and be helpful. This should be a place where everyone can be comfortable asking questions and giving feedback. :)
[X Style (Pure) Android Development] kadopt:
I understand what you're saying.

Me being on an older modem might have been related to that bug where you have to flash the modem twice to stick, I've flashed the entire rom prior to using both hashbang and your builds. Anyway now it's fixed.

Cheers!
[X Style (Pure) Android Development] josuearisty:
I got NOUGAT by flashing with fastboot, I have flashed 3 or 4 times before, but I think I didnt flash the modem twice as indicated here, I didnt know about it.

This is really everything I need to know and I wanted to know which is really the modem file, thank you very much.

Can I flash it using TWRP? As far as I know it can flash images. Im not at home now.

Enviado desde mi Moto X 2014 mediante Tapatalk
[X Style (Pure) Android Development] kadopt:
No, flash using fastboot. I've provided all necessary files previously.
[X Style (Pure) Android Development] josuearisty:
Thank you.

I already have all files and adb drivers installed for windows and ubuntu, its just that Im not still at home and I wanted to do it without a usb cable.

I'll be home in some minutes I think and I will try and let you know.

Enviado desde mi Moto X 2014 mediante Tapatalk
[X Style (Pure) Android Development] randomblame:
Yep this is why we needed to add it as a check in the installer so that everyone knows for sure what they have. The modem flash has tricked many people and now instead of asking people who have problems if they are really really sure it worked we just know based on if it installed ?
[X Style (Pure) Android Development] collinschen02:
I flashed nougat modem extracted from stock rom on top of RR5.7.5, finally I successfully flashed pie (not like before,there was always error 7 stopping the process). But I found no signal for sim,wifi works, message seems working too.what else should I do ? I haven't flashed gapps by the way.
[X Style (Pure) Android Development] randomblame:
Did you set up your APN and mobile network in settings? You may need to do it manually
[X Style (Pure) Android Development] collinschen02:
APN and mobile network are in grey and not setable on my phone.

---------- Post added at 04:47 AM ---------- Previous post was at 04:37 AM ----------

Some smart people suggests another way to make life easier, to do a minimal twry backup on your x style (excluding personal information of course ) and share it so that anyone interested can flash it via twrp. I don't know if it works this way [MENTION=1776875]randomblame[/MENTION]
[X Style (Pure) Android Development] randomblame:
Do you have an Asian or dual SIM device? Some variants have not been working properly
[X Style (Pure) Android Development] collinschen02:
Yes I am using Asian dual sim card version,so called Moto x style-1570.
[X Style (Pure) Android Development] randomblame:
This is the problem I don't have the hardware to test and it's unsupported. If you have or can find me a dump of the stock nougat firmware (if this variant even had an official update) then maybe I can try. BTW this issue is stated in the op :)

Maybe I can find one of these things on fleabay
[X Style (Pure) Android Development] zahidm:
There are official Lineage device trees available for clark are you using those, or your own?
[X Style (Pure) Android Development] randomblame:
The issue is with the blobs.
[X Style (Pure) Android Development] zahidm:
What you need from the device? If it's on stock
[X Style (Pure) Android Development] randomblame:
Did this variant get official nougat from Motorola and is it a different build than the other variants? I would need the system partition.
[X Style (Pure) Android Development] Hashbang173:
Dual sim stuff hasn't been updated in a while: https://github.com/HashBang173/android_device_motorola_clark/commits/lineage-16.0/init

Some of the issue probably has to do with specific properties for other variants
[X Style (Pure) Android Development] randomblame:
Someone said earlier that that variant had not been updated to nougat so I was worried it may be incompatible with the nougat modem firmware and binaries. Difficult to figure out without hardware and no one has given me a bugreport
[X Style (Pure) Android Development] randomblame:
Android Q system image dropped today I might have some fun this afternoon
[X Style (Pure) Android Development] zahidm:
Hmmm, i am also building a PIE for clark, not LOS., let see will test & release this weekend..
[X Style (Pure) Android Development] Henry Hilliard:
Baseband not found

So since we're all talking about modems...

I'm not running your rom at the moment, but a LOS14.1 based rom. When I boot to bootloader, baseband reads "not found."

All cellular stuff works fine though. Calls, Texts, LTE, whatever. I haven't flashed anything else because i'm scared I'll break it. Would flashing the correct modem fix this problem or should I just leave it?

If it's ok to flash a current modem I'll go ahead and install your rom.

Thanks for the help
[X Style (Pure) Android Development] Xp4:
Problems with SIMs in XT1572 RETEU DUAL SIM

Hello [MENTION=1776875]randomblame[/MENTION]. I have a Moto X Style XT1572 RETEU Dual Sim. I flashed latest available nougat modem as required by your ROM. The problem is that once ROM has booted, Sims aren't working while on Unofficial Hashbang LOS 14.1 is working well (in any nougat modem version). What could it be? How can i help? How can i gather any debug info to contribute to solve this?

Cheers and, congrats for your great work with the ROM.
[X Style (Pure) Android Development] Strephon Alkhalikoi:
I flashed the complete stock Android 7 ROM on my XT1575 again due to issues with flashing just the modem and encountered this. Flashing the modem probably won't fix it, but it won't hurt to try it either.
[X Style (Pure) Android Development] randomblame:
Bugreport and explain the exact behavior does it read the sim card is a Phone number listed in about device can you manually set APN in settings etc I don't have hardware so I need details a
[X Style (Pure) Android Development] AgathosAnthropos:
Will/do you plan to take this ROM and changes to Lineage mainline? I haven't read the whole thread so I'm unsure if you did anything between Hashbangs 14.1 official and this one to get it off charter requirements.

I understand that being official maintainer is a lot of work so I don't know if that's in the cards or if Lineage let's you merge without going official but I'd love to see this go mainline.

PS. Thanks to hash and you for keeping this phone relevant for me :)
[X Style (Pure) Android Development] Strephon Alkhalikoi:
In my reply to Xp4 Henry Hilliard I mentioned having this same issue. I don't have a log but merely believe this to be cosmetic. My SIM worked correctly when I pulled it from my Pixel 2 XL and placed it in my XT1575. Calls, ability to set the APN, all worked correctly.

I know this may not be of much use without a log, but I think this is a Motorola issue, not a ROM issue.

EDIT: Was referring to the wrong person, and as it ends up, confused this issue with the dual SIM issue.
[X Style (Pure) Android Development] randomblame:
So it works but? Im confused
[X Style (Pure) Android Development] Strephon Alkhalikoi:
[MENTION=1776875]randomblame[/MENTION]: The confusion is understandable. I'll try to clarify.

In Settings > About Phone in the ROM the Baseband properly reports its version number (09R). The bootloader on the other hand reports the version number of the Baseband as not being present. Therefore, the issue he and I have encountered, whether a cosmetic issue or not, is definitely NOT caused by your ROM.

The following is simply speculation on my part, but thinking a bit more on this I believe this is an issue with flashing the Android 7 stock ROM. The modem for some reason must not be correctly installed, because it takes me two or three reboots before I can get a WiFi connection, and I keep getting System process crashes if I don't reboot.

EDIT: Some additional information. Reinstalling the Android 7 ROM did not resolve the issue. I took the OTA update to the last version of the stock ROM Motorola released, then manually flashed both the bootloader once and the modem multiple times. Neither resolved the issue. What finally DID apparently resolve the issue was placing my SIM from my Pixel 2 XL into the device, making a slight edit to the Straight Talk APN so it actually said "Straight Talk" and not "reseller", and then making a call to voicemail. After that, upon entering the bootloader I noticed the Baseband line now reports the correct modem string.

I haven't attempted to reinstall your ROM yet, but with the Baseband display issue resolved in the bootloader I may no longer need to reboot multiple times to get a stable connection.
[X Style (Pure) Android Development] kerdiaz:
my volume buttons are broken, it's still any chance to make a screenshot with another button? also, there's no other application for camera?