yashsingh1/xdaforums huggingface dataset:
[OnePlus X General] caliking92:
Failed flash -> bricked phone

Hello all,

MERRY CHRISTMAS! For the last two days, I have tried to follow all instructions of "CafeKampuchia" to unlock my phone and flash a custom ROM but finally failed miserably - was my OWN fault, the instructions are excellent, thanks for that!!!

Anyhow, I have ended up with a bricked phone now that would only show me the normal boot screen but nothing else. Hope you can help me with that :D

Here is my configuration & what I did with it according to steps described here: http://xdaforums.com/oneplus-x/general/discussion-how-to-root-oneplus-x-t3242830

---> section "Preliminary steps" [completed]

1. charged phone (OnePlus X E1003)

2. got adb and sdk tools installed + established connection with pc (RSA fingerprint etc.)

3. entered fastboot

---> section "Rooting the OnePlus X" [failed root]

4. Unlocked bootloader

5. Flashed TWRP recovery 2.8.7.0

6. Re-enable Android debugging BUT FAILED TO disable recovery protection (where in the world is that menu point???)

7. Downloaded SuperSU zip (a variety of versions 2.46, 2.49., 2.52, 2.64)

8. Used TWRP to make a Nandroid backup

9. Trying to install any of the SuperSu failed due to a failure in updating the binary file - "Check Root" always reports a negative on that

10. Tried Kingroot instead - failed as well

--- after spending 1 day trying to root the phone I gave up. SuperSu always says "installation failed". I have removed the software, downloaded it from playstore and tried several other tweaks but nothing worked

Since SuperSu failed, I thought I might flash a custom rom (cyanogenmod) to gain root privileges - is that reasoning ok???

So, I have downloaded several versions of "MasterAwesome's" release (http://xdaforums.com/oneplus-x/orig...-oneplus-x-t3254072/post63939510#post63939510).

---> step "Install Custom ROM"

11. I have downloaded the img file as ZIP and put it on my internal memory

12. Bootet into recovery mode and deleted cash + data

13. Tried to install the ROM but it always gives an error message like "E: Error executing updater binary in zip '/sdcard/CM 12.1/MA-12.1-20151217-onyx.zip"

14. Then, I did something stupid and wiped all internal memore (that probably included the TWRP nandroid backup)

15. Now my OPX obviously won't boot anymore

Here are my questions:

1) Do I need SuperSu to flash cyanogenmod? (I don't think so, since the mod should be rooted)

1.1) If YES, I would be happy for any instructions on how to root this damn phone - I am out of ideas...

2) Did anyone ever experience an error message like the one above when trying to install a custom rom?

3) Is there a copy of the "stock OS", so I could at least use my phone again? (I couldn't find any).

[I have flashed some custom roms already but - as you can see - am still quite new to this world - please be gentle and use small words :D]

Thanks in advance for your support!
[OnePlus X General] No-New-Phone:
I would recommend you to check out this thread and start from scratch:

http://xdaforums.com/showthread.php?t=3272108

Good luck and merry Christmas!
[OnePlus X General] caliking92:
Thank you, the "starting from scratch option" worked eventually. I have repeated the whole procedure again and this time managed to get root access. However, as soon as I perform a wipe and I try to flash the CM version in TWRP 2.8.7.0, the same error comes:

13. Tried to install the ROM but it always gives an error message like "E: Error executing updater binary in zip '/sdcard/CM 12.1/MA-12.1-20151217-onyx.zip"

Does anyone have a clue on how to overcome this? Pretty please?!
[OnePlus X General] No-New-Phone:
Try it again, but place the zip-file to the internal memory. Same result?
[OnePlus X General] trendchanger:
do we need to enbale compression in twrp while taking backup??..also what are tha advantage and disadvantage of it??..compression might save spacee..but is der any disadvantage???
[OnePlus X General] CamoGeko:
The only disadvantage I see is that it takes longer to backup.
[OnePlus X General] thisbansal:
Nicely detailed post. I was resisting myself before to not to root but in the end I guess an Android is not worth with out it.[emoji106]
[OnePlus X General] trendchanger:
bcause this backup has taken my 2.5Gb of internal space.:(
[OnePlus X General] R V:
Can you please explain how to completely unroot opx after following above procedure
[OnePlus X General] the Doctor:
1) Quotes of the whole OP are totally unnecessary.

2) Finding and flashing system.img will unroot the device and restore its system partition to factory condition:

fastboot flash system system.img

There are a couple threads in General where this may be found.

3) This is why the guide tells you to do a backup BEFORE rooting. ;)
[OnePlus X General] SunyD:
hello and happy new year

i have a question following the previous.

once the TWRP backup done, can we copy the TWRP folder to SD card and then to computer and erase this folder from the phone to free space and put it back only when need it ?

thanks, regards
[OnePlus X General] Nexx_:
Thank you bud !
[OnePlus X General] the Doctor:
Yes, no problem.

Glad you found it helpful :good:
[OnePlus X General] tofublock:
Bootloader unlock is done in stock recovery as I came to suspect. My way out in case somebody has a similar problem:

-Flash SuperSU from recovery

-Flash stock recovery with Flashify

-Unlock bootloader again

-Start over

Hope this is useful to somebody...
[OnePlus X General] toole:
How would one relock the bootloader ?

I've got the same problem. Could only backup to internal storage. Every time I try to backup to external SD card, I end up with the unable to create folder error
[OnePlus X General] tofublock:
Don't relock the bootloader. I just did it without thinking but it doesn't do anything apart from creating headaches.

IF you encrypted your phone like I did, I think there's no way around formating your /data from TWRP=>Wipe=>Format Data, since TWRP doesn't support encrypted partitions. As I said, not even a factory reset did anything for me at that point.

Of course, you won't be able to keep your data that way...

edit. Oh, by the way: Lesson learned - phone encryption isn't worth it for me at the moment.
[OnePlus X General] toole:
I didn't encrypt my phone. I just noticed that after using the Fastboot command ,"Fastboot unlock bootloader " it said OK but it didn't reboot my device and never wiped it .and I cannot make backup to my external SD card
[OnePlus X General] tofublock:
Did you manage to boot into TWRP or CWM? How did you try to backup?
[OnePlus X General] toole:
Yep successfully flashed twrp and booted into it .I could wipe cache and do other stuffs .TWRP works as it should. Just cannot backup to external SD card.backing up to the internal storage works fine.
[OnePlus X General] tofublock:
Have you tried mounting the SD in twrp?
[OnePlus X General] toole:
Well., i mounted system and others,, I could read my sd card through storage, I don't think I've got that option to mount sd. If I saw it I would definitely have mounted it.

---------- Post added at 02:51 PM ---------- Previous post was at 02:49 PM ----------

Well., i mounted system and others,, I could read my sd card through storage, I don't think I've got that option to mount sd. If I saw it I would definitely have mounted it.
[OnePlus X General] tofublock:
Try to manually mount the SD. If that doesn't work, I'd guess you have yourself a filesystem problem. Different SD? Format to different filesystem?

Other than that no clue, sorry.
[OnePlus X General] matapr0:
Hello guys, I have a weird issue

Few weeks ago I unlocked the bootloader, installed TWRP, rooted, flashed a kernel, etc. All went fine. Today I tried to flash an updated TWRP via fastboot and it tells me the bootloader is locked! I've seen some people with the same problem, can anybody help!?
[OnePlus X General] tinkureddy:
thank you

<Mod Edit - Don't Quote OP>

thank you xda...:good:
[OnePlus X General] the Doctor:
Glad it worked out for you :highfive:
[OnePlus X General] jamses:
Hi,

Tried unlocking the boot loader with "fastboot oem unlock".

The device didn't restart (didn't go through the automated unlocking process) and I never got the "unlock will erase...".

drivers were installed.

oem device-info shows :

"tampered : false

unlocked : true"

Can someone help me ?

Thanks in advance

J
[OnePlus X General] toole:
Ok bro, I've got the same issue and still waiting for an answer. But all the same, Im rooted and have twrp running but I cannot make a nandroid backup to my external sd card.
[OnePlus X General] jamses:
How do you have TWRP running if you didn't unlock the bootloader ?

I rooted my device via Kingroot but I would like to flash TWRP.

Thanks
[OnePlus X General] toole:
Flashed twrp straight off using the flash recovery command after trying to unlock the bootloader.

Twrp flashed fine and worked even with the bootloader command not erasing the whole phone.

---------- Post added at 05:59 AM ---------- Previous post was at 05:55 AM ----------

Well after this step above., just fastboot recovery.....

Make sure you use the spark twrp.

And is your phone the white Chinese one which has the h2o os as default?
[OnePlus X General] jamses:
I don't want to make any mistakes...

What I should do is

1. Try to unlock the bootloader.

2. flash TWRP recovery

3. reboot using "fastboot recovery"

4. pray that the device is not bricked

anything else I missed ?

Thanks
[OnePlus X General] toole:
Yeah that's it. And try making a nandroid backup to your sd card after you finished installing twrp and let me know please how it went. As for installing twrp you'll have zero problems. Go ahead
[OnePlus X General] the Doctor:
^^^ This conversation is why you should not use Kingroot and start flashing stuff, or start flashing stuff before the bootloader is unlocked.
[OnePlus X General] toole:
So what? What has been done as been done and pple are here wanting help. If you ain't got any clues, jes don't post irritating comments
[OnePlus X General] the Doctor:
But the mistake doesn't need to be repeated. There are lots of noobs on xda messing up their devices. Breaking recovery or the ROM with the bootloader locked and no backup or fastboot image can be a disaster. People need to know how to avoid that, which is my point, even if it annoys you.

BTW, if you get in too deep, try this thread:

http://xdaforums.com/oneplus-x/general/guide-mega-unbrick-guide-hard-bricked-t3272108/post64339270
[OnePlus X General] vikram66778:
Is it possible to flash OTA zip file through Stock recovery with out restoring the backed up rom and loose root?

And, as we are not flashing twrp, is it necessary to unlock the bootloader?
[OnePlus X General] the Doctor:
No, because during the ota process, the integrity of the system partition is checked, and if it fails, it won't flash the update. Since rooting modifies the system partition, it breaks otas regardless of what recovery you use.

About unlocking the bootloader, see the last several posts. If you bork recovery or your ROM with a locked bootloader, you'll soon find out that it wasn't worth your misery. There is no downside to unlocking your bootloader aside from losing your data one time, but the benefits are many. I'd strongly recommend that you follow the guide as-written.
[OnePlus X General] vikram66778:
So, if i unlock the bootloader, flash twrp and root the device..

1. Can i flash OTA zip files through twrp? If yes, am i correct to think that the root will be lost!

2. If i want to completely revert back to stock, can i simply flash the stock recovery and then flash the full rom through stock recovery?

3. If i flash full stock rom through twrp, loosing root, will i be able to receive OTA's as recovery doesn't matter for OTA's?
[OnePlus X General] the Doctor:
There is a thread by SpiritBreak3r in General linked in the OP for flashing otas once rooted. Once you do so, it will revert the device to stock unrooted (with the bootloader still locked) except for recovery unless the ota includes a recovery, but some don't. So:

1. Yes, yes.

2. Yes, yes.

3. Yes.
[OnePlus X General] vikram66778:
So, you mean to say that i can't receive OTA's directly from Oneplus, if i am rooted, but can flash OTA zip files, either through twrp or stock recovery, right?
[OnePlus X General] the Doctor:
Correct
[OnePlus X General] vikram66778:
One more help.. Can you tell me how to take a reliable efs backup, from which one can restore the partitions safely in case some thing goes wrong?
[OnePlus X General] 5star02707:
this is what i normally do just boot TWRP instead of flashing it to keep stock recovery. other than that great tutorial
[OnePlus X General] MarkoPam:
[MENTION=5181573]vikram66778[/MENTION] - you can take EFS backup inside TWRP backup, just select EFS, and swipe to backup. I used blue_spark TWRP.

I didnt root before flashing blue_spark kernel on stock 2.1.3-x ROM.

My question is, can I flash SuperSU after flashing blue_spark kernel first, is it SAFE, or do I need stock kernel for root. I didnt root before flashing blue_spark kernel.

Tnx
[OnePlus X General] a.cid:
What twrp are you guys using right now? I ask this because the thread mentioned in OP is locked.

I did find twrp on the CM12.1 thread, along with one on the OnePlus forums.
[OnePlus X General] the Doctor:
I hadn't noticed that, so thanks for bringing it up. It looks like the only one we (xda) have right now is this:

[Recovery][6.0][Unofficial][TWRP][2.8.7.0][01/21/2016]

Edit:

OP updated accordingly. I'm surprised that over two months after it hit the market, we still don't have official TWRP for the OnePlus x.
[OnePlus X General] a.cid:
One query

I have the opx on OxygenOS v2.1.3-x. Unlocked bootloader, flashed twrp from link in my previous post (the one from the OP forums), backed up stock rom, rooted and installed xposed.

There's news that the v2.2.0 rollout has begun.

If I understand this correctly, to go back to 2.1.3 to get OTA, I just have to restore the stock rom that I backed up, from twrp?

Please correct me if I'm wrong, before I take the leap :P
[OnePlus X General] the Doctor:
With previous firmware updates and on other OnePlus devices this has been the case, except that sometimes stock recovery is required. Usually, an unmodified system partition is all it takes, so a restore should be fine.
[OnePlus X General] ArmStrongDickPunch:
deleted (got everything to work) thanks for the guide!
[OnePlus X General] solidwave643:
Hi, don't know if it's the right place to ask, but i'll do anyway... so, rooting your device doesn't void warranty but how about installing custom recovery? being installing twrp part of rooting a presume not but i prefer asking. And what about installing custom rom? does it void warranty? sorry for bad english :)
[OnePlus X General] Nanolo:
In no case you will lose warranty.. It happens just in case you'd cause any hardware damages by modding device.. ?

Inviato dal mio ONE E1003 utilizzando Tapatalk
[OnePlus X General] solidwave643:
Great, thanks a lot!
[OnePlus X General] Fap4k:
[MENTION=4385555]CafeKampuchia[/MENTION] Bootloader again..?
[OnePlus X General] the Doctor:
I don't understand your question.
[OnePlus X General] epiphone:
Followed this guide to root and unlocked bootloader, also flashed (not just fast boot) the blu spark twrp. Also gotten xposed.

Recently the phone automatically prompted me to ask whether would like to download the 2.2.0 OTA which is around 40mb. Should just accept and let it flash itself, or should I download the OTA zip, or full zip myself and flash through twrp?
[OnePlus X General] Nanolo:
You can dirty flash your ota by twrp, after flashing 2.1.3-x full rom, or flash directly 2.2.0 full rom.. If you changed data and cache partitions in f2fs, first convert back in ext4, then clean flash 2.2.0 full rom..

Inviato dal mio ONE E1003 utilizzando Tapatalk
[OnePlus X General] killacam1989:
Ok I need some major help. Everything seems confusing. I rooted my OnePlusX....then wanted to install TWRP and backup my stock...found out that it would be VERY wise to backup a non-rooted stock partition...so I did full unroot through SuperSU...I tried to download the latest OxygenOS and install it....it failed (probably because the system.img was tampered with via rooting...I thought unrooting would enable the OTA to push through but it didn't). So now here is my question.

I need to restore my system back to stock so that I can download the OTA and install the latest version on my phone. Next, I would like to backup the stock partition (& recovery if possible), and then install TWRP and finally root.

This guide seems a little complicated, as my brain is wired to install TWRP first...backup stock partition, and then root. This guide is saying I should root first, then install TWRP so....I'm a bit lost. Can anyone point me in the right direction?
[OnePlus X General] Monak24:
You need to first completely root your phone.. That involves unlocking boot loader (data wipe) + flashing twrp (optional but recommend) + fash super su (root access).. Then u may do all the backups and also restore the stock roms from mirrors available on XDA site...
[OnePlus X General] the Doctor:
Then you need to read it again. Here are the major steps:

As per the guide, you should always backup before, not after rooting.

Back to your question:

Unrooting still leaves the system partition in a tampered state. As the guide mentions off the bat, that will prevent the OTA from working because it checks the integrity of the system partition first.

You have to restore your device to stock to flash the update. There are threads in General already to help with that. Then follow this guide to flash recovery, backup and re-root in that order.

BTW, how did you root the first time? Is your bootloader unlocked?
[OnePlus X General] dani.galla:
Hi to all.

I have a problem with flashing twrp.

I unlocked my bootloader and I flashed custom recovery, but it seems not permanent. I mean when I boot my phone and and enter in recovery via advance reboot, the phone enters in stock recovery
[OnePlus X General] the Doctor:
Try to flash the recovery again ("fastboot flash recovery twrp....img") and let us know what you see in the cmd window after that.
[OnePlus X General] dani.galla:
It says that it's everything ok. I don't understand why

Edit:

these are the logs of the terminal:

C:\Android>fastboot flash recovery twrp-2.8.7.0-onyx_f2fs_v12.img

target reported max download size of 1073741824 bytes

sending 'recovery' (12982 KB)...

OKAY [ 0.420s]

writing 'recovery'...

OKAY [ 0.263s]

finished. total time: 0.686s

and device info:

C:\Android>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.024s]

finished. total time: 0.026s

edit again:

seems like with command: fastboot boot recovery is working.

I'm backuping system.

Thanks anyway

edit again:

when I do reboot recovery, it boot in the stock one. This is really strange
[OnePlus X General] Kiras_PL:
Hi, I'v got a couple of questions with things i'll do with this thread:

1st question: If i unlock the bootloader will my warranty will by still valid ?

2nd question: Is it possible to lock bootloader ?

3rd question: As i read before, we don't have a full rom to flash it via pc right (so we can avoid backing up our rom after every update and so on) ? So, so far we have only updates which can be downloaded from here ?: (http://xdaforums.com/oneplus-x/general/rom-mirrors-official-oxygen-os-rom-ota-t3301797)

4th question: When something will go wrong with my phone (for ex. broken button), can i just boot into TWRP recovery (via adb or by flashed TWRP), restore my stock unrooted rom and send it on warranty ? Do i need to do something more like locking again bootloader (question 1st :P) ?
[OnePlus X General] enkidu70:
Unfortunately this does not work for me. I have written all details here:

http://xdaforums.com/showpost.php?p=65098401&postcount=37

Any help is appreciated! Tnx in advance!

Enkidu
[OnePlus X General] the Doctor:
Yeah, that is strange. Potentially a problem with TWRP? Keep an eye on replies to this post:

http://xdaforums.com/showpost.php?p=65098401&postcount=37

It seems you are not alone:

It seems to be a TWRP problem, so help will probably come in the thread for that. I really miss the good old days of ClockworkMod recovery :/

#1 is answered in the disclaimer section of the OP.

#2 Yes, but why?

#3 Hence why the OP tells people to backup their stock, unmodified ROM before modifying system.

#4 Yes, but read the OP about warranty. Also, there is a tamper flag on the bootloader, so they'll know it had been unlocked, even if you re-lock it.

Hope that helps.
[OnePlus X General] enkidu70:
Seems that this twrp build does not work for all OPX! (See my post from yesterday...)

But there ist another build around, that also worked for me!

Solution see http://xdaforums.com/oneplus-x/development/recovery-t3295363/post65117037#post65117037

[MENTION=4385555]CafeKampuchia[/MENTION] - could you mention this in your guide? Tnx.

Enkidu
[OnePlus X General] Nanolo:
Same problem for me; then i flashed the blue spark recovery and everything went fine.. You can find it at dowload link of blue spark kernel in its thread..?

Inviato dal mio ONE E1003 utilizzando Tapatalk
[OnePlus X General] dani.galla:
Yes, I flashed the blu spark's recovery, and seems ok
[OnePlus X General] the Doctor:
I can't keep changing the OP for every TWRP that shows up, disappears or has problems, otherwise I'd be changing it everyday. Once the situation settles down and we have a reliable version of TWRP, I'll change the OP again.

In the meantime, it's best for people to follow the TWRP thread linked in the OP for changes / the latest version / workarounds:

http://xdaforums.com/oneplus-x/development/recovery-t3295363
[OnePlus X General] the Doctor:
Official TWRP for Onyx is up:

https://twrp.me/devices/oneplusx.html
[OnePlus X General] Kiras_PL:
Hi, i've got one more question. If I want to have SuperSU updated directly from google play how should i do it ? After flashing TWRP should i just open google play and download superSU or should I install first SuperSU in .zip file ? But then i won't be able to download it from google play to have updates. Any ideas ?
[OnePlus X General] the Doctor:
You can only root the device by flashing the zip file in TWRP, but then the SuperSU app will update fine in Play Store.
[OnePlus X General] sallusalman:
HI. Please help.

I have rooted my OPX with kingroot, installed TWRP with flashify. I did all this without unlocking the bootloader. When i try to unlock bootloader with

fastboot oem unlock it shows okay and reboots to recovery. Then i reboot the system. Unfortunately all my data is available and and my bootloader is not unlocked. I tried several times. All the time it shows OKAY and reboots to recovery. Please help.
[OnePlus X General] the Doctor:
[MENTION=4497853]StraightEdgeKid[/MENTION], can you give him a hand?
[OnePlus X General] sallusalman:
This is what i get on

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.015s]

finished. total time: 0.016s
[OnePlus X General] StraightEdgeKid:
Hi, im not sure wjats the problem with your device, but reverting fully to stock Oxygen OS will definitely help you. please install stock recovery first from here, http://xdaforums.com/oneplus-x/general/ota-patch-003004201511031712-t3245185

Then do install Oxygen OS 2.2.0 from my thread, heres link http://xdaforums.com/oneplus-x/general/guide-root-oneplus-x-twrp-pc-t3251027

By doing this, you'll be fully on stock rom, you can unlock bootloader now.

Let me know if you face any trouble while doing this. :)
[OnePlus X General] the Doctor:
[MENTION=6665807]sallusalman[/MENTION], maybe try this, then attempt unlocking the bootloader again.

http://xdaforums.com/oneplus-x/general/guide-mega-unbrick-guide-hard-bricked-t3272108
[OnePlus X General] sallusalman:
thanks for the reply. will try it soon :)