yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] lyor:
I need help with my op6.

I was using LOS until now and I accidentally brick my device, now it's stuck at the bootloader screen.

It doesn't matter if I'm trying to get into the system/recovery.

These are the steps that I did to get here (as far as I can remember):

Wipe system, data, and cache.

Flash latest OxygenOS (9.0.4) using TWRP (blu_spark_v9.96).

Flash TWRP.

Reboot to TWRP

This time it didn't ask me to unlock it with my pattern, and I saw that all of my files in the sdcard folder are encrypted.

I pressed the other partition (A) manually and reboot to TWRP.

It got stuck on the recovery screen.

I flashed TWRP via ADB.

Now the A partitions files are encrypted, I tried to manually move to partition B again, but stuck at crash dump after reboot.

I flashed TWRP via ADB, this time to B.

And now it's stuck at the bootloader...

I can't use the MsmDownloadTool because it's the bootloader and not the crashdump screen, the tool doesn't recognize the device in order to unbrick it.

I'm out of ideas, what should I do next?

Update: I tried to flash TWRP via ADB and this is what I got:

C:\Users\Folio\Downloads>fastboot flash recovery twrp-3.2.3-x_blu_spark_v9.96_op
6.img
target reported max download size of 536870912 bytes
sending 'recovery' (28892 KB)...
OKAY [ 0.625s]
writing 'recovery'...
FAILED (remote: (recovery_b) No such partition)
finished. total time: 0.625s

Update2: I also tried these commands:

C:\Users\Folio\Downloads>fastboot getvar current-slot
current-slot: b
finished. total time: -0.000s

C:\Users\Folio\Downloads>fastboot flash boot_b twrp-3.2.3-x_blu_spark_v9.96_op6.
img
target reported max download size of 536870912 bytes
sending 'boot_b' (28892 KB)...
OKAY [ 0.617s]
writing 'boot_b'...
OKAY [ 0.140s]
finished. total time: 0.773s

C:\Users\Folio\Downloads>fastboot boot twrp-3.2.3-x_blu_spark_v9.96_op6.img
downloading 'boot.img'...
OKAY [ 0.608s]
booting...
FAILED (remote: Failed to load/authenticate boot image: Load Error)
finished. total time: 0.640s

But it did't really do anything...
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Scotsman828:
Turn you phone off, hold the Volume Up button and then plug in your USB cable, then the MSMTool will see your phone. Then you can flash it back to stock and start the process all over again.

1- update OOS to latest stable or OpenBeta to both slots

2- Unlock bootloader and boot TWRP in FASTBOOT Mode via FASTBOOT command: Fastboot boot TWRP.img

3- Wipe system , caches and data (Only do this on the A or B partition that your phone is currently on)

4 - Flash LOS16 zip

5 - Flash TWRP zip

6- reboot to TWRP

7 - flash additionnal zips (root, gapps)

8- Reboot to system, you are done!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] lyor:
First of all, thanks for the replay.

The MSMTool doesn't see my device (link2), and most of what you've suggested isn't relevant until I'll be able to boot to the recovery.

2. My bootloader is already unlocked.

Anything else?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Scotsman828:
turn off your phone!

Hold the volume up button.

Plug in your usb cord.

Then the msmdownload tool will connect to your phone.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Sconny:
Correct. And if that not work, disable Driver Signature enforcement on windows. Otherwise you have to install the qualcomm drivers. If needed, we can talk via pm and i try to help you :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] lyor:
I've already tried all of that, according to this guide.

Still, It didn't help.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Sconny:
Is your phone recognized in device Manager?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] lyor:
OK, I found the solution.

I used this guide and now everything is back to normal (except that I lost my internal storage completely).

*Thanks to Joyarup
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Scotsman828:
Whenever you flash back to stock, it erases your internal storage. It will do it again when you unlock the bootloader. One of the problems of not having a removable SDCard.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hayvan96:
If we have to upgrade the firmware once LOS16 is installed, does it mean we have to reinstall everything? Xiaomi devices usually have some FW+vendor packages wrapped by some devs (flashable directly in TWRP); nothing similar seems to exist for OP6 --> is there an alternative to flash stock to upgrade the firmware?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Scotsman828:
once you flash back to stock, you must upgrade to OOS 9.0.x (x is version #) then you can unlock bootloader and flash TWRP and LOS.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hayvan96:
Sorry it wasn't my question. Bootloader unlocked, and running LOS16, what's the process to update the firmware (drivers/vendor files)? On Xiaomi devices, you're not forced to return to stock and update to latest MIUI : there are "firmware only" zip packages extracted from the full ROM, which means firmware and vendor files can be updated independently from LOS.

For oneplus 6, let's say I upgrade the device to OOS 9.0.4, switch to LOS16. If 9.0.5 is released, is there a way to update to that ROM firmware (baseband, radio drivers etc.) without having to reflash full OOS, lose everything, update to 9.0.5, unlock bootloader and return to LOS?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Scotsman828:
You can if someone is willing to extract the modem files and put it into a flashable zip file. The modem (baseband) is the only thing worth upgrading. If the LOS developer is on his game, the rest of the hardware drivers gets updated in LOS whenever OnePlus releases a new OOS update.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hayvan96:
You can check gerrit, especially https://review.lineageos.org/q/topic:"recovery-p"+(status:open OR status:merged)

LOS team is close to merge these changes but I read that there's a glitch in menus still to be fixed. That info was added here : https://www.reddit.com/r/LineageOS/comments/b7eged/april_fools_change_maybe/ by a member of LOS team, before comment was removed.

My guess is that no enchilada released before the 16.0 recovery is merged. Looking at the commits, it's a very active topic these days, but of course, it could take days like weeks or more.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] LewisM45:
I'm not sure about the vendor image but this is the place to look for changes and progress.

https://review.lineageos.org/q/project:LineageOS%2Fandroid_device_oneplus_sdm845-common
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] SnarfSnarf:
I was using the msm tool on my laptop via virtualbox and it worked great, the same setup on my desktop however did not work. I still am not sure what the deal was. Maybe you try msm tool on a different hardware?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] giorgosspam:
Follow the instructions on this thread (especially the part which deletes the existing drivers from your computer, puts windows into test mode and installs the qualcomm drivers):

https://xdaforums.com/oneplus-6/how-to/tool-msmdownloadtool-v4-0-international-t3798892

If you do it right, your phone will be recognised as "Qualcomm..." and MSM download tool will reset your phone back to factory state (including locking the bootloader). It works, irrespective of whether you can boot into recovery or not (indeed, the phone must NOT be in recovery mode for the tool to do its work).

In closing please help in keeping these threads free of clutter. If a search for help does not bring up solutions (like the thread I linked to), please either post in relevant threads or open a new one. Thanks in advance!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] lyor:
Thanks, it is really considerate of you.

But I've already found a solution, and I've also posted it for further use as you can see here:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Forage:
After having used the LOS 15 build for a couple of months, followed by the LOS 16 since one month with basically the same set of apps, I've decided to move back to v15 again. Where v15 lasted for a good two days with one change, v16 hardly lasts one full day. There's no clear indication that a specific app is causing the problems (no 'social' media apps used either). That's more than 50% battery loss, for not enough gain.

Let me know if there's anything I can do to help out track down the cause. Until that time I'm on v15 with less worries about charging the phone again.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] albirs:
so,... MTP ist not working right now? Only on TWRP?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
Personnal build from updated source, nothing much to be honest!

lineage-16.0-20190405-UNOFFICIAL-enchilada.zip

April's patches should be commited on sunday
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hayvan96:
A bunch of recovery-p related commits have been merged lately, I hope this means we're nearing the moment when the "infrastructure issues" evoked when 16 was released are solved :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] cmart4:
ssirK, thanks for the build, it's running great!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
Back around November iirc the dev working on omni did a release where he fixed the idle drain, some of the other devs adopted his fix tho lineage did/has not. I've tried searching for it but my skills of reading over committed changes is pretty worthless. What I've found with lineage, which was the same as other ROMs is that while actually using the phone the batteries comparable to stock but when the phones left to idle it's often, for me at least 3-7% an hour which is significantly worse. I've sadly returned to stock, debloated it and that's where I figure I'll stay until lineage gets better standby consumption.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hayvan96:
After a quick look to omnirom commits and comments on their thread, I guess it's related to the FCC stepper commits (power/thermal balancer) ? https://github.com/omnirom/android_...=desc&q=thermal&s=committer-date&type=Commits
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] cowgaR:
If Omni had privacy guard many ppl would not look having LOS on this phone.

Not the best model for running LOS support...
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] giorgosspam:
Liquid Remix is (now?) based on Omnirom and incorporates privacy guard. Standby drain is minimal. Unfortunately, I can't get k9-mail to run on it...
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
It very well could be, I'm not certain... If that's it and that was cherry picked into los it should solve the standby battery consumption. [MENTION=435660]ssirK[/MENTION] would you be interested in attempting a build for us?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
Ill try to have a look at that, but no promises, im a newbie to this
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
That's all we can ask, you can say no too lol. I used to build for a couple devices some time back, much as you are now but stopped once those devices went official. I was able to get my build environment set up, synched, compile and release but that's it, anything separating from the basics and it wasn't for me.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] cowgaR:
OP mentions it's based on LOS but that might have changed. I would rather tried Francisco Franco kernel as the legend supports LOS now. We needed some development capacity in OP6 LOS space badly so seems it arrived.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
here we go: lineage-16.0-20190407-UNOFFICIAL-enchilada.zip
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] diemadedrei:
Do you use testing keys (so I don't need to wipe, right?)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
yep! you can go from Luk/Luca 's builds to mines, back and forth, no problem, no need to wipe
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
I tried to have a look, but i couldnt pinpoint to the related commits, i sent a message to Omni dev, and he replied:

[MENTION=5075128]LuK1337[/MENTION] [MENTION=5778309]luca020400[/MENTION] would you have a look a this battery drain stuff ? thx :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
That was my finding as well but as I mentioned, I don't have the best ninja search abilities. Regardless of the outcome, thanks for having a peek.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Awesomeslayerg:
Is there any changelog or buglist for this?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
https://www.lineageoslog.com/16.0
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] sandeep_7:
[MENTION=435660]ssirK[/MENTION] it looks like battery issue is same as before on your build with the commit.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
Commit not added, so this would be normal
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Kir3:
Any news on the official build? What's the situation on the vendor thing that's preventing official or whatev?

Quick summary will be appreciated.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
darkobas pointed to me to the right direction, the drain culprit is the NFC stack

[MENTION=5778309]luca020400[/MENTION] had a look into it apparently : https://review.lineageos.org/c/LineageOS/android_device_oneplus_sdm845-common/+/241631

ill try to cherrypick this into a build later for testing
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] diemadedrei:
Any chance you could cherry pick commits from other builds that enable Google pay?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
i ll try to check when i have some time!

Anyway, i cherrypicked the NFC commit, its included in this build: lineage-16.0-20190410-UNOFFICIAL-enchilada.zip

it includes updated sources too, since my last build mainly : Update bluetooth drawable & ims.apk from daisy

Just flashed it myself, boots fine and phone call works at least!

Report back about SoT variation, and NFC related problems (i dont use it myself), this might help Luca and Luk !

Edit: For those who dont want to beta test this, there is an updated build from Luk here : https://sourceforge.net/projects/lu...0410_150733-UNOFFICIAL-enchilada.zip/download
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
Awesome job, I will flash this today after my appointments. Regardless if it fixes the idle drain or not, thank you.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Forage:
How do you know the commit you referred to has been included in the updated build from LuK1337? It's a change from the 1st of March, so it could have been included in the 20190320 build, but until now it's status is still not "merged". As a consequence I do not see it on GitHub either.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
In Luks i dont know, in mine i hand picked myself
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
I've installed [MENTION=435660]ssirK[/MENTION] latest build, I have not ran lineage in a while but from what I remember it's definitely running more fluid than last time I tried. Great work guys. If that pesky battery drain can get squashed there's nothing left to grumble over lol.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] diemadedrei:
In your build nfc doesn't work at all for me unfortunately.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] anirudhgupta109:
You probably didn't clean flash. Due to the transition from NfcNci to NxpNfcNci you need a data partition wipe (not internal storage) for it to work.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
did you try it ? might be missing files from my side too ?

i dont use NFC, so i didnt check, thanks for reporting back ! :)

SoT does seems better anyway. Yesterday, after an usual daily use,

i was with over 5h of SoT with still 20% left on the battery.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joakimbo:
Is LOS dead for OP6? Been months since official release and no news..
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Forage:
There has never been an official release to begin with.

You could have avoided this question by making an effort and reading up first.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joakimbo:
LOS 16 was officially released for most supported devices in february. That's why I'm asking.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
I flashed ssirK's build yesterday morning, nano gapps with clean install of 9.04. Let it have the day to settle in somewhat and this morning I unplugged and just let the phone idle until I got a message I needed to respond to, made it 45 minutes. Sadly, for me at least idle drain is still pretty bad. I'd guess it to be 3-5% an hour depending on connection etc. Performance is fine, when actually using the phone battery drain does not seem bad at all. I appreciate the effort being made.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] askor:
Hi. Can anyone tell me how LineageOS is reciving official status? It's quite strange that such famous model like OP6 have no official support. I see that LuK1337 and luca020400 are official contributor on Lineage os site so why this rom is not official?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MeltdownSpectre:
LOS team is planning on bundling a prebuilt vendor image with Lineage for OP6. That's still being worked on, which is why there is no official status for the device yet.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] JayVerhofstadt:
Thanks for the answer, but I'm not sure what that means in terms of eta or even what the prebuilt vendor image means or does.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MeltdownSpectre:
For an explanation on what it does, and why the LOS team is planning on including it with official builds is something that is beyond me. Maybe some of the more experienced members in this thread can shed some light on that part.

Asking for ETAs is generally frowned upon here. The devs do this in their free time, and not as full time jobs. We just sit and wait till when they're ready to roll out their work. Nobody knows when it'll be ready.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] JayVerhofstadt:
I get the part about the ETA and I am well aware of it. It was more like a general enquiry to the impact of building a custom vendor image has in terms of an ETA, not to know when the devs are ready for release, as I've got no clue about how much work or other parts of development depend on it.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
its pretty quiet in here ! :)

Luk seems to be working on updating the inscreen fingerprint scanner on the 6T, i dont think this would impact us : https://review.lineageos.org/q/topic:"fajita-fp"+(status:open OR status:merged), except maybe the updated GPU drivers ? https://review.lineageos.org/c/LineageOS/android_kernel_oneplus_sdm845/+/246561

Anyway, here is my latest build with updated source (not much since last builds, but we can now change the lockscreen shortcuts!)

lineage-16.0-20190423-UNOFFICIAL-enchilada.zip
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] cmart4:
thanks for all of your updates and builds, it is very appreciated:good:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MaxRabbit:
Like [MENTION=4389890]Juli112[/MENTION], my camera crashes quite frequently. I have attached a logcat of the issue as I attempt to open the LOS camera a couple times and then the Google Camera a couple times. I wonder, [MENTION=5075128]LuK1337[/MENTION], if this logcat provides any clarity to the camera crashes?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] diemadedrei:
Thanks, I installed it and my nfc is at least working again. Does it have the nfc cherrypick?

I have the same behavior.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
No cherrypick in last one, as battery didnt seem to be better

No camera crash here, whaat firmware are you on ?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] acuicultor:
I managed to fix battery problems changing the nfc stack properly, you can see what i did at my github in device common and vendor repos.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
This looks excellent! Is the fix generic? Do you think it can be ported to other devices as well (I am particularly interested in the Samsung T713).
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] acuicultor:
Nope, it's device specific
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] 2428lu:
Can you try to fix the problem that will become the default every time you restart the screen display mode? I like to use dci-p3 or adaptive mode, but it will become the default every time I restart it, and the maintainer does not seem to fix it.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] diemadedrei:
I installed the build from one of the main devs from a few weeks ago, where he included a current firmware.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] mccrabney:
question that i hope is applicable

i use lineageos 15 for the oneplus6 as well, and in both that and 16, i have a problem with the stock camera app.

closeup pictures taken are blurry, out of focus -- though they appear correct on the camera app screen, as soon as you take the picture, it gets blurry. i can provide a screen recording to demonstrate, but your imagination is probably good enough.

this is NOT a problem using Google Camera. however, that has its own problems -- the picture is cropped differently than it appears on the image display before taking the picture.

so, i either have an unpredictable zoom or an unpredictable crop. is anyone else having this issue?

edit - my issue is identical to "example 5" here:

https://forums.oneplus.com/threads/oneplus-6-camera-takes-blurry-and-noisy-pictures.864226/
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MaxRabbit:
[MENTION=435660]ssirK[/MENTION], I'm afraid I don't know my firmware version at this point. If there's a way to check, let me know.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
that must be Beta 11 ou 12, try updating to 9.0.5 stable, im on it and no camera problem!

---------- Post added at 18:22 ---------- Previous post was at 18:20 ----------

if you cant remember, it must be old then ;) try updating to latest stable (on both slots!)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] MaxRabbit:
Is there any chance you can remind me how it is possible to safely update without any data loss?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ssirK:
Here is my way to do it:

1/ Reboot to TWRP, backup DATA, copy the DATA backup to OTG or your computer (these are your apps & settings)

2/ Back up your files from /data/media to OTG/computer (these are your photos, songs, etc)

3/ Follow this post to update to 9.0.4 (not updated with 9.0.5 atm, but .4 is fine)

https://xdaforums.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665

4/ Reflash latest LOS16 from TWRP

5/ restore DATA backup in TWRP & retransfer your files to /data/media

You will have an updated firmware & all your datas
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Ducter:
Looks good for sure. Standby time has always been what steers me back to stock. Any chance you'll share a build with the NFC stack sorted? Thanks
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] hayvan96:
Will you push your changes to the LineageOS official github, or at least point what you have changed compared to the current commits to successfully merge the new NFC stack?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] acuicultor:
Sorry but it's not LineageOS, is a rom with los base I'll not share it, it's just for personal use.

LineageOS maintainer is aware of the problem and he can add the commits whenever he wants, the problem was solved by omni guys back in 2018 and every other roms got it in his source since then so it's not a secret what's needed to fix it.