yashsingh1/xdaforums huggingface dataset:
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
If you're stock/rooted (TWRP),do NOT flash the incremental OTA,flash the full OTA .zip & Super SU/Magisk while still in TWRP,before booting into system & you'll be OK.

Failure to (re) flash root before booting into system will result in becoming unrooted w/stock recovery (no other loss of data/etc..),not a biggie,just re-install TWRP/root the next time you have access to a PC.

What happens when you flash an incremental OTA while rooted? IDK,but,from previous posts,it's not recommended & I don't care to find out the hard way......................

So,to update:

Boot to 1) TWRP > 2) Flash FULL OTA > 3) Flash SU of choice > 4) Reboot to System = PROFIT! :good:

Good Luck to all here w/the OP5 !

I just sold mine,on to the next new(ish) phone on the market,the Note FE................. :good:
[OnePlus 5 Guides, News, & Discussion] magicmaia:
It took me 2 weeks of reading and searching to install TWRP. The biggest problem was the max download size error. What finally worked was:

fastboot flash -S 256K recovery recovery.img

Never had this on my Nexus ( from this moment on demoted to kitchen device as recepy book and music player). Guess fastboot holds many more suprises I may encounter in the future...
[OnePlus 5 Guides, News, & Discussion] jsferra1:
Should this

Boot to 1) TWRP > 2) Flash OTA > 3)Flash SU of choice > 4) Reboot to System

Be changed to this ??

Boot to 1) TWRP > 2) Flash FULL OTA > 3) Flash SU of choice > 4) Reboot to System

It's minor but the FULL OTA is Key I would think
[OnePlus 5 Guides, News, & Discussion] 3DSammy:
I had the max download size error, as seen in the attached attempt, and ended up using a relative's PC to flash the TWRP image so was very interested in your command option change. Unfortunately this suggestion did not work for me on a Linux Mint v17 PC. Here are my results, which basically hung the terminal session but luckily did not damage the already installed recovery or system. Thanks for your suggestion as it may work for others.

Like you my abd/fastboot install has worked perfectly flashing my old Nexus 5 so I don't think that is the issue.
[OnePlus 5 Guides, News, & Discussion] Hetalk:
Backup everything to pc/pendrive/cloud.

Flash full oos zip.

Boot to fastboot.

Lock bootloader.

Phone will be same as what you received, except now it will have latest oos
[OnePlus 5 Guides, News, & Discussion] funkyirishman:
Ok with OTA I just update as and when available over the air but for this I would have to save it as a zip file and flash this?. Before rooting just checking all the niggle bits to be sure to be sure:silly:

Thanks
[OnePlus 5 Guides, News, & Discussion] Hetalk:
If you have custom recovery and/or rooted or using mods, you will not be able to flash those small incremental zip files. You need to download the full 1+gb oos zip and flash it. Then you need to reflash your recovery /rootzip/mod again
[OnePlus 5 Guides, News, & Discussion] KOLIOSIS:
You're absolutely correct:

Although I did mention it earlier in my post,clarity is indeed key & details do matter,big & small,thank you for pointing it out,you may have saved someone from a bad situation.

Go with the instructions given from me &/or the 2-3 posts after mine,they all state the same steps.

Update w/o root & stock recovery : incremental OTA is fine

Update w/TWRP ,with or without root,flash the full OTA .zip in TWRP recovery. [ 1) Boot to TWRP > 2) Flash FULL OTA > 3) Flash SU of choice > 4) Reboot to System ]
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Heads up .. Magisk V13.2 released and tested working ;)
[OnePlus 5 Guides, News, & Discussion] ChefChaudart:
no connection

Hello guys,

I´m block at very first stage :o As I have a new PC, i re-installed everything, but when I connect the phone in booloader, it is not seen by the explorer, Windows says "this device cannot start":eek:.

(I rebooted and tried different usb connectors.)

( Device manager says my driver is up to date )

Any clue :confused:
[OnePlus 5 Guides, News, & Discussion] Hetalk:
On bootloader screen, only fastboot commands should work.
[OnePlus 5 Guides, News, & Discussion] ChefChaudart:
Well, when I mention the device error, also no fastboot commands are working.
[OnePlus 5 Guides, News, & Discussion] fenstre:
Edit: Sorry, this has already been explained. I'll read the other posts.

Original question was:

Funk Wizard said here that it's not necessary. Everything works for me. I used Magisk I was even able to install busybox (definitely modified the system partition) without getting Android too upset. I had to do it manually, though--my favorite busybox installer failed. (Install to any place you can, like /data/local/tmp, check for the existence of /data/local/tmp/busybox, then run as root: "mount -o remount,rw /system" and "/data/local/tmp/busybox install -s /system/xbin" for the true installation.)
[OnePlus 5 Guides, News, & Discussion] Hetalk:
People have reported issues with usb 3.0 ports(normally blue colored)

Try a usb 2.0 port on your system, or try another system and report back.
[OnePlus 5 Guides, News, & Discussion] str8str:
I had the issue with us 3rd ports. I tried everything and only got messages like download size exceeded and can't recognize device and just doing nothing saying installing. This was trying to install TWRP. I have a newer computer with no U2 ports so I went to Best buy and got a USB 2 hub and everything flashed fine. After if hours of trying to get it to work. I now have a question though, I installed TWRP and no verify opt zip and magisk. Everything went fine but I forgot to wipe data to get unencrypted. So can I go back and format data in recovery or will it mess up things. And if I go back to recovery and format data should I reflash the no opt verify and magisk again or would that mess up things. Tia
[OnePlus 5 Guides, News, & Discussion] m0d:
On linux, all ports have same error:

fastboot flash recovery twrp-3.1.1-1.img
target reported max download size of 536870912 bytes
sending 'recovery' (24496 KB)...
FAILED (remote: Requested download size is more than max allowed
)
finished. total time: 0.001s

Tried all usb ports.

Never had this issue before
[OnePlus 5 Guides, News, & Discussion] str8str:
Per my above post you must use a USB 2 port. If your computer doesn't have one like mine then buy a USB hub for USB 2 then it will work. It's not just a Windows 10 issue it's a USB 3 Port issue it's too fast you must use USB port 2
[OnePlus 5 Guides, News, & Discussion] m0d:
If that is true it is just Plain Stupid.

Also, means serious flaw in code.

Something wrong that needs to be fixed.
[OnePlus 5 Guides, News, & Discussion] str8str:
Ya one plus 3 3t had similar but with the drivers but it's easy enough to do took me 2 minutes after I got the hub
[OnePlus 5 Guides, News, & Discussion] dansou901:
I would start with a quick test if it is able to boot up correctly, my sim card works and so on... After that, I would reboot to bootloader mode and unlock.
[OnePlus 5 Guides, News, & Discussion] cultofluna:
No you don't miss something...

If you're planning to install twrp & root ..unlock your bootloader before you setup your phone...

Twrp should be out soon....
[OnePlus 5 Guides, News, & Discussion] Anagh Khandelwal:
Hey, Did you unlocked the bootloader?

My OP5 is coming this Sunday, and I'm thinking of doing the same, just wanna know that if everything went smoothly with you before start tinkering with my new beast..

Oh, and coming from my beloved Nexus 5, rooted first day first things, so this should bring some memories..:)
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
My Device would also drop by Saturday evening so everything would be tested and confirmed ;)
[OnePlus 5 Guides, News, & Discussion] SlyUK:
If one has an Apple Mac computer, would it be advisable to use Windows via BootCamp or Parallels/ VMWare to achieve what has been outlined in the OP ?
[OnePlus 5 Guides, News, & Discussion] rav101:
I go via bootcamp but I guess either should work well enough for basic stuff like android ADB commands etc.
[OnePlus 5 Guides, News, & Discussion] nawazads:
Thanks for compiling it in one thread. Gonna unlock bootloader before i install any apps then wait for twrp.
[OnePlus 5 Guides, News, & Discussion] c_86:
Who's working on twrp I'm able to test builds if needed
[OnePlus 5 Guides, News, & Discussion] Dns94:
Do I have to unlock bootloader before rooting? I have only had my Samsung Galaxy S5 and I have not needed to unlock anything before?
[OnePlus 5 Guides, News, & Discussion] hibby50:
FWIW you can unlock the phone, wipe everything, and have it set up for TWRP installation without having to wipe again. That's what I did.
[OnePlus 5 Guides, News, & Discussion] munchy_cool:
you can do it on Mac directly.
[OnePlus 5 Guides, News, & Discussion] Christophhhhh:
Hey, just got my OnePlus 5 yesterday and I love it, my first Oneplus device and no complaints yet! The only thing I want to change is the emoji from those horrible Android ones to the iOS style. Could someone please let me know how? ? do I just need to unlock the bootloader on my device and then change the emoji file on the device? The less invasive method the best. Thanks in advance!! ?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
You can try SwiftKey keyboard, it supports a lot of emojis

Sent from Funk Tuned 3T
[OnePlus 5 Guides, News, & Discussion] TwinAdk:
Obtain root and use Emoji Switcher from Play Store - thats what ive been using for ages, its perfect!

Kind Regards
[OnePlus 5 Guides, News, & Discussion] rav101:
Is root available yet? I know it would only be a matter of a couple of days if not but I thought we need twrp before we can root the device?
[OnePlus 5 Guides, News, & Discussion] Funk Wizard:
Not yet, waiting for compatible TWRP

Sent from Funk Tuned 3T
[OnePlus 5 Guides, News, & Discussion] SlyUK:
The same instructions outlined, you can do in Mac OS ?
[OnePlus 5 Guides, News, & Discussion] huaiyue:
http://www.oneplusbbs.com/thread-3516620-1-1.html
[OnePlus 5 Guides, News, & Discussion] huaiyue:
done
[OnePlus 5 Guides, News, & Discussion] IamAlexD:
It's easy to unlock the bootloader of one plus devices as all run on OxygenOs which is very close to stock.Similar steps to Nexus and Pixel devices to unlock the bootloader.

Source
[OnePlus 5 Guides, News, & Discussion] m0d:
Dev thinks it is an issue with bootloader: https://xdaforums.com/showpost.php?p=72793941&postcount=268

It should not take more than a few seconds.

Weird, that you need do downgrade usb hub for new device, while usb3 works for all other including olser devices, though.

There is also a fix apparently on android-tools:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759611#10

Hmmm?¡¿
[OnePlus 5 Guides, News, & Discussion] laupuy:
Hi,

take a look here: https://xdaforums.com/showpost.php?p=73012053&postcount=563

fastboot flash -S 256K recovery recovery.img

credit [MENTION=6420933]magicmaia[/MENTION]

@+
[OnePlus 5 Guides, News, & Discussion] ChefChaudart:
it works on my (very) old PC on USB2 :laugh: but, ironically, a got a pop-up message telling "Android interface can run faster on USB3" :p:)
[OnePlus 5 Guides, News, & Discussion] m0d:
Still does not work.

Invalid sparse file format at header magi
sending sparse 'recovery' 1/98 (252 KB)...

UPDATE:

Definately USB3 issue, connected to an old linux pc which has usb2 port and it flashed fine.

Seems like description here explains the issue:

[ https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759611#10 ]

Changes needed to usb_linux.c

diff -ur android-tools-4.2.2+git20130529/core/adb/usb_linux.c android-tools-local/core/adb/usb_linux.c
--- android-tools-4.2.2+git20130529/core/adb/usb_linux.c	2013-05-30 06:16:54.000000000 +1000
+++ android-tools-local/core/adb/usb_linux.c	2014-08-29 13:57:08.063089767 +1000
@@ -137,6 +137,7 @@
DIR *busdir , *devdir ;
struct dirent *de;
int fd ;
+ int is_usb3;

busdir = opendir(base);
if(busdir == 0) return;
@@ -195,6 +196,7 @@
vid = device->idVendor;
pid = device->idProduct;
DBGX("[ %s is V:%04x P:%04x ]\n", devname, vid, pid);
+ is_usb3 = device->bcdUSB == 0x0300;

// should have config descriptor next
config = (struct usb_config_descriptor *)bufptr;
@@ -237,8 +239,12 @@
// looks like ADB...
ep1 = (struct usb_endpoint_descriptor *)bufptr;
bufptr += USB_DT_ENDPOINT_SIZE;
+ if (is_usb3 && bufptr[1] == USB_DT_SS_ENDPOINT_COMP)
+ bufptr += USB_DT_SS_EP_COMP_SIZE;
ep2 = (struct usb_endpoint_descriptor *)bufptr;
bufptr += USB_DT_ENDPOINT_SIZE;
+ if (is_usb3 && bufptr[1] == USB_DT_SS_ENDPOINT_COMP)
+ bufptr += USB_DT_SS_EP_COMP_SIZE;

if (bufptr > devdesc + desclength ||
ep1->bLength != USB_DT_ENDPOINT_SIZE ||
diff -ur android-tools-4.2.2+git20130529/core/fastboot/usb_linux.c android-tools-local/core/fastboot/usb_linux.c
--- android-tools-4.2.2+git20130529/core/fastboot/usb_linux.c	2013-05-30 06:16:54.000000000 +1000
+++ android-tools-local/core/fastboot/usb_linux.c	2014-08-29 14:03:41.189491186 +1000
@@ -217,6 +217,11 @@
len -= ept->bLength;
ptr += ept->bLength;

+ if (check(ptr, len, USB_DT_SS_ENDPOINT_COMP, USB_DT_SS_EP_COMP_SIZE ) == 0) {
+ len -= USB_DT_SS_EP_COMP_SIZE;
+ ptr += USB_DT_SS_EP_COMP_SIZE;
+ }
+
if((ept->bmAttributes & 0x03) != 0x02)
continue;

How come code not pushed upstream to main repos?

I guess most bootloaders have patched usb3 on their sides
[OnePlus 5 Guides, News, & Discussion] snowwolf725:
After more than 1x times of trial and error, I've finally found out how to decrypt data on stock OOS.

Decrypt Data on stock OOS

1. Go to “Wipe” section, tap “Format Data”, and type “yes”

2. Transfer no_verity_op5.zip to the device over MTP

3. Go to “Install” section, select no_verity_op5.zip, and swipe to confirm the flash

Decrypt data with magisk installed

[Youtube]4F51plTk3xg[/YouTube]
[OnePlus 5 Guides, News, & Discussion] mchibaa:
#586

Hi Guys,

Im new in OnePlus and newbie.

I would like to ask/clarify these questions:

1) If my device is unlocked and have custom recovery (TWRP), can I still download and install OTA from settings or do I need to flash it every time?

2) If I want to go back to stock, I think I should just flash the stock OS but dont know how to go to stock recovery. Will be the steps are easy?

TIA!
[OnePlus 5 Guides, News, & Discussion] Nick James:
I'm also trying to find this out however, I'd like to keep TWRP but run OOS encrypted w/Magisk-- does anyone know if this is possible? Do I just flash 4.5.5 with TWRP? Do I need Gapps?

I wonder if I can flash Oxygen recovery, then Oxygen and then custom recovery and Magisk? Hmmm.. Might have to try it.

[MENTION=8414952]mchibaa[/MENTION] -> OnePlus has a very helpful guide that includes their OS, Recovery and instructions:

http://downloads.oneplus.net/oneplus-5/oneplus_5_oxygenos_4.5.5/
[OnePlus 5 Guides, News, & Discussion] Hetalk:
If your device has an unlocked bootloader, you can still get OTAs.

But, if you flash twrp or root, otas will fail. You need to download the full oxygenos zip 1+gb file and flash from twrp.

Once you do that you'll lose twrp and any other stuff you flashed (root, mods, etc).

You need to flash them again.
[OnePlus 5 Guides, News, & Discussion] mchibaa:
Thanks for your input.

Does it mean, every time I flash updated version of OOS for instance, it will automatically go to stock recovery and twrp and root will be removed? Then, if I still want TWRP and root, I need to flash twrp and root again?
[OnePlus 5 Guides, News, & Discussion] mipirakas:
No, you can keep twrp by simply rebooting into recovery after you flashed OOS update and root. Then you can reboot into system. So yes, you need to flash root everytime again but you can keep twrp by rebooting into recovery before booting into system.
[OnePlus 5 Guides, News, & Discussion] kbocek:
I have a copy of SuperSU stored on my phone. For the last two updates I update the OS along *with* SuperSU in TWRP. This has maintained TWRP and avoids a reinstall.
[OnePlus 5 Guides, News, & Discussion] dzontra83:
My phone is currently decrypted, I have an aosp rom installed... How do I get back to stick rom? Just wipe everything and flash full 4.5.5 through TWRP? Tnx
[OnePlus 5 Guides, News, & Discussion] mazubo:
Hey guys, I'm having trouble locking bootloader. I get the error " FAILED (remote: flashing lock is not allowed)"

Any tips?
[OnePlus 5 Guides, News, & Discussion] zeyaan:
Hey guys anyone facing issues flashing any ROM including stock rim using TWRP both official and unofficial?

Each time I try to flash any ROM using any TWRP my phone either bootloop or shows a message "no os installed".

Any help will be appreciated.

Unlocked bootloader and decrypted using no verify its zip

---------- Post added at 11:18 AM ---------- Previous post was at 11:17 AM ----------

Hey guys anyone facing issues flashing any ROM including stock rim using TWRP both official and unofficial?

Each time I try to flash any ROM using any TWRP my phone either bootloop or shows a message "no os installed".

Any help will be appreciated.

Unlocked bootloader and decrypted using no verify its zip
[OnePlus 5 Guides, News, & Discussion] Hetalk:
Just wipe all (except internal) and flash latest oos zip. You'll be on stock.

Did you enable "OEM unlocking" under developer settings?

If that was done, try another usb port. People have reported issues with USB 3.0 ports .
[OnePlus 5 Guides, News, & Discussion] pratik_193:
[MENTION=6143932]Funk Wizard[/MENTION] - bro, what would be the best way to go back to stock kernel from a custom one? i tried flashing stock img file from twrp, but ended with only white LED & not booting into OS
[OnePlus 5 Guides, News, & Discussion] Hetalk:
Dirty flash rom is the right way if kernel does modify ramdisk.
[OnePlus 5 Guides, News, & Discussion] pratik_193:
Dirty flashing rom replaces the recovery too.. That's another effort in this process
[OnePlus 5 Guides, News, & Discussion] Hetalk:
... and it removes root and any other mod as well.
[OnePlus 5 Guides, News, & Discussion] cookie1953:
Hi - I'm trying to do a Nandroid backup and getting the following error "Can not create '/data/media/0/TWRP' folder (Operation not permitted). Failed to make backup folder. - I'm using TWRP 3.1.1.1 on build ONEPLUSA5000_23_170703 any help would be gratefully accepted --- Thx
[OnePlus 5 Guides, News, & Discussion] str8str:
Just flash the stock boot IMG them kernel of choice. Then whatever root your using whether magisk or super su. Wipe caches and reboot. The reason you get the black screen and LED light is you didn't flash root after kernel

---------- Post added at 04:04 AM ---------- Previous post was at 04:03 AM ----------

Need more info
[OnePlus 5 Guides, News, & Discussion] srijanreddy98:
I have a question....if I flash twrp and then flash the stock recovery will I get the OTA?

P.s.: I only want to flash twrp for root access.
[OnePlus 5 Guides, News, & Discussion] cookie1953:
Its Ok I've sorted it now it was the Encryption that was stopping it -- decrypted when loading TWRP then it worked -- Thanks
[OnePlus 5 Guides, News, & Discussion] mchibaa:
Installing TWRP

Hi Guys,

I already unlocked my oneplus 5 :)

But I am having some concerns regarding flashing TWRP.

What does "do not restore data partition from backups" means?

"Additionally, DO NOT restore data backups if you want a working OOS. Use titanium backup or other backup solutions in the meanwhile."

TIA!
[OnePlus 5 Guides, News, & Discussion] atrix4nag:
I followed all the steps on page 1 till root and decrypting the phone., then Installed freedomOS ROM.

Now my internal storage is missing or something happened.

when I select TWRP>install >sdcard option, i only see 2 folders. Android and TWRP. all regular folders link download, music, data so on are missing.

when I select TWRP > wipe > advance wipe > internal storage > repair or change file system -- it says invalid partition selection.

when I select TWRP > wipe > advance wipe > data > repair or change file system -- it shows full 128 gb here.

if I try to download anyfile in chrome it says download failed due to missing sdcard.

Please help me how can I fix this? do you think installing a different ROM can fix this?
[OnePlus 5 Guides, News, & Discussion] DrBazinga:
Can I root using Magisk 13.3 instead of the version (13.0) you provided us with ?

Thanks
[OnePlus 5 Guides, News, & Discussion] monkeytools:
You need to fix permissions to sdcard. Google Update-sdcard.permissions.fix.update.zip something like that. Then flash it and it will fix your problem.
[OnePlus 5 Guides, News, & Discussion] atrix4nag:
I dont know what i did, but now everything is working normally..
[OnePlus 5 Guides, News, & Discussion] SimpsonGI:
messed up adb today

Edit #2: DOH!! Helps if I'm using the correct command, adb doesn't work in fastboot, fastboot does. I'm leaving this posted though as it may help out someone else in the future.

I've been a long time reader of these Forums haven't had the need to post before. I had my OnePlus5 rooted using TWRP and Magisk. I installed the latest OTA update today 4.5.6 and forgot to disable USB debugging before installing it. Of course the phone was unrooted with the installation, which I expected. However, what I didn't expect was now adb no longer works. I went to reflash the TWRP image so I could then flash Magisk to root the device again. Following the same procedures as before, and as posted in this thread, the adb devices command does not find my phone.

So, I've reinstalled the adb and fastboot files. Didn't help. I've checked in Windows device manager and haven't seen a device that has a yellow question mark needing a driver update. I've downloaded OOS 4.5.5 directly to the phone, turned off USB debugging and flashed it using the original recovery. I still am not able to get adb working. I had even tried a factory reset at one point hoping that would fix whatever had gotten messed up.

Any ideas or suggestions would be appreciated on how I can get TWRP recovery back onto my device. Once I get it back I should be able to wipe all of the partitions except the boot partition and then flash OOS 4.5.6 and start from scratch hopefully with adb working again.

I know, I probably shouldn't have installed the OTA update, I was able to install the previous ones without any issues but I had disabled USB debugging prior to the installation. I just had to reflash TWRP and Magisk. U

Thanks for reading this and offering any constructive help/advice.

(yes I've been searching this forum and many others for the past 10 hours or so trying to get this resolved)

Edit #1: ok I may have been having an idiot day today. I may have just figured it out so please don't be harsh on me just yet. I'll update here shortly. Thanks.
[OnePlus 5 Guides, News, & Discussion] doux_ws:
Meaning alI data (pics, games, etc) will be gone too? I'm new in flashing. I decided to go for OP5 from iPhone ?
[OnePlus 5 Guides, News, & Discussion] SimpsonGI:
OK, OK, definitely an IDIOT day. Doh!!! of course, I was in fastboot, so of course adb commands didn't work. I needed to use fastboot. Definitely learned my lesson. I'm only keeping this post here so that maybe someone else might learn from my mistake that wasted over 10 hours of my time.
[OnePlus 5 Guides, News, & Discussion] monkeytools:
Here is some info that maybe just issues with my op5 phone. Ok followed all the instructions on this thread, but had all kinds of issues with getting data decrypted. so looked around on google. Found that stock kernel wont let me decrypt my data. Had to flash a custom kernel. Then all was good. Yes i did flash the no-verity-opt-encrypt.zip but didnt work. funk wizard if you could maybe add that you will or you might haft to flash a custom kernel to decrypt data. Thanks for all your work on this thread and hope this may help someone having this problem.
[OnePlus 5 Guides, News, & Discussion] Kannan12:
Hey guys, I'm new to OnePlus. I unlocked BL, installed twrp and rooted (magisk) the phone successfully (did not decrypt). I have a problem, my device takes 25 minutes to reboot (not only on the first boot, but every time I reboot the phone) and gets really hot during the process. What have I done? Or what can I do to fix this?