yashsingh1/xdaforums huggingface dataset:
[OnePlus X General] toole:
Please report back. I've got the same problem. Thanks [emoji4]
[OnePlus X General] sallusalman:
I tried to flash the stock recovery using

fastboot flash recovery Stock_Recovery.img

But it shows

target reported max download size of 1073741824 bytes

sending 'recovery' (16384 KB)...

OKAY [ 0.554s]

writing 'recovery'...

FAILED (remote: Device not unlocked cannot flash or erase)

finished. total time: 0.563s
[OnePlus X General] StraightEdgeKid:
You must flash it with TWRP, you have it right??

Can also be done with flashify.
[OnePlus X General] sallusalman:
oops. sorry.

im on twrp now. its asking for a partition to flash the image. boot or recovery?
[OnePlus X General] StraightEdgeKid:
Recovery
[OnePlus X General] sallusalman:
Tried unlocking the bootloader after flashing stock recovery. Did not had to flash stock rom. Now i have my bootloader unlocked. Thanks man. You saved my day ;)

---------- Post added at 04:20 PM ---------- Previous post was at 04:15 PM ----------

If you are on TWRP then flash the stock recovery from TWRP. Then try unlocking the bootloader. It worked for me. Hope this helps.

get the stock recovery here. http://xdaforums.com/oneplus-x/general/ota-patch-003004201511031712-t3245185

thanks to [MENTION=4497853]StraightEdgeKid[/MENTION]
[OnePlus X General] StraightEdgeKid:
Enjoy man, I need to update my thread to ask guys not to flash TWRP without unlocking bootloader. Thanks [MENTION=4385555]CafeKampuchia[/MENTION] for heads up.
[OnePlus X General] filipedelgado06:
Help needed to solve this issue :(

"This package is for device: E1003; this device is ONE"
[OnePlus X General] the Doctor:
What were you attempting to do when you got this message?
[OnePlus X General] filipedelgado06:
Flashing the Rom

---------- Post added at 10:32 AM ---------- Previous post was at 10:29 AM ----------

Sorry, just posted in wrong topic. I'm trying to flash CM12 Rom
[OnePlus X General] charliebigpot:
Feel kinda like a noob, but will flashing the recovery over the stock recovery wipe data or anything?

(I will backup before flashing in any case, but it's good to know..)

-----EDIT-----

I couldn't wait until somebody answered, so I just flashed the recovery through the TWRP app

In case anyone else wonders --> all data is still there --> success!
[OnePlus X General] the Doctor:
There are many different partitions in Android such as:

/boot

/system

/recovery

/data

/cache

/misc

/sdcard

/sd-ext

Flashing a recovery to the /recovery partition doesn't affect the others.
[OnePlus X General] Diego98:
Hello, I have already installed Java runtime, Universal Android ADB Driver and SDK tools for Android but I can't get the connection to work. I've tried to force the installation of the driver following the guide but after selecting "Let me pick from a list of device drivers on my computer" I can't find "ADB Interface" in the list, I can see an adb folder but I can't select it. What should I do?

Inviato dal mio ONE E1003 utilizzando Tapatalk
[OnePlus X General] the Doctor:
Try looking for another Android ADB interface and force-installing it. Even one by Samsung should work.
[OnePlus X General] :
How to unroot OnePlus X?

Hey so i have rooted my oneplus x through twrp and i got a new small update from oneplus today for camera (Hotfix patch: Oxygen OS 2.2.0-X) now how to install it???? I think i have to unroot the mobile first. if anyone here can provide me the zip file then i can flash it without doing unroot process. i have tried to unroot it from Supersu Full unroot option. It unroots but when i download the update and reboot it... the twrp opens. i don't know what happened. please help here guys!! :confused: :rolleyes:
[OnePlus X General] the Doctor:
There is information in the OP of this thread and other threads in the General section for dealing with this situation. Unrooting is not sufficient. You have to restore the system partition to an unmodified state.
[OnePlus X General] jimmy_135:
phone goes in fastboot mode now but cant unlock my boot loader now i share my fastboot device info here with u

C:\Fastboot>fastboot oem device-info

...

(bootloader) Device tampered: false

(bootloader) Device unlocked: false

(bootloader) Charger screen enabled: false

(bootloader) Display panel:

(bootloader) console_enabled: 0

(bootloader) exec_console_unconsole: 0

OKAY [ 0.016s]
[OnePlus X General] the Doctor:
Is the phone rooted?
[OnePlus X General] jimmy_135:
yeah phone rooted before it get brick after unbrick phone dont wat root status
[OnePlus X General] the Doctor:
I'd suggest that you restore the phone to 100% stock using one of these two threads:

http://xdaforums.com/oneplus-x/general/rom-mirrors-official-oxygen-os-rom-ota-t3301797

http://xdaforums.com/oneplus-x/general/guide-mega-unbrick-guide-hard-bricked-t3272108

Then follow this guide to root properly: (1) Unlock the bootloader

first

; (2) flash TWRP and backup the device; (3) root and do whatever else you need to.
[OnePlus X General] jimmy_135:
But how do i flash rom phone bootloader is unlock oem unlock command not working phone goes in fastboot mode only
[OnePlus X General] the Doctor:
You can flash stock images with a locked bootloader. It happens all the time, because that's what an OTA does.
[OnePlus X General] jimmy_135:
How I do that can u told me step by step method
[OnePlus X General] the Doctor:
That's in the OP of the two threads I listed above.
[OnePlus X General] jimmy_135:
K sir
[OnePlus X General] jimmy_135:
sorry but m not getting any thing in that two link which u provide please guide me my device goes only in fastboot mode and recovery mode so what can i do now
[OnePlus X General] _breez_:
So I've read this tutorial and came to the conclusion there's no way to unlock the bootloader without losing all of your data?

That's a major dealbreaker for me...

I'd like root but if it makes me install all of my apps and restore all my data, texts, settings, ... again. Not going to bother then.
[OnePlus X General] knauji:
you can root without loosing data. no need to unlock the bootloader just for rooting. see here: http://xdaforums.com/oneplus-x/general/guide-root-oneplus-x-twrp-pc-t3251027

somebody also managed to flash twrp and make a backup BEFORE unlocking the bootloader. don't remember who it was...
[OnePlus X General] the Doctor:
Then also don't follow the advice above.
[OnePlus X General] styfic:
Actually I got root without losing data. Still wondering how this worked. However, here are my steps:

Prerequisites:

- Mac OS X 10.11

- ADB installed via brew (

brew install android-platform-tools

)

- OOS 2.2.0-X

- Device encrypted with native android encryption

Steps:

1.

adb reboot bootloader

2.

fastboot oem unlock

(it prompts for data deletion, but in my case it did not delete anything)

3.

fastboot boot twrp-3.0.0-0-onyx.img

(just boot, not flash)

4. Full Backup

5. Flash SuperSU

-> et voila
[OnePlus X General] the Doctor:
^^^ This is why.
[OnePlus X General] styfic:
I think so too. After OEM Unlock the device reboots, but doesn't ask for the decrypt passcode. Maybe it cannot format correctly then.
[OnePlus X General] droyd.014:
it works

thanks for the guide.:good:

easy to follow,

noob friendly
[OnePlus X General] the Doctor:
Thanks for the feedback. I'm glad it was helpful!
[OnePlus X General] sonicatu:
Thank you sir!
[OnePlus X General] yogeshc881:
How to backup Completely Stock Rom And Recovery.

How can i backup stock rom [non rooted] and my stock recovery by twrp or by any other method? :confused:
[OnePlus X General] geetesh.kumbhare:
which version of supersu compatible for oos 2.2.1.
[OnePlus X General] the Doctor:
Backup the ROM in TWRP per the OP instructions (steps 5 & 6). Notice that the guide has you do this before rooting.

Don't worry about backing up the stock recovery because it's a small file (8-9MB) and can be found in the General section if you need it, or you can extract recovery.img from the stock ROM's image file yourself. If you really want to backup your current recovery, try this.

Is v2.65 not working for you? I think it should be fine.
[OnePlus X General] yogeshc881:
TWRP OTA

Can i flash official ota updates by TWRP, If yes please can u give guide :good:
[OnePlus X General] the Doctor:
Official OTAs can only be flashed over a /system partition that's never been modified (ie, never rooted) and only using the stock recovery. There are a couple threads in the General section for doing that, including one I've linked on the OP.
[OnePlus X General] RBwai:
Is it possible to instal TWRP without unlocking bootloader and leave all data and apps untouched? And is it poosible to root a phone through TWRP. My main goal is to root a phone without loosing data and installed apps.
[OnePlus X General] the Doctor:
You can do that with kingroot. I personally don't think it's a great idea, but it works.

http://xdaforums.com/android/apps-games/one-click-root-tool-android-2-x-5-0-t3107461

If all you want to do is root, why do you need TWRP?
[OnePlus X General] Kir3:
I got to a problem. When I type fastboot oem unlock I got OKAY response but phone did not reboot and erase all data. I flashed the twrp recovery and after booting to system, when going back to recovery the stock one is back.

I did not flash SuperSU because I plan to flash a custom ROM.

Here is the CMD window

C:\Users\Kire\Desktop\OnePlusX>fastboot devices
965c25c7 fastboot

C:\Users\Kire\Desktop\OnePlusX>fastboot oem unlock
...
OKAY [ 0.001s]
finished. total time: 0.003s

C:\Users\Kire\Desktop\OnePlusX>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.018s]
finished. total time: 0.019s

C:\Users\Kire\Desktop\OnePlusX>fastboot flash recovery twrp-3.0.2-0-onyx.img
target reported max download size of 1073741824 bytes
sending 'recovery' (14758 KB)...
OKAY [ 0.491s]
writing 'recovery'...
OKAY [ 0.323s]
finished. total time: 0.818s
[OnePlus X General] droyd.014:
Where's the command that you use to boot the twrp?
[OnePlus X General] Kir3:
This is the third time i tried this, so the one you boot to recovery is working once. After reboot the phone have the stock recovery when vol down + power
[OnePlus X General] dingermtb:
If you didn't flash SuperSU then more than likely, you are not rooted, only unlocked bootloader. If you want to flash a custom rom, you must be rooted first

Sent from Outside The 9 using my Exodus ZombieKnot OnyX
[OnePlus X General] the Doctor:
Try it again, but after flashing this time, turn the phone off by long-pressing the power button. When you boot into recovery, it should be there.

This is not true. You only need an unlocked bootloader and TWRP to flash a custom ROM. The root status of the ROM you are about to replace is irrelevant.
[OnePlus X General] dingermtb:
My mistake? I just always rooted before flashing roms

Sent from Outside The 9 using my Exodus ZombieKnot OnyX
[OnePlus X General] Kir3:
Yes, it should be there but it's not after first boot to system. I may try to flash the ROM like CM13 or Exodus after booting to it so that may replace it.

EDIT: I tried it again and it worked. Time to start testing those custom ROMS :)
[OnePlus X General] shakeelsaraf:
I'm on cm13 and have backed up my stock Rom after unlocking the bootloader.. But when i restore this backuo it says

E:unable to find file system (first period)

And restores d backup and den d phone goes into bootloop when i dl system reboot.....

What to do?... I want to go back to d stock rom

EDIT: had to format sd card as portable device.... it was set a adopted storage in cm13
[OnePlus X General] the Doctor:
In the future, it would be better to post something like this in the Help/Q&A section than taking a thread off topic. Glad you got it sorted :good:
[OnePlus X General] Kiras_PL:
All right. i've got a quite well known issue. I flashed a couple of times twrp recovery but when i try to boot it my phone boots to stock recovery. I unlocked my device, flashed a couple of times twrp recovery (various versions) also tried custom twrp from blu_spark but it did not help. Any solution... ??
[OnePlus X General] runswithascript:
Firstly, thanks for this tutorial :good:

Is it possible to backup this data which will be lost, changes, mods, and app data and then restore it after applying the workaround and re-rooting? If so, is there any particular software you would recommend to do this, and any particular options that should or should not be selected?
[OnePlus X General] Kir3:
I had this one too. But after some trying it was successful and it booted to TWRP. Try again after few hours.
[OnePlus X General] the Doctor:
Immediately after flashing the recovery next time, shut down the phone by holding down the power button until it turns off. Then boot into recovery.

You can use Helium or Titanium Backup to backup app data but you'll lose mods like Xposed. Both apps are pretty straightforward to use.

I'm glad you found the guide helpful!
[OnePlus X General] Kiras_PL:
I've reinstalled all the drivers and tried again, now it works but thanks for Your replies :)
[OnePlus X General] runswithascript:
I mentioned this method to a phone repair technician today and he suggested I use a one click rooting method instead.

Can someone please tell me why this method is better than using something like kingoroot etc.? I appreciate it must be better, I am just trying to understand why.
[OnePlus X General] the Doctor:
Once the Kingroot app is installed, it sends information about your device to their server in China which then searches for a security exploit that would allow it to write to the secured /system partition without permission and sends that back. Then the app uses that exploit to install their binaries, SU app and often their bloatware to /system.

On the other hand, with rooting and development in mind, Google allowed the bootloader on Android devices to be unlockable. Once that's unlocked, partitions like /system and /recovery can be written to without the need for using an exploit. So well-respected developer Chainfire's SuperSU app and binaries can be flashed without compromising your device.

Summed up well:
[OnePlus X General] thuva06:
guys i need your help in this!!!

i have to return my oneplus x for warranty reasons and getting it replaced..

im currently on CM13 / TWRP 3.0.02 and before i was in oxygen OS 2.2.1

I read many threads but none gave me a clear idea on how to go back to stock from cm13!

1. i need to go back to stock OOS 2.2.1

2. I need stock recovery

can someones post a thread or give me instructions on how to do it properly
[OnePlus X General] Kir3:
1. Flash stock OOS zip with TWRP.

2. Flash stock recovery via TWRP or via ADB. There is an option to flash image from install screen in TWRP

Stock recovery is found on the official website where stock zip is located.
[OnePlus X General] haree:
hi

just saying thanks again used ur tute and successfully added twrp rooted and now using official CM13 thanks for ur very nice tutorial
[OnePlus X General] theFaceless:
Booting TWRP (i.e. step 5E) doesn't work for no apparent reason: the phone just stuck at fastboot mode and is not available for any command prompted from "fastboot" (any input actually, except of hard reboot, even the driver hangs and stops responding). However, after restarting the phone everything works as expected. The question is either this has something to do with security updates from google or is this a solvable issue?
[OnePlus X General] the Doctor:
That's the first I've heard of it. Can you boot into TWRP normally?
[OnePlus X General] haree:
hi

i have unlocked the phone flashed the twrp tried cm13 not comfy with it went back to stock

now on cheking via ADB command i see that it says phone tamped as false and boot unlocked as true is this a problem i mean i am able to flash roms i can see that just cheking if this is ok or if i need to do the oem unlock again
[OnePlus X General] the Doctor:
Yes, it looks like your bootloader is locked again, so you'll have to redo steps 2 & 3. Did TWRP flash successfully? If not, you'll have to repeat step 5 as well.
[OnePlus X General] haree:
hi

twrp is working fine and i have flashed back to stock .I can still boot in to twrp and i have also rooted the phone

its just while checking latter on via ADB command i saw that it said that phone was not tampered but boot loader was unlocked just want to make sure that it was ok
[OnePlus X General] the Doctor:
I'm sorry, I read that wrong. ADB is saying that the bootloader is unlocked. So you don't have to unlock it again.

You might check in the thread for CM13 to see what version of TWRP people are using.
[OnePlus X General] haree:
hi

thanks again for confirming and clearing my confusion now ill go around trying a few more ROMS :laugh::laugh::good:
[OnePlus X General] theFaceless:
As it turned out, this is not the case anymore. Waiting for a minute or two in fastboot mode apparently solves the issue for me so the phone boots into TWRP as it should've from the beginning. Thanks for reply though.
[OnePlus X General] sand33p111:
hi,

i have tried unlocking the boot loader as per the instructions

during my first attempt, though fastboot oem unlock reported failed, the phone showed whether u want to unlock bootloader and i selected yes. the phone did reboot erasing all the data etc.

next i tried to boot the twrp recovery ( instead of flashing) ,nothing happens except ".... _" and the cursor keeps blinking. i tried waiting for 1/2 hr but nothing.

presently the phone is running fine and and still has stock recovery

when i tried to know the whether the bootloader is unlocked , this is the response i get

C:\adb>adb devices

List of devices attached

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

523425c2 device

C:\adb>adb reboot bootloader

C:\adb>fastboot devices

523425c2 fastboot

C:\adb>fastboot oem device-info

...

i do not know whats wrong,

fastboot recognises the device but none of the commands work

( "fastboot reboot "command works and the phone reboots)

please help me the unlock bootloader and root my device...
[OnePlus X General] the Doctor:
[MENTION=6197210]sand33p111[/MENTION], what do you get when you issue this command?

fastboot oem device-info
[OnePlus X General] sand33p111:
I just get "..." and cursor keeps blinking

Nothing happened even after 1/2 hr.

no output for the command.
[OnePlus X General] the Doctor:
And you're still getting this:
[OnePlus X General] sand33p111:
Yes

Phone is recognized in adb and fastboot.

But nothing happens when I type fastboot oem unlock or fastboot oem device-info.

But phone reboots to normal with fastboot reboot.
[OnePlus X General] the Doctor:
Try checking your drivers per the OP.
[OnePlus X General] sand33p111:
Since the adb and fastboot recognise my phone doesn't that mean drivers are installed properly.

Will try to uninstall the drivers and reinstall from the OP and check.

edit: i have tried uninstalling the drivers ,adb and fast boot , and downloaded the drives and minimal adb and fast boot from OP and installed them .this is what i got.

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Program Files\Minimal ADB and Fastboot>adb devices

List of devices attached

adb server version (32) doesn't match this client (35); killing...

* daemon started successfully *

523425c2 device

C:\Program Files\Minimal ADB and Fastboot>adb reboot bootloader

C:\Program Files\Minimal ADB and Fastboot>fastboot devices

523425c2 fastboot

C:\Program Files\Minimal ADB and Fastboot>fastboot oem device-info

...

same situation again , adb and fastboot recognises but nothing happens.

what could be wrong.

this is what i got with adb

C:\adb>adb devices

List of devices attached

adb server is out of date. killing...

* daemon started successfully *

C:\adb>fastboot devices

523425c2 fastboot

C:\adb>fastboot oem device-info

...

nothing happens after "fastboot oem device-info"
[OnePlus X General] p.lakks:
Hi guys,

I have the AOSP Caf Rom installed on my oneplus X, it's a very good Rom but I want the oxygen os camera on my device, can I flash it? There is a porting of the oxy camera? If yes, please, give me the link of the camera to flash. Thanks

Inviato dal mio ONE A2003 utilizzando Tapatalk
[OnePlus X General] haree:
getting back to stock via nand backup

hi

guys i have the nand backup of stock ROM which i did immediately on installing twrp

while flashing back the stock via twrp i see two options ie 1.EFC and 2.Recovery

i un chek these and flash it back and all is well im back to stock

now if i chek the recovery will it flash back the stock recovery

thanks in advance :laugh::good:
[OnePlus X General] Cookie Ninja:
Nope. You already had twrp when you made that backup. It will simply reflash the twrp. Not stock recovery....

Dead Cookies leave no trails...
[OnePlus X General] haree:
hi

thanks again thats what i thought thanks for the confirmation any way i did a search and found a video from the unlocker on how to get back to stock i have put it on the genral forum here is the link : https://youtu.be/Xk1htXUoMQY

may be OP can add it to his 1st post to help others if they need to get back to stock :laugh::laugh:
[OnePlus X General] haree:
Regarding updating TWRP

hi

can any one tell me

1. do i need to update TWRP im on 3.0.0 recent is 0.2

2.how do i update it

3.can i use this app called flashify on the store to do it

thanks in advance :good::laugh::laugh:
[OnePlus X General] droyd.014:
Download the .img file and flash it in twrp. Select Flash image option under Install
[OnePlus X General] haree:
hi

just to understand things better

i have the twrp 3.0.2.0

1. move it to my internal storage

2.flash it via the existing twrp

3.under install i need to select flash image option to flash image

and on doing so i will be update to the recent twrp right
[OnePlus X General] Kir3:
Yes, that's the update process
[OnePlus X General] haree:
Thanks buddy ill try it out
[OnePlus X General] droyd.014:
Yes it will but dont forget to select "recovery" for partition to flash when it prompt.
[OnePlus X General] iamsonal:
Now I am coming from Oxygen OS which was installed when I bought the phone. I followed the exact process as described in the first post, and was able to root my phone. Now I am thinking of installing the Cyanogen ROM and gapps using TWRP.

But the cyanogen 13 ROM mentions of a ROM Kernel: Linux 3.4.x. So do I need to flash a new kernel for the same, or the one which is already present in my ROM will work?
[OnePlus X General] the Doctor:
Please ask this in the Help/Q&A section rather than taking this thread off-topic.

http://xdaforums.com/oneplus-x/general/help

Thanks.
[OnePlus X General] jbonetwo:
The driver install instructions were way off for me on Windows 7 x64.

If there's an exclamation on the opx in device manager, do this:

update driver > browse > let me pick > show all > have disk >

browse to programfiles\clockworkmod\whatever.inf >

Android ADB Interface

repeat the process when in fastboot and select the same Android ADB Interface.
[OnePlus X General] Viciious:
Thanks a lot for this guide! I have like 0 knowledge and this step by step is very usefull, i have installed TWRP in less than 10 min ty :D.
[OnePlus X General] Kéno40:
[MENTION=4385555]CafeKampuchia[/MENTION] This thread should'nt be sticked?