yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Exelios:
It will only boot if on slot B LoL

Fix on the way

---------- Post added at 20:21 ---------- Previous post was at 20:20 ----------

LoL

Please people use only the official method from me and phhusson, thanks
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] :
yes i did and it worked! Going back to Stock now... will try again in a few month if its stable enough.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Mine is a 128Gb

I'm having a little issue for the push part (previous steps are fine)

PS F:\android\OP6\adb> ./adb push rw-system.txt /system/bin/rw-system.sh
adb: error: cannot stat 'rw-system.txt': No such file or directory
PS F:\android\OP6\adb> ./adb shell
phhgsi_arm64_ab:/ # ls -ltr /system/bin/rw*
-rwxr-xr-x 1 root shell 2491 2018-06-08 09:31 /system/bin/rw-system.sh
phhgsi_arm64_ab:/ # /system/bin/rw-system.sh
mount: '/system' not in /proc/mounts
resize2fs 1.43.3 (04-Sep-2016)
open: No such file or directory while opening /dev/root
mount: '/system' not in /proc/mounts
setprop: failed to set property 'ro.keymaster.mod' to 'AOSP on ARM64'
1|phhgsi_arm64_ab:/ #

As you can see, the file is already there (and it's the exact same one you provided)

When I try to run manually, it says /system is not a valid FS (at least, not declared)

When I check using mount, it doesn't appear (see previous posts), not sure if that is relevant

I also tried to remove it from adb shell (as root) but it says the FS is read-only (even tho I did adb remount)

I'm out of ideas ... if you have any :confused:
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] phhusson:
Well you need to put rw-system.txt inside your "adb" folder

But you can also just flash in twrp the zip from https://xdaforums.com/showpost.php?p=76757199&postcount=53
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] DocRambone:
NVM
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
I forgot to mention, but the file is in the local adb folder :p

PS F:\android\OP6\adb> pwd
Path
----
F:\android\OP6\adb

PS F:\android\OP6\adb> dir rw*
Répertoire*: F:\android\OP6\adb
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 08/06/2018 19:33 2550 rw-system.sh
PS F:\android\OP6\adb>

I don't have TWRP installed yet, I'm a bit lost with the boot.img files + twrp zip + blue fix zip etc etc ...
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] DocRambone:
Use the temporary twrp:

https://xdaforums.com/oneplus-6/how-to/unofficialbeta-twrp-oneplus-6-t3798439

fastboot boot twrpbootable.img
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] lollyjay:
Official TWRP is released with flashable zip to install
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] phhusson:
uh why is it .sh not .txt?

Anyway, do adb push rw-system.sh /system/bin/rw-system.sh
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Well, I opened the txt file from browser, and copy/pasted/saved in the adb folder as .sh

I also tried to push it using autocompletion (which used the proper extension) but error happened too

Anyway, since official TWRP has been launched, I tried to flash the RR system.img from TWRP, and a misclick made me soft brick my phone (booted from slot B when I wanted to install to slot B ...)

After several wasted hours, I'm about to retry

But now I understood there is an issue with the boot.img files

The official TWRP can only boot for OOS 5.1.5

Which boot.img is required for the RR image ? 5.1.5 or 5.1.6 ?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] quasi8:
did anyone get the RR image to boot?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Replying to myslef : It doesn't work with official TWRP :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] RagingHarry:
Who is myslef? J/K
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
No luck here. Tried RR, Latest PE, Phh Treble v20. None of them boot. With RR I got a bootloop and with PE and V20 it just keeps on rebooting to OOS Recovery then I tried that rw-system file but it didn't help either.. I have 8/128GB model btw. And if that helps. If I switch to _b partition, it just keeps on bootlooping instantly into fastboot. OP6 is really weird. The only build that worked on my OP6 was Phh Treble V18.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Abaddon:
the RR booted on my end with slot B on the 3rd try. but WiFi won't turn on and has no MAC. will try flashing again and report what I can find. tried it on a 64gb and 12gb

edit: only boots on slot B as mentioned earlier, RR has no WiFi for me tho. went back to stock at the moment
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Muntasir Mahmud Saif:
is lineage build a daily driver? i mean does basic things work like camera,mobile data,call,sms etc?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Interesting.. does each OP6 have different hardware or what, that everyone gets different bugs and some people can't boot it at all?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Exelios:
Just an utter can of worms we are still discovering, and while we are having trouble booting there is on XDA news a guy who booted without even unlocking the bootloader LoL

btw did you know that the boot.img on the OP6 is still the factory debugging one?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] magnamentis:
no, once everyone is doing it right it will work the same for everyone, believe me because it works flawlessly, just a bit new knowhow to acquire.

that said:

- once one is flashing a rom for instance and after flashing kernel and magisk for example, one can manually check the current slot which will

. show the same like before, while in fact the device will boot into the other slot. thing is that this decisions is taken after the boot command, hence

. we simply have to KNOW that it will not boot into the showing slot after rom flash, i.e. current 1.5.6 update.

- after flashing the update when flasing the kernel and the root method, it will flash those two things into the cuxrrent slot, while the new rom

. will boot from the other slot, hence we have to manually change slots and flash kernel and root again.

this appears to be abit of a hassle but please KEEP IN MIND, you will have the old system in current slot fully functional after you flash a new rom !!

this is the benefit and to learn new procedures is the downside which in fact is not a downside. each new things will need us to learn to toggle a few

new switches and learn a few new tricks ;)

just PM me if you have specific problem, but first search and read, and ask nothing that i or others have just answered.

unfortunately if all of us to something wrong we're not aware of it, else we would have done it right, there is some logic in that, at least

for those with a healthy mind who are not ego or fear controled LOL

:highfive:

EDIT: you can believe me that each problem poping up since the device is out i've had in one or another moment and form, i strongly recommend that everyone is going to try a few things

before posting : IT does not work because IT works, just not for some at all times, including myself. so don't worry, be confident that ultimately all will be fine :D

All this is why i recommend not using any tools but learning the concept from the ground up, once using tools too many never ever really get a clue what happens why, quasi; cause and effect.

for example there was never a tool needed to revert to stock with loosing all data anyways. simply locking bootloader and re-unlock it booted immediately into setup wizzard and that

makes us aware that there is a stock system image on device at all times. etc. etc.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
I am doing everything right. Even tried the files and guides that people posted and it still doesn't work. But when I flash v18, it boots without the tiniest problem.

I agree. And no I didn't know that. I only checked some bootloader partitions. And found out that xbl has BDS menu with option to boot from USB. (Attached a pic of bds menu on some Nokia phone, the one on OP6 is similar)

Do You have Telegram btw? I could share some stuff with You.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] joemossjr:
Did you try the system rw thing he posted
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Yup. Even tried Your flashing script. Then I followed the guide that some guy posted that involved flashing full stock rom with fastboot. And that worked but gave me a bootloop. Then I tried that rw-system file and it still just gave me a bootloop. Only v18 boots for me. I also tried to experiment with wiping internal storage, dirty flashing, then wiping just data etc, and nothing. Now I'm updating to OOS 5.1.6 , maybe that will change some firmware or vendor or boot and will make those Treble roms work on my OP6.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] magnamentis:
sorry sir but i have to be blunt:

a) no you do not everything right, else it would work, there are no miracles neither good not bad

b) nobody i know is doing something wrong on purpose, knowingly or willingly, at least not of this kind, else the logic of it is that if we

. do something wrong, WE are not aware of it, else WE would have done it differently (correctly)

you take this too personal to be honest. as long as you don't admit that you must have an error in your procedure nothing will change.

for now you will disagree i'm quite sure but let's see if you come back to report what the mistake was. that would be fair at least.

good luck however and there are no special steps needed other than properly manage between slots, at least as long as the thing is not

borked. once it's borked, no tools are needed, re-lock and and re-unlock the bootloader and you'll boot into setup wizzard of orignal stock

without further files or tools needed.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Uhm :confused:

Edit: No way guys! You won't believe what fixed my problem. Flashing 5.1.6! Now RR booted without a problem! I followed exactly same steps as before btw. But after flashing all 5.1.6 firmware, boot, vbmeta, vendor etc it worked now. Looks like WiFi works. Camera works too! Brightness works as well. Awesome! And I didn't have to use rw-system file btw.

Edit 2: Phh v20 booted up fine too.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Exelios:
Then the explanation is easy, some partition somewhere was somehow damaged and re-writing them all, as the update does, brought you back to a fresh stock state, but yeah, the update included a number of not mentioned "bug fixes" too.

I'm not on telegram, me and phh actually just communicate by email, lots of emails, if you got anything you can pm phh, we share all the knowledge with each other anyway.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Do you have official TWRP installed too ?

Edit : And how did you flash OOS 5.1.6 and RR ? (TWRP ? fastboot ? other ?)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Nope. I used clean boot_a and boot_b and clean everything else too. And I used fastboot. Just like Treble guide says. Flash system_a then system_b and done. But I also had to wipe OOS data leftovers with stock OOS Recovery.

If You can't get it to work, just flash Full OTA 5.1.6 package that FunkWizard shared on XDA(with system updater, local update). And then flash v20 for example, to both slots, and boot into stock recovery, wipe data, reboot. And enjoy! :D. If You need more help You can PM me on Telegram. I'm helping everyone, any time ;).
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Well, I used the full package before flashing RR

Then TWRP was out, and didn't work with RR

So, If I resume : You flashed 5.1.5, then flashed RR, then 5.1.6 boot.img ?

If not, would you mind detailing your exact steps, and what was your ROM when you started ?

Thanks
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Not exactly, lemme tell You all steps:

I started with 5.1.5 with Magisk (my daily driver)

Then I downloaded 5.1.6 full ota package.

Then I flashed it with system updater(it's on the bottom in settings) and chose local update. (You flash Android P the same way).

Then I rebooted to recovery, wiped data and then rebooted to fastboot.

Then I flashed boot_a boot_b vendor_a vendor_b and vbmeta with those extra commands (from 5.1.6)

Then I flashed system-rr.img to system_a and system_b and then rebooted it and booted fine.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] strikerdj2011:
can get it to boot just doesnt go past the warning screen just get blue light on the notification light
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] azsl1326:
Can you link to the exact fastboot commands you used to get it to work as I don't see vendor_a/vendor_b commands referenced anywhere?

Thanks.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Flash full 5.1.6 OTA package and then try again. It should work this time. I had three problems before 5.1.6:

1. It would reboot into fastboot instead of rom.

2. It would reboot into recovery.

3. It would reboot into EDL.

Now with 5.1.6 my problems are gone :D

Good luck!
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] strikerdj2011:
i was on 5.1.6 which is not helping lol
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
fastboot flash boot_a boot.img

fastboot flash boot_b boot.img

then

fastboot flash vendor_a vendor.img

fastboot flash vendor_b vendor.img

then

fastboot flash system_a system-rr.img

fastboot flash system_b system-rr.img

then

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

And wipe everything with stock recovery and reboot into Phh Treble rom.

And I'm not sure if flashing vendor is necessary but I just wanted to make sure that everything will be from 5.1.6.

And I don't know if You need to run these commands in exactly that order.

But after flashing 5.1.6, Treble roms work fine here.

---------- Post added at 02:04 AM ---------- Previous post was at 02:00 AM ----------

Oh wait. Did You flash vbmeta with those extra commands to disable verification etc?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] strikerdj2011:
yea i did
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] azsl1326:
Thanks for these. I have one question though. What kind of wipe are you performing at this point?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Did You try this too?

fastboot --set-active=_a and reboot.

and if that doesn't work then

fastboot --set-active=_b and reboot.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] strikerdj2011:
when a type this how its typed like this get wrong command

fastboot --set-active=_b and reboot.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] oneszero:
Installation went great, everything flashed smoothly, and booted into RR. Just said said that I had a vendor mismatch, Can anyone link the vendor images from 5.16?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Oh. Type this:

fastboot --set-active=_b

Without "and reboot". I just meant that You have to reboot after using that command.

Vendor mismatch is normal. Just ignore it for now. It shows up on my secondary phone with Treble too.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] strikerdj2011:
fastboot --set-active=_b that exact ally how i typed it still get error lol
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ProtoDeVNan0:
Hmm... Which rom are You trying to boot?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] strikerdj2011:
rr from the op

---------- Post added at 11:40 PM ---------- Previous post was at 11:32 PM ----------

done clean install of 5.1.6 where do i get the vendor files to flash thanks
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] oneszero:
Although, it says Charging Slowing, is it still Dash Charging?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] strikerdj2011:
not got it to boot yet lol

---------- Post added 10th June 2018 at 12:07 AM ---------- Previous post was 9th June 2018 at 11:43 PM ----------

i(bootloader) unlocked:yes

(bootloader) off-mode-charge:0

(bootloader) charger-screen-enabled:0

(bootloader) battery-soc-ok:yes

(bootloader) battery-voltage:4226

(bootloader) version-baseband:

(bootloader) version-bootloader:

(bootloader) variant:SDM UFS

(bootloader) partition-type:userdata:ext4

(bootloader) partition-size:userdata: 0x1B800B7000

(bootloader) partition-type:system_b:ext4

(bootloader) partition-size:system_b: 0xB2C00000

(bootloader) has-slot:modem:yes

(bootloader) has-slot:system:yes

(bootloader) current-slot:b

(bootloader) has-slot:boot:yes

(bootloader) slot-retry-count:b:7

(bootloader) slot-unbootable:b:no

(bootloader) slot-successful:b:no

(bootloader) slot-retry-count:a:7

(bootloader) slot-unbootable:a:no

(bootloader) slot-successful:a:no

(bootloader) slot-count:2

(bootloader) secure:yes

(bootloader) serialno:cb966d1b

(bootloader) product:sdm845

(bootloader) max-download-size:536870912

(bootloader) kernel:uefi
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Linuxpenguin:
I had to remove the _ in front of b as it would give an error as invalid slot
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Joyarup:
You can find the vendor file in the OOS OTA zip itself. Along with vbmeta and boot.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] rav101:
Hi all,

I've just read through the whole thread but can't see much about how this ROM performs on our device? From what I can see in the OP, VOLTE and Night Screen Filter don't work. Within the thread I have also seen that the alert slider partially works but is overrided by using the volime keys. Lastly I've seen that the status bar and notch aren't aligned or taking account of each other.

I was wondering other than these points, how the ROM is performing on the OP6? I haven't used a GSI before so curious to see if it generally performs to the same level as a Lineage custom ROM designed for the same device? By this I do not mean about all features working as I appreciate this is an early experimental release.

Any insights or feedback that anyone could give would be greatly appreciated.

I will be looking to flash and try for myself because I know that's the best way to get answers but am limited from that as this is my main phone and don't have time for it to not be DD ready at this point in time.

Regards,

Ravi
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] McFy:
Generic System Images
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Holy COW !!!!

It worked for me !!!

Your steps are exactly fine, in that order, just an additional info :

After installing OOS 5.1.6 from OTA, reboot in fastboot mode

fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
fastboot flash vendor_a vendor.img
fastboot flash vendor_b vendor.img
fastboot flash system_a system-rr.img
fastboot flash system_b system-rr.img
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

PS : If you need the boot/vendor/vbmeta files, go there and download the file named "OnePlus6Oxygen_22_OTA_010_all_1806070151_ad8b19ed516e78-FASTBOOT.zip"

The files are inside the zip, extract them in your adb/fastboot folder

Now, from the phone screen, reboot to recovery mode (using volume arrows, then power to select)

When in the stock recovery : english > wipe data & cache > erase everything

Then go BACK > BACK > advanced > reboot to fastboot

In fastboot

fastboot getvar all

Here, check the line "(bootloader) current-slot:

X

"

If you are on slot A, type

fastboot --set-active=b

If you are already on slot B, type

fastboot --set-active=a
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] rav101:
Hey buddy,

Do you know if custom kernels will boot on GSI's? Nathan's Flash kernel is close enough to stock that it doesn't get the "please contact manufacturer " error message for example so wondering if that would work?

Regards,

Ravi
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
My guess is it should work IF the kernel is based on OOS 5.1.6 kernel

Most of the devs are still using 5.1.5 as base

But I'm not sure what you mean with "please contact manufacturer"

Is this the splash screen before the rom boots ? If it is, that screen splashes when you have your bootloader unlocked AFAIK
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] rav101:
On some custom kernels there is an error message that comes up before you put you pin after a reset. My guess was that if Flash kernel doesn't have this error message then it's more in line with stock kernel.

He is on 5.1.6 updated sources. Hoping someone will try it out as I'm not on a GSI build yet. If no one has tried it out by the time I get on GSI then I will do it. Would be easy enough to fastboot flash stock boot.img if it didn't work anyway.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] scottysau:
Generic System Image (the reason Treble is meant to exist) Google it buddy.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] ericlui:
Hi, I was trying to run the "fastboot flash vendor_a vendor.img" and "fastboot flash vendor_b vendor.img" code, and got "Invalid sparse file format at header magi"

I tried both vendor.img from both OnePlus6Oxygen_22_OTA_010_all_1806070151_ad8b19ed516e78-FASTBOOT.zip and OnePlus6Oxygen_22_OTA_009_all_1805172226_4f2de-FASTBOOT.zip in the link provided.

Also, when I try to run "fastboot --set-active=a", I got the "C:\Android\fastboot.exe: unknown option -- set-active" error

I am not sure what happened and how to solve this.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
It happened to me too, but this is not an actual error

If you let it run (don't interrupt after this message), you will see the vendor files sent then written to partition
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] dapero:
Telegram test group?

Enviado desde mi ONEPLUS A6003 mediante Tapatalk
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] phhusson:
I have [MENTION=1960538]PHH[/MENTION]treble for discussing and reportings bugs, but I rarely do pre-releases if that's what you're asking
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Blunts47:
So does vendor mismatch or whatever mean thats why my wifi won't switch to enabled from disabled? Also what do I need to flash to fix it? Everything was working fine except that I think when I tried it.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] CYB3R0ID694:
Install Latest Fastboot.. :)
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Android-Desire:
I will wait until instructions are more clear and easiere to use before taking the dive.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Sorry, I don't see what you mean by more clear than that ???
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] magnamentis:
he in fact only meant to say "easy" but added "clear" as a wish to make things easier for him.

There is a german saying: "

Qua

lität kommt von QUAL"

translated it measn that "Quality stems from the workd Suffer" wich in english does not work as a words-play while the meaning remains LOL
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] bud77:
Oh well, he is dutch, and you are spanish, talking about german to a french (phh & me) !

ALOT of translation issue might happen :p
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] magnamentis:
ok, trying not too much OT but for the fun of it:

i'm swiss, living in china, preparing retirement in spain LOL
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] phhusson:
People reporting non-working WiFi were using a pre-released of OOS 5.1.6.

Please flash stable 5.1.6.
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] Blunts47:
Is there there an official download for it? Or should I just ota from 5.1.5 official?
[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] phhusson:
I flashed using: https://xdaforums.com/oneplus-6/how-to/rom-stock-fastboot-roms-oneplus-6-t3796665

You'll note there are two -010 release, one "test" one not. Take the not test one :P