yashsingh1/xdaforums huggingface dataset:
[OnePlus X Android Development] giannis_mathiou:
Hello, I'm trying to understand what is going on exactly with recoveries and OnePlus X. I was using a Nexus 6 until today that I got to my hands a Rooted OnePlus X with TWRP 3.1.0-0 installed -which I had rooted a year ago and after a lot of pain, I don't remember how I managed to install TWRP and Lineage OS-, I wiped everything from the Internal storage and flashed Latest official Lineage OS alongside with FrancoKernel r11, everything works like a charm.

After setting up the phone I decided to update to latest TWRP image, so I downloaded twrp-3.2.1-0-onyx from official website and flashed the recovery image with Flashify -successfully- when I try to reboot into recovery the phone stays at the OnePlus logo and nothing happens restoring the previous recovery image works fine and I just cannot understand what is going on. Please anybody can walk me through why this happens and a possible way to "fix" and get to latest twrp-3-2.1-0 ?

My baseband version is 0.1.c1.11-00006-M8974AAAAANAZM-1 the phone when is connected to PC shows up as ONE E1001.

I hope this information helps.

Thanks in advance.
[OnePlus X Android Development] gendarius:
Why did you use Flashify? You can actually update the recovery directly from recovery using "install image" button.
[OnePlus X Android Development] giannis_mathiou:
I'm just used of it.

Just installed it through TWRP and I still get the same strange behavior. Also I have tried with the official TWRP app.
[OnePlus X Android Development] Nachiket.Namjoshi:
did u download it properly? could u verify the md5?
[OnePlus X Android Development] giannis_mathiou:
Yesterday I was checking the md5 and I was getting different md5 checksum in the recovery.img. Today I redownloaded form the website and the 3rd time got recovery with the correct md5 checksum. Flashed it through Flashify -not that it matters- I rebooted once, then rebooted to recovery and everything works just fine :D

Thank you very much Nachiket.Namjoshi and all the community!
[OnePlus X Android Development] seacowx:
Use fastboot instead. It always worked for me.
[OnePlus X Android Development] omkolte17:
can i flash this without getting stucked in bootloop while using OOS 3.1.3:rolleyes:
[OnePlus X Android Development] Nachiket.Namjoshi:
use the official one - HERE
[OnePlus X Android Development] omkolte17:
thanks for ur quick reply but I already flashed the blu spark TWRP on OOS 3.1.4
[OnePlus X Android Development] ratan#66:
Bluspark twrp v_41 is my current recovery can I update it to official Twrp throw This .

Plz help me and plz explain me how to do
[OnePlus X Android Development] omkolte17:
Yes you can upgrade to official recovery. But I would suggest you to flash the recovery using fastboot.

Follow the instructions:

1. Download the official twrp.

2. Install minimal adb and fastboot

3. Extract the recovery.img from the zip you downloaded

4. Copy the recovery.img in the location given below

C:/Program Files/ Minimal fastboot and adb

5: Hold shift key and right click in the folder.

6. Select the "Open Command Window Here" option

7. Reboot your phone in fastboot mode

8. Connect your phone to PC.

9. Type "fastboot flash recovery recovery.img"& hit enter

10. Type " fastboot reboot"

Your device will boot into system and then you can reboot to your new official twrp recovery.
[OnePlus X Android Development] Kéno40:
That easier flashing IMG file from the TWRP itself.

Install

Flash Image

Select file

Flash as recovery

Then reboot recovery
[OnePlus X Android Development] ferk:
There is a new version of TWRP

twrp-3.2.2-0-onyx.img
[OnePlus X Android Development] Flak3:
just flashed this on my stock and bootloader unlocked OPX, but I dont have acces to storage (0MB), to flash SuperSU.

Is this a regular problem, or just this new version? (Or do I have to wipe data always, when first flashing twrp?)

EDIT: I have a "repaired" OPX with v15 bootloader, so that might be the problem.
[OnePlus X Android Development] giannis_mathiou:
I tried to install latest TWRP I installed the image from TWRP as Recovery but now I cannot boot into TWRP booting to system works great. I had the same problem with my Nexus 6 and I used fastboot to flash the recovery, so I said not a big deal I will just reboot to bootloader and fastboot flash the recovery image. But here comes the strange part, although my OnePlus X shows in list with adb devices it doesn't with fastboot devices while my Nexus 6 keeps showing in both adb devices and fastboot devices. I have windows 10 64bit and I reinstalled the usb_drvivers. Could somebody drive me what I'm doing wrong?
[OnePlus X Android Development] AmoledLove:
​

Hello, I flashed official recovery image over unofficial version and when I hit reboot to recovery, it got stuck at one plus logo and when I try to reboot the system the screen blinks and now my device seem bricked. I tried fastboot mode but USB debugging isn't on so device not found. Please suggest me some help, I have access neither to recovery nor to system. Thank you.
[OnePlus X Android Development] Kéno40:
First try to reflash the old recovery from Fastboot and see if it's OK.

Try with last one too.

If still the same :

=> Mega unbrick Guide
[OnePlus X Android Development] AmoledLove:
Fastboot mode won't help. That guide saved me to unbrick the device. Seems like the recovery image that I flashed didn't download properly despite showing download complete. Is it okay to flash the official twrp now? (Updated to new bootloader) Anyway your reply made my day. Thanks a lot. ?
[OnePlus X Android Development] No-New-Phone:
I did nealy exactly this, I just hit the "restart" button after the flashing ended (without going back to the main menu and select "Reboot - Recovery". But I guess this was not the reason for my actual problem: I cannot boot to recovery. I can start the system (with lineage 14), but when I try to boot to recovery, I get stuck on 1+ screen.

Then I read this thread and the warning "This recovery MUST NOT be used to flash a ROM that is based on old bootloader", so this might be the problem. To tell the truth: I have rooted the onyx on the very first day, and I surely dont remember the firmware version that was installed any more.

What's driving me nuts: the system is not rooted, and for some reason the adb bridge doesn't show up when I connect the phone to my computer. It doesn't even show the USB-connection dialogue (loading, share files etc). I can switch to fastboot, but here it's the same: fastboot devices doesn't show me anything. Not on my linux machine, not on a windows machine, not with different usb cables on various usb ports, nothing. I guess I have to go the mega unbrick path...

Unless anybody has some good ideas.
[OnePlus X Android Development] Kéno40:
Mega unbrick guide

Then install and boot OOS 3.1.4

Then unlock BL again and install TWRP from TWRP .me

Then you cvan switch to a recent ROM (I 'd advise Pie RR)
[OnePlus X Android Development] No-New-Phone:
All right, the onyx is back with Pie RR!

It took some time because other priorities. But what's really cool: I had problems installing the chinese drivers, so I asked the oneplus support for help. They wanted to help me with a remote session, but I couldn't be at home at their office-hours. Finally, the phone got picked up by ups, sent to their repair-center in Poland, and returned to me - all free of charge.

I am really happy about support of a phone that is eol since ... two years? Big plus for 1+!
[OnePlus X Android Development] KareemSober:
hey mahesh8348

you should check if you had a previous super su or the wrong binary kind, also to be sure try to flash the uninstaller then flashing back the installer and be sure that your system along with the kernel are working .

if it dose not work you should try checking your recovery if it s up to date worst case senario you can format or even reinstall the system it self through "fast boot" .

if after all of that it did not work try asking a repair to check the hard wear .

it once happened with me and i had to hard rest the phone .

good luck :D
[OnePlus X Android Development] Nachiket.Namjoshi:
well, I dont think i would include them :3

we dont need it as much as we need the flashing capabilities
[OnePlus X Android Development] matwaking:
D2tw doesnt mattet that much,but usb-otg does,atleast for me:confused:.I have a dedicated otg:cowboy: which I use to flash Everything and anything that can be flashed on onyx:D:D
[OnePlus X Android Development] Nachiket.Namjoshi:
Oh. Next update ?
[OnePlus X Android Development] matwaking:
:D:DThanks mate:good:
[OnePlus X Android Development] ccaappton:
Does this rec support f2fs? I can not mount my data partition in the recovery mode:(
[OnePlus X Android Development] Nachiket.Namjoshi:
No, no f2fs support
[OnePlus X Android Development] ccaappton:
I really hope you could add f2fs, unless there is strong argument against it. F2fs users could face chicken and egg problem if system partition is not ready for the new bootloader. I had to use the unbrick guide to go back to old bl and rec
[OnePlus X Android Development] Exodusche:
Successfully back up and restore OOS3?
[OnePlus X Android Development] dadaz007:
Yes many times.
[OnePlus X Android Development] Nachiket.Namjoshi:
Yes.

Follow following steps:

Boot to this twrp

backup -> select whatever you want to backup

after doing backup, flash OOS 2.x (if you want to downgrade Bootloader and Flash other ROMs)

If you flash Old Bootloader based ROM, flash older TWRP

If you want to flash a ROM based on new Boot loader, flash it iwth other add-ons if you want

When you restore:

Coming from Old Bootloader:

Flash OOS 3.x

Flash this Recovery

Boot to this recovery

restore

New Bootloader:

Normal restore should do the trick

PS: Ignore random caps, Im high.
[OnePlus X Android Development] Exodusche:
Wow what a great response. Multiple thumbs up thanks I will proceed with flashing ashwins CM14.
[OnePlus X Android Development] gwellplayed:
Can I flash xposed framework through this recovery?
[OnePlus X Android Development] Aashay:
Yes
[OnePlus X Android Development] gwellplayed:
Hi, can I use this TWRP to flash roms? Thanks.
[OnePlus X Android Development] dingermtb:
Yes, you can flash any zip file as long as it's compatible with your device.

A.R.I.S.E. with my Zombiefied Moto Z Force
[OnePlus X Android Development] alabama20:
Sorry, I did find my answer regarding the OTG issue. It would be really nice to have it for backup purposes.
[OnePlus X Android Development] Nachiket.Namjoshi:
Yes. New build upcoming in a couple of days...
[OnePlus X Android Development] Nachiket.Namjoshi:
UPDATE !

UPDATE !

DOWNLOADS:

twrp-3.0.2-0-onyx-20161020-085152.img - AFH​

CHANGELOG:

[B]twrp-3.0.2-0-onyx-20161020-085152.img[/B]
* Bring back DT2W
* Bring back OTG
[OnePlus X Android Development] Jude Aranha:
Thanks Nachiket !
[OnePlus X Android Development] Adesh15:
Great
[OnePlus X Android Development] Lokesh Balla:
Thank you
[OnePlus X Android Development] martinusbe:
Have a link to your source for me, so i can build mr-recovery fast?
[OnePlus X Android Development] Nachiket.Namjoshi:
Hello, source to the recovery is same as that of the official, just used my kernel with new bootloader changes to the tree.

Check this commit. that will sort it out...

EDIT: In kernel, I used these two (one - two) commits. Just, normal New bootloader changes. nothing more.
[OnePlus X Android Development] martinusbe:
Yeah, i know. it's because i added those to my trees i have to rebuild mr recovery. I just thought maybe you had a 7.0 manifest ready to sync. And i would just have to add mr. :)
[OnePlus X Android Development] Nachiket.Namjoshi:
ah, 7.0, I just did few tweaks to official source to work with new bootloader, nothing more... sorry :(
[OnePlus X Android Development] Tiongkia:
[MENTION=4797402]Nachiket.Namjoshi[/MENTION]

Thank you for the twrp. Used the latest to flashed DU and backup. So far so good.
[OnePlus X Android Development] peter_baz:
up to how many Gb can the recovery read for an OTG?

i have a 16gb one and its not recognised.

thanks
[OnePlus X Android Development] Nachiket.Namjoshi:
Typically no limit...

I have a 32 & a 16 gigs otg, its read fine.

Can I know which recovery did you flash?
[OnePlus X Android Development] peter_baz:
The 20161020.

I have another 4gb which works fine...

The 16gb one is not recognised at all in recovery but works fine in system

Do i have to have it in a specific format?currently fat32 and its a 16gb sandisk
[OnePlus X Android Development] Nachiket.Namjoshi:
cannot reproduce the issue, su cannot say anything without logs, can you please provide me some log?
[OnePlus X Android Development] peter_baz:
Sorry to bother you its false alarm.seems like all i needed to do was to insert the otg after it had booted to recovery.

Thanks again
[OnePlus X Android Development] pexluka:
I didnt understand how to flash custom twrp,where should i type the code?
[OnePlus X Android Development] Tiongkia:
Its stated in op. Please read. I
[OnePlus X Android Development] pexluka:
Cant find it,dont know where to type the code
[OnePlus X Android Development] Nachiket.Namjoshi:
Here you go!
[OnePlus X Android Development] Exodusche:
That's beautiful man brought a tear to my eye.
[OnePlus X Android Development] pexluka:
Dude I already have twrp, I need to install custom twrp.. In description is said that after I boot in Fastbook I have to type certain code somewhere, but I don't know where..

---------- Post added at 07:25 AM ---------- Previous post was at 07:24 AM ----------

Dude I already have twrp, I need to install custom twrp.. In description is said that after I boot in Fastbook I have to type certain code somewhere, but I don't know where..
[OnePlus X Android Development] Nachiket.Namjoshi:
In the command prompt (windows) or terminal (if mac/linux) of course!
[OnePlus X Android Development] pexluka:
Ty, have linux
[OnePlus X Android Development] Nachiket.Namjoshi:
UPDATE!

UPDATE !

DOWNLOADS:

twrp-3.0.2-0-onyx-20161102-155427.img - AFH

CHANGELOGS:

[B]twrp-3.0.2-0-onyx-20161102-155427.img[/B]
* onyx: Disable install on old TrustZone
[COLOR=Red]NOTE: Newer CM builds need this change apparantly[/COLOR] (testing needed)
[OnePlus X Android Development] Riario:
İ am flash a last update but can't reboot recovery mod. When i am reboot recovery mod, phone open twrp but after 2 second phone do it system reboot. İ use CM 13 (20161101). sorry very bad english
[OnePlus X Android Development] Nachiket.Namjoshi:
Ah! Drat! My bad, will post an update later today!
[OnePlus X Android Development] Riario:
But now it works very well. After a few tries. Thanks for you
[OnePlus X Android Development] fossftw:
If i have to upgrade to a newer version of your TWRP, should i just flash the newer one in fastboot mode?

Also, I am facing an error while trying to backup using this TWRP. I am backing up my System, Data and Boot partitions which amount to a total of about 6.1GB. I have selected the backup storage as my SD card (with 18 GB free). However after starting the backup, i get this error:

Can not create '/external_sd/TWRP' folder (read-only fie system). Failed to make backup folder.

Any clue as to how to make my SD card writeable? I am not using it as adoptable storage.

ROM: OOS 3.1.3

TWRP: twrp-3.0.2-0-onyx-20161102-155427.img
[OnePlus X Android Development] Nachiket.Namjoshi:
Well it seems to be working fine here, if you could give me some logs or a screenshot and steps you took I could try to reproduce...
[OnePlus X Android Development] fossftw:
Never mind. It was an issue with the SD card itself. I backed up my data and formatted it again. Works like a charm now.

Any idea about that update question? Can i just flash updated versions of your TWRP in fastboot mode?
[OnePlus X Android Development] Nachiket.Namjoshi:
Yes! Any version can be directly flashed through fastboot.

However, if you just want to test out before hand, you can put your phone into fastboot mode and

fastboot boot <twrp-path>

That would boot into the twrp temporarily where you can run your tests.

;)
[OnePlus X Android Development] fossftw:
Thank you for trick!

Off topic, but I have one other question. Does the fastboot method of flashing recoveries work for every android phone? I have a Lenovo mediatek phone (Lenovo A7000), and I have to use a software called SP Flash tool to flash recoveries to it. Since fastboot is so much more convenient to use on Linux, can I use it to flash TWRP to this Lenovo phone?
[OnePlus X Android Development] Nachiket.Namjoshi:
Yes, you can use but instructions might differ, you need to see if the device is recognized by fastboot or not, there are identifier codes for a few phones (only those which need it, onyx doesn't)

But mostly it's the same.
[OnePlus X Android Development] fossftw:
Thanks for the info. Really appreciate your help.
[OnePlus X Android Development] Adesh15:
[MENTION=4797402]Nachiket.Namjoshi[/MENTION] We need Aroma
[OnePlus X Android Development] Jude Aranha:
I second that.
[OnePlus X Android Development] Diego98:
When I try to flash a rom with this recovery i always have an error 7
[OnePlus X Android Development] Nachiket.Namjoshi:
UPDATE !

UPDATE !

DOWNLOADS:

twrp-3.0.2-0-onyx-20161109-091415.img - AFH

CHANGELOGS:

[SIZE=2][B]twrp-3.0.2-0-onyx-20161109-091415.img[/B]
* Fixed unwanted errors
* Fixed up typos
* Fixed long boot times for certain devices[/SIZE]

This new update will fix it.

soon brothers, soon!
[OnePlus X Android Development] matwaking:
Yeah!! I'm off to learn aroma Mr.Rude
[OnePlus X Android Development] Nachiket.Namjoshi:
lewl, take it slo, got exams, so its gon take a lil time :(
[OnePlus X Android Development] matwaking:
np I'm a slowww learner:silly::p
[OnePlus X Android Development] Nachiket.Namjoshi:
UPDATE!!

DOWNLOADS:

twrp-3.0.2-0-onyx-20161116-113742.img - AFH

CHANGELOG:

[B]twrp-3.0.2-0-onyx-20161116-113742.img[/B]
* Faster boot
* New dark theme
* Fixed occasional invalid errors
[OnePlus X Android Development] CheckYourScreen:
Nuked init sh!t or not? xD

Make pull requests to twrp gerrit without squashing anything lol
[OnePlus X Android Development] Nachiket.Namjoshi:
Done all, waiting for them to merge :D

official TWRP soon :D
[OnePlus X Android Development] Kaconk:
Holy **** !!! Just can't believe what i've read. U're the man mate :laugh: thank a lot for ur great work :good:
[OnePlus X Android Development] CheckYourScreen:
That awkward moment when people have no idea what was actually present in it xD

Right [MENTION=4797402]Nachiket.Namjoshi[/MENTION] ? xD
[OnePlus X Android Development] Nachiket.Namjoshi:
Top kek

When you realize you didn't clean up your ancestors mess :v
[OnePlus X Android Development] CheckYourScreen:
You again stole the credit beeeeech ;-;

git commit --suicide
[OnePlus X Android Development] Nachiket.Namjoshi:
Pull Request? .-.
[OnePlus X Android Development] tuz83:
Hi!

Which version of SuperSU are you using for this TWRP release?

When I try to install the latest SuperSU 2.78 with this TWRP build it says everything is fine.

But when I reboot I see the OxygenOS Logo rotating all the time but the system does not boot.

Do I have to do something else after installing SuperSU? or is there a special build for this TWRP?

regards, Tom
[OnePlus X Android Development] Exodusche:
Are you using the modified version of 2.78 for OOS3? Also I've read that if you initiate systemless mode should boot. Would be going into twrp terminal and typing:

echo systemless=true>/data/.supersu

And then proceed with flashing SuperSU 2.78 SR4
[OnePlus X Android Development] tuz83:
No, I've used the normal SuperSU 2.78 from the official website.

Which one is the modified one for OOS3?

The release you've linked?

SR4-SuperSU-v2.78-SR4-20161115184928.zip

Because it doesn't say anything about OOS3 there ...

And one general question: Why do I have to use a modified version? Ever since before upgrading to OOS3 I've been using the normal releases ...

regards, Tom
[OnePlus X Android Development] Nachiket.Namjoshi:
Hello, As @Exodusche said, before flashing SuperSU

- Go to advanced -> Terminal

and type in

echo "systemless=true" > /data/.supersu

then flash SuperSU and you shall boot fine.

EDIT: Yes OOS3.x needs modified SuperSU
[OnePlus X Android Development] tuz83:
OK thank you...

And which one is the modified one for OOS3?

The release that was linked above?

SR4-SuperSU-v2.78-SR4-20161115184928.zip

Regards, Tom
[OnePlus X Android Development] tuz83:
Hi!

I've just tried to do what you described, but it somehow didn't work.

I still see the boot animation but nothing happens for a long time.

My questions:

1) In the terminal I'm typing in:

echo systemless=true>/data/.supersu

or

echo "systemless=true" > /data/.supersu ?

You both wrote different lines of code. I've trief both with the same outcome.

And should the terminal then return some kind of text? (Because the phrase begins with "echo") In my case it does nothing.

2) Is the file "SR4-SuperSU-v2.78-SR4-20161115184928.zip" the correct SuperSU?

3) Do I have to do something after installing the modified SuperSU?

4) In TWRP under Advanced > File Manager I found that there is a "supersu" folder in the root directory of my phone. Even when I restore my backup and my phone is booting again. Why is that?

When I delete the folder in TWRP file manager, boot my phone again and then boot into TWRP the folder is back.

Do I somehow have to remove an old failed SuperSU-attempt?

best regards and thanks for your help

Tom
[OnePlus X Android Development] Exodusche:
No I linked the wrong one this is the modified SuperSU. Delete the .far part.
[OnePlus X Android Development] tuz83:
ok, thank you .... but I still need to type in the code line in the terminal, right?

and which one?

echo systemless=true>/data/.supersu

or

echo "systemless=true" > /data/.supersu ?

... and does there need to be some kind of feedback in dem terminal after I entered this line?

regards, Tom
[OnePlus X Android Development] Exodusche:
Actually I think both ways work but use the second line from Nachiket. And no with the modified version you don't need to use the terminal line.
[OnePlus X Android Development] tuz83:
Thank you! now everything worked flawlessly and I got my SuperSU back - hooray! thanks
[OnePlus X Android Development] bloogiant:
Thanks a Ton

I had a hard time installing/update CM 13(Nightly) due to "Updater Process Ended with Error 7" issue after installing OOS3 and this TWRP version, installation was smooth and fast than i expected. Back to the CM world. Thanks again for your great work !!
[OnePlus X Android Development] Nachiket.Namjoshi:
KUDOS BOJS, WE ARE NOW OFFICIAL :D

Official TWRP Page for OnePlus X (onyx)

Congrats & Thanks to everyone :D
[OnePlus X Android Development] Kaconk:
Wow...shocking :laugh: thx a lot for ur great work mate. Salute :D:good:
[OnePlus X Android Development] cva_kabil:
atlast u did it,congrats.. keep rocking sir.;):D
[OnePlus X Android Development] Jude Aranha:
Thug Much :3
[OnePlus X Android Development] pwild:
So, Aroma works?
[OnePlus X Android Development] Nachiket.Namjoshi:
Soon TM
[OnePlus X Android Development] error23:
Compatibility

So, due to the fact that 3.0.2-1 is "official" now-> is this TWRP release the right one to flash CM14.x and AOSP/AICP ROMs based on Nougat ?

I´m currently running on OOS3 (so i have the new bootloader) and i´m using the ...v41 TWRP which was built for OOS3..

I´m getting more and more confused regarding the correct TWRP & bootloader versions :(

thx !
[OnePlus X Android Development] gladiac:
Hey there from Vienna,

the new official version 3.0.2-1 is designed for the new bootloader.

cheers glad
[OnePlus X Android Development] error23:
Hi !

OK, so it´s the right one to flash ANY ROM which is built for the new bootloader, no matter if CM, OOS, or whatever... ?

THX & daunkschee ;)
[OnePlus X Android Development] gladiac:
Exactly :)

cheers & Ka Problem, glad
[OnePlus X Android Development] ashayghiya:
I am on the latest CM13 nightly with bluspark's twrp. How do i flash this TWRP?
[OnePlus X Android Development] thelostneutron:
Download the twrp from ops link. Boot your phone into recovery. Flash image. Choose the downloaded file. Done.