yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] yupo72:
I'm in this situation and I find this method so difficult compared to many other posted.

Btw, I just don't understand the 4th step in the resume....is it a reboot in Recovery or in System? and if in Recovery, will it be the stock one as I've just flashed 5.0.1?

Most of all I'm not understanding how to exactly makes backup of internal storage...Directory....files...Android....I'm puzzled.

Could you make few examples please?

:rolleyes:

Thanks
[OnePlus 5 Guides, News, & Discussion] zdimension:
The summary was only wip (I started it this morning but I had to go to school so I didn't finish it). See the updated post. As I wrote, the summary is not really a list of steps to follow, it's only meant to be a preview of what the guide will make you do. It's not precise, whereas the full steps below are. This is why the guide is way longer, because it's very easy to root a phone even for someone that doesn't know much, so ultimately many people are gonna want to upgrade to Oreo. Thus, I needed to make the guide understandable even for people that have never used a terminal in their life.
[OnePlus 5 Guides, News, & Discussion] Tecagaste:
Will this work with any TWRP version or does it have to be Codeworkx?
[OnePlus 5 Guides, News, & Discussion] yupo72:
Thank you.

I see that you've changed something so I'll wait until a final version.

What I was not understanding is why you backup the whole sd and then you mention how to backup single folders or files and the syntax of that.

Maybe I'm not so technical after all :)
[OnePlus 5 Guides, News, & Discussion] zdimension:
Final version up now. I don't think anywhere in the guide it says that you have to backup the whole sd card. There are two backups that must be made to keep both settings, app data and files:

nandroid backup of /data : can only be made using TWRP's Backup utility

backup of files on /sdcard : can only be done manually (here, I use tar because it's an easy way to put multiple files in a single file, and a single big file is way faster to transfer than thousands of small files)

For /data, it's very easy. TWRP generates 5 or 6 tar files, that are put in the TWRP folder of the sdcard. To make transfer faster, I give a command that puts the whole TWRP folder itself into a tar file, then you transfer it and remove it from the phone's storage (so that it's not put again when you do the sdcard backup).

For the internal files, as I wrote, it can only be done manually (you choose what to backup and what to ignore). I use tar because it makes the whole thing easy. The syntax is simple:

tar cvf sd.tar element1 element2 element... elementN

Where element1..N are the things that you want to keep. (I updated the guide with an easier explanation, because the original one was a bit misleading).

I only tried the whole guide with Codeworkx, because with bluspark I had problems for flashing the ROM (it would just bootloop afterwards).
[OnePlus 5 Guides, News, & Discussion] Frostbiter:
Just a heads up, you might want to grab the WifiConfigStore.xml file before wiping your data after you first boot your phone to OOS 5.0.1 and sync your Google account to the phone. It is where your wifi networks are saved now, save that file and put it back after you restore you android N data. If you don't you'll lose all your saved wifi networks.

The format is different so you can't just copy/paste from the old file to the new one.
[OnePlus 5 Guides, News, & Discussion] yupo72:
Thanks for your effort. Just another (dummy) question: if I save to my pc all pictures, files, sounds, mp3 and whatever before, I could skip the /sdcard step or there's something hidden there that needs to be saved/restored?
[OnePlus 5 Guides, News, & Discussion] zdimension:
There is the "Android" folder which usually contains "big" data for apps (i.e. data that is too big to go in /data, like for example downloaded videos in Netflix). It's recommended to back it up. That's the only "really important" one.
[OnePlus 5 Guides, News, & Discussion] zdimension:
I knew Oreo switched to a new file format for Wi-Fi networks, but I thought that since I restored the /data backups it was definitely lost. I'm gonna add this to the guide. Thanks!
[OnePlus 5 Guides, News, & Discussion] Stupifier:
I get "Permission Denied" when I try to run this on my phone (through ADB Shell on computer)

/sdcard # tar cvf twrp.tar TWRP

That is with OOS Nougat xXx Encrypted ROM which has latest Magisk installed.....just trying to follow instructions and that was the first roadblock I hit. And for further clarification, I can ADB Shell successfully while phone is booted into ROM just fine. While in TWRP, I can ADB Shell and get to Shell just fine...but once I try that command....I just get permission denied. Do I need to chmod 777 or something?
[OnePlus 5 Guides, News, & Discussion] hachamacha:
If you're still working on it, you might try something like this to debug it and figure out what to change ownership & permissions to (if anything):

{from the same location twrp.tar is located in:}
# touch tmp.tmp // so this just creates a test file with the permissions you're allowed to use.

# ls -al tmp.tmp twrp.tar > output.tmp // and that cmd just lists the owner names and file permissions of both.

Attach the output here:

# rm tmp.tmp // and confirm if asked because if you can't delete it, something else is wrong and it's just cruft anyway.

If all went well with creating & deleting tmp.tmp file, then note the ownership & privileges, and make sure twrp.tar has at least the same. Yeah, you could've changed it to 777 but then no one gets to find out what caused your problem, which might be interesting to someone.

Cheers.
[OnePlus 5 Guides, News, & Discussion] Stupifier:
Sorry, it was late and I needed to push forward......I ended up just backing up my entire SD card and doing a Titanium Backup Pro of all my Apps. Complete Wiped Phone and flashed xXx Oreo. Was Successful, am encrypted, and retrieved all my apps and app data through Titanium Backup Pro Restore.

I have a feeling it was just some weird permission issue. Wish I could enlighten everyone as to what exactly the issue was.
[OnePlus 5 Guides, News, & Discussion] hachamacha:
Well, I'm glad you got it working, regardless of method. ;)
[OnePlus 5 Guides, News, & Discussion] lineager:
Thanks! following the instructions I can finally upgrade to Oreo without data lost.:good:

During the whole process, one problem I faced is the below step

First, I have no idea how to go Fastboot since there is no fastboot option on the "Reboot" section. Then I google it and get the right option is "Bootloader". Suggest to make it clear in the instruction.

Another question, should I flash the official Twrp or the Codeworkx Twrp?
[OnePlus 5 Guides, News, & Discussion] Stupifier:
Codeworkx, definitely codeworkx
[OnePlus 5 Guides, News, & Discussion] yupo72:
The meaning is you have to do the very first step, reboot in bootloader then type the command fastboot boot twrp........... to go in twrp
[OnePlus 5 Guides, News, & Discussion] hachamacha:
"Fastboot" is just the name of the PC/Linux/OtherDesktop-Laptop utility. It only works when the phone itself is booted to bootloader by any of several methods.

When the phone is booted to bootloader (e.g. $adb reboot bootloader (or close to that)) , do a $fastboot devices and make sure your phone is seen by the PC.

Phone: Bootloader

PC: Fastboot
[OnePlus 5 Guides, News, & Discussion] mooondark:
Thanks for this wonderfull guide. It worked fine (even if it was a bit long).

I faced an issue on this step :

/sdcard # tar xvf sd.tar

The process killed itself after a short time with the indication :

Killed.

So I've just untared the sd.tar file on my computer and zip it so I could do :

/sdcard # unzip -x sd.zip

>> problem solved.
[OnePlus 5 Guides, News, & Discussion] Faridcboy:
As a person who followed this guide step by step, I believe there is something wrong with this part:

Becuase first I did as it was said but I got stock in Oreo's Boot Animation. I double checked everything, even tried the stock recovery but none was helpful!

I even tried installing the latest Lineage OS rom to see if that's gonna boot but that wasnt helpful either.

I managed to restore the backup I had taken a few days ago via twrp from system, data,cache, etc. Then it finally booted to the OS. Then I installed the Oreo Stock rom without wiping anything and afterwards, I only wiped Caches and Data. That way I could finally get my device upgraded to Oreo.

I still thank you for the effort you put into writing this full guide but I think wiping system (or maybe others) causes problem afterwards.
[OnePlus 5 Guides, News, & Discussion] Xharky:
I find a strange thing, I install this OnePlus5Oxygen_23_OTA_028_all_1801031502_04d7cc5.zip from op that says Oreo 8.0.1, but when I go to the about phone it say is POS 5.0.1 and android 8.0.0...

My mistake... Confusing OOS version with OREO version. Sorry.
[OnePlus 5 Guides, News, & Discussion] olivier380:
I'm wondering if there were some kind of confusion with the next part of the guide (after the Oreo ROM is flashed) which requires format :

Are you sure you were in Nougat before and not a previous Oreo version (since you're talking about being stuck in Oreo's Boot Animation) ?
[MENTION=6833258]zdimension[/MENTION] any idea of what could have gone wrong ?
[OnePlus 5 Guides, News, & Discussion] Faridcboy:
Nope, I did a full wipe (Dalvik / ART Cache, Cache, System, Data and Internal Storage) before installing the Oreo and after installing it, I only wiped Dalvik / ART Cache and Cache.

I checked to make sure the MD5 of the image checks out with the one mentioned on the OnePlus Website, tried sideloading with twrp Recovery, tried sideloading with Stock Recovery but none helped!

Even the Lineage OS I installed through twrp Recovery as a zip file didn't boot!

The only way as I said, was to restore the backup I had taken a few days ago from the whole system,data, cache, etc.

Yes Im sure!
[OnePlus 5 Guides, News, & Discussion] Vlad_z:
You only need to wipe Caches and format DATA once - after installing Oreo.

This way you can pre-load Oreo zip in internal storage and flash it from there.
[OnePlus 5 Guides, News, & Discussion] smartbuddy:
Deleting the offtopic comment.
[OnePlus 5 Guides, News, & Discussion] zdimension:
[MENTION=5416650]Faridcboy[/MENTION] did the above solution fix the issue?
[OnePlus 5 Guides, News, & Discussion] SHADOW-XIII:
after restoring data from the backup and applying fp changes etc, it seems that I still can't boot/decrypt the phone,

I guess it's because I setup pattern after installing fresh oreo build, I will retry and see if it's working without pattern

EDIT: and didn't work, stuck on boot going back to recovery
[OnePlus 5 Guides, News, & Discussion] yupo72:
Maybe your phone is Decrypted instead of Encrypted?

If so, flashing no_verity after the OS, should fix.

P.S.

I've not yet updated, I'm still on 4.5.15, rooted, bootloader unlocked, phone Encrypted, but I'm reading probably every existing discussion about it.
[OnePlus 5 Guides, News, & Discussion] SHADOW-XIII:
the phone starts fine before I restore data as per guide, once I restore the data - it no longer boots (starts, restarts, sends me to the recovery)

installing no_verity didn't help
[OnePlus 5 Guides, News, & Discussion] zdimension:
So if I understood correctly, the phone works (in Oreo) until you restore the data?

Did you remove the three files (Wi-Fi + fingerprints) from TWRP? If yes, try flashing the OS again (simply go in TWRP, wipe dalvik and cache and flash OOS Oreo ROM without wiping system beforehand otherwise it breaks everything).
[OnePlus 5 Guides, News, & Discussion] SHADOW-XIII:
yes did all that plus more (I had 2 users so made fingerprint changes to both user "0" and "10") tried applying OS again but didn't work
[OnePlus 5 Guides, News, & Discussion] SHADOW-XIII:
sorry for double posting - took me ages (nearly 20h working on it with all the various installation attempts) ...

ended up with clean install of the Oreo, had a backup of sdcard and nandroid of data:

- made new install to restore the apps,

- extracted /data/data from nandroid

- removed system apps, with google/oneplus name plus few more (go to "/data/data" on the phone, do "ls -l | grep -v u0_" , it will show non-user apps, do not sync data for those, some exceptions might apply but better avoid it)

- wrote .bat file that adb pushed all the remaining folders to "/data/data"

- rebooted and the apps are now have the old data! \o/

on the stock oreo, encrypted, non-rooted, with partial original data

the only problem I have now is to:

- install magisk (how safe it is, don't want to end up boot looping again and some people report that they had bootloops after initially system was running fine but modifications might cause the problem),

- once got root, use Titanium Backup to restore rest of nandroid data (apks that google didn't install for some reason or not available in the play store)

- other users of the phone are not restored (shame but good enough)

- no text messages (might be able to restore it later on but not a big deal)
[OnePlus 5 Guides, News, & Discussion] dej12:
I succesfully upgraded, but i lost my saved wifi passwords

And after i boot to phone there is "any has stopped working" any idea what is it and how to solve it ?
[OnePlus 5 Guides, News, & Discussion] hachamacha:
Have you got a dmesg dump or logcat from right when that error is visible? Maybe there's a more complete error message in the logs if you're lucky. If so, either grep them for "has stopped working" or perhaps post them here.
[OnePlus 5 Guides, News, & Discussion] pekboy:
I've OOS 4.5.5 rooted kernel 4.4.21 with TWRP working. can I use this way to update without loose apps &data ?
[OnePlus 5 Guides, News, & Discussion] zdimension:
I think it may be better to first update to 4.5.15 and then follow this guide. It may very well work perfectly without updating, but I can't guarantee that since I've only tried 4.5.15 -> Oreo.
[OnePlus 5 Guides, News, & Discussion] pekboy:
thank you!

well I never updated after rooted because I'm allways with lot of data in oneplus and it gets so boring..no time :S I'll do a backup of everything first when I've time and will try first direct update!
[OnePlus 5 Guides, News, & Discussion] gribna:
Hi,

my tar command (the step, where you extract sd.tar back) seems to be getting killed inexplicably.

Here is the screenshot:

Do you have any ideas what might be causing it?

Edit: found a similar post in the thread, still would be nice to know why this happens.
[OnePlus 5 Guides, News, & Discussion] zdimension:
Did you run that command while the phone is in TWRP, or while the system is running?
[OnePlus 5 Guides, News, & Discussion] gribna:
While the phone was in TWRP, as per your instructions. Re-zipping the directories and extracting them with unzip did work though. I want to thank you again for the work you've done.

PS: I forgot to use the latest Magisk and it bricked the phone. Updating Magisk solved the problem. Don't make my mistake!
[OnePlus 5 Guides, News, & Discussion] J03llV:
Seems like a lot of hassle for an update.. Why is it so hard to update from nougat to oreo..?
[OnePlus 5 Guides, News, & Discussion] dej12:
Anyone tried dirty flash 5.0.2 from 5.0.1(unlocked bootloader,rooted, encrypted) ?
[OnePlus 5 Guides, News, & Discussion] pawel.s:
Just did it from 4.5.13 to 5.0.2

I mean I am currently in the process of restoring (waiting for adb push to finish) but it looks like it will work just fine.

---------- Post added at 09:25 PM ---------- Previous post was at 09:24 PM ----------

Should work well, but taking a full nandroid backup just to be safe isn't a bad idea.
[OnePlus 5 Guides, News, & Discussion] materoprodutions:
I just followed the guide and updated an all went well, but I'm missing all my personal folders that were in the sd.tar file. Now on my sdcard there is still the sd.tar file but all my folders are not there. Did I miss one passage? something got wrong? what should I do?
[OnePlus 5 Guides, News, & Discussion] zdimension:
You forgot this step:

And the steps that followed
[OnePlus 5 Guides, News, & Discussion] materoprodutions:
I did that step but I think /sdcard # tar xvf sd.tar didn't do it properly. not a big deal. I extracted manually on pc and copied all the folders. now all is good. thank you
[OnePlus 5 Guides, News, & Discussion] PhoenixWyllow:
Just a quick thing, this bit means that we're only supposed to restore Data, not anything else.

I "did a silly" and realised too late what I had done. I had to start again pretty much. :rolleyes:

It's written in the outlined steps, but maybe should be re-stated here too just to avoid people (me :p) doing silly things (and wasting precious hours of sleep to redo things that were supposed to be done by bedtime :p)
[OnePlus 5 Guides, News, & Discussion] halferuga:
I made a Nandroid backup that contains not just /data, but other stuff as well. Will I be able to partially restore using it?

EDIT: Turns out I can
[OnePlus 5 Guides, News, & Discussion] lineager:
Have you done this finally? same case and waiting someone confirm :D
[OnePlus 5 Guides, News, & Discussion] mooondark:
Just did it. Flash update, flash magisk, wipe dalvik/cache.

Rebooted fine.
[OnePlus 5 Guides, News, & Discussion] McSlither:
Restoring data failed for me with following error:

extractFork() process ended with ERROR: 255

I think I'll just skip this part and setup the phone from scratch.

Edit: after installing magisk I can't reboot system anymore, it always go back to recovery. Have to do everything from start now.
[OnePlus 5 Guides, News, & Discussion] swords90:
Hello, first thanks for the guide.

I read all and then i tried to install the rom but i get an error with adb push.

This is my error: error: device ´(null)´not found.

I attached a screenshot because is easier if you see the error. I tried to repeat the procces twice, but i get the same error.......

Thanks alot for your help mate
[OnePlus 5 Guides, News, & Discussion] materoprodutions:
Hi I followed this guide a few days ago and all went well. Since the past 2-3 days I'm having a few issues with all the gapps like gmail, youtube etc force closing. Also it seems like my data connection drops very often. I don't know if this is related tpo this thread or if anynone can help me with the best solution for this. should I do a titanium backup and clean install of 5.0.2?
[OnePlus 5 Guides, News, & Discussion] J03llV:
Every time i pull the twrp. It goes way over 100% even over 400%

Do I wait or..?

C:\> adb pull -p /sdcard/twrp.tar

This command
[OnePlus 5 Guides, News, & Discussion] mooondark:
Don't worry, just wait. It happened to me too, and it worked anyway.
[OnePlus 5 Guides, News, & Discussion] J03llV:
ADB push of twrp.tar is so slow aswell. This update is taking forever..

Took me 1 hour to realize I didnt have write permission from twrp to the device so I had to reboot into twrp and get permission to push the file onto the SDCard, process is onwards as we speak.

Also adb push -p 'filename' doesnt work for me. I get bad file descriptor error. It works when i remove -p from the command
[OnePlus 5 Guides, News, & Discussion] J03llV:
Same happened to me, could u find the fix? Possible to restore sd.tar afterwards anyways?
[OnePlus 5 Guides, News, & Discussion] tiiash:
Hey, newbie in terms of flashing and rooting here.

I rooted my OP5 right after I got it and never touched it since. Wanted to learn more about that topic first and apply updates once I had more time and knowledge. Guess what, I'm still stuck on OOS 4.5.6, but want to change that now. From Posting #55 I learned that I should probably update to 4.5.15 before following this tutorial.

How would I best do that?

Can I directly flash that version in one step or are incremental updates required? Also, how exactly would I do such an update? From what I found out so far minor version updates seem to be quite easy (something like download zip, reboot, flash and done)?!

As I said, total newb to that topic, a dummy how-to guide or any hints on where to read more would be much appreciated. The amount of information to be found on xda is amazing, but can sometimes be a bit daunting :D.
[OnePlus 5 Guides, News, & Discussion] xCoolBreezex:
same thing is happening to me...sitting at 250% now. Weird.

* lol 651%. bout to call off the operation. :(

Whew, finished at 741%.
[OnePlus 5 Guides, News, & Discussion] xCoolBreezex:
Alright, it was a tough test for my noob self but I managed to get everything squared away. Thanks for much for putting the guide together! I followed every step to a T and everything worked out well.

One minor issue, after everything, I DL'd the TWRP app and let it install, as mentioned, and I seem to be unable to mount data and or see any of my files etc. Can you let me know your thoughts on this item in particular?

Overall, amazing job. Thanks again.

---------

Disregard, reflashed codeworkx TWRP and back in business.
[OnePlus 5 Guides, News, & Discussion] SonicSamZ:
Followed exactly and worked as expected. No issues. Thank you so much :).
[OnePlus 5 Guides, News, & Discussion] T0mm450:
Hi, wouldn't it be simpler and quicker to just revert back to stock and update with otas to oreo and then apply root and custom recovery?

By "revert back to stock" I mean to flash original recovery and the original system partition. If this is possible, can someone point out the necessary steps involved?
[OnePlus 5 Guides, News, & Discussion] c_belda:
I did it both ways, following the guide and with a clean install and restoring with titanium backup, both ways a lot of apps keep crashing, so I'm back to Nougat
[OnePlus 5 Guides, News, & Discussion] L0GYKAL:
Hello, is it normal that after I did this update my NFC doesn't work anymore, so I'm wondering if it's like for the wifi and the finger print.

Thank you for this guide and your attention.
[OnePlus 5 Guides, News, & Discussion] thx1200:
Thanks for this guide. It worked great for me.

I am having an issue and I'm not sure if it's related to the steps in this guide or if it's just a bug in OnePlus's Oreo, so I wanted to see if others have experienced this. Since upgrading to Oreo, if I use bluetooth headphones or bluetooth to my car, the audio cuts out briefly about once every five minutes. This never happened in Nougat. Is anybody else experiencing a symptom like this since upgrading?

When I did the upgrade, I noticed all my Bluetooth pairings came with it. So I'm assuming the app data that I restored contain the Nougat bluetooth configs. I have tried unpairing and repairing without success, but I'm wondering is there a way to completely clear out the bluetooth configuration as a test to see if that helps? Maybe something leftover from Nougat is causing me an issue. Thanks!
[OnePlus 5 Guides, News, & Discussion] L0GYKAL:
Hello, Bluetooth and NFC don't work well for me too, could you try your NFC to tell me if it works please?;)
[OnePlus 5 Guides, News, & Discussion] thx1200:
I don't use NFC much, but I do use it to get my company's WIFI password when it changes. I just tried it and it works. At first I thought there was an issue, but I wasn't tapping the right spot of my phone to the tag (no different than before upgrading to Oreo).

What are your symptoms for your two issues?

I opened a case with OnePlus for the Bluetooth and they kept saying "try hard reset" which is pretty ridiculous without doing any troubleshooting, but I finally wore them down and I am scheduling to a time to work with them to troubleshoot.
[OnePlus 5 Guides, News, & Discussion] L0GYKAL:
When I click on the NFC icon to activate it. It doesn't work, even when I'm in the settings, when I click to or three times on it, it start with the icon in notification but it is impossible to shut it down. But in the settings shortcut in notification, NFC isn't working and when I emulate a NFC card with NFC card emulator? , it shuts down and doesn't work.

Thx for your answer.