yashsingh1/xdaforums huggingface dataset:
[OnePlus 2 Original Android Development] anupritaisno1:
Important: official TWRP does NOT backup the EFS partition correctly while this one does. Do NOT restore an EFS backup that you did not take on the same build of TWRP as the one you're currently using. You will lose IMEI

Get support here: https://discord.gg/UF9qnts

Same as official twrp but

Built with latest lineageOS trees

Built with latest kernel with ext4, f2fs, exfat and sdfat driver

Thanks a lot to [MENTION=5672995]jcadduono[/MENTION] for the exfat upstream

Undervolting

Supports signature verification for lineageOS official zips

Supports signature verification for haruhirom official zips

Built with GCC 8 for maximum speed

Support for backing up, restoring and flashing system image zips

Manifest: https://github.com/GlassROM-devices/platform_manifest_twrp_lineageos

Toolchain: https://bitbucket.org/anupritaisno1/aarch64-linux-gnu/overview
[OnePlus 2 Original Android Development] anupritaisno1:
https://glassrom.pw/recovery.img
[OnePlus 2 Original Android Development] anupritaisno1:
All sources (kernel source, device tree, etc) are bundled in the manifest. Please don't ask for separate sources just read the manifests
[OnePlus 2 Original Android Development] anupritaisno1:
Just an FYI: official twrp builds are built by a bot, oneplus 2 doesn't have a twrp maintainer and nobody is reviewing the code that goes into twrp for our device

You really shouldn't use the official twrp builds
[OnePlus 2 Original Android Development] chxei:
no comments, that means no issues. good job
[OnePlus 2 Original Android Development] anupritaisno1:
Twrp 3.2.0 was released today so a new build for that is out

Please test and report bugs
[OnePlus 2 Original Android Development] sanjeetkumar495:
Install instructions please.

Can we flash the IMG file using inbuilt official twrp?
[OnePlus 2 Original Android Development] parmafran:
I did, it works.
[OnePlus 2 Original Android Development] FPSUsername:
Yes. You probably have never flashed something or you just don't know all features of twrp.

You can flash a recovery using fastboot:

fastboot flash recovery recovery.img

Other method, if you already have a custom recovery (I suspect official twrp), go to the directory where you placed the recovery.img, press install img at the bottom of the twrp screen and the img should be visible.

Select it, tap on recovery and swipe to flash/install.
[OnePlus 2 Original Android Development] anupritaisno1:
Adding these to the main post
[OnePlus 2 Original Android Development] anupritaisno1:
Also guys twrp can be flashed on locked bootloaders

If you are on a locked bootloader you must make sure that you ALWAYS flash twrp while booted into Android, using the dd command

dd if=recovery.img of=/dev/block/bootdevice/by-name/recovery

If you use the twrp flasher while on a locked bootloader you're just dumb
[OnePlus 2 Original Android Development] sanjeetkumar495:
Thanks but FYI I know all the methods of flashing recovery but currently I don't have access to a PC so just in case something goes wrong I won't be able to use recovery therefore was a little cautious so asking for twrp process of flashing.
[OnePlus 2 Original Android Development] anupritaisno1:
Then use the locked bootloader method
[OnePlus 2 Original Android Development] midelpo:
Use Flashify.
[OnePlus 2 Original Android Development] CounterC:
Deleted
[OnePlus 2 Original Android Development] utkarsh102:
Sad to say but this twrp doesnt come close to the latest official. I experienced lag and slow rates.
[OnePlus 2 Original Android Development] sujju:
Hi all,

I tried to install official twrp 3.2 from within twrp 3.1. and ran into issues. The recovery overall got deleted and the phone's bootloader got locked. Besides, 'allow OEM Unlock' toggle in developer options is not working. I'm seriously in a mess now.

Can someone pls detail the steps of installing this enhanced TWRP on a locked bootloader like mine? Would be extremely thankful.
[OnePlus 2 Original Android Development] erzherzog:
If your phone is rooted, you might want to give flashfire or flashify a try.
[OnePlus 2 Original Android Development] sujju:
It's not rooted..
[OnePlus 2 Original Android Development] anupritaisno1:
You must patch the rom to provide SuperSU's binaries at boot with oxygenos recovery and a signed boot.img

After booting you have to flash twrp using dd

Instructions for doing so are in the haruhirom thread

This definitely isn't for beginners
[OnePlus 2 Original Android Development] anupritaisno1:
You might be able to get back using factory images then
[OnePlus 2 Original Android Development] sujju:
Thanks a lot. May I know if having the phone rooted is pre-requisite for these steps? If not, kindly share the link of that thread pls.. Thanks again.

---------- Post added at 03:40 PM ---------- Previous post was at 03:36 PM ----------

Thanks, I saw that thread by Spanaa. Btw will that clear all media/personal files from internal storage too besides the /data partition?
[OnePlus 2 Original Android Development] anupritaisno1:
Craziest method: you could flash oxygenos, lock your bootloader and exploit dirtycow, it isn't patched even on 3.6.1

When it gives you root you can write twrp

Here's that post: https://xdaforums.com/oneplus-2/ori...uhios-rom-youve-looking-t3533295/post74523814

The images by spanna are not the real factory images. Head over the fareed_xtreme's thread for the real deal

Also another crazy thing: I've seen people modifying these factory images and bypassing the bootloader completely to flash twrp

And I've seen Russian guys on 4pda modifying oneplus bootloaders to support verity and accept their own signatures but that's for another day
[OnePlus 2 Original Android Development] casual_kikoo:
What

the

hell

Do you have the link to this post ?
[OnePlus 2 Original Android Development] anupritaisno1:
The one on 4pda? I can't find the exact one for the oneplus 2 but it's there believe me and here's the documentation on how the unbrick tool works

They modify a file which they can the "bootloader piece" (which is firehose.msm8994.mbn) and they are able to get custom bootloaders up and running

https://translate.google.com/transl.../index.php?showtopic=643084&st=80&prev=search

https://translate.googleusercontent...t=6160&usg=ALkJrhifEOlJRaZBwbQyfPtxcKI9wYSflQ

There's more to it but this stuff is so old it's difficult to find
[OnePlus 2 Original Android Development] anupritaisno1:
I just fixed the "hello sir I wipe data now my device is kill. I very frustrated I find you and I kill you and your..... for making such bad software"

Totally understand your frustration, which is why an experimental fix for the issue will be available next build
[OnePlus 2 Original Android Development] zelendel:
Remember 4pda is banned here so keep the talks about good sites.
[OnePlus 2 Original Android Development] anupritaisno1:
Just a second

https://srv1.botstack.host:8001/oneplus/op2/recovery.img.sig is the gpg detached signature and sha512sum is https://srv1.botstack.host:8001/oneplus/op2/recovery.img.sha512sum

Gpg public key is on the glassrom-devices github, in the verify branch in the oneplus 2 device tree
[OnePlus 2 Original Android Development] TiggaPwease:
Is the site to your recovery.img down?
[OnePlus 2 Original Android Development] anupritaisno1:
It's a server issue. Should be back by tomorrow

For now you can head over to github and grab the twrp image

https://github.com/GlassROM-devices/android_device_oneplus_oneplus2/blob/verify/recovery.img
[OnePlus 2 Original Android Development] TiggaPwease:
Thanks
[OnePlus 2 Original Android Development] anupritaisno1:
The new twrp version is not yet ready for use on op2

Anyone who thinks rolling out a new twrp version means simply downloading the updated source and running make needs to get their mind checked
[OnePlus 2 Original Android Development] roshan2989:
Any new version from your side..?
[OnePlus 2 Original Android Development] anupritaisno1:
Never ask for η
[OnePlus 2 Original Android Development] monark88:
With the official TWRP I get a reboot if I wipe data that is F2FS. It never really wipes data, just reboots. It also won't restore a backup to an F2FS partition. It simply reboots.

Does this TWRP do this as well?
[OnePlus 2 Original Android Development] anupritaisno1:
Well my server firewall just crashed so good luck downloading it
[OnePlus 2 Original Android Development] anupritaisno1:
For the record f2fs isn't really flash friendly on op2 as it can't even send a proper discard command to the chip
[OnePlus 2 Original Android Development] monark88:
Well, I guess that settles it.
[OnePlus 2 Original Android Development] SpeedOfShadow:
Hi [MENTION=5842226]anupritaisno1[/MENTION]

I am having an issue with TWRP on my Oneplus2. I have posted about this on the Noob-Friendly Q& A Thread and [MENTION=7125933]Sam Nakamura[/MENTION] was kind enough to assist me with my issue. During this, he mentioned that I could your Enhanced TWRP to fix any issues with TWRP and I did. He thinks you might have a solution to this problem.

If you wanna follow the entire post here is the link to it: https://xdaforums.com/oneplus-2/help/qa-noob-friendly-qa-help-thread-t3146584/page108#post75357161, Post #1074.

Here is the summary of my problem and steps I took as suggested by Sam.

Problem:

After unlocking my Bootloader and flashing TWRP I decided to flash AOSPExtended ROM v4.6.

When I boot into TWRP and select the ROM to flash and confirm flash I get this screen ( Screenshot ). Nothing else. No text, nothing on the loading bar, No way to quit or go back.

Even waiting for 30min didn't do the trick. I end up force rebooting into recovery to get out of TWRP.

This issue persists for any flashable zip, not just ROMs. I tried flashing Magisk on my Stock ROM and got the same screen.

Sideloading zip files works and I am able to sideload ROMs and Zip files using my PC. When I sideload the output text is seen on TWRP on my phone. the same text is not seen when I try to flash from TWRP itself.

Things I tried:

Flashed TWRP 3.2.1, 3.1.1, 2.8.x, Your Enhanced TWRP 3.1.1

Tried flashing Latest LineageOS(14.1) and official Stock OOS(3.8)

Resetting TWRP settings by deleting the TWRP folder

Tried different Languages

None of them worked. I am currently flashing ROMs and Zips using a PC with sideloading.

Sam also mentioned that the recovery log could help in figuring out whats wrong. But as I have mentioned I cant get to the recovery log as my TWRP doesn't let me go back after selecting and confirming a file to flash. When I force a reboot into recovery I took a recovery log which I am attaching to this post.

Any help on the matter would be appreciated. Thank you!
[OnePlus 2 Original Android Development] anupritaisno1:
Hi your recovery log is "empty". Simply taking a recovery log won't help you'll have to cause the error and then take a log which I believe is not possible in your case

The only thing I can think of is that you're using f2fs. I'm aware of a bug in f2fs where twrp can get stuck for a long time when flashing ROMs. Is this your case?
[OnePlus 2 Original Android Development] anupritaisno1:
I'm closing this thread for now

Reason: currently my build server is totally dead and you can't download the recovery

I lost the kernel source used for building this recovery so as per XDA rules I can't release recovery binaries

I'll be back in a little bit with a new twrp built from my Oreo kernel sources
[OnePlus 2 Original Android Development] CertifiedBlyndGuy:
Thread opened as per OPs request
[OnePlus 2 Original Android Development] anupritaisno1:
Thanks
[OnePlus 2 Original Android Development] CertifiedBlyndGuy:
Anytime.
[OnePlus 2 Original Android Development] valexi:
Download link is dead. This is not maintained anymore?
[OnePlus 2 Original Android Development] vedant lakras:
noob here

cant find the download link .. somebody wanna help?
[OnePlus 2 Original Android Development] chxei:
https://srv1.botstack.host:8001/oneplus/op2/recovery.img

its in first comment. it doesn't work btw cause server is dead. read above comments
[OnePlus 2 Original Android Development] anupritaisno1:
Sorry for taking so long to do a release

Download link updated
[OnePlus 2 Original Android Development] chxei:
error 403 forbidden
[OnePlus 2 Original Android Development] anupritaisno1:
[MENTION=6788642]chxei[/MENTION] fixed
[OnePlus 2 Original Android Development] anupritaisno1:
Updated

Changelog:

Now it can support ROMs with the new Oreo hardware accelerated encryption as well as ROMs with the legacy encryption

Currently glassrom and cosmic-os use the new Oreo hardware accelerated encryption

Lineageos and all other ROMs use legacy encryption
[OnePlus 2 Original Android Development] Gaffadin:
Download link https://srv1.botstack.host:8001/oneplus/op2/recovery.img seems to be dead again.
[OnePlus 2 Original Android Development] anupritaisno1:
I just checked it, it's up

If you're still having issues, it's 4 am in my country right now. I can take a look at it a little later
[OnePlus 2 Original Android Development] Gaffadin:
https://srv1.botstack.host:8001/oneplus/op2/recovery.img is dead, but https://glassrom.botstack.host/recovery.img is working (these are the two different download links I've seen posted in this thread). Is the working link the latest version?
[OnePlus 2 Original Android Development] anupritaisno1:
Glassrom and cosmic-os will start using downgrade attack prevention from the next build. For this it is important that you do not flash this twrp at all. Glassrom and cosmic-os will now flash their own twrp after the ROM is flashed. This twrp should now only be used for flashing the ROM for the first time
[OnePlus 2 Original Android Development] Gulbuddin:
Still dead. Please check
[OnePlus 2 Original Android Development] anupritaisno1:
It's up, you're using an old link
[OnePlus 2 Original Android Development] Gulbuddin:
Oh sorry... Is this the new link then?
[OnePlus 2 Original Android Development] anupritaisno1:
Yes

recovery.img for other ROMs

recovery-vendor.img for glassrom and cosmic-os

recovery-fakecache.img (coming soon) for glassrom's upcoming incremental OTAs
[OnePlus 2 Original Android Development] anupritaisno1:
New update is out

Updated to the latest TWRP version

Reduced brightness a little on the splash screen

Added support for more languages

Added double tap to wake support (might not work).

Updated hw encryption blobs from glassrom to fix decryption on the new builds

Updated sdfat driver to 2.0.8 (LineageOS version)

Added support for ntfs OTG drives

Fixed issues with timezones

For recovery-vendor

You can now nandroid the vendor partition

For recovery-fakecache

Same as recovery-vendor

Removed the cache partition from the backup options to prevent nandroid backups from failing
[OnePlus 2 Original Android Development] anupritaisno1:
For P, I'm coming up with recovery-tmpcache

Currently we have 3 recoveries and it gets confusing for users. Enter recovery-tmpcache. One recovery to rule them all. It will allow you to flash glassrom or any other ROM without you having to look at 3 different recoveries
[OnePlus 2 Original Android Development] anupritaisno1:
Updated:

First of all, note that TWRP is now the recovery-fakecache variant and special instructions are needed to be able to flash ROMs

Please read the glassrom thread on how to set up the fakecache

Changelog: TWRP has better support for SD810 now

TWRP now has full EAS support

TWRP now has schedboost enabld

Encryption blobs are now source built instead of using dirty hacks

TWRP can now backup every partition on your storage chip (except limits)

TWRP can now use all 8 cores of the SD810

TWRP can now wipe the vendor partition so ROMs that use the vendor partition as the cache partition can be flashed with the same recovery

TWRP can now mount and backup all partitions android mounts during runtime

TWRP has been updated to support P. You can flash P ROMs now

TWRP can now backup your entire data partition to a USB drive. Note that if your data partition is encrypted then the backup will also be encrypted. This backup will include internal storage. This is an experimental feature and no support will be provided if you use it

TWRP's kernel has been updated to the December 5 security patch

TWRP itself has been updated to android 9
[OnePlus 2 Original Android Development] anupritaisno1:
Oh and I forgot to say this

TWRP can now backup your bootloader state

Example: take a nandroid of bootloader data on a locked bootloader and then take one on an unlocked bootloader

Now you can switch between locked and unlocked bootloader state by using nandroid backups

This feature is experimental. Please be careful with it as I will not be taking responsibility for any damage
[OnePlus 2 Original Android Development] Shadow_Skull:
That sounds really cool can't wait to mess with it!
[OnePlus 2 Original Android Development] danishajaz:
I tried to flash an update on my current Rom but failed as I was unable to mount cache.
[OnePlus 2 Original Android Development] pavlanton:
Read first GlassRom theme
[OnePlus 2 Original Android Development] sachin karinki:
Anyone using this TWRP ?

If yes, please tell me that what are the bugs in this recovery and what is its version,

Does Double to wake screen is waiting ?
[OnePlus 2 Original Android Development] anupritaisno1:
Very important

Guys do not restore EFS backups taken from older recoveries

Older recoveries (including official) did not backup the correct EFS partition while this one does

If you restore such a backup you will lose IMEI

Only restore an EFS backup if you took it on the same build of TWRP as the one you're using
[OnePlus 2 Original Android Development] pavlanton:
Link for download not work. Some over one???
[OnePlus 2 Original Android Development] anupritaisno1:
Guys here's a mirror for now

https://mega.nz/#!YHY2kaRJ!3AjNTO3eyyU7Uo3P9wqs-v2R85cLj6gLDJRVSfJp4MQ

acadc45b85ae95c9176c75187f997c5596f3e9eba16ae7c4b61288f674ec56a0f5b1df262cbb3bdab8912c99cdaeb6551d1ee99c0d113744fb118696f908dc5f
[OnePlus 2 Original Android Development] pavlanton:
Thank you.
[OnePlus 2 Original Android Development] danishajaz:
Does this work only with glassrom Rom or any Rom?
[OnePlus 2 Original Android Development] oriveradel:
download link does not work

working download link?
[OnePlus 2 Original Android Development] nsiti:
When I download the recovery and flash I get TWRP 3.2.3 which gives me an error 7 when flashing LOS. Reverting back to 3.2.1
[OnePlus 2 Original Android Development] arch-angel:
anyone has problem with can't mount /cache (invalid argument)? do you have any solution for this? thanks
[OnePlus 2 Original Android Development] anupritaisno1:
Read the glassrom thread

You must setup a fakecache image file and mount it at /cache manually to be able to flash ROMs
[OnePlus 2 Original Android Development] arch-angel:
thanks!! that solve the cache mounting problem :)
[OnePlus 2 Original Android Development] anupritaisno1:
It works for all ROMs
[OnePlus 2 Original Android Development] gps3dx:
Great work on TWRP you did here :) :o;):good:

Any chance that a fix for the /cache is out so that users don't need to use any ADB commands in order to flash zips ?

even a single-time solution, like an

auto

zip mount of fakecache from /sdcard is welcome.

I hope you will continue with the development . :D

much obliged . :angel:
[OnePlus 2 Original Android Development] anupritaisno1:
Yes I am working on 3.3.0 currently. Fakecache might be removed one day
[OnePlus 2 Original Android Development] abhijiths362:
Any chance for treble in op2
[OnePlus 2 Original Android Development] anupritaisno1:
Unlikely
[OnePlus 2 Original Android Development] abhijiths362:
No chance at all? Anyway this device is old so give it a try plz
[OnePlus 2 Original Android Development] anupritaisno1:
Sorry guys my op2 is dead. The twrp builds will still be available on the server but might be deleted in the future. This is the last build I'll ever do for the op2

Thank you so much for using these builds. Maybe we'll meet on some other OP device in the future

Moderators please close this thread
[OnePlus 2 Original Android Development] anupritaisno1:
It seems Q is implementing changes that will break enhanced twrp

I'm back to build a version that supports Q

I have only one tester and I'm not accepting any more so this might take a while
[OnePlus 5T  Questions & Answers] Deadeye*:
How is the audio quality from 3.5mm jack?
[OnePlus 5T  Questions & Answers] logan2194:
I use my Oneplus 5T with my V-Moda LP2's and they can surprisingly power these head phones better than my previous phone (iPhone 6). I tried turning on the equalizer but a lot of distortion takes place. The EQ should be ok for in-ear earphones but for high impedance headphones running it without the EQ is best. I even have a pair of Anker Bluetooth Earphones which play very well as well. I am getting a much better battery life on my bluetooth earphones with the 5T and I'm using APTX HD with it, but that depends if your earphones can support it. Well its android and if you want some more power u can always use Viper4Android or A.R.I.S.E sound system :P
[OnePlus 5T  Questions & Answers] mikey_sk:
hmm i find that my anker bluetooth headphones (soundbuds surge) max volume is much lower than when i pair them to my razer phone actually. i find bluetooth on boh the OP 5T and OP5 much quieter when paired with any headphone or speaker etc
[OnePlus 5T  Questions & Answers] Heisenberg420:
Only tested briefly with a pair of RHA MA750s and was very impressed. Clarity and detail seem to be on par with my HTC 10 which was very good. Very similar sound signature without any equalizing.

Not really sold on the stock equalizer. Default enhancements seem to just bump every frequency up and sacrifice clarity a bit. The 7 band EQ will be nice to play around with though.

Overall, surprisingly very good audio out of the 3.5mm headphone jack.
[OnePlus 5T  Questions & Answers] Dazed No More:
Never even thought of using the stock EQ, as the first Magisk module I installed was viper4android, but the output from the jack is excellent.
[OnePlus 5T  Questions & Answers] Schrotty35:
I use Neutron Player with HiRes Enabled and the Sound is great.
[OnePlus 5T  Questions & Answers] Dariusdd:
Somewhat related to audio: how does the 3.5 mm port keep headphone jacks? Is it through mere friction like on the 3/3t, or does it now click/ somehow lock it?
[OnePlus 5T  Questions & Answers] Dazed No More:
Appears to be a pin or some sort that works by combination of friction and clicking into place. All I can say is it is by far the most secure/snug port I have ever experienced on a device.
[OnePlus 5T  Questions & Answers] rondias18:
I thought I was the only one that thought the headphone jack was held more tightly than on other devices ive used. Such a great thing to have.

Atleast now I don't have to worry about the jack snapping out often during train travel.
[OnePlus 5T  Questions & Answers] lyall29:
Where did you find the module? I downloaded one, but it won't flash.
[OnePlus 5T  Questions & Answers] Dazed No More:
In the download section of Magisk. Make sure you get the one by Ahrion....all of his sound mods are designed to and can be used together without conflict plus he updates them quite regularly. Before installing V4A I would recommend downloading and flashing Ainur Sauron sound mod (even though it is Magisk Module it must be flashed from TWRP), which Ahrion is part of the team. SAURON MK I.IV.II

More info on Ainur Sauron https://xdaforums.com/android/software/soundmod-ainur-audio-t3450516
[OnePlus 5T  Questions & Answers] Jooosty:
Plugged into my car. Sounds phenomenal. Just as good as the dac in my i7+. A step below V20, but still, very impressed!!!
[OnePlus 5T  Questions & Answers] bl4scott:
I am new to the OnePlus family coming from years of using Samsung. In the past I have found different mods for increasing the headphone volume. Is anyone aware of any such mods for the 5T?

Thanks again,

Brian
[OnePlus 5T  Questions & Answers] iamterence:
Better than my Galaxy S6 which was my primary music player. Everything is nice, loud, and makes sh*tty headphones sound decent