yashsingh1/xdaforums huggingface dataset:
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Ingenium13:
It's been a while since I used TWRP (before file based encryption was used). I know Android 11 isn't supported yet, and it can't decrypt data, but does data need to be decrypted to backup and restore it? For example, if I back it up to USB storage?

I'm asking because my eSIM got screwed up, and with Sprint being Sprint, the only way to get it back is to full factory reset. So my plan was to backup with TWRP, factory reset, download the eSIM, factory reset without wiping the eSIM, and restore with TWRP. Not sure if that's actually possible at this stage, or if I need to wait for Android 11 decryption support.

Or is it possible to do something more low level, like using dd to clone the data partition to USB storage and then dd it back? I'm not sure if that sort of thing is possible anymore on Android.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] niko26:
I did a full reset on my Pixel 4 XL (T-mobile Germany) and the Esim was not wiped.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] dhacke:
Ok. Here's the link:

https://aosip.dev/coral

You need to take the build named "Official" from 20200604
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Santarosa 503:
Is good enough to flash magisk at least that's all I used it for so far. I haven't tried anything but so far magisk is working perfectly.. also it seems like you need to be on stock cause I tried it on aosip and it wouldn't get pass thru the twrp splashed unless I factory reset my device but it still wouldn't let me flash anything.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Daisymae:
So you're saying you got the stock ROM to boot TWRP normally?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] 2WildFirE:
Take a look at the flame twrp thread, flame boots fine on stock ROM.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Santarosa 503:
Yep. flashed magisk and also did a backup to my usb. ?

---------- Post added at 10:20 PM ---------- Previous post was at 09:54 PM ----------

[IMG="twrp backup on coral"]https://photos.app.goo.gl/SZs18s7fC9TsHf3P9[/IMG]
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Daisymae:
Hate to sound so dense. The post above yours is talking about TWRP working for flame. But you're saying it worked for you on coral?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Santarosa 503:
Yes it works on Coral
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
They share the same device tree. The only difference is the codename.

If you are having issues, please post logs so I can figure it out.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Daisymae:
K. Thanks. Sure do appreciate all your work! I'll try to pull logs when I get home.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] hanschke:
does it work on android 11 dp4?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] dakotah2468:
try it
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Daisymae:
Here
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Daisymae:
Here's mine. I'm on latest AOSiP (June);rooted.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Daisymae:
If you do try it let us know if it worked.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
I sometimes think people don't understand the efforts involved for supporting encryption in TWRP.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] dakotah2468:
Why am I getting quoted for telling somebody to test in on dpp4 instead of asking
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
I wasn't taking it out on you, but the person you asked to test should know better.

The encryption documentation on the AOSP site specifically states changes will need to be made for R encryption, and we never support beta implementations of Android as a rule due to the fast moving targets.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] dakotah2468:
ohhh, I see. Good to know
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
I have AOSiP10-20200604 flashed to my test device, is that what you have?

In TWRP can you do the following commands with adb, you can see what I have:

λ adb shell
# find /sbin -name libion.so
/sbin/com.google.android.media.swcodec.apex-mount/lib64/libion.so
#

If find returns nothing please post the results of

mount -v > /tmp/mounts.txt
adb pull /tmp/mounts.txt
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Daisymae:
K. Gimme a sec. Yes. I have the same ROM. I'm not a developer so this may be above my pay grade.

---------- Post added at 02:58 PM ---------- Previous post was at 02:36 PM ----------

The first commands were accepted and indeed returned nothing. The first line of the second command was accepted but the second line returned "/sbin/sh: adb: inaccesable or not found". I'm sure I'm not entering the command right or something. As I said I'm no developer. Just a self-taught android entheusiast. Sorry. And yes that's the same ROM I have.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Ingenium13:
The issue is that I already erased my eSIM, to fix an issue with Sprint provisioning. I'm trying to get it back, but apparently Sprint does something weird where the IMEI1 somehow gets assigned to SIM2 (the eSIM), since only IMEI1 is in their whitelist. But the phone will only do this one time. After that, it always assigns IMEI2 to the eSIM, which Sprint rejects. The only way to get it to use IMEI1 again is to factory reset apparently. I would love to find a way to do it without factory resetting though...

Otherwise, my plan is to just factory reset to get the eSIM back, then restore my data since the eSIM is kept separately. I just don't know if that's possible at the moment with TWRP on Android 11.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] yNSqz0zAFz8R:
someone PLEASE help me, I've tried all versions from the main thread with no luck. I'm in the last android 10 version and my TWRP is unable to mount storage, and I cant select it in my computer. If i use the old versions it asks for a password (which doesn't exist, its a fresh install) and the new ones don't mount. I have no idea what i'm doing wrong.

All i've wanted was to install the microg lineage :(

the only commands i did were

adb reboot bootloader

fastboot flash boot twrp8.img

and the phone won't boot anymore, accessing the recovery leads to nowhere since i'm unable to mount the damn storage....

i'm redoing everything to do the logcat.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] niko26:
Have you tried installing whichever version of Android you were using completely again without wiping? That might make your device start up.

Always set a password!
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] yNSqz0zAFz8R:
I'm sorry, what do you mean without wiping?

---------

OP, here is the logcat to my issue: paste.om------ nirom.org/view/43d3b3ae

(can't post links since i'm a new acc)

I hope I did it right.

>Edit

Tried once more, last Android 10 Version >added a password to the device > OEM Unlock > reboot bootloader > flash boot twrp > reboot into recovery > password works since ive added (non issue) > storage is still unavailable and doesnt mount > when i try to mount the phone in my pc it says "Failed to mount "AOSP on coral"" > bootloop (OS is dead after booting into twrp).

I must be really dumb and missing something obvious but still, any help would be appreciated.

Just another logcat if anything different happened in the inside : paste.omnirom.org/view/38b88660
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
Don't flash the TWRP from bootloader. Read directions carefully.

Fastboot boot TWRP.img

*Once in TWRP click install

*Then click images at the bottom

*Then select the latest twrp.img

*Then select repack ramdisk or whatever it says to do with ramdisk.

*Then swipe to complete.

*Then reboot.

*Then reboot to your bootloader/fastboot and scroll with volume keys till you get to "recovery" and hit power button.

*It should take you to TWRP now.

**** Oh and you have to have the supported kernel flashed on your phone. It says in the original post what kernel that is. It should be this kernel in the screen shot I've attached.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] yNSqz0zAFz8R:
I'm sorry for the lack of attention, i thought both commands had the same effect.

I read about the kernel issue, but how am I supposed to flash a kernel if I don't have TWRP or root? I checked the main kernel thread and I see no way to install it via adb only. Should I do adb sideload kernel.zip ?

Thank you very much for your helpful assistance.

-- Edit

I did some google-fu and rooted the device! I'm feeling hopeful now!

--

So... the only way to install the kernel without twrp is with a kernel manager, and since both Franco and EX KM are paid... There is a paywall and I can't go further than that without buying it? That's rather upsetting.

Well, I ended up buying it since I've found no free option... Now the TWRP worked perfectly and I'm using my custom rom. Thank you very much for providing TWRP for this device.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
You'll have to read the OP of that particular kernel.

I know I know. It's all completely different with the Pixel 4XL. Since we haven't had a custom recovery we've had to do things completely different. Most rom developers have had to build a boot.img that has a semi custom recovery that will allow the flashing of the system without signature verification. But even then you have to adb sideload the rom in said recovery. But now we have TWRP thanks to Big Biff.

And trust me this was no small feet. There was a lot of brains that went into this and a lot of time. But it's finally working correctly for the most part. Yu just have to install it little differently than with the past pixels and nexus devices. Google is getting better and better at trying to keep us on our stock firmware.

So my advice is take a step back and read up on the methods to our devices madness before you leap into crack flashing as all of us have been so a custom to in the past. Cuz otherwise it will bite you in the ass quick. Just check out the question and answer threads of all the people bootlooped and soft bricked.

Good luck.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] MatthewRobinson:
With all this confusion going on, I think I may just go stock and leave rooting alone. I'm way back on a May build because I never learned how to avoid wiping the phone entirely during a flash lol. It's not anyone's fault but mine of course. Google has just changed over the years. I don't like it!
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Madjax2020:
Remove the -w
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Roll3r:
Open the file flash-all.bat in a text editor. Towards the bottom you'll see the line "fastboot update -w image-coral-XXXXXXXzip". Remove the -w from that line so you're left with "fastboot update image-coral-XXXXXXX.zip" ("XXX"s just represent whatever build you're flashing! Don't change that part!). Save it, open it again just to double-check that the "-w" is gone (this bit me one time...). Run flash-all.bat and you'll update while keeping all data.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
Yeah do what MadJax said. In the flashing script of the stock software.... Right click on it with your mouse, scroll to edit or open with, select word pad.

Don't use note pad. Use word pad to edit the script with. Once you've opened the script with word pad read through the script towards the end. You'll find a

" -w " delete the dash and the "w". -w

That's the command that wipes all the data and returns it to stock like it just came out the box.

Now click the little disk up in the left top menu to "Save". Don't do "Save As" if you wanna... Open it back up and check to see tgat the "-w" has been deleted. Once you've completed all that then just run that windows application to flash back to stock without losing anything.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] DirtydAmbrose:
Sorry if its already been asked but I didnt see. I"am trying to flash Twrp and the the DU rom and I can boot Twrp from my computer on my phone but no matter what I do I cant get it to let me mount the storage to get to the Twrp img and to my DU rom file. I did get it to access my sd card through a reader but I took it off to put the DU rom on the card and it wont mount the storage for that now that I put the files on the card for it ? Luckily I can still boot the stock rom and use the phone. Its been years since I have done all this and I"am a bit rusty it just takes me a bit longer. And I"am using the latest Twrp img which I see listed sideload is not working so I cant sideload the rom either. Any ideas on this anyone ? I cant format and flash when the storage wont mount nor can I flash anything ?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
Have you tried repacking TWRP to the ramdisk? Look below the first set of instructions in the OP. There's another set of instructions that outline how to get twrp to save past reboot. In other words it makes it where you don't have to have you PC to boot twrp. It's now like custom recovery that you've flashed on any other phone. It should recognize your sdcard then... Just follow those instructions. When you get into twrp and you click install images rather than zips you'll pick the latest twrp.img. it'll then ask how to install. Select the repack to ramdisk (or however it's worded ) once it's done reboot system or recovery either way it is now saved as your custom recovery. Pay attention to which kernel you have to have installed beforehand as well.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] DirtydAmbrose:
But technically having the TWRP booted up on my phone I should still be able to mount the storage and be able to use it correct ? I had a phone before where I could just boot TWRP using a computer and I could flash a rom ?

---------- Post added at 09:35 AM ---------- Previous post was at 09:35 AM ----------

But technically having the TWRP booted up on my phone I should still be able to mount the storage and be able to use it correct ? I had a phone before where I could just boot TWRP using a computer and I could flash a rom ?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] Homeboy76:
[MENTION=2638973]bigbiff[/MENTION] The new Magisk 21.0 supports installation via a Custom Recovery (T.W.R.P.): Installation

Is a booted Test8 T.W.R.P. with a kernel that supports the R DTBO and LZMA ramdisk installed on the (Pixel 4XL) phone capable of installing zip files on Android 11 (R) ?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
I am not sure. I won't be able to work on android-11 issues until we finish the remaining 2 features of android-10, which is fastbootd support and sideload support.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
I told you what to do to make it work. If you don't like my answer then try booting it from an old green screen computer or maybe try a cars ecm computer linked to the 1988 frogger arcade game and see if that works.

I can only show you the door you have to walk through it. But trying to convince yourself that another door besides the one I showed you is the correct door is probably your best bet.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] DirtydAmbrose:
I wasn't bringing it up for that I was bringing it up because I was curious because the other versions that I've used before I came if it was pixels or HTC phones but you could boot the TWRP up like this from a computer and then everything else just worked and then you could leave the stock recovery on so from a curious standpoint I thought it should have worked the way it was I thought there was something wrong that because it should have worked I thought. Rather than just knowing a fix of something I would rather know what was going on what was wrong I was trying to understand because I thought it was should have worked the way it was as a temporary booty that version
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] dragynbane222:
Dude... Calm down. He asked a legitimate question. Which in theory everything he's asking about should work whether it's done via fastboot boot or bored from a patched ramdisk. The functions will be the same.

It looks like another case of bigbiff having to catch up with what Google did.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
I'm not upset or I'll I was just being a smart ass. Had a few drinks on me. I apologise. But I can't and won't answer hypothetically that's not a good decision for anyone to make when it comes to the chance that hypothetically it doesn't go the way it hypothetically should. Then someone's out a perfectly good camera that can also make phone calls. All I can answer to is what I've done and has worked for me.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] dragynbane222:
Understandable
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
Is there any more plans on development for this? Can I be of some help if there is?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
My current plans are getting android-10 builds feature complete and getting working on android-11.

The last feature I am working on is adb sideload, but development has stopped until I rebuild my build machine this weekend. No ETAs unfortunately about any development.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] mattwheat:
Let me know if there is anything I can help with or test.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ben70190:
Im still lost but is this only for Booting into with fastboot or can it be Flashed over the stock recovery yet? (with stock rom installed).

I followed the steps but when Im booted into TWRP and about to install the image it asks for a partition to flash it to. Do I select boot? I selected boot but it fails to boot the stock rom after rebooting. Is it because I need the kernel?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ben70190:
It appears after you install the recovery. It overwrites magisk and when you boot the system you no longer have root. But when I go back to fastboot to reflash magisk_patched.img I get "error boot prepare"?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
You don't want to reinstall the magisk_patched.img, this will overwrite TWRP. You would install the zip for magisk to keep root.

Error boot prepare might be because you have an incompatible DTBO partition installed for the version of magisk patched image you are trying to flash to boot.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
It can be fastbooted or installed in an android 10 ROM's boot partition using the instructions in OP.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] ben70190:
So I do this.

1. Boot TWRP

2. Push twrp.img to /sdcard/

3. Install twrp.img and click Recovery Ramdisk partition

4. Install Magisk.zip

in order to root and retain twrp
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] pixel2404:
Cannot install TWRP

Hi@all,

I have so far only installed Nexus devices with TWRP. On my Pixel 4 XL I can't make it :(

I have activated the developer mode, USB debugging and started the device with adb in the bootloader. I have downloaded the following image:

twrp-3.4.0-0-test9-coral.img

As before on the Nexus devices I tried to install it by fastboot which did not work.

root@lt001:/data01/Downloads/Android/TWRP/Pixel4XL# fastboot flash recovery
error: ANDROID_PRODUCT_OUT not set
root@lt001:/data01/Downloads/Android/TWRP/Pixel4XL# fastboot devices
9B141FFBA001GF	fastboot
root@lt001:/data01/Downloads/Android/TWRP/Pixel4XL# fastboot flash twrp-3.4.0-0-test6-flame.img
unknown partition 'twrp-3.4.0-0-test6-flame.img'
error: cannot determine image filename for 'twrp-3.4.0-0-test6-flame.img'

Here I found that I have to transfer the imagepe via ADB to the device to install it afterwards.

root@lt001:/data01/Downloads/Android/TWRP/Pixel4XL$ adb push twrp-3.4.0-0-test9-coral.img /sdcard/

Then I started the device back into the bootloader. But I do not understand the next steps. What do I have to do now?

with best

pixel24
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
Pretty much what I said in OP.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] bigbiff:
These devices do not have a dedicated recovery partition. You need to repack following instructions in OP.
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] pixel2404:
please excuse me if I need help. This step with this image is right?

root@lt001:/data01/Downloads/Android/TWRP/Pixel4XL$ adb push twrp-3.4.0-0-test9-coral.img /sdcard/

Install twrp.img and click Recovery Ramdisk partition

How do I do that?

---------- Post added at 02:22 PM ---------- Previous post was at 02:01 PM ----------

2. reboot to bootloader and fastboot latest boot.img of TWRP

if i understand it correctly i need a patched version of booz.img But where do I get it from?
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] pixel2404:
I have tried it according to the following instructions:

1. Extract boot.img from the stock firmware

First and foremost, you need to get the boot image that matches the current software build your device is currently running. For that go to the software section and look for the build number. Then go to Google developers website and download the corresponding factory image of your device model and the current version.

Next, what you’ve to do is extract the factory image .zip file and then extract the image-devicecodename–version.zip (eg; coral-QD1A.190821.007.zip for the Pixel 4 XL) file. Find the boot.img file from the latter folder. Transfer this boot.img file to your phone.

2. Patch Boot Image Using Magisk Manager

With the boot image file on your phone, you need to download and install the latest Magisk Manager APK. This is the management app for Magisk that you will use to patch the boot image. Download the Magisk Manager from the download section.

Follow the below steps;

Install Magisk Manager

Open Magisk Manager, and click on the “Install” button next to the “Magisk is not installed” text.

Select “Install” then “Select and Patch a file.”

From the Android file manager, find and choose the boot.img you transferred from your PC and select that in Magisk Manager.

Magisk will then patch the boot image and save a file called “magisk_patched.img” in your Downloads folder. After that, you’ve to transfer this file back to your PC.

Downloaded the stock ROM and patched it with Magisk. Transfer the patched boot.img back to the PC.

- Device started in the bootloader

fastboot flash boot path/to/magisk_patched.img
target reported max download size of 268435456 bytes
sending 'boot_b' (65536 KB)...
OKAY [ 0.470s ]
writing 'boot_b'...
OKAY [ 0.540s]
finished. total time: 1.010s

now the device does not boot anymore, ss remains "Fastboot Mode" hang:

...

Enter reason: error boot prepare

Would be nice if someone would help me
[Google Pixel 4 XL ROMs, Kernels, Recoveries, & Oth] pixel2404:
ok, I have reinstalled the stock "coral-qd1a.190821.007-factory-e915f51a.zip".

I also found out (hopefully) what the individual steps are.

adb push twrp-3.4.0-0-test9-coral.img /sdcard/
adb reboot bootloader
fastboot boot twrp-3.4.0-0-test9-coral.img

then I land in TWRP. Afterwards I shall:

3. go to install

4. touch install image

5. select your TWRP boot.img from /sdcard

Which options do I have to choose here? "Both"...? for install

If I select Reboot -> Recocery afterwards, I get back to the same place as before:

Fastboot

...

Enter reason: error boot prepare