yashsingh1/xdaforums huggingface dataset:
[OnePlus 3 & 3T Cross Device Development] mad-murdock:
quiet some questions. first of all, IF you can access phone storage while system is running, thats also okay then to do from within the system. only downside is, copying back to phone might proof tricky.

about pin not working, that happens if your restored pin is not the pin you used before. more detailed explanation and how to fix this with twrp is here. (I wish I'd get a beer for every time I link this)

TL;DR: If you just restore your system without booting a wiped system or the restored system has another pin the the last-used system, you dont run into trouble. if you do, its easy to fix.

about transfering back: small files take way longer than big files. once you reach your twrp backup, you are golden. but yeah, mtp isnt the fastest.
[OnePlus 3 & 3T Cross Device Development] soder:
Yeah, the folder Android is a *****. What's in there?

EDIT: There should be a way to do a nandroid of /sdcard direct to a computer... =)

/Söder
[OnePlus 3 & 3T Cross Device Development] jcadduono:
there is.

adb exec-out "tar c /sdcard 2>/dev/null" > sdcard.tar

gzip compressed:

adb exec-out "tar cz /sdcard 2>/dev/null" > sdcard.tar.gz

2>/dev/null is needed (inside the shell quotes) to suppress tar's warning output otherwise the tar is invalid.

adb exec-out redirects all std unmodified to stdout

this can only be done from in TWRP. if you're booted up your only option is adb pull /sdcard/

I tried `adb exec-out "tar ch /sdcard 2>/dev/null" > sdcard.tar` (h because /sdcard is a symlink) from OS but for whatever reason tar can only read a few files in my internal storage. Might just be that my OS's busybox tar is defective and maybe newer busybox will work.

`adb exec-out "su 0 tar c /data/media/0 2>/dev/null" > sdcard.tar` gives the same result in OS.

you should be able to restore it with:

adb exec-in tar x < sdcard.tar

you may want to wipe internal storage before trying to restore the tar, unless you want to combine new storage with old.
[OnePlus 3 & 3T Cross Device Development] soder:
Well, I'm done now, but great to know there was another way. BTW, now on boot up, it's like there automatic created stuff to /sdcard, and all the files I transfered back via TWRP are in /sdcard/0

What's the best way to move it back to normal?

EDIT: mv -r *.* /sdcard doesn't work....?

/Söder
[OnePlus 3 & 3T Cross Device Development] foxsprout:
Supposedly.. I believe no issue has ever reported when using 3.0.4-1. It's also my daily recovery and no issue so far. CMIIW
[OnePlus 3 & 3T Cross Device Development] bl3d2death:
when im on TWRP and reboot to TWRP it never works. the device always want to boot normally. could u fix this?
[OnePlus 3 & 3T Cross Device Development] :
Which device (3 or 3t), which os, which twrp ... ?

Please provide more details if you ask for help from the community
[OnePlus 3 & 3T Cross Device Development] bl3d2death:
Sorry... im on "Resurrection Remix [OP3/3T][April 16]" with latest TWRP ( 3.0.4-1) and using the 3T. But i have this issue with every ROM and since first TWRP version.
[OnePlus 3 & 3T Cross Device Development] core720:
Last oficial twrp-3.1.0-1-oneplus3t bugs????
[OnePlus 3 & 3T Cross Device Development] Midomad:
[emoji19]

https://xdaforums.com/showthread.php?p=71859904
[OnePlus 3 & 3T Cross Device Development] KostisTTT:
Rooting OP 3T OOS 3.5.4 (MM)

Hello, guys..

I just bought a new OP 3T (as my Nexus 5X died from the usual bootloop problem) and I would like to ask about the order of the steps for rooting the device with Magisk:

(Copying from the guide Post #1)

1. Extract/install adb & fastboot to your computer.

2. Download TWRP for OnePlus 3 & 3T (oneplus3). --- twrp-3.0.4-1-oneplus3.img (???)

3. In the ROM, Settings -> About device. Tap 7 times on Build number to enable Developer options.

4. Settings -> Developer options. (above About device, enable OEM unlock)

5. Reboot device into fastboot mode.

6. Unlock bootloader: run the command: "fastboot oem unlock"

7. Flash TWRP: "fastboot flash recovery twrp-3.0.4-1-oneplus3.img"

8. Boot to recovery

9. Swiping right, triggering dm-verity, enable modifications.

10. If your device asks for a password to mount internal storage, and your password doesn't work or you haven't set one, see below under known issues for a fix! (???)

11. Without exiting TWRP, transfer the latest dm-verity (no-verity-opt-encrypt-5.1.zip, ???) and forced encryption disabler zip. (Is this the same file ???) [I would like to disable the encryption]

After this point I dont know what to do.. (??)

Should I first Format Data, Boot to system and then Install Magisk OR

format data, install Magisk and finally reboot to system ?? (OR somethig else??)

Is this the point where I could choose ext4 partition file type (??) [I would like to choose ext4]

Sorry for the long post, but I am very confused with all this new info (Much harder than Nexus)

Thanks in advance..
[OnePlus 3 & 3T Cross Device Development] raj7749:
its actually very simple,

0. First check "Allow oem unlock" from developer option

1. boot to fastboot and unlock Bootloader using

fastboot oem unlock

then boot rom once (fastboot reboot)

2. boot to fastboot then

fastboot format userdata (this will decrypt) then

3. immediately flash twrp:

fastboot flash recovery twrp_3.0.41.img

without restart boot twrp:

fastboot boot twrp_3.0.4.1.img

4. Flash supersu 2.79 or magisk 12 (this will help in not encrypting the partition and for dm-verity)

5. good to go

if u dont want to decrypt skip step 2

if u want after step 3 u can change partition type (using twrp) to ext4 and then proceed to step 4
[OnePlus 3 & 3T Cross Device Development] Cainnub:
I have the RR ROM on my OP3 running, well, i had. Cuz it crashed and now due to encryption and a password i dont know to decrypt, my phone wont reboot. I can get into TWRP however, but... if i want to make a back up, i cant cuz well, the data is still encrypted so internal storage is at 0 mb but also any USB through OTG stays at 0 mb. Is there anyway to make a back up without having the decryption key through TWRP?

I forgot to mention the version of TWRP that im using: 3.0.2-1.

Btw, the password for decryption will most likely be the numbers of the paternlock i had. But instead of the 3x3 dots, i chose the 9x9 dots version for the paternlock. But i dont know the numbers which are assigned to the dots of the 9x9 version, so i cant get the right password.
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
You need to be either on 3.0.4-1 or higher if you are on Nougat, try updating twrp via fastboot and boot again to see it decrypts fine.
[OnePlus 3 & 3T Cross Device Development] Cainnub:
Thank you for your advice. I hope i still have Android debugging on .:angel:
[OnePlus 3 & 3T Cross Device Development] kessaras:
its all good. after that point you must flash oos 4.0.2 and disable dm-verity check.

then go ahead and update to the latest OOS.

if you already updated to the latest oos before disabling dm-verity check, downgrade to 4.0.2, disable it and update again.

now you can flash anything you want.

changing partition to ext4 is a choice. You choose if you want ext4 or not.

The same goes for encryption. If you format userdata you decrypt the phone. But don't forget after that to go into TWRP and fix/resize the data partition.

~EDIT:

Kosta, if you need anything else feel free to ask.

Also latest twrp for the 3T is 3.1.0.1 which is also fully working.
[OnePlus 3 & 3T Cross Device Development] Cainnub:
I just tried to install twrp through fastboot but right at the beginning, after the command "adb reboot bootloader"

I get this error: "error: device '(null)' not found"

Btw, i connected the phone while being in TWRP. When connected i didnt get any message that a device was connected. When i entered fastbootmode, i got a message that the phone was connected. But i still got that same error.

Does this means that Android debugging isnt turned on? And if so, is there any way to get my OP3 up and running again without losing all data?
[OnePlus 3 & 3T Cross Device Development] Rebel7022:
Yea if you want time call deleting your sd card during a flash, back up ,or restore fully working. Don't use 3101 use blu sparks twrp, thats the only one that works for me
[OnePlus 3 & 3T Cross Device Development] kessaras:
adb devices

and

fastboot devices

do those commands see your device ? if not , check the drivers you installed. If you see a yellow exclamation mark , remove those drivers and use other drivers.

~EDIT: i mean, thats a drivers issue not a phone issue.

and no. without the decryption key you cannot backup.

you can enter twrp without the decryption key ? then you are not really encrypted.

so, no key , no booting to twrp, no backup.

do fastboot erase userdata to remove the key , go into twrp fix/resize the data partition, reboot. you start from zero, you cannot backup and restore.
[OnePlus 3 & 3T Cross Device Development] Cainnub:
When i enter "fastboot devices" i get this: e8d0e4f fastboot
[OnePlus 3 & 3T Cross Device Development] Uumas:
That's your phone and it's in fastboot mode
[OnePlus 3 & 3T Cross Device Development] Cainnub:
Yes but why cant ADB find it on the command "adb reboot bootloader"?
[OnePlus 3 & 3T Cross Device Development] kessaras:
read again i edited to add info how to remove encryption key if thats your problem.

else tell us whats exactly the problem.

EDIT: and adb and fastboot are 2 different modes. you cannot use adb in fastboot and you cannot use fastboot while not booted into bootloader
[OnePlus 3 & 3T Cross Device Development] Uumas:
Because when you're in fastboot, adb commands don't work. Use "fastboot reboot-bootloader"
[OnePlus 3 & 3T Cross Device Development] kessaras:
no you cannot do anything without password. thats the main reason for the encryption key.

if you could enter and modify anything, then it would be useless :D

forget all your current data. kiss them bye bye and erase , fix the partition size and boot from scratch
[OnePlus 3 & 3T Cross Device Development] Cainnub:
:crying::crying::crying:

What do you mean with "fix the partition size"?

---------- Post added at 06:03 AM ---------- Previous post was at 06:02 AM ----------

If i do reboot bootloader, i get in the fastboot mode again. Nothing changes...
[OnePlus 3 & 3T Cross Device Development] kessaras:
when you will do

fastboot erase userdata

that command will wipe the whole data partition along with the partition table.

instead of searching of a way to find , download and flash a official rom not "OTA" or instead of searching for the .gpt partition file to flash it and fix the data partition , go into twrp and in advanced wipe menu you must resize/fix the size of the data partition. use default values dont mess with the partition table.
[OnePlus 3 & 3T Cross Device Development] Cainnub:
I have installed a new version of TWRP (3.1.0-0) on my OP3 just now, still encrypted ofc and still not able to make any back up too.

---------- Post added at 06:12 AM ---------- Previous post was at 06:09 AM ----------

I put that command in the ADB window?
[OnePlus 3 & 3T Cross Device Development] kessaras:
updating is good. but in op3 not 3T better flash the latest in the forum. since im on op3t and i saw a few pages back that 3.1.0.0 has issues , i recommend the latest offered by the OP.

and don't even think about it. kiss the data partition bye bye :D

Yes in fastboot mode

fastboot erase userdata
[OnePlus 3 & 3T Cross Device Development] Cainnub:
Ok thank you. I saw on the TW page that 3.1.0-0 is the latest version for OP3. So i guess that is good.
[OnePlus 3 & 3T Cross Device Development] kessaras:
no its not.

thats why op3t has 3.1.0.1 from blu spark.

a few pages back here in this thread i read that 3.1.0.0 has problems. an automatic update from TWRP is not always better than the one the developer has unless TWRP has merged the developers' fixes.

~EDIT: and sorry for the small mistakes. its 7am here and my english suck until i wake up for good haha
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
[MENTION=8219572]Cainnub[/MENTION]: All good now or do you need any assistance?
[OnePlus 3 & 3T Cross Device Development] Cainnub:
Yes, well depends on how you look at it. But i wiped my OP3 and now everything is working again. But i lost all my media ofc. Thx for asking though, you guys helped and learned me alot!:good:
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
Always take backup before you start anything and keep the learning curve open. Cheers [emoji106]
[OnePlus 3 & 3T Cross Device Development] arvindgr:
This needs to integrated along with TWRP backup options..
[OnePlus 3 & 3T Cross Device Development] _that:
These are commands you need to run on the host PC. How exactly should TWRP do that?
[OnePlus 3 & 3T Cross Device Development] Pumpino:
Is there someone who's responsible for uploading the dodgy version of TWRP 3.1 for the OP3 on the TWRP website? I'm amazed that it hasn't either been removed or patched.
[OnePlus 3 & 3T Cross Device Development] Anandhakrishnanr:
I'm on latest stock oxygen OS .. If I flash this TWRP, will I be able to upgrade through next official OTAs like I do now with oxygen OS recovery?
[OnePlus 3 & 3T Cross Device Development] kessaras:
yes and no.

yes you can download it and flash it

but you can't use and don't use the internal oos updater , in the rom.
[OnePlus 3 & 3T Cross Device Development] Suhaas:
Please tell me which twrp should i download. i have tried many twrp versions and none seem to work properly. I am on AEX 7.1.1. Also please provide me the link. I am facing problems flashing updates and the rom wont boot and all.
[OnePlus 3 & 3T Cross Device Development] kessaras:
rom has nothing to do with twrp.

twrp is merely something between the bootloader and the rom boot that help us interact and ... anyway backup , flash , whatever we wanna do.

latest for op3t is 3.1.0.1. america or europe its the same.

latest for op3 is the one from the op here. 3.1.0.0 has problems.
[OnePlus 3 & 3T Cross Device Development] lparcshinoda:
I've been using 3.1.0.0 on my OP3 for quite some time and never got any problem: can you please indicate what are you talking about?
[OnePlus 3 & 3T Cross Device Development] bartman350:
I just got a OnePlus 3T 128 GB black for evaluation. Did the OTA update to OxygenOS 4.1.3 and played around with it. Like it. Decision: I'll keep it.

Before I start bricking it: did anybody successfully unlock bootloader and root from stock OOS 4.1.3 ?

From what I've read there are some problems with Nougat. Maybe I shouldn't have installed it and it would have been better to stay at original OOS 3.5.4 as delivered?

I would use either "twrp-3.0.4-1-oneplus3.img" or "twrp-3.1.0-x_blu_spark_v26-op3_op3t.img"

SuperSU or Magisk? Which version?
[OnePlus 3 & 3T Cross Device Development] :
OOS or LineageOS or any other ROM?
[OnePlus 3 & 3T Cross Device Development] null0seven:
I got this from XDA Feed;
[OnePlus 3 & 3T Cross Device Development] guyd:
Yes, I was on Stock OOS 4.1.3 and unlocked/rooted successfully without issue.

I fastboot flashed TWRP 3.0.4-1 for the recovery.

I then formatted my data partition to get rid of encryption and changed the file system to ext4.

Lastly, I flashed a new 3/3T unified ROM (RR-N-v5.8.3-20170416-oneplus3-Official.zip) which uses Magisk v12 for root.
[OnePlus 3 & 3T Cross Device Development] lparcshinoda:
latest OOS beta
[OnePlus 3 & 3T Cross Device Development] :
If you're following the thread, you can recognize for the 3 that 3.1.0-0 is working fine with OOS but not with LineageOS (deleting data, ...).
[OnePlus 3 & 3T Cross Device Development] KostisTTT:
Mobile Data problem

Hello, guys...

I managed to root my Oneplus 3T with Magisk.

I am at OOS 3.5.4 (MM).

But now the problem is that I have problem with my mobile data.

There is no APN list and when choosing the ''+'' (Add) icon, I go back to the page with my Sim Card 1.

May is this a problem by flashing the ROM (I was at OOS 4. and I downgraded) ??

Should I flash it all again, or just a file(.img) of the ROM, or should I have a Factory Reset ??

Everything else work fine..

Edit (1): I can't send sms either..

Thanks in advance..

Edit (2): I did a factory reset and everything is normal...
[OnePlus 3 & 3T Cross Device Development] yannmrt:
For info, I have OP 3T with LOS and using TWRP 3.1.0.1 since this version came out and never had any problems
[OnePlus 3 & 3T Cross Device Development] Flint2:
Me neither, everything ok.

OP3T TWRP 3.1.0.1 Official

Everyday making twrp backups

Flashed every Resurrection Remix

Today restored OOS 4.1.0, flashed OOS Beta 5 and Magisk, tested and then restored Resurrection Remix.

So far no issues
[OnePlus 3 & 3T Cross Device Development] tfae:
The problem with 3.1.0-0 only affects 3T. That's why there's a 3.1.0-1 for 3T and not for the 3.

It has nothing to do with the ROM.
[OnePlus 3 & 3T Cross Device Development] :
Reading the thread and listening to user experiences will tell you something different, if I'm not wrong.
[OnePlus 3 & 3T Cross Device Development] tfae:
Maybe you're right.

I've been following this thread and it's the idea that I have about that matter.

But I'm not 100% sure since I own a 3T and not a 3 (with no problems with 3.1.0-1).

The thread is a bit confusing since the users forget to report what device they're using.
[OnePlus 3 & 3T Cross Device Development] Slimstakl:
New here and does anybody have a solution.... TWRP is being simulated, which would mean that no files are actually written. Try going into Settings in TWRP, uncheck the "Simulate actions" checkbox, and run the rom installation again. But the problem is that it automatically goes right back to the option of do you want to reset data after reboot.
[OnePlus 3 & 3T Cross Device Development] akashk07:
Version Suggestion?

Which version of TWRP should I use on my OP3T? 3.0.4-1 or 3.1.0-1? Which is best? and, by which method I should root? magisk or supersu? what are the advantages of magisk?
[OnePlus 3 & 3T Cross Device Development] Uumas:
I'd use 3.1.0-1. Magisk hides root and passes safetynet (Android pay, Pokemon go, Super Mario run etc.) SuperSU is in my experience more stable
[OnePlus 3 & 3T Cross Device Development] Funk Wizard:
I recommend you read about Magisk on the Magisk thread and decide according to your usage.

Both 3.0.4-1 and 3.1.0-1 work fine pick any the later being the latest.

Sent from Funk Tuned 3T
[OnePlus 3 & 3T Cross Device Development] akashk07:
Ok, so, android pay works with magisk? and, what are the other advantages of magisk? is it much complicated?
[OnePlus 3 & 3T Cross Device Development] Uumas:
Have a look here https://xdaforums.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
[OnePlus 3 & 3T Cross Device Development] akashk07:
Ok bro, but, I've read magisk thread but couldn't found the answers to my questions

---------- Post added at 12:40 PM ---------- Previous post was at 12:39 PM ----------

Ok, checking this thread again.
[OnePlus 3 & 3T Cross Device Development] Rishwan,t:
Guys I'm really sorry if this is discussed earlier but i need more clarity into this.

I have OP3t running stock OOS 4.1.3

It's not rooted and has stock recovery.

Now I get the point until Unlocking bootloader and flashing TWRP from fastboot (been doing it for years)

But the dm-verity issue is confusing.

After i install TWRP and swipe to allow modifications, can i just go backup stock rom, wipe and install my preferred custom rom? Or there's anything I'm missing here. Like should i flash dm-verity disabler?

I don't really care about encryption. Please explain the exact steps.

Thanks loads.
[OnePlus 3 & 3T Cross Device Development] Uumas:
dm-verity is only in stock rom. If you use stock rom and want to allow system modifications, you'll need to root or flash dm-verity disabler but if you flash custom rom right away, you don't need to worry about it.
[OnePlus 3 & 3T Cross Device Development] Rishwan,t:
Thanks for the help, I'm looking to flash freedom OS since it is technically based on stock OOS would there be any issue?
[OnePlus 3 & 3T Cross Device Development] Uumas:
AFAIK no
[OnePlus 3 & 3T Cross Device Development] akashk07:
How to Root?

I want to root my device by flashing TWRP. So, how should I root?

I'll unlock my bootloader first,

then I'll flash twrp,

Then I'll swipe right to confirm modifications,

what should I do next?

Should I flash magisk or DMVarity script?

What should be the steps?

and, will I get root by flashing Magisk only or do I need to do something else?

(I don't want to flash custom rom)
[OnePlus 3 & 3T Cross Device Development] Uumas:
Flash Magisk or SuperSU. Both will get you root and you'll not need dm-verity
[OnePlus 3 & 3T Cross Device Development] cloudx720:
Will this method stop the DM Verity warning from showing?
[OnePlus 3 & 3T Cross Device Development] Uumas:
No. It can be disabled by running fastboot oem enable_dm_verity
[OnePlus 3 & 3T Cross Device Development] cloudx720:
This only works on 4.0.2 firmware. How to avoid dm-verity on fresh stock beta14 oxygeos?
[OnePlus 3 & 3T Cross Device Development] Uumas:
Really? I don't know, because it never really bothered me enough to press the power button three times instead of twice while booting and have just been reading other people discussing about it.
[OnePlus 3 & 3T Cross Device Development] Rebel7022:
Just install twrp, swipe to allow mod, flash dm verity zip, flash magisk and BaM your rooted.
[OnePlus 3 & 3T Cross Device Development] Uumas:
You don't need the dm-verity zip
[OnePlus 3 & 3T Cross Device Development] Flint2:
Once dm-verity tripped, :

flash 4.0.2 firmware

reboot bootloader

fastboot oem disable_dm_verity

fastboot oem enable_dm_verity

reboot recovery

reflash firmware (or full rom including firmware)
[OnePlus 3 & 3T Cross Device Development] sakumaxp:
I have 3.1.0-1, in my opinion magisk is better than SuperSU, you can hide magisk and pass safety net (used for certain apps like Snapchat, Android pay, etc.) And it has modules you can install like V4A and the broadband wifi.
[OnePlus 3 & 3T Cross Device Development] akashk07:
Thanks bro. I've flashed magisk along with TWRP 3.1.0-1 and, what is wifi broadband module?
[OnePlus 3 & 3T Cross Device Development] AG469:
Hi, anyone can guide me to update my op3 to latest build? right now my op3 running on 3.2.8.. can i flash full zip 4.0.3 above or i need to flash to 4.0 first and then 4.0.3?

Thank you.
[OnePlus 3 & 3T Cross Device Development] laupuy:
Hi,

Wrong thread... The last OOS is 4.1.3, and you can update.

;)
[OnePlus 3 & 3T Cross Device Development] kessaras:
don't quote the op. you are flooding and spamming.

1. flash latest twrp from the op.

2. flash oos 4.0.2

3. flash disable dm-verity check

4. flash latest oos.

thats all. forget those otas that you quote there. Those are history. In your case you will use full rom otas not those that only contain the updated files.
[OnePlus 3 & 3T Cross Device Development] AG469:
Noted. Sorry for quote the op. Im quite new to xda and foruming. Okay, will follow your instruction and thank you so much for your help brother.:highfive: