yashsingh1/xdaforums huggingface dataset:
[OnePlus 6 Guides, News, & Discussion] BoGnY:
yes, finally i have found the problem.. the problem was official twrp 3.3.0 zip installer.. don't boot on my A6000 :confused:.. i have tried with 3.2.3 zip installer and all works..

this phone is amazing :D :D
[OnePlus 6 Guides, News, & Discussion] lm089:
SOLVED: Nandroid problems

Hi,

last night I tried to do a full Nandroid. Removed any locking then booted into recovery (latest Blu Spark twrp 3.2.3-0 V 9.96). Phone is running stock OOS 9.0.4.

At the end of backing up the data partition I received an error (freely translated from the output in German):

Process createTarFork() ended with error: 255

After that the backup stopped.

There is a recovery.log, but it's huge (15.8 MB) so I can't even open it on my phone, let alone upload here.

Repeated the same this morning, this time without removing any locks (just to test it), with the same result.

I'm unsure what this means:

- should I leave out /data from my backup?

- is there someting broken?

- should I open an issue at the blu spark github? (can I even do that? never tried...)

UPDATE: finally managed to open recovery.log on my PC and found the lines around that error (it's partly in German but you'll get the meaning, I guess):

I:addFile '/data/vendor_ce/999' including root: 1
==> set selinux context: u:object_r:vendor_data_file:s0
failed to lookup tar policy for '/data/vendor_ce/999' - 'a402f629f82ccc32'
I:Error adding file '/data/vendor_ce/999' to '/data/media/0/TWRP/BACKUPS/4085c5e1/2019-04-19--00-46-25/data.ext4.win003'
Fehler beim Erstellen der Sicherung.
I:ERROR tarList for thread ID 0
Fehler beim Erstellen der Sicherung.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/4085c5e1/2019-04-19--00-46-25/data.info'
Prozess createTarFork() endete mit FEHLER: 255
Sicherung fehlgeschlagen, bereinige Sicherungs-Verzeichnis

Translation: lines #5 + #7: "Error while creating backup"

line #9: "Process createTarFork() ended with error: 255"

line #10: "Backup failed, cleaning up backup folder"

SOLVED:

this here was hinted at in the blu_spark thread, and it helped: https://xdaforums.com/oneplus-6/how-to/255-error-twrp-backup-restore-999-t3801632
[OnePlus 6 Guides, News, & Discussion] thugslug:
You should listen to [MENTION=4107018]yldlj[/MENTION] & use blu_spark twrp.

V9.96 is still the latest.
[OnePlus 6 Guides, News, & Discussion] dgunn:
Glad to see my thread is still helping people
[OnePlus 6 Guides, News, & Discussion] xpissio:
For locking the bootloader, how can I do? Will it wipe my phone?
[OnePlus 6 Guides, News, & Discussion] Geoz:
Yes it will wipe everything. Make sure you are on stock ROM. The same command as unlock replace with lock (fastboot oem lock).
[OnePlus 6 Guides, News, & Discussion] lm089:
Finally went through my first update to 9.0.5, and I'm glad I had bookmarked your recommendations. Thus no probs at all, unlike what I read in this other thread (around pg 400).

So, one more "thanks-a-lot".

Some observations: after following that script above I had to

- re-install Magisk Manager (unexpected)

- find that root permission for all relevant apps was gone (of course)

- had to re-install all Magisk modules (of course)

- had to re-adjust some automagic automation scripts (unexpected)

Nothing serious of course but may help to remember next time so that I have Magisk Manager and all modules at hand

Just one more thing:

Do I have to re-install Magisk to the inactive slot, or was that done through re-flashing Magisk after the update?
[OnePlus 6 Guides, News, & Discussion] thugslug:
You don't have to worry about anything on the inactive slot until your next upgrade. Then if you follow the directions [MENTION=4107018]yldlj[/MENTION] gave you, everything including magisk will be installed on the inactive slot. The phone will switch to it on reboot and it will become the active slot.

If you do the whole process again right now with the same rom, you'll get magisk on the other slot, but you just don't need to worry about it all until you upgrade rom next time. It's inactive, so sitting there not doing anything......

---------- Post added at 12:52 AM ---------- Previous post was at 12:26 AM ----------

A few more things that might help...

There's simply a lot of bad advice given on that (& many other threads). Read the advice of the devs and the OP. Or those you learn to trust. One guy says not to use magisk 19, but it has worked just fine for me with beta 16 and 9.0.5.

Don't want to confuse you, but..... There's another slightly advanced way to upgrade to a new rom and keep everything. I know [MENTION=4107018]yldlj[/MENTION] has said it a few times, my apols if you already read this.

In magisk there's a module called the twrp a/b retention script. There's also an option within the install menu in magisk manager that says "install to inactive slot after ota".

So.....

If you get notification of a system update, let the system updater download and install the update, or can also update through local update if you have downloaded the new rom separately.

Once it installs DO NOT let it reboot to the new rom (and to the inactive slot).

First go into magisk manager and find and install the module twrp a/b retention script and let it run.

DO NOT reboot.

Go to the opening menu of magisk manager and tap install (for magisk, not magisk manager) even though it probably will say its already the latest version.

Once you actually tap install, a final menu will come up. The bottom option is install to inactive slot after ota. Choose this and let it run. When it finishes, it will then reboot to the inactive slot, and twrp and magisk will be there, just like magic.

I mostly upgrade this way. Quick and easy. I only do it the long way when I really want to to wipe and do a clean install. Then I go back to complete stock and install twrp through fastboot, and then the rest of the usual process for first time upgrade.

Hope this helps more than confuses you.
[OnePlus 6 Guides, News, & Discussion] yldlj:
If course uninstalling magisk causes you to install everything root related again but it's the safest way to do it, you hear lots of people who can't boot the rom unless they use the uninstaller. As for magisk manager not being installed I have only found this problem with Magisk 18.1 (not sure about the bet version) but yes it's always good to have magisk manager on hand.
[OnePlus 6 Guides, News, & Discussion] lm089:
Not confusing at all. Will try next time. As I usually keep my phones for many years there'll be plenty of times to test all the variations ;)
[OnePlus 6 Guides, News, & Discussion] kallekula33:
Hi. I accidentally did a rally stupid thing today. And that was I ran the upgrade to OOS 9.0.5 and let it install itself. I'm still on OOS 5.1.9 Oreo rooted with Magisk v18.1. Would it be possible to use module twrp a/b retention script mentioned above? I have not yet rebooted my phone and I hope that kinda saves me. Else I was thinking of it would be even possible to remove the upgrade from the inactive slot? But I have zero clue on even how to do that. What I fear the most is that once I reboot it will brick my phone completely. And that option sucks big time. I really hope someone can give me some advice on how to fix this. Else I will not reboot my phone until I have bought a new one. But that will take som är time.. All help is highly appreciated.
[OnePlus 6 Guides, News, & Discussion] yldlj:
If you reboot you will just have a 9.0.5 ROM with no twrp or root. It's how I usually update. It's very easy to flash TWRP and root again. I don't see why the retention script wouldn't work for you.
[OnePlus 6 Guides, News, & Discussion] thugslug:
The upgrade from Oreo to Pie is a big one, and best done clean. The a/b retention script module might work, but I've never done that, but as [MENTION=4107018]yldlj[/MENTION] says it might work.

The Oreo to Pie upgrade is best done clean, I think.

So I'd reboot and end up stock... Actually I would have used magisk uninstaller zip to get rid of magisk completely beforehand, but never mind.

I'd even go as far as doing the whole upgrade to pie one more time completely to get it on the second slot too.

Then I'd start from scratch. All the usual stuff. Make sure dev options are on. Fastboot boot twrp.img from a pc, and when phone automatically reboots to twrp detach from pc and flash the twrp zip from recovery. Check the log on screen to make sure it goes to both slots OK, reboot to recovery to make sure twrp really is there, then flash magisk.

Of course use twrp 9.100 and magisk 19. Magisk 19 may say its beta but I've found it works very well.

Let us know how you go

Worst thing that can happen is you need to use the 5.1.11 unbrick tool to get back to stock Oreo then go through it all again clean as a whistle.
[OnePlus 6 Guides, News, & Discussion] kallekula33:
Hi. So you don't think I'll end up with a bootloop although I'm moving from Oreo to Pie? Anyhow, if you could provide me some more step by step instructions it would be greatly helpful. And there is the question of which TWRP to use? Official or Blu_spark? Really sorry for all the questions but I don't want to end up with a bricked phone.
[OnePlus 6 Guides, News, & Discussion] bohemist:
Go for blu_spark TWRP. Although official TRWP is enticing, I find blu_spark is better. I don't have any issues with it and used it since the initial Pie update last year. Since then, I have been using blu_soark TWRP and never go back to official TRWP.

As for the update process, you can follow the instructions on this thread; https://xdaforums.com/oneplus-6/how-to/official-oxygenos-5-1-5-ota-oneplus-6-t3794232
[OnePlus 6 Guides, News, & Discussion] kallekula33:
Hi bohemist, thanks for your reply. When it comes to blu_spark I guess I could just pick the latest one right ? I have found twrp-3.2.3-x_blu_spark_v9.91_op6.zip so I have downloaded that one. I also assume that there's no difference what OOS you got running on your device as long as you use the correct TWRP for your phone.
[OnePlus 6 Guides, News, & Discussion] bohemist:
Do you mean OOS Pie?

The latest blu_spark TWRP works perfectly with the recent OTA update.

Just follow the instructions on the thread I have posted. And, make sure you have all the necessary files. Otherwise, you need to hace an OTG drive so you can quickly transfer files to your phone from your PC.
[OnePlus 6 Guides, News, & Discussion] yldlj:
So ATM your on 5.1.9 rooted with TWRP? You already took the OTA from settings? Meaning it detected root and downloaded the full ROM zip, installed the ROM to the inactive slot and asked you to reboot which you didn't?

If all that is correct just reboot the phone. It will update you to 9.0.5. Once the phone has booted you will need to reinstall twrp and root. Latest twrp should be bluespark v9.10 and use magisk stable 18.1. I'm assuming you know how to flash TWRP and root because you have done it before.

A side note. Your coming from Oreo so once the phone has booted it would be wise to do a factory reset. Remember to backup data or anything important.
[OnePlus 6 Guides, News, & Discussion] kallekula33:
Yes, correct, my OP6 is rooted with official TWRP. Yes, message came that root was detected and full ROM was downloaded to the .OTA folder and installed to the inactive slot. At this point I have not rebooted my phone, afraid that something will mess up my phone when I move from Oreo -> Pie the dirty way.

But perhaps I'm paranoid and everything will work fine, hence all the dumb questions coming from me.

It's been a while since I did the TWRP install, but I should be able to boot the phone from PC through ADB with the blu-spark .img and then install the .zip file and then Magisk 18.1 right ? This factory reset is a cumbersome issue, would Titanuim backup be sufficient for my apps/data?

Once again, really appreciate the support.
[OnePlus 6 Guides, News, & Discussion] thugslug:
Latest blu_spark twrp is 9.100.
[OnePlus 6 Guides, News, & Discussion] bohemist:
Agree... Posted here a few days back: https://xdaforums.com/showpost.php?p=79395331&postcount=1799
[OnePlus 6 Guides, News, & Discussion] yldlj:
I don't why you will face any problems just rebooting. It is a big jump In firmware but the full ROM has been downloaded. I have updated this way many times but I never miss updates.

For backups I just use the normal backup from settings, that's suffice for me but maybe not for you. You could skip the factory reset part and see if you face any issues first but it's recommended when moving between Android versions. As for twrp and magisk it seems you know what your doing ?
[OnePlus 6 Guides, News, & Discussion] kallekula33:
Is it ? Cause looking in the thread here https://xdaforums.com/devdb/project/?id=27466#downloads shows v9.91 or am I blind? where is the 9.100 to be found ?
[OnePlus 6 Guides, News, & Discussion] yldlj:
Post edited ? thanks. Time to update my twrp then lol

---------- Post added at 08:26 AM ---------- Previous post was at 08:26 AM ----------

Link is above your post
[OnePlus 6 Guides, News, & Discussion] bohemist:
[MENTION=3873953]eng.stk[/MENTION] posted updates on Github including the blu_spark kernel. You may want to bookmark the Blu_Spark kernel thread for updates including blu_spark TWRP

https://xdaforums.com/showpost.php?p=79395331&postcount=1799
[OnePlus 6 Guides, News, & Discussion] kallekula33:
Hi , thanks, seems to be a good idea to have it bookmarked for the future instead of asking questions the whole time ;)
[OnePlus 6 Guides, News, & Discussion] bohemist:
That is what I do. Bookmarked threads related to my device. In 2017, I had Lenovo Vibe P1, so every important thread about that device, I've bookmarked it. Now that I have OP6, major and relevant threads including Gcam, etc are bookmarked :)

Anytime I need a reference, I can scan over my bookmarks. It's a function of XDA forum, so it's easy to do and keep the bookmarks in one place. :)

Note: XDA forum call it Subscribe :)
[OnePlus 6 Guides, News, & Discussion] lm089:
Updating twrp blu_spark last night I was contemplating this "uninstall magisk before flashing the OOS ota" step once again.

Just out of curiosity: what's the technical reason behind uninstalling Magisk then re-installing it after flashing the update? I never did that for my LineageOS driven Xperias, and never had problems there. Musst be related to the different partition layout, I guess. But still I don't quite get it as I learned that it's one of the mighty features of Magisk that it survives ROM updates.
[OnePlus 6 Guides, News, & Discussion] only4dank:
Never uninstalled Magisk or its' modules. Don't understand why people think you have to do this.
[OnePlus 6 Guides, News, & Discussion] yldlj:
It's not magisk that needs to be removed its more the modules because some modules can cause problems when updating. I don't know why, all I know is what I have read following the forum that people sometimes bootloop when keeping magisk. By all mean try updating without flashing the uninstaller and see if it works for you. Just keep the uninstaller on your device just in case.

---------- Post added at 10:13 AM ---------- Previous post was at 10:11 AM ----------

It's not that people think you have to it's just that some people have had bootlooping issues caused from a module while updating. This is why I always recommend flashing the uninstaller. I have also updated without removing magisk but I only have youtube Vanced module and nothing else.
[OnePlus 6 Guides, News, & Discussion] only4dank:
I have 6-7 modules running. After updating OOS + getting blu_spark back - I have never had a bootloop by re-flashing Magisk. Modules all there, and everything works good. Would be interesting to know what modules people have that cause bootloop, because I personally think it has nothing to do with Magisk modules, but instead user error while updating.
[OnePlus 6 Guides, News, & Discussion] yldlj:
Very well could be user error but peoples phones seem to boot after using it so... Who knows.
[OnePlus 6 Guides, News, & Discussion] only4dank:
Well I know who doesn't know... the people with the error :cowboy: ... only God knows, lawd jesus.:angel:
[OnePlus 6 Guides, News, & Discussion] lm089:
OK, that makes sense of course; can imagine there are some modules around that could interfere with some OS feature. So basically next time I'll try to just disable modules then flash and afterwards see which modules can be re-enabled...

Again thanks [MENTION=4107018]yldlj[/MENTION] and [MENTION=5578928]only4dank[/MENTION] for sharing your thoughts on this
[OnePlus 6 Guides, News, & Discussion] RASTAVIPER:
If people follow the upgrade procedure by flashing the correct files, no magisc uninstall is needed.

I am pretty sure that such errors occur only to newcomers or to people that miss some crucial step during flashing.

I am also using several modules and during upgrading I got one time the bootloop as I forgot to flash the custom kernel at some point.
[OnePlus 6 Guides, News, & Discussion] yldlj:
Just because it works fr you don't assume it will for everyone. Why would not flashing a custom kernel cause bootloop as when your updating you flash a new boot. Img and also its on the other slot.
[OnePlus 6 Guides, News, & Discussion] bluechimecho:
hello. i am confused as to what the blu_spark download is for as it is not mentioned in the guide. Also if i am only going to install magisk it says i can stay systemless. does this mean when prompted to swipe to allow modifications i should just press read only?
[OnePlus 6 Guides, News, & Discussion] 0kti:
Allow modification

Tapatalk - OnePlus6
[OnePlus 6 Guides, News, & Discussion] bluechimecho:
hello, i have found the blu spark twrp and also blu spark kernel. is it necessary to flash the kernel?
[OnePlus 6 Guides, News, & Discussion] nichobrooks:
Not sure if it is absolutely necessary but, if you already unlocked the bootloader, might as well flash blu_spark twrp :good:
[OnePlus 6 Guides, News, & Discussion] lm089:
Wouldn't say it's necessary to flash the kernel, I didn't. Just flashed the recovery
[OnePlus 6 Guides, News, & Discussion] RASTAVIPER:
The recovery and kernel are never bonded.

U can always flash different kernels, no matter which recovery do u have
[OnePlus 6 Guides, News, & Discussion] TheBananaz:
I'm not having luck with unlocking the boot loader for whatever reason. When I open a powershell in my ABD directory and type "fastboot devices" nothing happens. I have installed and reinstalled drivers. When the phone is on, the computer recognizes the phone as "oneplus" but when it's in bootloader the computer says "android" "driver is unavailable". I tried manually assigning the driver from my Oneplus folder and it throws an error. Any help would be very appreciated.

---------- Post added at 06:19 PM ---------- Previous post was at 06:10 PM ----------

When trying to install the driver manually windows states "Oneplus android bootloader interface. The hash for this file is not present in the specified catalog" This is while trying to install the driver while the phone is in the bootloader
[OnePlus 6 Guides, News, & Discussion] DevisG79:
If I want to go back to stock, I first clean install Oos 9.0.5, then reboot,then boot to Fastboot and type "fastboot oem lock" to relock the bootloader. Is that the right procedure?

Device is OP6. BTW if this works, I don't need MSM download tool or where is the difference?
[OnePlus 6 Guides, News, & Discussion] nichobrooks:
The Msm tool if used if you bricked your device or you are getting the "your device is corrupt" and you can't live with it. Cheers
[OnePlus 6 Guides, News, & Discussion] DevisG79:
Yeah, thanks. But what about the first question?
[OnePlus 6 Guides, News, & Discussion] nichobrooks:
The procedure you describe looks good to me
[OnePlus 6 Guides, News, & Discussion] TheBananaz:
I finally figured out my issue. I had to go into the windows device properties, attempt to manually install the drivers while the phone was in bootloader. It would then throw an error about the android bootloader interface and asked if i wanted to search for an update, windows actually found an update to that particular part of the driver. Installed it and that fixed it.
[OnePlus 6 Guides, News, & Discussion] kipue:
Coming here with just that question.

So flash the latest OOS once will be enough? No need to worry about doing it twice, even coming from a custom AOSP?

So I would

- boot to TWRP

- format the usual partitions

- flash OOS

- reboot once (then the stock recovery would be there as well)

- go to fastboot to relock

Is good that way ?
[OnePlus 6 Guides, News, & Discussion] nichobrooks:
Boot to twrp do the factory reset then flash stock oos then relock the bootloader
[OnePlus 6 Guides, News, & Discussion] DevisG79:
If you want to relock the bootloader I can confirm that this works:

1. In twrp format data(this will delete everything)

2. Reboot recovery

2.1. enable mtp and transfer stock ROM from pc to op6

3. Flash latest stable Oos full zip

4. Reboot system (twrp will be replaced from stock recovery)

5. No need to setup everything, just skip the setup

6. Reboot to Fastboot, connect usb cable to pc and do the relock bootloader process, type:"fastboot oem lock"

(without check mark) (this will wipe again everything)

7. Confirm to lock bootloader

I came from Oos OB17, magisk, unlocked bootloader, twrp, xXx no limits, smurf kernel. About coming from custom aosp ROM I'm not ?% sure but I think it's the same procedure, because lock bootloader wipes everything. Before you begin don't forget to back up!
[OnePlus 6 Guides, News, & Discussion] kipue:
Thank you to you two, I went ahead and tried the basic way, and did a simple factory reset in TWRP.

I ended up booting back to stock recovery, no matter what.

So I fastboot booted to TWRP, did a format data (like you say DevisG79), which I think was the necessary step here. I'm unsure if wiping System would have helped, but no matter, I'm giving away the phone, so might as well totally clean it :)

(then I went ahead and reflashed stock OOS to both partitions, probably overkill, but who knows)

All is well, thanks again ^^
[OnePlus 6 Guides, News, & Discussion] W1007:
Hello everybody, I just received an update from the update tool but my phone is rooted with this procedure. Do I need to do something for keep my root access after the update or not ?

Thanks you.
[OnePlus 6 Guides, News, & Discussion] lm089:
Go back a few pages to a post by [MENTION=8957402]thugslug[/MENTION] (dated April 23rd, thanks again, mate!). Answering a question of mine he explains one of several methods. Very easy, did myself this morning.

Good luck
[OnePlus 6 Guides, News, & Discussion] kewinhw:
hey i can't boot into fatboot mode. when holding volume up and power button it will show fastboot mode but then just go to bootloader mode where i can choose start - reboot recovery, reboot bootloader, and power off.

i accidentally updated my phone through the updater i thought that i would have to press install before it would update to 9.0.7. i was rooted with magisk and stuff. so yeah i lost twrp and i was only able to boot into stock recovery after that update. i then did a factory reset through recovery and i was going to install twrp but i cant fastboot boot twrp... becuase i cant boot into fastboot mode :/ do i need to use msm tool?

EDIT: In windows device manager (other devices->android) there is a triangle on the icon for android. perhaps thats the problem. i cant update it however it just loads :/
[OnePlus 6 Guides, News, & Discussion] W1007:
Well thanks you, I was reading from the beginning od the post and I didn't find any solutions from the first 15 pages so I decided to ask directly. And of course thanks to [MENTION=8957402]thugslug[/MENTION] for the fastest way to update without losing everything :)
[OnePlus 6 Guides, News, & Discussion] thugslug:
Go easy with all the thanks guys. I want my hat to still fit on my head and it won't if you keep this up!

?

Good on you [MENTION=4149551]lm089[/MENTION] for remembering my post after all this time.

Seriously though, good to see some people still trying to search the threads for answers.
[OnePlus 6 Guides, News, & Discussion] yldlj:
Whats this search feature you speak of?