yashsingh1/xdaforums huggingface dataset:
[OnePlus X General] fecfecfec:
Hello, I wanted to try the community build but stumble onto an error, when I tried to install the build from stock recovery my screen went to black (or the phone turned off) and when I try to boot i get stuck at logo. I could boot finally after a couple of reboots and booting to fastboot mode.

Im asking in this thread because I followed this guide, rooted my phone, put TWRP and try some roms. Then went back to stock (ROM, recovery and unroot) at least that´s what I think. Maybe I did something wrong in the reverse to stock process. I don´t think this error should happen If i done everything correctly.

What I did was, install stock recovery, then tried installing latest build (Android 5.1.1) that failed (same black screen error), so I booted into TWRP and flash stock ROM. I uninstall Super-Su manually because full unroot didn´t worked.

Any clues on where did I failed to return to stock ROM? Or is this black screen/turning off error related to that?
[OnePlus X General] Mutchatcho:
Thank you for this Guide! :good:
[OnePlus X General] fecfecfec:
Manage to "fix" my problem. I'm making note just if someone else has the same problem.

I manage to install the community build from Stock Recovery but sideloading it via adb (adb sideload filename.zip)
[OnePlus X General] the Doctor:
Links in OP updated.
[OnePlus X General] the Doctor:
Would someone kindly try rooting the new official O2 3.1.2 Marshmallow release following this guide and let me know if anything needs to change? I don't own the device.

Cheers!
[OnePlus X General] ferossan:
Coming from unrooted 2.2.3 followed the guide, after the install 3.1.2 I was not able to install TRWP (the one of the guide), also did try with the blu_spark.v41 and same results . It appears installed after the fastboot command, but when booting on recovery, the stock recovery is still there. My guess is a incompatible TWRP, but can't be sure.

And yes, my bootloader is unlocked:

$ sudo fastboot oem device-info

...

(bootloader)	Device tampered: false

(bootloader)	Device unlocked: true

(bootloader)	Charger screen enabled: false

(bootloader)	Display panel:

(bootloader)	console_enabled: 0

(bootloader)	exec_console_unconsole: 0

OKAY [ 0.006s]

finished. total time: 0.006s

UPDATE: finally got to boot on blu_spark.v41 recovery. Did it forcing boot the recovery by:

$ sudo fastboot boot twrp-3.0.2-2_blu_spark.v41-onyx_by-engstk.img

Then the custom recovery worked, flashed supersu and everything works.
[OnePlus X General] AmmyG:
struck in boot screen

I am having one plus x with oxygen 3.1.2 or i guess 3.1.3 . i followed these procedures correctly and ended up with a boot screen going no where forward. i dont know what went wrong. is there any way out now?
[OnePlus X General] Kéno40:
Be more precise on what you've done.

How do you know you are on 3.1 ?
[OnePlus X General] AmmyG:
I updated it few days back. MM for one plus x. I was trying to flash twrp. N tried it with few versions of it but could not succeed. When command is given to boot twrp it gives some error (remote: dbd not found). Phone is Not getting booted manually and Now suddenly it got struck. But still able to go to fastboot mode

updated: new development

succsefully flashed the twrp-3.0.2-2_bluspark.v41-onyx_by-engstk.img

booted in custom recovery. flashed supersu

but after that again phone strucks in one plus logo. does not boot ahead.
[OnePlus X General] Kéno40:
You need to use a oos 3 modded superSu too.
[OnePlus X General] the Doctor:
FYI, the OP has been updated to include root for OxygenOS 3.1.3:

TWRP blu_sp★rk r175

SuperSU v2.78 SR1 beta

Again, I don't presently own this device. If anything needs to be updated/changed, please let me know.

TIA
[OnePlus X General] nitheshg:
SuperSU v2. 78 SR1 Beta is resulting in bootloop.
[OnePlus X General] Thulium`:
Hi guys,

I have updated my phone using stock recovery to OOS3.1.3, and now I wish to root my phone. However, when trying to load the twrp (the safe way, like I did with OOS2.x.x, with fastboot boot image.img) it doesn't continue.

It keeps showing the 'Fastboot mode' page. Shutting it down and restarting it works just fine, it also boots and works. But I can't get TWRP working.

Am I doing something wrong? Or is this a glitch in the Matrix/Disturbance in the Force?

EDIT: It was a Disturbance in the Force, when I charged the device further, it did start TWRP. Now to fix the boot-loop after installing SuperSU :)

Thanks!
[OnePlus X General] RedNas74:
Use this modified supersu Version.

https://www.androidfilehost.com/?fid=24591000424961865
[OnePlus X General] Nagesh_Noddy:
Type the following command:

adb devices

Got reply from this, but

fastboot devices

It is not detecting device tho screen is on Fastboot Mode :confused:
[OnePlus X General] prateekkaura:
A big Thank You!!!! :angel:

I tried various versions of SuperSU but this one finally worked for OS 3.1.3 :good:
[OnePlus X General] Thulium`:
Confirmed working! :)
[OnePlus X General] lokesh krishna:
Rsa finger print dialog box is not appearing when I did debugging

:rolleyes:please help!!!!
[OnePlus X General] Bonwick:
While unlocking the bootloader it didn't ask for confirmation

I rebooted the device after adb said it was done and it didn't wipe my phone clean; checked with "fastboot device oem-info" and Device unlocked is set to true. So is it safe to say that the bootloader was succefully unlocked?
[OnePlus X General] PoloB49:
Thank you ! :D
[OnePlus X General] the Doctor:
OP updated, thanks :good:
[OnePlus X General] Doubleyou:
Can anyone be more helpful and provide a video on YouTube to root the device. I'm receiving my device tomorrow and want to root it, as soon as I have it and I don't want to risk my device to boot loop, as there will not be much support available right now. Your help will be very much appreciated :)
[OnePlus X General] the Doctor:
The OP has been revised to include a full rooting guide now.
[OnePlus X General] rockuppl:
why to flash TWRP permanently ? When you can boot twrp easily, flash super su........ n it's rooted.

Once OPX is rooted you can backup recovery easily from various after market softwares(Flashify)

"Fastboot boot twrp.img "

:D
[OnePlus X General] CamoGeko:
Root already available? Sweet!
[OnePlus X General] Chrissanto_U:
Thanks for porting the TWRP for the Oneplus X, I successfully Installed TWRP on my Oneplus X

2 things I'll always do when TWRP ready:

- ROOT

- Flash AdBlocker, I ussualy use Mother of AdBlocking

But I have a concern, I heard in some threads that TWRP 2.8.7.0 cannot install modem driver correctly, so I assume this will be dangerous if I want to flash Custom Rom (if available already) on my Oneplus X?

[IMG="Oneplus X TWRP 2.8.7.0"]https://goo.gl/photos/x4W26mVF6cMbkC3QA[/IMG]
[OnePlus X General] the Doctor:
A valid point!
[OnePlus X General] the Doctor:
No custom ROMs are available yet, so it's not a worry. In any case, hopefully we'll have official TWRP soon.
[OnePlus X General] CamoGeko:
We will probably have CM available soon too.
[OnePlus X General] mjose:
Need help for OTA

Hi guys, Booted with twrp and rooted. Retained stock recovery. Today got an OTA of 17MB. First unrooted and then updated. But the update failed in stock recovery. Is there any method to update OTA. I am sharing the OTA file and the recover log here.

OnePlusOxygen_14_OTA_003-004_patch_201511031712.zip

http://www6.zippyshare.com/v/AawaFnin/file.html
[OnePlus X General] Savya:
well it failed it custom recovery too. Still waiting for a response from anyone
[OnePlus X General] Chrissanto_U:
Aaah, you got the point, I forgot about it, so this method will replace my Stock Recovery with TWRP, and I haven't backup the Stock Recovery yet

So, if I want to go back to Stock Recovery?what should I do?

And if there is an official TWRP released, I just need to reflash the new img in fastboot mode?
[OnePlus X General] CamoGeko:
At some point someone will create a backup of the stock recovery image.
[OnePlus X General] rockuppl:
Dude what i am trying to say is this :-

Two commands are there to boot into recovery

1) fastboot flash recovery twrp.img

This fastboot command overwrite your stock recovery permanently with new twrp. No way you can go back to your stock recovery unless you have a backup of it.

2) fastboot boot twrp.img

This fastboot command will load recovery only for the first boot, you will still have a stock recovery as your permanent.

Whole point is to get ROOT ACCESS and by just temporarily booting twrp only for one time you can take a NANDROID backup as well as flash SUPER SU, now when you reboot your system , you will have root access>>Download Flashify from play store >>Backup stock recovery with that .

WITHOUT FLASHING TWRP PERMANENTLY YOU WILL GET ROOT ACCESS, NEXT TIME YOU WILL BOOT INTO RECOVERY YOU WILL FIND STOCK RECOVERY ONLY

:D :D

---------- Post added at 09:26 AM ---------- Previous post was at 09:17 AM ----------

Hey, did you take a nandroid backup before flashing super su? i mean a clean nandroid backup?

If yes, then restore it your problem will be solved
[OnePlus X General] ukanth:
[MENTION=5253054]rockuppl[/MENTION], Can you take a backup of stock recovery using TWRP and upload it ? I kind of flashed TWRP permanently
[OnePlus X General] SpiritBreak3r:
I am currently doing it as we speak. Instead of flashing, I booted twrp via fastboot. Taking a complete backup and recovery backup.
[OnePlus X General] ukanth:
Thanks, If you could share only the recovery backup that would be helpful :)
[OnePlus X General] SpiritBreak3r:
Uploaded 2 Stock recovery backups. One is from TWRP and the other is taken from Flashify.
[OnePlus X General] ukanth:
Could you please share your oneplus model to make sure it's same. Mine is E_1003
[OnePlus X General] Gr2p:
Hi, does it work to root the new OTA Oxygen 3.1.4 ?

Thanks

Cheers from France
[OnePlus X General] Viciious:
Can we install ''TWRP blu_sp★rk r175'' for OOS 3.1.4 ?
[OnePlus X General] killacam1989:
I need some help. I tried to flash the bootloader and everything was good up until the point I had to do fastboot boot twrp.img (I renamed mine so it was more simple. but the commands that follow are this

downloading 'boot.img'...

OKAY[.0428s]

booting...

FAILED (remote: dtb not found)

finished. total time: 0.460s

What is the remote dtb not found?
[OnePlus X General] maxnutter:
I'm on 2.2.1 Oxygen, what TWRP should I be flashing, and how do I get to MM/Nougat ROMs?
[OnePlus X General] godai74:
Does it work with OOS 3.1.4?

Me too I'd like to know if we can use twrp-3.0.2-2_blu_spark.v41 and SuperSU-v2.78-SR4 with OOS 3.1.4

Thanks :)
[OnePlus X General] Nishblueweapon:
Follow this

http://xdaforums.com/oneplus-x/help/unable-to-flash-twrp-3-1-4-update-t3499990/page1

For root you need this http://xdaforums.com/oneplus-x/general/twrp-version-mm-bootloader-3-1-4-t3499372/page1
[OnePlus X General] Exodusche:
The bootloader hasn't changed so you can still use any of the three updated twrp's. As far as root I would use the modified SuperSU made for 3.1.3.
[OnePlus X General] vai8080:
Hey guyzz can someone provide me with rooting guide as well proper twrp

My oxygen version is 2.1.3x

Thank you..
[OnePlus X General] Gr2p:
Rooting done ! :) thanks

But still some Google apps and oneplus apps unable to install

anyway all is OK
[OnePlus X General] manishpatil:
Does this support oxygen OS 3.1.4
[OnePlus X General] Gr2p:
I've just rooted my OPX running oxygen 3.1.4 following the protocol from the Doctor (first post of this thread)

I've used :

- 15 seconds ADB Installer v1.4.3 http://xdaforums.com/showthread.php?t=2588979

IMPORTANT (I first missed these steps and lost a lot of time :eek: ) :

* Go to Settings > About phone, and then tap ‘Build number’ 7 times or until you get the message ‘You’re now a developer!’.

* Go back to Settings, choose ‘Developer options’. Find the ‘USB debugging’ option and use this toggle button to enable it. Accept warning by tapping on OK button.

* Also in the ‘Developer options’. Find the ‘OEM Unlocking’ option and use its toggle button to enable it. It asks for your PIN/Screen unlock code, type it. Then accept the warning by tapping on OK button.

- Flash this twrp recovery by blu_spark for the new bootloader found here: http://xdaforums.com/devd...t/dl/?id=20236

- Flash SR4-SuperSU-v2.78-SR4-20161115184928-SYSTEMLESS.zip from recovery (found here : http://xdaforums.com/attachment.php?attachmentid=3939651&d=1479393635 )

Enjoy :)

Cheers from France
[OnePlus X General] Vikyy17:
Super su 2.78 SR5 does not work with 3.1.4. I tried it and i got stuck in a bootloop
[OnePlus X General] Fap4k:
Why don't you try modified SuperSU for OOS 3!
[OnePlus X General] Vikyy17:
Yeah and I tried that, it worked like charm. I got the link for it in OnePlus forums
[OnePlus X General] shyamalgarg:
How do i upadte TWRP V3.0.0-0-onyx.img to twrp-3.0.3-0-onyx.img????
[OnePlus X General] shubham399:
Flash it using fastboot
[OnePlus X General] PlAyHaRdd:
I'm currently running the community build 3.1.4 and I successfully unlocked the bootloader and I tried several twrp files but none worked I always ended up opening stock recovery can anyone give me a solution?
[OnePlus X General] Gr2p:
Hi PlAyHaRdd

See my feedback here : https://xdaforums.com/showpost.php?p=69736839&postcount=392

Enjoy rooting the oneplus X ;)

And waiting for a stable rom under Nougat

Cheers From France
[OnePlus X General] mobidzid:
Back to Oxygen 3.1.4 with no PC?

is there a way to go back to Oxygen 3.1.4 from Temasek's CM 8.x without a PC? Like can I simply do a factory reset and flash 3.1.4 from TWRP?
[OnePlus X General] BrokenBee:
Can you share the link?
[OnePlus X General] vaibhav97:
My frd has oneplus x. Similar to my case on oneplus one, i spent like 1hr searching for the right driver under device mgr. After solving tat i unlocked and then flashed the twrp img via cmd prompt.

Now i am Unable to access recovery..stays at the logo..but fastboot and system stock os r working. So i flashed another recovery version via cmd ..still the same.

Actually my frd installed kingroot and uninstalled them..do u think this may be the reason??? Oem unlock erases the data so i don't think they hv any relation to it.

Pls help guyzz

Tks in advance.
[OnePlus X General] em1000diams:
Hi, when i try booting into the custom recovery by typing "fastboot boot twrp-3.0.2-2_blu_spark.v41-onyx_by-engstk.img" it says :

"downloading "boot.img" . . .

OKAY [ 0.413s]

booting. . .

FAILED (remote:dtb not found)

Any solutions?
[OnePlus X General] aa_vi:
try the latest version of twrp recovery

---------- Post added at 01:15 PM ---------- Previous post was at 01:14 PM ----------

try the lafest version of twrp recovery
[OnePlus X General] parishlfc:
Root gone after factory reset

I was had rooted my oneplus x. Custom recovery = TWRP, ROM = Lineage OS. So i did a factory reset by going to recovery mode and did a factory wipe. My root is gone. For now i'll root my phone again but in the future if i need to update my custom ROM or just flash a new custom ROM, i will again lose my root access. I dont want to do it again and again. Its a nightmare. Is there any work around this thing? I had rooted my phone using the latest version of SuperSU. Also an additional information, all the tinkering i did when my phone was rooted is intact though. for example: pixel launcher was my system app. Google assistant is still working. All the apps that came default with the OS i had removed most of them , they are still gone. But i have no root access. On using the root checker app, it says. "Sorry! Root access is not properly installed on this device".
[OnePlus X General] Kéno40:
To root Lineage, just follow Lineage's instructions :

Go to the download section of their site. In the extras part, there is a Su module. Just use arm version.

Flash it once. No need to flash at each update.

Then on dev options, there is a setting to grant Su permission to the apps.

If you have superSu uninstall it first.
[OnePlus X General] awildsloth:
I'd like to make a suggestion.

When flashing TWRP through Fastboot commands, it is needed that you hold a certain key combo when you press enter to execute the recovery flash command.

A success message will popup saying everything went smoothly even if you don't hold the key combo, but if you reboot into recovery after flashing, the stock OP recovery will automatically overwrite TWRP.

That key combo is POWER + VOL UP.

Not sure if this happens to all OPX but it's the case with mine. I suggest you add this information into the guide :D:good:
[OnePlus X General] parishlfc:
I did that and now its working. However is there a similar app such as supersu for granting app permission.?
[OnePlus X General] TheDevFreak:
For rooting my OPX do i want "Modified SuperSU v2.79 TWRP flashable.zip" from this thread:https://forums.oneplus.net/threads/mirrors-for-official-oxygen-os-roms-and-ota-updates.387615/ its running stock OOS 3.1.4
[OnePlus X General] Zaliek:
This worked great on my OPX running Sultanxda's CM13 ROM. I used the same steps but substituted phh's open-source root (superuser-r259.zip) for SuperSU. It's been a few months and have had no issues so far.
[OnePlus X General] zayansyed:
Iam using OS 3.1.4 will this method work on it as well?
[OnePlus X General] Sujknair:
I think i screwed up

I followed the methods exactly as posted, except i went for the latest twrp 3 1.1-1. after flashing it over to recovery, i gave the command to boot from twrp. Suddenly a message popped up saying that windows has failed to recognize my device. And im stuck kn fastboot mode. What do i do?

Edit: nvm.. i solved it ? phew !
[OnePlus X General] trendchanger:
Guys can anybody give me latest bluespark twrp in flashable zip
[OnePlus X General] IVS IVRIS:
Just used this guide. Worked flawlessly! Thanks.
[OnePlus X General] Al Hasib Fahim:
I have followed those steps to unlock the bootloader. But my device did not asked for formate after unlocking. When i check for the bootloader unlock status it says

Device bootloader unlock: true

Device critical unlock: false

Is it ok?

Then i have installed twrp amd rooted my phone successfully. Now the problem is when i flash any custom rom my device freezes after some time and it can not be used except the official rom. Is the problem in the rom or my bootloader is not unlocked perfectly? Please help me.
[OnePlus X General] FauzzeeAdib:
Hello, sorry if im mistaken because im newbie here.

How to flash back my twrp recovery because before this i just wanted to update my twrp recovery but suddenly it failed then it cause bricked :crying: please help me how to flash back the twrp recovery because i have to update/change my roms because my roms already out dated. Until now im still using the 2016 roms and it cant to update because i dont have twrp / my twrp still bricked. SOMEONE PLEASE HELP ME
[OnePlus X General] tet-bundy:
Flash latest recovery via fastboot. Just follow the guide provided by op
[OnePlus X General] Dinesh6252:
I have a rooted stock rom with twrp and unlocked bootloader. If i reinstall stock rom by twrp, do i need to again unlock the bootloader?
[OnePlus X General] Fostel:
Isn't Magisk a better option to root the device?
[OnePlus X General] majoEM1:
hello

have a little issue here, i can see my phone within adb devices, but neither within fastboot devices

what am i doing wrong?
[OnePlus X General] ze7zez:
Since you see the result of adb devices then you should be able to go to the bootloader:

adb reboot bootloader

or

First post, point 3-1.

Do you see the OnePlus logo and "Fastboot Mode" on your screen?
[OnePlus X General] majoEM1:
thanks for your reply, i start to think that this is not interesting phone anymore, or forum is on vacation

and yes i can see "Fastboot Mode" on my screen

ze7zez, any advice please?
[OnePlus X General] SpiritBreak3r:
Mine is the same. ;)
[OnePlus X General] ukanth:
Appreciate your help. Thanks again.
[OnePlus X General] StraightEdgeKid:
Why do I need TWRP? Can't I just flash supersu with stock recovery?
[OnePlus X General] the Doctor:
I've updated the OP with this option. Tks :good:
[OnePlus X General] the Doctor:
Early on some people tried it and it didn't work.
[OnePlus X General] StraightEdgeKid:
I tried it now, and yes, it fails.

---------- Post added at 09:20 AM ---------- Previous post was at 09:19 AM ----------

Can I flash it without unlocking bootloader?
[OnePlus X General] the Doctor:
No. However, you can root without flashing a custom recovery. Directions are in the OP.

On another subject, be aware that rooting stops OTAs, apparently even if you preserve stock recovery.
[OnePlus X General] StraightEdgeKid:
Considering we are getting frequent updates, I think our stock rom has lot to be updated. Still i'll give a shot at rooting, thanks for help. Kudos to you. ????
[OnePlus X General] the Doctor:
A warning about root breaking OTAs and a workaround have been added to the OP.
[OnePlus X General] SpiritBreak3r:
Would be also nice if OP links the stock recovery that I've uploaded, So people with TWRP flashed could get their stock recovery by restoring the backup.

http://xdaforums.com/showpost.php?p=63749183&postcount=39
[OnePlus X General] the Doctor:
Good idea. Done.
[OnePlus X General] StraightEdgeKid:
Nice work mate. :good:
[OnePlus X General] mohammedtabish:
opx root :/

if i root my opx thn can i flash ota updates wich are provided in other threads using twrp and if not then how can i
[OnePlus X General] CamoGeko:
You need to have stock recovery to get OTA updates.
[OnePlus X General] mohammedtabish:
so i just flash the stock recovery image using flashify ???? and what about that ota dump is that stock rom?
[OnePlus X General] Chrissanto_U:
so how to make TWRP replaced back with Stock Recovery? I need to flash it via fastboot?
[OnePlus X General] the Doctor:
Yes:

fastboot flash recovery "recovery.img"

Except without the quotes.
[OnePlus X General] Hdhdbdhdj:
I rooted my device and installed Twrp recovery. Is there any official custom rom will come to our One plus X device or not. Because oxygen is doesn't have much features like CM.
[OnePlus X General] the Doctor:
Discussion on that here.
[OnePlus X General] acorrente:
I hate android for being so user unfriendly transfering app data from a old phone to a new one, so i guess i have to root the opx...
[OnePlus X General] Znamir81:
Quick question.

Does rooting itself prevent you from getting OTA updates?

From what I've read my understanding is that you need stock recovery to get OTA, but you don't have to install TWRP to root.

I'm curious since from what I remember I coud get OTAs on my rooted Nexus 5 with stock recovery, and root itself didn't prevent that. It were further modifications (like Xposed framework or custom kernel related software) that did.
[OnePlus X General] the Doctor:
I take it you didn't read the OP then... Yes, rooting will disable OTAs. There is a thread in General to help get OTAs after rooting as well as the workaround I suggest in the OP.
[OnePlus X General] Znamir81:
I take it it must have been edited since I'm following thread on daily or even hourly basis since it started.

Thanks for clarification :)
[OnePlus X General] the Doctor:
I added that bit yesterday, but NP. Just for further clarification, it's not just recovery that breaks root. The update checks for modifications to the system partition, so yes, root itself breaks it. If you get stuck with an update that won't flash and you haven't backed-up your unrooted ROM, look here:

[Guide] How to Install OTA's with TWRP by [MENTION=5891919]SpiritBreak3r[/MENTION]
[OnePlus X General] Znamir81:
Don't have mine OPX yet (stuck in shipment since tuesday, probably in Leipzig or East Midlands since last DHL update was from Shenzen).

Just wanted to make sure about rooting it on arrival. Because I'm going to use X as a primary device with seldom access to computer and fast updates are priority for me, I'll probably keep it stock/unrooted for now and see how custom software develops.
[OnePlus X General] kins342:
i've done the process as stated and very happy with the phone. works perfect and even better than my opt. thanks op.