yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] GROOVYJOSHCLARK:
I would not install TWRP, just ADB it, when needed. I would reset to the last 10 firmware with -w (backup everything first). What happens when you try to reset the firmware? Post the error logs, but that's your first step to undo the damage done by whatever happened.

I am not sure exactly what you did, but to me, it sounds like you messed up the partitions hence you cant write to them. Resetting the firmware must be done in my opinion. Can you post step by step what you did to land you there and what status it is now?

I personally havent used the all in one tool, but if not done carefully, can land you in a mess. I wouldnt use that right now, instead focus on getting the last 10 firmware working (or 11 if you dont care for TWRP).

On the ADB side, I would make sure my framework is up to date, and make sure my USB/cable is healthy. Its possible you have an outdated ADB, but I think its more likely a partition issue but I could be wrong. These are all "guesses" as I have no way of knowing what was actually done, but thats where I would start and I have gotten my 4XL out of some dirty dark areas of no boot myself. The firmware always rescues me no matter how bad I break it.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
TVRP still not working on 11 Android?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
Faced the same problem. How to remove modules without resetting phone to factory defaults. TWRP at 11 doesn't work.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
adb wait-for-device shell magisk --remove-modules

You can also boot into safe mode, then reboot normally and the modules will be disabled. Then you can remove them.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
Doesn't remove modules. Hangs on G. Can't boot into Safe Mode((
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] neejay01:
Like he said, booting into safe mode one time, then regular mode will automatically disable any modules. I've personally done this several times.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
Delete
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Lughnasadh:
I used it earlier today. Worked fine. Boot into bootloader, run command, then boot.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
After safe mode, the phone turned on, but the sensor stopped working o_Oo_O
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
It was tough, but I did it. I installed the stock boot, patched the boot again, and only after that the sensor started working. Thanks to everyone who helped !!!
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Hello all. I posted the first test image for Coral on A11 in the OP. Please let me know if there are issues.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
Has anybody been able to flash ROMs, kernels, or mods from recovery? Or are we just using it for a way to create a backup? And for that matter has anyone restored a backup that they created through TWRP?

Thanks in advance for any answers...
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] GROOVYJOSHCLARK:
Delete, sorry I replied to the wrong thread.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Suavie103:
think I may have bricked my boot. when installing TWRP, flashing the TWRP.img I flashed it to the boot. now my device won't boot. but goes into recovery. I wasn't able to do a backup TWRP said I didn't have enough space. however i can confirm my TWRP works and decrpyts lol
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
You will need to reflash a stock boot image from google.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
I'm not sure if I'm doing something wrong but running FLORAL on the current May update and successfully can boot to TWRP using fastboot but after going to install and installing image to boot partition and choosing both slots I reflashed Magisk as the TWRP website says that flashing TWRP removes root but then phone fails to boot and just loops recovery. Had to reflash root patched stock boot to recover phone. Is TWRP still not flashable and only from boot or did I do something wrong? Otherwise TWRP seems to work as expected when booted to. Just can't make it permanent.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Suavie103:
thanks I googled and I found out the same. luckily I kept a copy of the patched_magisk file. and just flashed that. how do I properly install twrp? or as the post above said, "make it permanent" after fastboot boot twrp..
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
Seconded 👆🤘
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Please find instructions in Post 2. Make sure to install a custom kernel if touch doesn't work when rebooting to recovery mode.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Suavie103:
understood that, now... at the install image screen. when flashing twrp.img in the twrp app. do I swipe to confirm the twrp.img to the boot, super or install recovery ram
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Install Recovery Ramdisk. I will make the verbiage clearer in post 2.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
This is where I was having my problem I was following the installation instructions from the TWRP website and as you see in the screenshot I circled where the confusion is it says something about installing to both boot slots which I think is going to screw other people up as well somebody should fix that verbiage so that it says install to recovery RAM disk
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
The installer repacks the TWRP ramdisk into the current boot ramdisk on both slots. The verbiage is correct as far as I can tell. We use that on all the A/B devices as a template.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
This is true but in the instructions it doesn't mention choosing the recovery ramdisk option before installing. What I'm saying is that this should be added so people don't make the mistake I did which is take the mention of flashing to both slots meaning I should choose boot and both slots while installing the image which is what I did the first time before I saw your earlier response said to choose the ramdisk one.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] neejay01:
"3. Go to Install

4. Touch Install Image Recovery Ramdisk

5. Select your TWRP boot.img from /sdcard"

Swap #4 and #5: I had to select the TWRP image first, then got the option to "Install Recovery Ramdisk". I was on Sultan Kernel, installed, and I'm able to reboot to recovery (TWRP) without issue so far. :)
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Curiousn00b:
I'll test it out tonight out of curiosity since I didn't try TWRP on this device yet. Been having random issues, so it's time to fresh flash.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] neejay01:
I did a backup of data only, successfully. When I checked the TWRP folder once booted into Android, there was nothing. I rebooted into TWRP, went to restore, and there was nothing to restore.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] kb5rir:
A11 working good

Great work Bigbiff
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Any device with recovery in boot needs to have recovery reinstalled by using the install ramdisk method when choosing the image to repack recovery from. Please do not flash the boot.img directly to the boot partition.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Can you use adb and use su to use the ls command to list the contents of /data/media/0?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Flyview:
I successfully used the Android 11 (A11) test build to flash a kernel!
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] KingMike67:
I'm having the same issue as @neejay01 . I did a backup of all partitions (excluding misc). While I am still in TWRP after the backup, I can see the backup when I press restore. But when I reboot the phone I cannot see the folder in any file explorer apps. The ls command does not show the folder either
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] KingMike67:
I tried again and it did the same thing, no files in any file explorer (with root). So I tried for a third time, this time I changed the backup name. Before I rebooted I pull the contents of data/media/0 with adb just to make sure I had the files. I rebooted and the files were there in a file explorer. So I deleted all the files and tried the backup again, this time leaving the name auto generated and it worked fine. Not sure why it didn't work the first few times and now all of a sudden works. I am going to try a new rom and I will see how the restore works

*Forgot to add this is the A11 test version*
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] kb5rir:
A11 testing working perfectly for 3 days now. I am able to restore backups. My phone is the 4XL.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Can you guys post logs so I can see what's happening? It's a stab in the dark otherwise.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] KingMike67:
I tried to restore my phone from the backup and it boot looped. So I went back to stock and did another backup for testing purposes. I could not reproduce my previous issues. Every time I booted into TWRP I was able to backup and then see the backup when I rebooted.

I am going to try to restore the backup. Should I grab the recovery log and a logcat before I reboot from TWRP just in case it boot loops? How can I get the dmesg log if I cannot get it to boot?

My apologies, getting logs is still new to me
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
How to install TWRP with Sultan kernel? I launch TWRP, install the ZIP with the kernel, then install the TWRP in Recovery Ramdisk. I try to boot into the recovery, and freezes on the TWRP splash screen
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Check for adb and use adb shell and adb pull.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Can you pull logs with adb?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] neejay01:
Sorry, I'm on A12 Beta 1 now.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] sasory:
Tell me how to make a log? I can't install TWRP permanently. Only temporarily.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
<Edit>

:oops: Opps, Wrong thread.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Roddydesu:
Hello, some issues came up with my 4XL and I am attempting to fix it. I suspect that it is an offending Magisk module but I cannot even boot into system or safe mode to disable them. I am trying to use TWRP to go into /data/adb/modules to delete them. Every time I delete the modules it says "File Operation Successful", but it still doesn't boot and the modules I've supposedly deleted still show up if I boot into TWRP again. Any idea what might be happening? Thanks in advance.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] flash713:
What rom and kernel were you using prior to all this happening? How "exactly" did you install TWRP? What exact twrp did you install? Test build of TWRP or no? Was the TWRP you installed a recovery.img or installer zip? When your phone wouldn't boot what was done just before that happened?

Did you have developer options enabled and USB debugging when this all went down? Does your computer see your phone when you plug it up or no? More information and in "fine detail" and you can get much better help. Not saying that to be an asshole. People can only help so much not knowing all the details. If you had posted a summary of exactly what was done, every command you sent to your phone, what rom & kernel you were on, what TWRP you installed, was it a test build or no, was it a TWRP.img or an installer zip, how exactly did you install TWRP, what happened just before your phone wouldn't boot... If I had all that information it sure would help. Let me know all those details please and chances of a solution improve greatly.

Edit added: Before using the TWRP file manager to try to delete these magisk modules are you mounting the system partition in twrp? I guess you are or you wouldn't be able to see them..
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] GROOVYJOSHCLARK:
Others have already replied, but the easiest way I have found to pull a catlog is through ADB. I am sharing this for others so they can get the right type of logs needed for the devs.

Make sure you have "USB debugging" enabled in dev options, then from your PC:

adb shell

su

logcat -d > /storage/self/primary/CATLOGNAME.txt

Most of the time, this is all you need "logcat -d", or the dev will tell you otherwise. If you need (or would like to see more) then you can run: "logcat -v raw" (but it generates a LOT of logs). If an option is not specified with -v on command line, the format defaults to ANDROID_PRINTF_LOG / "threadtime" so you only need to use -v option if you want different log results.

This will save the current logs to your internal SD called CATLOGNAME.txt (so change it to something useful). This is assuming you have ROOT. The path I used is the storage path for my current ROM (full path so it doesn't hiccup on permissions), but it should work across the board:

/storage/self/primary/CATLOGNAME.txt

Using the lower case -d, will write the LOGCAT to the TXT file then close (otherwise the logcat keeps running until stopped). Using the > will "pipe" the results (write to the TXT and not on screen):

adb logcat -d Dumps the log to the screen and exits

Android apps work fine as well (CatLog) but it requires you to use/open the app, reproduce the issue, then capture it in the app, whereas ADB does it live from the shell without the back and forth of the app use.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] p1r473:
No TWRP for Android 11 yet?

That must be why I am getting the same issue- stuck at splash screen on booting to TWRP.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
There's a test build for Android 11 in the OP
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ebowen 747:
How to decrypt data on Android 11, pin doesn't work and won't mount data to format.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
Unfortunately the build has been confirmed that it does work so it's an issue with your specific device. In most of these cases something is corrupted and you may need to do a clean flash to solve it. I've seen very rare cases where the issue was able to be isolated.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ebowen 747:
Clean install solved that problem thanks. Can I still root after twrp. Does flashing the patched boot as before interfere with recovery somehow.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
It shouldn't. TWRP website says reflashing root is allowed. Any kernel you had installed should still be there as before. Only root needs to be reflashed for some reason. I will say after permanent install of TWRP I had instability on first boot but after clearing cache and rebooting it was fine.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ebowen 747:
Yeah when i flash patched boot image it reverts to stock recovery. Do i need to find a way to extract the boot image from the device after twrp is installed?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] JakeDHS07:
No just reflash Magisk itself. TWRP requires a custom kernel to be installed before it will even run so that will already be there after you flash TWRP. As far as I know you can choose the Magisk APK directly from TWRP and that will flash root. Alternatively you can change the file extension to .zip and flash through a kernel manager or other means and achieve the same result. But you shouldn't have to mess with the boot partition after TWRP is installed to ramdisk. Though it looks like currently it will need to be redone after any firmware/kernel update which is unfortunate but that's what happens because our phone doesn't use a recovery partition anymore.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ebowen 747:
Got it sorted, thanks for your help. Wouldn't have thought to flash an apk in recovery.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] flash713:
You could try pulling the boot.img using ADB after twrp is installed then you'd have your boot and twrp recovery in your boot.img for future installs just fastboot your boot.img to boot partition and you'd have twrp and boot. Stock recovery installing again happened because the boot.img and recovery are together in the boot.img. Recovery is flashed to boot on AB partition devices. There is no seperate partition for recovery on AB devices like there was before AB partition devices. You can also try flashing magisk.zip once twrp is installed and see if it patches your boot.img, just make sure if your flashing both magisk zip and twrp that you fastboot boot twrp then install twrp.img to ramdisk in twrp first then reboot recovery and flash magisk and reboot system. Should work that way, I would think .. I have not done this last twrp and magisk install on my Pixel 4xl yet. I haven't even installed twrp because I'm waiting for more news and didn't want to jump the gun. Not saying that any of what I say here will work and is safe but if I had to have twrp now that's some things I would try.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ebowen 747:
TWRP installed , just had to flash a kernel before reboot recovery or the touchscreen wouldn't work. I rooted by installing the magisk apk in recovery. Doesn't seem like it should have worked because it's not a zip or image but it worked no problem
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] flash713:
You can rename the magisk.apk to magisk.zip using root explorer or whatever file manager you use and it will also flash.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] tasoskio:
Any test for Android 12 please?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] GROOVYJOSHCLARK:
TWRP 11 is only in beta very recently so it will take some time before 12 rolls out so please be patient. No ETA's so don't bother asking when 12 will roll out.

On the 11 note, I tried the latest beta build and it wont go past the TWRP splash screen. Using stock OS with LZMA ramdisk kernel (EX). Does anyone else have luck with the 11 TWRP, and if so, what kernel did they use and what ROM are they on (or stock)?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ojessie:
Just to add ... having the same problem on 11 cannot pass TWRP splash screen and I'm on the latest Kirisukura kernel.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
I don't know how to help you without logs.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] p1r473:
Are you using the Android 1 build in the OP?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bambam126:
on asop and twrp wont boot stucck on twrp splash tried 3.5.0 and 3.5.2 any help? or just no twrp on asop using proton
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ojessie:
Sorry, will provide as soon as possible but I'm busy next couple of days.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ojessie:
I used the one in the OP and the latest on TWRP and I'm on proton rom.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] GROOVYJOSHCLARK:
I tried proton and stock Google firmware (using EX), with the beta 11 TWRP and same results, no go. I don't think it's a proton specific failure. I'll try to grab some logs later today if I'm able to.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] KingMike67:
Here is a logcat from being stuck on the splash screen using Proton ROM.

Logcat - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

pastebin.com

I did not have this issue with Stock, PixelDust or Scorpion as I was able to run TWRP and backup those ROMs (did not restore any yet)
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
In android can you do find / -name libion.so 2>/dev/null and let me know the results?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Brenyd:
Im on the newest version of android 11 was able to boot into TWRP and flash it to my PIxel 4xl but after flashing TWRP touch does not work when booting into it almost like it's completely frozen the prompt to decrypt the storage pops up and im unable to type in my passcode no response to anything I touch at all. Touch was working when I booting into from fastboot but not after flashing ramdisk and when booting into from fastboot I could not mount the storage partition.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Ulyaoth:
I'm on the latest kirisakura kernel, and on the PixelDust ROM(Android 11). I didn't flash, I only booted it from fastboot. When I tried it a couple of months ago I had the same thing, but now it got past the splash screen and the touchscreen works. I still won't flash as I don't really need it but it's good to know I can boot into it and have it work.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Brenyd:
Not sure what happened after playing around with it and installing Pixel Dust seems to be working fine
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] GROOVYJOSHCLARK:
Here is the recovery log from ProtonAOSP with krishna floral on 11 using the latest 11 beta (stuck on splash):

adb pull /tmp/recovery.log
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Please post logcat from TWRP as well.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] GROOVYJOSHCLARK:
Will do, I'll grab the LC from TWRP when I get to a PC later today or tomorrow.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] KingMike67:
Sorry for the delay, I was back on another ROM for a few days. I clean flashed Proton again and it did the same thing, so I don't think it was something I did. Here is the result

coral:/ $ find / -name libion.so 2>/dev/null

/system/lib/libion.so

/system/lib64/libion.so

/system/apex/com.android.media.swcodec/lib64/libion.so

/system/apex/com.android.vndk.current/lib/libion.so

/system/apex/com.android.vndk.current/lib64/libion.so

1|coral:/ $

I have also attached the logcat from this install, just in case there is something different in it
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] vanish0104:
Does anyone know what's going with dl.twrp.me? Seems to be down all day.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Aulgreg38:
Hi big bigff it's Greg how r u doing hopefully we'll I'm running android 12 beta one the only twrp I can get to boot is ur old coral test 8 same issue can't decrypt but no worries your doing a great job😁😁💚
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] vanish0104:
This is not for Android 12. Test1 from the OP is for A11 or download from the official TWRP page for A10.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Suavie103:
anybody have success on the June update? I'm having touch screen issues.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] blueyes:
I'm running complete stock android 11 with the latest June update installed. Followed the directions given above and it worked like a charm. Stock rooted with TWRP installed. No issues whatsoever. I've booted into TWRP straight from the OS several times, once in TWRP I enter my passcode and TWRP decrypts the storage perfectly. Made a backup of the boot image alone just to test it out. Anyway glad to have the flexibility of having TWRP fully integrated again.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] tirimen1872:
Please help!

I'm getting the error FAILED (remote: 'Not allowed to flash (recovery)') even though I did bootloader unlock and got device stable:unlocked.

I am tired of this problem, please help!
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] blueyes:
It was a pretty straight forward process. Downloaded the TWRP image to my computer, fastboot boot into TWRP, them while in recovery used TWRP to patch my boot image. Went back to fastboot and flashed the boot this time and done.