[RECOVERY][ocn] TWRP touch recovery

Search This thread

The_Walking_Playground

Senior Member
Nov 30, 2017
652
345
TWRP 3.2.3-1 supported AOSP Pie decryption, so I am not that pessimistic...

@Captain_Throwback
Hi Captain,
Looks like you have retired already... but do you have any thought on this?
Hi,

All of the official versions since the one you mentioned also support AOSP Pie decryption. So, if that's all that was needed to support decryption on stock Pie, it would already be working. The point is, it isn't. I think @JEANRIVERA has worked with @Captain_Throwback in the past, so I'm sure he's speaking on behalf of him when he says that it may never work. I'm not sure how you would ever expect to get a response from Captain_Throwback directly since he doesn't post here anymore.

TWP

P.S. @scottnet you could join the TWRP Testing Slack and ask him directly, and then let us know what he says...
 
Last edited:

scottnet

Senior Member
Aug 28, 2010
70
12
Tainan
Hi,

All of the official versions since the one you mentioned also support AOSP Pie decryption. So, if that's all that was needed to support decryption on stock Pie, it would already be working. The point is, it isn't. I think @JEANRIVERA has worked with @Captain_Throwback in the past, so I'm sure he's speaking on behalf of him when he says that it may never work. I'm not sure how you would ever expect to get a response from Captain_Throwback directly since he doesn't post here anymore.

TWP

P.S. @scottnet you could join the TWRP Testing Slack and ask him directly, and then let us know what he says...

Oh... It's too bad hearing that... But thank you TWP for the background explanation!
Have we happened to address the issue? It is an unknown problem or it is like something need to be fixed from the stock ROM?
I am not sure how to join the TWRP Testing Slack...lol...
 

The_Walking_Playground

Senior Member
Nov 30, 2017
652
345
Oh... It's too bad hearing that... But thank you TWP for the background explanation!
Have we happened to address the issue? It is an unknown problem or it is like something need to be fixed from the stock ROM?
I am not sure how to join the TWRP Testing Slack...lol...
HI,

To join the Slack, just click the link in the OP ;).

TWP
 

JEANRIVERA

Senior Member
Mar 30, 2007
2,985
1,466
39
Nazareth, PA
HTC U12+
ASUS ROG Phone 3
HI,

To join the Slack, just click the link in the OP ;).

TWP
Just because I got permission from Captain himself, but I do believe I don't need to provide evidence of my post and beliefs, since I have been around here on xda for long time and I have collaborated or worked with known developers here some them retired from xda like Captain himself.
 

Attachments

  • PartialScreenshot_20190718-160602.png
    PartialScreenshot_20190718-160602.png
    146.3 KB · Views: 601

linuxdep

Senior Member
May 22, 2013
118
7
Hi, thanks for TWRP development!

I have a issue, after OTA update to Pie i would boot TWRP to make a clean backup (fastboot boot .\twrp-3.3.1-0-ocn.img)
But i't don't work...

Code:
fastboot boot .\twrp-3.3.1-0-ocn.img
Downloading 'boot.img'                             OKAY [  1.906s]
booting                                            FAILED (status read failed (Too many links))
Finished. Total time: 358.186s

with oreo it works fine. Can you help me, why this not boot?
 

The_Walking_Playground

Senior Member
Nov 30, 2017
652
345
Hi, thanks for TWRP development!

I have a issue, after OTA update to Pie i would boot TWRP to make a clean backup (fastboot boot .\twrp-3.3.1-0-ocn.img)
But i't don't work...



with oreo it works fine. Can you help me, why this not boot?
Hi,

This would be a bootloader issue, and not related to TWRP itself. You'll have to flash TWRP and just take the recovery image out of the OTA zip firmware.

TWP
 

linuxdep

Senior Member
May 22, 2013
118
7
ok, i have always see that the TWRP and Pie not working with decryted FS (default of U11), i can't mount or so on, but way can system boot mount this FS??? In this case TWRP has no added value, no backup and so on.

So i have flashed back the original recovery and i hope someown can fix the issue.
 

flamadiddle

Senior Member
Jan 17, 2011
369
142
Pensacola, FL
I'm trying to get a backup of stock recovery on Android 9 Pie. I have tried twice to:

Code:
fastboot boot twrp-3.3.1-0-ocn.img

Both times, I got the following output:

Code:
downloading 'boot.img'...
OKAY [  1.253s]
booting...
FAILED (status read failed (Too many links))
finished. total time: 147.720s

Then, my phone is unresponsive on the bootloader screen. No buttons have any effect; not even the force reset Volume Up + Power for 15 seconds combination. I just have to wait until the battery dies.

Any idea what's going on?
 
Last edited:

The_Walking_Playground

Senior Member
Nov 30, 2017
652
345
I'm trying to get a backup of stock recovery on Android 9 Pie. I have tried twice to:



Both times, I got the following output:



Then, my phone is unresponsive on the bootloader screen. No buttons have any effect; not even the force reset Volume Up + Power for 15 seconds combination. I just have to wait until the battery dies.

Any idea what's going on?
Hi,

It seems the Pie update broke fastboot boot. You can just extract the stock recovery from the OTA firmware zip. There's no need to back it up in TWRP.

TWP

P.S. The "battery-pull-reset" on this device is Volume Down+Power, not Volume Up.
 
Last edited:

flamadiddle

Senior Member
Jan 17, 2011
369
142
Pensacola, FL
Hi,

It seems the Pie update broke fastboot boot. You can just extract the stock recovery from the OTA firmware zip. There's no need to back it up in TWRP.

TWP

P.S. The "battery-pull-reset" on this device is Volume Down+Power, not Volume Up.

Where can I find the OTA zip? I haven't seen links here yet, and I assume my device deleted it after taking the update.
 

The_Walking_Playground

Senior Member
Nov 30, 2017
652
345
  • Like
Reactions: flamadiddle

flamadiddle

Senior Member
Jan 17, 2011
369
142
Pensacola, FL
Hi,

Have you checked the "Collection" thread? See if anyone has posted the OTA zip for your variant there: https://forum.xda-developers.com/u11/how-to/collection-htcu-u11-ruu-firmware-t3612048. They wouldn't be posted in the TWRP thread.

TWP

I had been looking at the master Google Spreadsheet, assuming it was up-to-date. The Android 9 update for my version wasn't on there. Searching through the thread, I found the one I needed: https://forum.xda-developers.com/showpost.php?p=80182656&postcount=2100

Thanks!
 

flamadiddle

Senior Member
Jan 17, 2011
369
142
Pensacola, FL
So I finally put TWRP on my HTC U11, and I wish I'd read the last few pages of the thread better. I see that TWRP can't decrypt the data partition on stock Android 9. Bummer.

This is probably a dumb question, but if I decrypt, would that get around the issue? Has anyone tried that yet?
 

The_Walking_Playground

Senior Member
Nov 30, 2017
652
345
So I finally put TWRP on my HTC U11, and I wish I'd read the last few pages of the thread better. I see that TWRP can't decrypt the data partition on stock Android 9. Bummer.

This is probably a dumb question, but if I decrypt, would that get around the issue? Has anyone tried that yet?
Hi,

If you mean do a "Format Data" in TWRP and then patch the boot image so it doesn't encrypt on boot, then yes, TWRP will work fine.

TWP
 
  • Like
Reactions: flamadiddle

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    well the was the only thing i updated ,i have 2 u11s a main one i use on oreo on sense , the other one i wanted to test out pie and root so i saw there was a new 3519 version,i usually never had problems with twrp so i figured even tho the main one is oreo i would still flash the update cause it takes like 2 sec ,while the flashing twrp i saw it flashing like when i update with ruu and radio and the .img thing where it counts to 100 multiple times .its not a biggie i backed up ,but i only flashed the recovery so what else could i blame?
    its because you have the htc update file in the root of your sd card. nothing to do with twrp. delete the 2pzcimg file in future.
    3
    hey Captain ,could you please update the thread because i just flashed the new recovery as usual ,thought they would be no problems ,i saw all kinds of radio and stuff being flashed now the phone is factory reset a heads up would have been nice , also read 2 pages back to check for issues and seemed good ,guess this was for pie im still on oreo so maybe thats why
    I have no idea what you're talking about.

    Nothing has changed with the recovery besides the upstream fixes. Since you didn't post a log, there's no way I can help you. If there was a known issue with TWRP, it would be listed in the OP. TWRP doesn't just randomly flash stuff.

    The latest TWRP works fine on Oreo, afaik. No one else has reported an issue, so I think yours is an isolated problem. I really don't understand why everyone's first move is to blame TWRP, smh.
    3
    well the was the only thing i updated ,i have 2 u11s a main one i use on oreo on sense , the other one i wanted to test out pie and root so i saw there was a new 3519 version,i usually never had problems with twrp so i figured even tho the main one is oreo i would still flash the update cause it takes like 2 sec ,while the flashing twrp i saw it flashing like when i update with ruu and radio and the .img thing where it counts to 100 multiple times .its not a biggie i backed up ,but i only flashed the recovery so what else could i blame?
    Wait, you're saying that when you flashed TWRP, it started flashing radio and other stuff? Are you serious? That has NOTHING to do with the TWRP image. That only has to do with what you have on your PC and the command you used to flash. The recovery image is just a recovery image. Nothing more, nothing less. You're essentially saying that the recovery image includes other partitions? That makes zero sense. You can look at the size of the image and confirm that's not the case. You can also unpack the recovery image using Android Image Kitchen to confirm the contents. But blaming TWRP because you made a mistake flashing is absolutely ridiculous.
    1
    OK another noob question and hopefully last, can't we mount and run stock Pie with twrp ? Everytime I format to decrypt when I reboot HTC automatically encrypts the phone again ,only was is to flash a custom rom ? Any scripts or files to delete to stop it?
    After you Format Data in TWRP (the option that requires typing "yes"), reboot recovery and flash Magisk. That'll prevent the device from encrypting on boot. Or, if you don't want to root, just search XDA for any of the several available zips to disable forceencrypt.
    1
    I installed zip Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip and format factory ,All problems are fixed, now the password window does not appear in twrp and I can read the internal memory and restore the backup
  • 83
    3.1.1-2_UNOFFICIAL with Oreo decrypt support posted!

    A new unofficial TWRP has been posted to the Downloads tab with Oreo decrypt support. It also works with Nougat decryption. And it includes several yet-to-be-merged fixes/updates. See the OP for all relevant changes and issues.

    Since it uses a prebuilt kernel, I had to break "reboot recovery" functionality to allow touch to work when the recovery is flashed. Once kernel source is available, I can patch it properly.

    One last note - I'll continue updating TWRP as needed, but I won't be posting anymore on the forums once I reach 20,000 posts (it seems like a good number to go out on). I'll also be asking the mods to retire my titles. It's been fun, but this has all become too time-consuming and I need to spend time on more important things. I appreciate all the support I've received over the years from the community. I'll still be around, just behind the scenes now ;).
    65
    Code:
    *** Disclaimer ***
    
    All flashing is done at your own risk!
    While nothing from this thread should break your device,
    don't come back here blaming anyone if it does!
    Introduction
    Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.

    Images


    Prerequisites
    • Unlocked Bootloader

    Installation instructions
    Fastboot Install Method:
    You will need the platform-tools from the Android SDK on your computer. Find the Android command line tools section on the page linked and install the SDK tools package. From the SDK Manager, download only the platform-tools to get adb and fastboot binaries.

    Windows users will need proper drivers installed on their computer. You can try the Naked ADB drivers or the Universal ADB drivers if you don't already have a working driver installed

    On your device, go into Settings -> About and find the Build Number and tap on it 7 times to enable developer settings. Press back and go into Developer Options and enable USB debugging. From your computer, open a command prompt and type:
    Code:
    adb reboot download
    You should now be in fastboot mode.

    Download the correct image file and copy the file into the same folder as your adb and fastboot binaries. Rename the image to twrp.img and type:
    Code:
    fastboot flash recovery twrp.img
    Code:
    fastboot reboot

    Alternate Installation Method (requires prior TWRP installation):
    TWRP Image Install method:
    Most devices can be updated quickly and easily within TWRP if you already have version 2.8.4.0 or higher installed.
    1. Download the latest version of TWRP appropriate for your device/firmware
    2. Reboot to TWRP
    3. Hit Install and tap the "Install Image" button in the lower right
    4. Browse to the location of the TWRP image on your device and select it
    5. Select recovery from the partition list and swipe to flash

    Device Changelog
    Current version: 3.5.1_9-0:
    • Initial version
    Older Device-specific versions:
    3.4.0-0:
    3.2.3-1:
    • Updates to support AOSP Pie decryption

    3.2.1-2:
    • Use /persist as Qualcomm time fix source during early boot
      - Fixes broken time issue on Oreo firmware

    3.2.1-1:
    • Update to source-built kernel (2.31.709.1_R2) - fixes "reboot recovery" issue
    • Code cleanup

    3.1.1-2:
    • Updated kernel to Oreo 2.31.709.1 prebuilt (patched for working touch)
    • Add support for Oreo decryption (BIG thanks to @nkk71)
    • Disable f2fs & NTFS support (until kernel can be built from source to support them)

    3.1.1-1:
    • Updated kernel to 1.28 WHL source
    • Enable f2fs support
    • Enable NTFS support
    • Add /persist to recovery fstab (for future compatibility)

    TWRP Official Change Log

    Downloads


    Known Issues
    • Stock Pie-based ROMs cannot be decrypted by TWRP.
    • As of version 3.3.0, stock Nougat can no longer be decrypted. Use 3.2.3 or older if you are still running stock Nougat.
    • Encrypted backups are broken - DO NOT USE THIS FEATURE!!

    We need your help!
    Join the TWRP Testing group on Slack to help us test TWRP prior to official releases!

    Bug Reporting
    If you have an issue, the first step is to post a recovery log so we can determine the cause of the issue. This is done in recovery using Advanced -> Copy Log, or adb pull /tmp/recovery.log. Once a log is uploaded we can determine how best to proceed. NOTE: Posts that are reporting bugs or issues without an accompanying recovery log will be ignored! Additionally, providing details about your device setup, including variant, firmware version, and exact steps to reproduce your issue will also be helpful in diagnosing the problem.
    4rev3d.jpg

    If your issue is determined to be a bug, please consider posting it to our github issues log. It's pretty much impossible for us to keep up with the more than 40 threads that we have for the devices that we "directly" support. If you have a significant problem that cannot be answered in this thread, your best bet is to contact us via our website, or find us in our IRC channel below. If you see someone that's struggling, feel free to point it out to us. We need your help to help us keep track of all of our devices! Thanks!

    Additional Help/Support:
    Live support is available via #twrp on Freenode with your IRC client or just click this link.
    24
    TWRP support for the U11 is now official! I'm listed as the maintainer, although I still don't have the device. Hopefully nothing breaks anytime soon, lol...

    P.S. I removed the unofficial version from the Downloads tab as it should no longer be needed - the official is newer and better :)
    19
    Unfortunately not all commands works with this TWRP because it is on toybox. With TWRP v3.3.0-0 not possible to apply methods:
    - Downgrade with S-ON;
    - Change СID with S-ON.
    P.S. Not for all CIDs there are available last RUUs and we have to use Downgrade method to fix device at appearing some troubles to flash a RUU.
    Bet you didn't expect to see me here...;)

    The above issue is in the process of being fixed with a patch on Gerrit. Once that patch is merged (likely tonight, or at the latest, over the weekend/early next week), I will have an updated device version run with the updated dd binary. I have already tested the dd command with "seek" to confirm that it runs without an error. I was previously having some issues with the grep binary as well, and I submitted a patch that'll fix that too. At this point, building with toybox should be as good (or possibly better) than building with busybox, now that we're using the proper versions of the tools. @osm0sis was very helpful is providing a link to the Google documentation around which tools we should be using, so I thank him for that :).

    If you're wondering why I'm here posting, I recently handed off maintainership of the U Ultra to @tarkzim, and in the process, he took ownership of a couple of my posts. So I ended up being 2 down from 20K. I made one post in the A9 TWRP thread, because I finally conquered a longstanding issue with decryption on LineageOS over there, and felt it warranted a victory lap :cool:. And since this device is still my daily, and will always be my most current device, I figured I would check in here too, especially since @ziand posted about that issue (which I've been working on for the U12+ too, but we ended up solving a different way) and I've been working with @bigbiff for some weeks on creating a fix for it, which is finally complete.

    Hopefully official Pie for this device is just around the corner, and then maybe I'll have more work to do (though the current version of TWRP *should* decrypt Pie just fine). Guess I'll see when (if) it happens. So, this will once again be my last post, unless I somehow lose a few more, though I don't expect to.

    Cap

    P.S. If the latest TWRP doesn't flash your ROM, go tell your ROM maintainer to update their scripts to call the sh, dd and/or unzip binaries directly, like I've been telling most of them for the past several years. I'm pretty sure @LeeDroid made those updates a while ago, and I thought the Viper Devs did too, but maybe not all of them (or maybe all of the Sense ROMs for this device are old). Don't go blaming TWRP for your issues. TWRP continues to be updated as Android gets updated. So, try and make sure you and your devs keep up ;).

    P.P.S. Don't forget that you can join me in the TWRP Testing Slack (link is in OP) if you want access to new features early or if you want to help test! You can also just pop in and say hi if you miss me too much, lol.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone