yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 Guides, News, & Discussion] Dipinn Verma:
can you help me with this MTP issue I am having, my laptop recognized the device in fastboot and adb, did everything right as per your guide and phone is working perfectly, no dm-verity error, but laptop can't recognize phone in MTP mode, any suggestions? :confused:
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Look into this thread: https://xdaforums.com/oneplus-3/help/help-problem-connecting-op3-to-computer-t3403991

They have a number of solutions in it.

I hope it helps!
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Guys, try the following sites:

https://www.androidexplained.com/fix-cannot-read-sideload-update/

https://www.reddit.com/r/oneplus/comments/504qgv/adb_cannot_read_error/

https://forums.oneplus.net/threads/cannot-read-ota-zip.457965/

https://xdaforums.com/showthread.php?t=1990405

Please, let me know which one worked for you. Thank you!
[OnePlus 3 Guides, News, & Discussion] ozzyville:
Perfect, very detailed and precise. Saved my phone. Thanks a lot.
[OnePlus 3 Guides, News, & Discussion] Adam88s:
Hi dbabae thanks for the comments, unfortunately I have tried both and neither have worked.

So I'm currently on 3.2.8 and received the latest OTA but the installation keeps failing. I'm also still getting the "** cannot read error" when sideloading.

Any other suggestions? I'm at a bit of a loss. Thanks
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Try the following sites:

https://www.androidexplained.com/fix...deload-update/

https://www.reddit.com/r/oneplus/com...ot_read_error/

https://forums.oneplus.net/threads/c...ta-zip.457965/

https://xdaforums.com/sho....php?t=1990405

Please, let me know which one worked for you. Thank you!
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Thank you very much!

I'm happy that it did help you.

If you have issues in the future, come back here and see what you can find.

I'll keep updating the thread each time there is something new.
[OnePlus 3 Guides, News, & Discussion] Adam88s:
Yes I saw your previous post with that suggestion so I have tried it already.

I was able to install the latest OTA from internal storage (instead of adb sideload), so now I'm working through part B. I manage change my file system to f2fs, but it's still encrypted for some reason.

I have completed two factory resets but with the same result. And it's still on Android 7 after factory reset, is that normal?

A fun weekend of trying to sort my phone ahead :(
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Ok.

Good. It should be encrypted. Unless you have problems with encryption, then decrypted is the way to go.

leave it be. You already on F2FS and encrypted. You can go to Section C or Section D.
[OnePlus 3 Guides, News, & Discussion] Adam88s:
I'm back to getting the DM error on boot though. Is that a problem?
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Go over section A again.

Are you using official twrp v3.0.3-0 or blu_spark v14 or anything else?

It shouldn't be an issue if you don't use your phone for banking, in a corporation (pretty much sensitive information).

Otherwise, no.
[OnePlus 3 Guides, News, & Discussion] Adam88s:
Thanks for you help, will have a look again this evening.

Edit, I was using stock recovery, then official TWRP.
[OnePlus 3 Guides, News, & Discussion] netcitizen:
I was on OOS stock 4.0.1 and rooted. But when the 4.0.2 update came in without thinking much i hit upgrade and now stuck in TWRP and the DM- verity error in the boot screen. how to go back to 4.0.1 or flash 4.0.2 safely ? I am fine with losing all app data. But not the storage data like photos, videos. please suggest the options.
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
First of all, backup your personal data (photos, videos).

You will need to start at Section A in this guide, due to the dm-verity issue.

Just follow the instructions and you'll be alright.

OOS v4.0.2 is way stable than v4.0.1
[OnePlus 3 Guides, News, & Discussion] netcitizen:
ok let me go read the section .. thanks.

Actually I want to mention that when I reboot from twrp it reboots and then first the unlocked screen and then the DM-verity screen and then it reboots to TWRP only. It does not boot into the OS. So I am not sure how to back up stuff or the total internal storage is already wiped off ??

---------- Post added at 12:48 AM ---------- Previous post was at 12:08 AM ----------

i followed the instructions in OP section A. once I installed stock recovery and then rebooted. the system actually rebooted fine to 4.0.1 and all data intact. And the root is still in tact.

Wondering if i can dirty flash now. or at least flash with system, cache, dalvik cache wipe and not complete format..
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
I didn't test this, but yes. Make sure it's the full zip and not the small OTA file. Wipe system, cache and dalvik for dirty flash.

EDIT: it won't touch your personal data.
[OnePlus 3 Guides, News, & Discussion] netcitizen:
So if i follow Section D after the stock recovery part it would work right ? Actually now I have root with stock recovery itself.

Or should i flash TWRP via fastboot and then copy the full zip and supersu and then flash via twrp.

both would not touch my personal data right ??

Thanks
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Flash TWRP via fastboot and then copy the full zip. Dirty flash it.

Reboot to OS to see if everything is ok. If you are not rooted, then flash SuperSU.

It would not touch your personal data.
[OnePlus 3 Guides, News, & Discussion] netcitizen:
i tried the sideload option and when i try “adb sideload OnePlus3Oxygen_16_OTA_039_all_1701140133_89fcc9bab a94e4c.zip” it says that zip cannot be read.

and when I reboot am getting the dm-verity warning and then the phone boots normally. Is that ok ? or is that what preventing the sideload flash ???

in this case the twrp option flashing option would work fine or not ??
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Try this: https://xdaforums.com/showpost.php?p=48384182&postcount=15

OR without the ".zip"
[OnePlus 3 Guides, News, & Discussion] netcitizen:
This didn't work either. Wonder if DM-verity has something to do with this. Also I flashed twrp via fastboot. But once I open twrp am just stuck. Can't see internal storage in that. So I cannot flash the full OTA zip I copied to phone.

Wondering what are the options left :confused:
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
See FAQ #6 and #12 in this thread (dm-verity has nothing to do with it).

You'll need to wipe your data in stock recovery because you can't read your files. It's is encrypted by the system and TWRP.

Do the entire guide (sections A, B - in necessary and C or D).
[OnePlus 3 Guides, News, & Discussion] dinesh7208:
dude, can i ask something, im currently in OTA 4.0.2 locked, no recovery,and unroot

then i use this toolkit, to have recovery to try costum rom,

TOOLKIT

so now i have unlock bootloader successfully , and successfully flash twrp ( i thought ), and now when i try to get into recovery it just stuck at the twrp logo, i have read that it normally take more time to boot 1st time, but i have waited like half an hour. is it normal ? the whole time my phone is plugged into my pc ( will it affect something ? ) :(:( or i do something wrong

thanks dude

update :

1. after an hour of waiting and bored i forced shutdown the phone, and try to boot to system and, it boot just normally and i can use my phone, but can anyone provide a way for me to flash twrp properly ?

2. if i try to go to recovery again, it go to stock recovery not twrp ( did twrp not flashed properly ? )

help me guys :) thanks in advance:cool:
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
I apologize for not replying earlier. I wasn't near the computer.

Good job on unlocking bootloader!

Yeah, you wait a little longer (30-45 seconds tops) for the TWRP to successfully boot up. Try flashing stock recovery (provided in this guide).

Your phone being plugged to the PC, won't affect boot up time.

This is called TWRP boot loop. Flashing stock recovery should help.

I think you flashed the official twrp v3.0.3-0, then flash blu_spark's v14 twrp (provided in this guide).
[OnePlus 3 Guides, News, & Discussion] dinesh7208:
dude your response was fast, i wasnt panicking because i can normally boot into my phone, and when i try to boot to recovery it goes to stock recovery ( so i dont need to flash stock recovery again, do i ?

so i need to flash official twrp then flash blu_spark's v14 twrp in that manner ? ok i will try this 1st
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Nope.

Flash blu_spark v14 (not official) and see if it works. It should.
[OnePlus 3 Guides, News, & Discussion] dinesh7208:
bruh, thanks for the reply, works wonder, i can boot to twrp, now i want to install a costum rom ; but there is a notif says something about modification to system, should i swipe to yes or not ? ; i want to root btw
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Yeah, you should. Also, I choose not to show it in the future too.

For rooting, you did most of section D in the guide. Only flashing SuperSU left.

Make sure you flash SuperSU v2.79 Stable.

P.S. If you use SnapChat, look into FAQ #8 before rooting.
[OnePlus 3 Guides, News, & Discussion] dinesh7208:
So after i wipe data, dalvik and cache, flash rom, flash gapps and then flash root ?

Or should i flash root then reboot and after that flash my wanted cosrum.

Sorry for spamming in your tread bruh, i don't want to messed up in anyways
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
No worries. I'm always here to help.

Enter TWRP > Wipe “Dalvik / ART Cache”, “System”, “Data” and “Cache” for a clean flash (if you use SnapChat then dirty flash) > flash custom ROM

Reboot to OS and configure to your own taste

Go back to TWRP and flash SuperSU, then reboot to OS. Launch SuperSU app to see if you're rooted.

When you see that you're rooted, reboot to TWRP and flash OpenGApps.

Done. Enjoy!
[OnePlus 3 Guides, News, & Discussion] dinesh7208:
my problem is not over mate sorry, last reboot i have flashed twrp blu_spark successfully, and it boot just right to twrp. but now when i want to go back to recovery, it revert back to stock recovery, did i do something bad again ?

and for the step you mention, i swipe for allow modification when flash the rom or i swipe to allow only when i install root ? ( i read that if i allow modification something bad is going to happen if i dont do it right )
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Make sure developer mode is enabled. In it enable USB debugging and OEM unlocking.

Reflash blu_spark TWRP. I don't know why it keeps going back stock recovery.

Swipe to allow modifications and tick not to show this message in the future, when you boot to TWRP for the first time.
[OnePlus 3 Guides, News, & Discussion] Raainman:
I read this guide but I'm still not clear on how to approach this.

I'm on stock with oos 4.0.2 now. Can I just sideload twrp-3.0.3-0-oneplus3.img and su to root or do I really need to do the other steps too?

Ray
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
If you have unlocked bootloader, then yes.

Use Section D from #13.

That's all you need to do.

Make sure you're on F2FS file system (check in DiskInfo app).
[OnePlus 3 Guides, News, & Discussion] Raainman:
I have unlocked the bootloader, and tried to sideload TWRP 3.0.3, and this looked ok, but it will not boot into TWRP recovery. I am on F2FS filesystem.

What can I do best now ?
[OnePlus 3 Guides, News, & Discussion] netcitizen:
hmm..So i do not have any option but to completely format the phone??
[OnePlus 3 Guides, News, & Discussion] Nobody07:
Hey there,

I was wondering, I'm on oos 4.0.1 and want to update to 4.0.2. Can i just flash stock recovery and then apply OTA in system? Or sideload it?

Will i loose any data doing this ?

Kindest regards.
[OnePlus 3 Guides, News, & Discussion] netcitizen:
I tried the guides and did a complete format. But after that sideload did not work. Could not read zip. Then I flashed twrp via fastboot and then pushed the full rom zip and super su. Flashed the zips and reboot and am now on 4.0.2 now. But now the storage has become read only. How to change it to read - write mode so that I can copy files back. The DM-verity warning still comes up while booting up. The phone boots fine after that though.
[OnePlus 3 Guides, News, & Discussion] graz848:
Hello, sorry for the question, but I have been reading around this thread and the Internet for a while but still have some doubts and don't want to risk to brick my phone or to put myself in a difficult situation whatsoever.

I have the OP3 with 3.2.8 stock, plus TWRP and Root. I received the OTA notification but I know that being rooted I cannot simply click on "update" or I'll be in trouble.

What I want is just to upgrade to official OOS 4.0.2 with TWRP and root, as I am now. Can you kindly suggest me the simplest way to achieve this?

I would prefer not to factory reset, if possible, but if it's recommended then ok.

Thank you for any hint

Inviato dal mio ONEPLUS A3003 utilizzando Tapatalk
[OnePlus 3 Guides, News, & Discussion] rahulgarg-ge:
Thanks for the great post. Is there a way to get XPOSED working in FreedomOS. Looks like 2.2 doesnt support it :(
[OnePlus 3 Guides, News, & Discussion] ZiViky:
stuck

Hi,

I'm trying to follow this guide and I've stuck on step 12.

When I try to sideload OO4.0.2. zip file I get error cannot read file.. Please could you help me....
[OnePlus 3 Guides, News, & Discussion] mr-cook:
You need to put the full extension to the file (ie... Home/john_doe/Android/oneplus...)
[OnePlus 3 Guides, News, & Discussion] ZiViky:
Hi, Thank you. I have .zip in adb folder. I've tried with full path and same error : cannot read :(

I've even tried to download file 2nd time and same error.
[OnePlus 3 Guides, News, & Discussion] mr-cook:
I just do it by typing in the command- "adb sideload" then a space, then just drag the file into the command box to make sure I have the exact directory. (This in linux, but should work the same on Windows I would think).
[OnePlus 3 Guides, News, & Discussion] ZiViky:
Hi,

still same error.

When I write adb devices I get device name... so it is strange that I get read errror.

My reason to go through tutorial is that I have dm-verity error on 4.0.0.
[OnePlus 3 Guides, News, & Discussion] rahulgarg-ge:
I had the same problem but not able to find fix for it. I was on 4.0.1 so did a clean wipe from stock recovery and normal upgrade which changed the file system. After this I installed TWRP and FreedomOS
[OnePlus 3 Guides, News, & Discussion] ZiViky:
Hi, thank you. I've done exactly the same. Phone notified that there is update OTA incremental but it failed to install. Then system proposed downloading full OTA.

This went fine and dm-verity message disappeared. Then I've installed official TWRP and latest SU.

Now it is working fine.

Thank you
[OnePlus 3 Guides, News, & Discussion] luutuananh:
Don't know why but I need to install Ubuntu myself to successful sideload the zip, hence I can't do it on Windows. Now I get the dm-verify message no longer.

Only the 4.0.2 zip has the problem, other zips work fine on Windows.
[OnePlus 3 Guides, News, & Discussion] p2001j:
Oneplus 3T

Does this work for Oneplus 3T ?
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
SKIP
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Use a different TWRP. Blu_spark first and if it didn't work, use Unofficial.

Pretty much. Make sure to back up personal data beforehand.

Yeah, but sideload it. I think it won't touch your data. It might break your root.

Back up your data before giving it a try.

Read FAQ #5 for dm-verity issue and FAQ #17 for (cannot read "image.zip").

The storage in read mode only, probably due to encryption. Use a different TWRP (v15 blu_spark or Unofficial) and decrypt your data. Follow Section B.

Follow Section D. Reflash stock recovery, sideload the full (1.4Gb) OTA, boot to OS, reflash TWRP and root.

It will not touch your data.

I hope everything goes smooth.

It's not yet supported for Nougat. We will all know when it comes out.

If you want to use it, roll back to OOS v3.2.8

Read FAQ #4 and #17.

Thank you for trying to help! I appreciate it!

Read FAQ #4 and #17. And redownload again (updated to official OnePlus website download page).

Thank you for trying to help! I appreciate it!

See FAQ #5 for dm-verity error.

Read FAQ #4 and #17.

Awesome! Good to know!

Good to know that it works in Ubuntu.

Read FAQ #4 and #17.

Yes, read "DISCLAIMER & IMPORTANT" Section.
[OnePlus 3 Guides, News, & Discussion] TNSMANI:
[MENTION=7974614]dbabaev21[/MENTION]

FAQ #5 needs to be updated. Only one command ie. the 'enable' command needs to be executed.

Tested and working fine.
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
Thank you!

I will update.
[OnePlus 3 Guides, News, & Discussion] Raainman:
I went for 3.0.4-0 (not officially released yet)

I'm on stock OOS 4.0.2 with unlocked bootloader (double check if you have unlocked this under developer options)

First I copied chainfire super su to the phone

https://download.chainfire.eu/supersu-stable

Then went into fastboot (power down, and then volume up+power button) and I used fastboot to flash recovery from windows

fastboot flash recovery twrp-3.0.4-0-oneplus3.img

Then used the up/down keys to select recovery and went into TWRP (which worked this time) TWRP was able to decrypt without an issue using the pin I setup before.

Then installed the above downloaded supersu, and then rebooted.

SuperSU rebooted the phone an extra time (scary!) and then I ended up in a fully working encrypted and rooted OOS 4.0.2.
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
So, using Unreleased TWRP v3.0.4-0 solved your issue. Great!

I've read in here: https://xdaforums.com/oneplus-3/development/recovery-official-twrp-oneplus-3-3t-t3543391 , that people encountering issues with Nougat can use the unreleased version.
[OnePlus 3 Guides, News, & Discussion] bellasghi64:
I have a question, i followed the passages to delete dm verity until point 10. I'm already on 4.0.2, do i need to sideload it again to delete dm verity?
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
It will reset your OS.

But, if you're already on OOS v4.0.2, then read FAQ #5.

If it didn't work, then you'll have to flash OOS v4.0.2

Good luck!
[OnePlus 3 Guides, News, & Discussion] bellasghi64:
I'm already on stock recovery and the message didn't disappear, i even tried to type in fastboot: fastboot oem disable_dm_verity

fastboot oem enable_dm_verity, but it still didn't work. Do you think i need to go back to 4.0.1 and try to sideload 4.0.2?
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
You can try.

I suggest redoing Section A, and make sure to wipe your data (Backup your data beforehand).
[OnePlus 3 Guides, News, & Discussion] abalam:
You must type only fastboot oem disable_dm_verity and not both
[OnePlus 3 Guides, News, & Discussion] bellasghi64:
If i just flash again 4.0.2 over 4.0.2 what do you think is going to happen? Will it wipe everything or just do nothing?

---------- Post added at 09:20 PM ---------- Previous post was at 09:20 PM ----------

This still didn't work
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
If you just flash OOS v4.0.2, it will reinstall the OS (it won't touch your personal files).

I think it will not make the dm-verity issue to be gone.

Therefore, backup your data, go to stock recovery and wipe everything. Then, sideload OOS v4.0.2
[OnePlus 3 Guides, News, & Discussion] Explorer23:
No need for those complicated solutions including flashing a lot of stuff ... A better way of removing dm-verity error has been found. Just use a simple command "fastboot oem enable_dm_verity" and it's gone :)
[OnePlus 3 Guides, News, & Discussion] bellasghi64:
Ok, i'll try tomorrow ad i will let you know if it worked properly. Thank you!
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
You're correct, but he said that it didn't work for him.
[OnePlus 3 Guides, News, & Discussion] Explorer23:
My apologies, was too lazy to read older posts ...
[OnePlus 3 Guides, News, & Discussion] teknoman17:
Thank you, your guide was very helpful
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
No worries.

You're welcome!
[OnePlus 3 Guides, News, & Discussion] bellasghi64:
Thank you so much, it finally worked! Great job with this guide!
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
You're welcome!
[OnePlus 3 Guides, News, & Discussion] Nate_Lines:
Rooting Stock Nougat Without Wipe

Hello guys, I have updated my Oneplus 3 to Nougat and by doing so I have lost root privileges (I knew it would happen) and TWRP recovery (I had to flash the stock to update). If there any way of following this procedure without getting the dreaded DM-Verity error and without a full wipe?

Thanks in advance!
[OnePlus 3 Guides, News, & Discussion] dbabaev21:
You can go to section D (FLASHING AND ROOTING STOCK OOS OR UNROOT) and begin from #13.

Also, use Official Unreleased TWRP v3.0.4-0

Good luck!
[OnePlus 3 Guides, News, & Discussion] Nate_Lines:
Thanks!

Thank you very much, it worked!
[OnePlus 3 Guides, News, & Discussion] zerotre:
Thanks a lot for the guide, i'd the 3.2.6, i've followed the guide, installed stock recovery, sideloaded 4.0.2 checked the File system as f2fs, then i've fastboot load the TWRP 3.04-1, and voila', the DM_VERITY boot screen, how to resolve that?

in twrp i've allowed the modification, so i've triggered the dm-verity, so now it's normal to have this advice? I'm rooted now and the system seems ok, i've read that i've to decrypt the data to put the dm advice off, but if all works normal it's safe to leave the dm-verity triggered? Also my bank app works normal...

thanks again
[OnePlus 3 Guides, News, & Discussion] Stefa.:
Thanks [MENTION=7974614]dbabaev21[/MENTION] for this awesome work! This is exactly the type of guide I was looking for in the last three weeks in order to make once for all things clear :o

All this encryption & and /data format are new to me and I was not able to find something that explained this relations beetween this things and the "daily flashing" things until today! Very thanks for your hard work, awesome, really awesome :highfive:

Just a question in order to see if now I have understood "how things works" with all this new features.

I have got a OnePlus 3T and my goal is, using MultiRom, to install FreedomOS as second ROM (I am starting from stock OxygenOS 4.0.2 with stock recovery).

The process is very clear to me because thanks to this guide I now perfectly know WHAT and HOW to do things.. what I am still minding is about "side effects" of things. For example, regarding encryption.. are operations like Recovery flashing or "second ROM flashing" going to have any impact on this?

My idea of "steps to follow" is:

0. Unlock bootloader

1. Unencrypt the phone (only because I know that MultiRom works only with unencryption) and change /data file format to "F2FS" [B - PROCEDURE (CHANGING FILE SYSTEM FORMAT AND ENCRYPTING OR DECRYPTING YOUR DEVICE) until step 7] because from what I understood Nougat requires/works better with this format

2. Flash custom TWRP recovery (Having performed step 1 it should be safe for me to "Swipe right to allow modifications" right? In this case I don' need any "no-verity-stuff" to flash right? :) )

[3. Root my first Rom flashing SuperSu (Only for my pleasure :D )]

4. Flash MultiRom (Doing this I should not lose the work done on step 1. right? )

5. Flash Second/Third Rom/s (Again, doing this I should not lose the work done on step 1. right?)

As you can see from my questions most of doubts are related to enryption and file formats :( With orther things I am familiar and in good relations :D

Thanks in adavance to all for any help!
[OnePlus 3 Guides, News, & Discussion] dante_nfs:
with oos 4.0.3 root is not working tried every super su version after clean flash. there is something wrong with it
[OnePlus 3 Guides, News, & Discussion] laupuy:
Hi,

it's ok for me

dirty flash (wipe cache, dalvik and system) over openbeta 11 with twrp by eng.stk v15 rom and supersu stable 2.79 but don't wipe cache/dalvik after su because I've lost twrp and su, need to fastboot twrp then flash su again

@+