yashsingh1/xdaforums huggingface dataset:
[OnePlus X General] somin.n:
Hi you all! Thanks for this thread :) I have some questions please.

1. Will unlocking bootloader break warenty?

2. If i will root without flashing twrp (only use fastboot boot en-recovery-twrp-onyx-.img command) and then make some changes to system partion, will it disable OTA or only I will not be able to use OTA? Will my phone still checking updates and "say" there is some OTA available?

3. If I change for example only hosts file for blocking ads and later come some OTA, will I be able apply this OTA if I copy back original hosts file and make full unrooting from SuperSU app? Or will be system partiton "break" and I will have to use this or similar instructions - [Guide] How to Install OTA's with TWRP for apply it?

Thanks :D
[OnePlus X General] the Doctor:
1. Will unlocking bootloader break warenty?

No. Rooting doesn't break it either.

2. If i will root without flashing twrp (only use fastboot boot en-recovery-twrp-onyx-.img command) and then make some changes to system partion, will it disable OTA or only I will not be able to use OTA? Will my phone still checking updates and "say" there is some OTA available?

Any change to the system partition will break OTAs. That includes rooting, uninstalling system apps, etc. It will tell you that the OTA is available and download it, but it will fail to flash when it verifies system partition integrity.

3. If I change for example only hosts file for blocking ads and later come some OTA, will I be able apply this OTA if I copy back original hosts file and make full unrooting from SuperSU app? Or will be system partiton "break" and I will have to use this or similar instructions - [Guide] How to Install OTA's with TWRP for apply it?

You can't do this without rooting, so OTAs will be broken. It's best to backup your stock, unrooted ROM as I have at the top of the OP or use SpiritBreak3r's method for flashing OTAs which I've also linked in the top of the OP.
[OnePlus X General] Calvin2394:
Loss of modem partitions?

Is there some partition or files that are needed to be backed up before unlocking?

I read that there are 2 modem files, though I'm highly unsure about it or how to back them up.
[OnePlus X General] Funk Wizard:
You may back it up immediately after root

* Download Partitions Backup And Restore App from play

* Open the app and grant it root access.

* Click on the Settings icon above and select preference to .img

* Select the partitions marked in yellow and backup them by clicking on the download like button at the bottom right.

* Go to the storage and search for the Partitions Backup folder there you will three .img files (modem,modemst1,modemst2) . Save them to your cloud and as many places as you want as they are very important files.

This way you can back up all other partitions too.
[OnePlus X General] SpiritBreak3r:
You can backup right after unlocking, no need to root. Just boot not flash the TWRP recovery, back up the whole rom. Then root.
[OnePlus X General] Calvin2394:
You could specify

1. When these files are erased

2. How to back them up

in the OP.

Would help a lot of us in maintaining warranty :)
[OnePlus X General] CamoGeko:
Does that include the EFS partition then?
[OnePlus X General] Funk Wizard:
Indeed it does, Select the partitions marked in yellow (modem,modemst1,modemst2) and backup them by clicking on the download like button at the bottom right.

Go to the storage and search for the Partitions Backup folder.There you will three .img files (modem,modemst1,modemst2) .

Save them to your cloud storage and other reliable sources
[OnePlus X General] CamoGeko:
I ran out of thanks clicks.

Thanks for the info mate, very useful for when I decide to root.
[OnePlus X General] Funk Wizard:
Welcome Buddy :o
[OnePlus X General] CamoGeko:
Haha thanks... :D

As you can probably tell by my post count, I used to live here on XDA Haha. Now I just pop in and out occasionally.
[OnePlus X General] Calvin2394:
The Partitions backup app needs root!

So will I lose the partitions after flashing TWRP, flashing SuperSU?
[OnePlus X General] Funk Wizard:
Well you wont loose any partitions buddy, if you want to be extra cautious, just take a Nandroid first before root, then flash su and there on take backup with partition backup on boot after granting root access.

---------- Post added at 06:58 AM ---------- Previous post was at 06:57 AM ----------

I see that, Respect :good:
[OnePlus X General] CamoGeko:
Thanks mate.

Sadly, real life has taken priority lately. :(
[OnePlus X General] 3rrr0r:
Shouldn't it be "fastboot devices" ? :D
[OnePlus X General] rampino:
if you're in fastboot mode, yes. if you're in adb mode, no [emoji14]

sent by Nexus 5X!
[OnePlus X General] TommySWE:
So I'm trying to follow the guide, but I get stuck at the "adb devices" command in cmd, I get no device listed, and when I check Device Manager, there is only an "Android" device with a yellow triangle.

Tried reinstalling the adb drivers, manually fixing them (I dont get "Google" in the list as per the guide), but no go.

I'm on Windows 10, anyone else have these issues and got them solved?
[OnePlus X General] the Doctor:
Good find! Changed.

I think he's talking about step 2D where we are in bootloader, thus it should read "fastboot devices." In the other place under "Preliminary Steps" adb is fine.
[OnePlus X General] the Doctor:
Did you install the universal driver? If so, then you should see "Google."
[OnePlus X General] TommySWE:
Yes, as far as I can tell there was only one file to download for it and the driver installed correctly, but there is no "Google" option in the list.. :/
[OnePlus X General] No-New-Phone:
I am still waiting for the delivery of this device, so my questions / annotations come from a strictly theoretical point of view. So here we go:

1st: from what I've read in this thread, rooting itself doesn't factory reset the phone, but freeing the bootloader does. So this would be the first thing to do immediately after receiving the device. Right?

2nd thing to do would be to personalize the phone, by adding the personal accounts and prefered settings. As system partition is still unchanged, at this stage it should still be possible to install updates. Right?

Now my first question to the guide:

Why this? The twrp recovery should be able to backup partitionwise, so wouldn't it be enough to backup / restore the - individualized but unrooted - system partition to install the updates? Why should I restore /data?

Next, in the rooting guide:

As Titanium backup needs root. So my guess is that it will not work. Instead, adb backup should do the trick. From a quick search: see http://xdaforums.com/galaxy-nexus/general/guide-phone-backup-unlock-root-t1420351

Would this be OK?
[OnePlus X General] the Doctor:
Correct. It makes no sense to completely set up the phone then unlock the bootloader, have it do a factory reset, then set it all back up again.

Correct again. Then backup the ROM in this state and root it. When an OTA comes up later, you can revert to this setup state, update, backup again (system in pristine state but with OTA) and then re-root.

You could do it this way. I generally don't prefer to increase complexity. I hardly use backups anyway because it's too easy to set up and sync stuff from a clean install.

I've never done that, and that thread says it's experimental. Give it a try and let us know.
[OnePlus X General] No-New-Phone:
True, that's what the thread states, but it's from December 2011.

I cannot try it with the OPX because all I did by now is giving away my money, and I'm still waiting for the shipment notification. BUT I tried it with Samsung Note 1 and Xiaomi Mi2S successfully, and as adb is nothing device specific, it should work. Maybe someone else might test it:

adb backup -apk -shared -all -f C:\backup.ab

for Windows, or for linux it should be

adb backup -apk -shared -all -f ~/backup.ab

respectively. Just one more note: if the backup file is created, but it's zero kb of size, try setting a password (see here).
[OnePlus X General] 3rrr0r:
Right, i was refering to the bootloader step 2D. I should have written that.

I was confused at this point why i was unable to communicate with my device. Followed the guide step-by-step, and no connection.

So yeah... adb instead of fastboot... :angel:

The rooting process is a piece of cake but sadly no Xposed for Android 5.1.1...
[OnePlus X General] Funk Wizard:
Running Xposed on all devices, infact its now even compatible with 6.0 Version 76 onwards.

Use SDK22 for 5.1.1 & SDK 23 for 6.0 Roms

Current version running is here
[OnePlus X General] Saka911:
[MENTION=4385555]CafeKampuchia[/MENTION]

Hi , I used this method and it is working great so far.

I just wanted to know if the twrp bug has been resolved where selecting reboot freezes the phone.

Thanks again
[OnePlus X General] the Doctor:
Not that I'm aware of. I've been monitoring the TWRP thread and occasionally look in development for something new about TWRP. We're still at the same place we were a week ago as far as I know.
[OnePlus X General] primemonitor:
Hi! I decided to unlock my bootloader and flash twrp today, but I guess I messed up somewhere :p

Here's what I did :

1. Allowed oem unlock in developer options.

2. Booted into fastboot, then unlocked the bootloader. Then the device rebooted, and I had to set-up everything again.

3. Once again in developer options, allowed oem unlock, adb debugging on, advanced reboot etc.

4. Booted into fastboot. Then booted into twrp (using "fastboot boot" command, and not "fastboot flash").

At this point twrp throws this strange message - to allow it to modify system or keep it read-only. So I selected "read only" because I wanted to backup the unmodified partitions first.

5. After selecting "read only", the familiar twrp main menu appears. I proceed to make a full nandroid backup. Then I reboot into bootloader.

6. Now I flash twrp (using the "fastboot flash recovery" command this time). It shows successfully flashed. I then reboot the system.

Now here's the problem - whenever I select "Reboot into recovery" from the advanced reboot options, the system just reboots into the stock recovery :confused: Its as if twrp wasn't flashed at all.

I'm not sure where I went wrong in this whole process. Any help would be greatly appreciated!
[OnePlus X General] the Doctor:
I don't actually have the device yet because they haven't started selling it in the US. (Tomorrow! :good:) Is there a setting under Developer options to keep the stock recovery like in COS 12S on the OPO?
[OnePlus X General] primemonitor:
No such setting in developer options :(
[OnePlus X General] primemonitor:
Nevermind, got it working following these steps :

https://forums.oneplus.net/threads/...om-recovery-root-take-efs-backup-more.401713/

It seems what I had to do was boot into twrp after flashing it, instead of booting directly into the OS (booting directly into OS was causing the recovery to be overwritten by stock)

You might want to add this to the guide.

Thanks for your help :)
[OnePlus X General] maxwell22:
[MENTION=4385555]CafeKampuchia[/MENTION]

First of all, thank you for the great guide! Works great!

Would an OTA update work, if I unroot the phone with the offered option of SuperSU and flash only the saved recovery partition of the stock image?

Or are there any other changes made to the system which require a full restore of the whole stock image?

Regards
[OnePlus X General] the Doctor:
Unfortunately, no. It will still detect a modified system and the OT will fail.
[OnePlus X General] maxwell22:
I understand thanks.

Which partitions are necessary to be restored?

I guess, /system, /recovery and /data.

/boot and /efs don´t have to be restored. Am I right?

Regards
[OnePlus X General] the Doctor:
AFAIK, it only scans the integrity of system and it will only work with stock recovery.
[OnePlus X General] maxwell22:
Hmm, but this means, that the /data partition, which holds the userdata (contacts, messages, settings, installed apps) - correct me if I´m wrong - stays intact.

So would it be possible to restore the stock /recovery and /system partition and keep all user defined settings and installed apps or is this thinking to naive?

regards
[OnePlus X General] the Doctor:
Correct, if you only flash system, data stays intact.
[OnePlus X General] the Doctor:
The OP has been updated with TWRP 2.8.7.0 by [MENTION=4792450]h2o64[/MENTION] :good:
[OnePlus X General] demolatorul:
Can someone make a nandroid backup with root, I've soft bricked my opx and I can boot to twrp, but that's it, nothing else. I want to use the backup to restore from SD card
[OnePlus X General] Sonic-NKT:
On my OnePlus X (after fastboot oem unlock) i got a chinese OnePlus Screen with two options to select.

This was as i said completely in chinese and at the first try i seem to have tapped the wrong one because my phone wasnt reset.

I did everything again and this time tapped the right one (top) and after that the x was sucessfully reset and unlocked.

I guess its a question if you really want to unlock the bootloader, warning you that everything will be deleted, but thats just my guess.

You should add this to the first page :)

Sadly i forgot to take a picture :(

PS: i got my x this tuesday (europe, germany)
[OnePlus X General] No-New-Phone:
I got my device just a couple of hours ago, unlocked the bootloader had it set up to my first needs, formatted my 64gb-card to FAT32 and loaded it with music and stuff, then I had a backup in the way described above:

adb backup -apk -noshared -all -f backup.ab

worked like a charm. Still, if it would not work, in my very personal view you should not recommend a tool that cannot and will not work, like Titanium Backup. TB needs root, and if the phone is not rooted, you cannot use TB to backup before you root :) :D

But that's exactly what I'm going to do right now. I'm going to

* boot into twrp

* backup the partitions

* install SuperSU and maybe xposed,

* install TB and get my things back on track.

Thanks a lot for your Guide. It definitly helped getting me on board of the onyx-ship.
[OnePlus X General] the Doctor:
Duhh! I copied that text from another guide I wrote a while back for something else and didn't catch that. Thanks! :highfive:
[OnePlus X General] :
I think I will wait for All in One Root Tool :D
[OnePlus X General] neopbm:
Thanks for the tutorial, everything went well !

Now i hope that OnePlus will release full zip rom so that we can update easily
[OnePlus X General] vinay7:
how to unroot and install stock recovery and stock rom

pls help

Mod Edit: Opening post quote removed by [MENTION=4036181]Darth[/MENTION] , no need for that. Or at least use hide tags in the future. :good:
[OnePlus X General] the Doctor:
1. Quoting the OP is unnecessary and just makes reading the forum hard for everyone else. Also, per XDA rules only make a post once.

2. Follow this guide:

http://xdaforums.com/oneplus-x/general/ota-patch-003004201511031712-t3245185
[OnePlus X General] joho5:
where could we get just the recovery.img?

thanks

---------- Post added at 09:22 AM ---------- Previous post was at 09:21 AM ----------

Nmind...sorry. It was in the original post.
[OnePlus X General] goessensj:
My OnePlus X is stuck in the boot screen (the circle/square/triangle animation).

I unlocked my device and flashed stock recovery, stock rom and OTA update.

I then rooted my device, Android booted fine.

I installed a bunch of apps, restored app-data with titanium backup.

Finally rebooted, but now my phone is stuck in the boot animation.

I wiped cache/dalvic, no difference.
[OnePlus X General] the Doctor:
It's probably an app restored with TB. I'd do a factory reset, re-root and install/restore the apps one at a time to see which one is causing the problem.
[OnePlus X General] goessensj:
I tried to reflash the stock rom, i get the following error:

This package is for "OnePlus" devices; this is a "".

E:Error executing updater binary in zip 'PATH'

Error flashing zip 'PATH'
[OnePlus X General] the Doctor:
Have you tried doing this?
[OnePlus X General] goessensj:
Yes, i get the <This package is for "OnePlus" devices; this is a "".> error when using those images and twrp version.

Strange, because i was able to install the OTA this way and rooted with BETA-uperSU-v2.52.
[OnePlus X General] the Doctor:
Did you try a factory reset? If so, what happened?
[OnePlus X General] CamoGeko:
Yeah I'd say restoring apps is a bad idea, I'd start fresh if I was him.
[OnePlus X General] RJMacReady:
How do I fix the FAILED (remote: dtp not found) error?

I have multiple downloads (that I renamed to use) of the latest OPX version of TWRP.

h/t/t/p://i.imgur.com/n1BoF8T.png

(XDA won't allow me to post external links so that's the best I could do to show you)
[OnePlus X General] the Doctor:
Probably the img file is corrupt. Download it again and start over.
[OnePlus X General] RJMacReady:
Should I restart entirely? Or just where I reboot into Fastboot Mode, and carry-on from there? I tried part two, and it still shows the same error.

Will this require an entire wipe? If so, how do I go about that?
[OnePlus X General] the Doctor:
If you unlocked the bootloader, that is still unlocked. All you need to do is try to re-flash the fresh img file.
[OnePlus X General] RJMacReady:
C:\Users\#\Desktop>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.016s]

finished. total time: 0.018s

I read on the OnePlusX forum guide that I could go ahead with the next step even though both Device tampered and Device unlocked aren't BOTH set to TRUE.

I downloaded a fresh .img file from the link in the original post, but it didn't work, unless I'm misunderstanding. :/
[OnePlus X General] the Doctor:
I thought you said above that the device was already rooted. What recovery is on the device right now, and how are you booting into it?
[OnePlus X General] RJMacReady:
My device is rooted, yes.

I have Stock Recovery at the moment.

Booting into it? Through the Advanced Menu displayed when you hold the Power Button? I'm not entirely sure.
[OnePlus X General] the Doctor:
What happens when you re-download the TWRP recovery.img and try to flash it?
[OnePlus X General] RJMacReady:
When I tried to flash it the first time it froze at the logo, so I had to use Flashify to restore my Stock Recovery.

So that's why I've been trying to boot into recovery, instead of flashing it.

EDIT:

Tried flashing again with the same results: stuck at [1+] logo
[OnePlus X General] the Doctor:
Have you tried doing a factory reset from recovery, stock or TWRP?
[OnePlus X General] RJMacReady:
I've been avoiding it, hoping there's a workaround. I'm hoping it'll be a last resort.
[OnePlus X General] joho5:
I get the same error...have downloaded the .img from many different sources and have yet got TWRP to install and stick on the oneplus x.

all i ever get is this:

C:\adb>fastboot reboot

rebooting...

finished. total time: 0.003s

C:\adb>adb reboot bootloader

C:\adb>fastboot flash recovery twrp-2.8.7.0-onyx_f2fs_r4.img

target reported max download size of 1073741824 bytes

sending 'recovery' (14662 KB)...

OKAY [ 0.467s]

writing 'recovery'...

OKAY [ 0.295s]

finished. total time: 0.767s

C:\adb>fastboot boot twrp-2.8.7.0-onyx_f2fs_r4.img

downloading 'boot.img'...

OKAY [ 0.465s]

booting...

FAILED (remote: dtb not found)

finished. total time: 0.511s

C:\adb>

driving me nuts.

Havent been able to root the phone because of this.
[OnePlus X General] RJMacReady:
Are you sure you're supposed to be using the f2f2 version? I've been using the regular TWRP.

If you're just looking for root, use the method posted that doesn't use TWRP, that's what I did.
[OnePlus X General] joho5:
this particular time I was using that version...ive tried them all.

do you have the link handy on how to root without twrp?

thanks

---------- Post added at 11:18 PM ---------- Previous post was at 11:18 PM ----------

once you were able to root...would flashify then allow twrp?
[OnePlus X General] RJMacReady:
I've read it doesn't, but I haven't tried. I was curious about it.

EDIT: http://xdaforums.com/oneplus-x/general/guide-root-oneplus-x-twrp-pc-t3251027
[OnePlus X General] joho5:
I was able to root using that method but still can't get twrp...flashify flashes it as well but when I try to boot to recovery...it just hangs like before so I boot back into Android and flash stock recovery with flashify and stock recovery boots fine.
[OnePlus X General] goessensj:
I restored a backup from twrp (from before any apps where installed) and rooted.

I installed all my apps with Google Play and just restored the most "critical" ones.

Phone seems stable now after rebooting several times, no idea what app caused the problem.
[OnePlus X General] RJMacReady:
We might have to resort to an entire wipe. I'm not sure, honestly. I might just wait but I'm also impatient.
[OnePlus X General] Friend of Bill W.:
Sir, a simple thanks isn´t enough for me . All works well thanks to you doing an excellent job in making this guide step by step and quite easy even for newbies. Thanks a lot for your effort !
[OnePlus X General] the Doctor:
Thanks! Cheers, mate! :highfive:
[OnePlus X General] tassili:
Reboot into twrp

I rooted my device following your tuto, I didn't flash the twrp, I left the stock recovery, now my question is, how to reboot to twrp?

---------- Post added at 11:33 AM ---------- Previous post was at 11:30 AM ----------

I rooted my device following your tuto, I didn't flash the twrp, I left the stock recovery, now my question is, how to reboot into twrp?
[OnePlus X General] the Doctor:
Just do step 5E again. Make sure the recovery img is still in the folder with SDK tools and boot recovery with the "fastboot boot recovery ..." command.
[OnePlus X General] tassili:
Flash twrp

[QUOT3]Just do step 5E again. Make sure the recovery img is still in the folder with SDK tools and boot recovery with the "fastboot boot recovery ..." command.[/QUOTE]

Tks for your prompt reply, by the way can I do the step d, flashing twrp now and have as main recovery iso the stock one? Tkx for help
[OnePlus X General] the Doctor:
No worries--glad I could help! Because the stock recovery is available on the forum and it only takes a second to flash, I would personally do step 5D. I almost never run with the stock recovery because I'm a flashaholic :D
[OnePlus X General] tassili:
:good:

:good: then I will repeat the step 5d and flash it..
[OnePlus X General] Eradish:
my phone is currently waiting for me at home while I'm still abroad for more than a month.

Since this is my first android phone (previously jailbroken iphones) I want to dive straight into the entire rooting thing.

I see this guide is for windows I wonder if I can root this using a mac?

(googling rooting oneplus x on mac osx didn't give me anything useful)

Is the rooting procedure the same for every android phone or are there things to watch out for?

If someone could be so friendly to guide me to a page/youtube guide (youtube preferred actually ;) ) where they show how to root on a mac.

Thanks!
[OnePlus X General] the Doctor:
Rooting an Android device on Mac is notoriously difficult because Apple doesn't want to play nice with any OS made by a competitor. Can you borrow a friend's PC for an hour? There is a method of rooting in General that doesn't require a computer (Kingroot), but I don't recommend it since it leaves your bootloader locked and doesn't flash a custom recovery (TWRP) which will cause headaches down the road, especially if you need to restore the device.

Rooting a OnePlus device is about the same as rooting a Nexus device, but very different than say Samsung or HTC. It's best to follow the guide made for your specific device.