yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] nuumuun:
sure thing. i'm glad i can help for once.

usually i just benefit from other people doing the testing :p

ok ... done with your instructions.

terminal output:

> adb reboot bootloader

> fastboot boot twrp-3.1.1-alpha1-walleye.img
downloading 'boot.img'...
OKAY [ 0.699s]
booting...
OKAY [ 0.081s]
finished. total time: 0.783s

> adb sideload Snoke.R9.zip
opening 'Snoke.R9.zip'...
connecting...
Total xfer: 1.03x

> adb reboot bootloader

> fastboot boot twrp-3.1.1-alpha1-walleye.img
downloading 'boot.img'...
OKAY [ 0.699s]
booting...
OKAY [ 0.078s]
finished. total time: 0.777s

> adb sideload "Magisk-v14.3(1437).zip"
opening 'Magisk-v14.3(1437).zip'...
connecting...
Total xfer: 1.44x

> adb shell
walleye:/ $ su
walleye:/ # dd if=/dev/block/sda9 of=/sdcard/magiskboot_snoke_p2.img
65536+0 records in
65536+0 records out
33554432 bytes transferred in 0.426 secs (78766272 bytes/sec)
walleye:/ # exit
walleye:/ $ exit

> adb pull /sdcard/magiskboot_snoke_p2.img .
/sdcard/magiskboot_snoke_p2.img: 1 file pulled. 12.9 MB/s (33554432 bytes in 2.485s)

Screenshots of before and after attached.

Patched boot image gdrive link: https://drive.google.com/open?id=0BzyfkcFTdL6dZWhGNmVZUTk4QzA
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
Sweet hopefully I'll find something.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] nuumuun:
anything else i can do before i revert back to stock boot with magisk?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] bryantjopplin:
No thanks, forgot you used stock. Any particular reason???
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
MTP currently doesn't work, so you'll need to either put your files on the SDcard before booting TWRP, or use ADB push
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] fkfmfz:
AICP, DU, Carbon, and Lineage are already available.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] joetheshmo:
Not officially
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Telperion:
Using 3.2.1-2, unable to decrypt P DP1.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Ryche666:
Nope, that POS guy who is building the Pixel 2 wont commit to make Official Builds.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jascolli:
I wonder who that rascal could be....ha ha
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Ryche666:
Maybe if he ever learns how to Gerrit and JNRI and get's a new drive. Then we would have 4 Official ROM's???

---------- Post added at 11:58 AM ---------- Previous post was at 11:57 AM ----------

BTW, ADB SIDELOAD works on the latest TWRP!!!!!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
deleted
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Xgame2k10:
Your Instructions say:

Do you mean copy the IMG to the device?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] joetheshmo:
Having the img on your device is useless because you have to boot it from fastboot. Having the zip on your device allows you to flash the zip from within the fastbooted (temporary) twrp to have a permanent twrp recovery
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Xgame2k10:
Oops that's embarrassing.

I thought I was commanding the phone to boot from the file on the device. No wonder that path didn't work.

Thanks for clarifying.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
So after reading through the posts in this thread, it sounds as if TWRP doesn't replace stock recovery, and only resides in boot?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] robocuff:
It does replace stock recovery. The stock recovery resides in the bootloader too. There is no dedicated recovery partition on any of the Pixels.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
I'm confused, then. Flashing TWRP installs it to both boot slots...but rebooting my phone to recovery just gets to stock recovery, not TWRP, while normal booting goes into TWRP, unless you flash the boot image again, which gets rid of TWRP...

I started on the OG Droid, and my, things have changed.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] robocuff:
I'm not sure what's happening in your case. If I install TWRP and boot to recovery it boots to TWRP. If I shut the phone down and boot to recovery, it boots to TWRP. No difference either way.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
Just tried it again; temp booted TWRP, flashed TWRP zip, followed with Magisk v16, successfully rebooted to system.

Then, instructed phone to reboot to recovery via ADB; phone booted into TWRP. Rebooted to bootloader, then selected Recovery again.

Weird.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
Has anyone else noticed significantly reduced battery life with TWRP installed?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] xFirefly93:
Huh? How can TWRP reduce battery life?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] vandyman:
Exactly.. No such thing..
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
Never said it did, just noticed a weird coincidence. But I also switched from AdAway to Unified Hosts Manager, so maybe that had something to do with it.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Madcat8686:
You may get some battery drain during and after flashing but that goes away after you let the device "settle." Having TWRP on your device has zero effect on battery life.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Rukbat:
One thing I noticed on this version is that booting from Android to TWRP (using Quick Reboot Pro) sometimes leaves me with a non-functioning keyboard in TWRP. Tap any key and nothing happens. A quick reboot to bootloader, then to recovery fixes it. (Don't ask me which one has the bug - I didn't have anything to do with writing either one.)

But on the whole - thank you Dees_Troy. Now I can back up or flash from /sdcard without having to redo my fingerprints.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] nogaff:
Question: Does decryption only work if you've actually flashed TWRP?

There are at least two other recent comments in this thread saying that 3.2.1-2 is able to decrypt with the March update but if I use "fastboot boot" to run TWRP it always fails to decrypt (doesn't accept my pattern lock).
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jasonsamms666:
Remove all security and then boot TWRP
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] BS86:
Using PIN to unlock my phone, and the PIN works as decryption password in temporarily booted TWRP 3.2.1-2
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] nogaff:
Yeah, that's what I'm trying to avoid because that way I have to redo my fingerprints every time.

Ok, so it's supposed to work at least. Are you on the March update?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] BS86:
Of course.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] nogaff:
Cool. Thanks for confirming.

Not sure why mine won't decrypt then, unless it's an issue with pattern lock specifically. :confused:
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] robocuff:
I'm on the March update and use a pattern lock. If I fastboot boot twrp, it decrypts for me. I didn't install it. Just booted it to flash Magisk and a kernel. It all worked as it should so whatever the issue is, it's not pattern lock specific.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] rdmrocha:
booting the twrp image doesn't decrypt Android P DP1 for me
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] allexclusive:
1. Booted with twrp img but when I try to install the twrp zip file I can't find it in internal memory in twrp booted mode but it's in internal storage when I see it through my PC. It seems the drive which is seen in twrp booted mode is the root drive not the internal storage, as I don't have root access so i can only put files in internal storage only. What to do now ?

2. Could not understand this on 1st post -"Reflash the stock boot image" what does it mean? Original oem or which image- please give link

3.I don't have root access. Will permanently flashing twrp void the warranty?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] BS86:
Try looking in the "sdcard" folder. What you see in your PC's file browser is the contents of the /sdcard/ folder
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] allexclusive:
SD card can not be selected
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] BS86:
not the SD Card option ... the sdcard - FOLDER in the internal storage...
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] allexclusive:
Ok done. I have flashed twrp. Now will I flash Android P developer preview ? I mean after installing twrp will I have to do something or I have to install custom rom/ developer preview after this?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] xFirefly93:
You have to flash the developer preview first, then TWRP (and custom kernel *optional*.)

TWRP will otherwise be overwritten by the stock recovery image during the flashing process.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] TheEndHK:
All links are downed. Can someone kinda provide me a backup of twrp-pixel2-installer-walleye-3.2.1-2.zip? I've just received my Pixel2 and going to root it. :D
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] enzyne:
Seems like there back online now.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] lpsld:
Is there active development for this?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jasonsamms666:
It was just updated
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Rukbat:
What's left? AI mode, where it does what you want by thinking at it? Dees_Troy is actively developing it, but all I see left is little touches. The .2 increment was a biggie - no more installing from an external card or wiping your fingerprints, now we can boot to TWRP, read the phone storage itself, do what we want (well, within reason - wiping the phone not included) - and boot back to a lock screen. Just go to post 1 and thank him for his work (and silly me just noticed that I hadn't - taken care of now). (And click the "DONATE TO ME" button if you can afford even a few bucks. [No, I wouldn't know Ethan if I tripped over him - but I am very grateful for TWRP, and for all his hard work (and as a retired software developer, I know how much work it can be).])
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] cmlusco:
Why do the backups think its july of 1970?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] usernametaken53:
Does this work with magisk 16.0 too ? Or do I need the older 14.4 version for this to work ? I'm asking because I didn't see anyone mention or use magisk 16 yet. Sorry if this is a stupid question :cyclops:
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Darke5tShad0w:
Version 16.3 works fine
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] usernametaken53:
I'm gonna give this a try then. Thanks !
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Stauf99:
Just installed TWRP, now whenever I do an OTA update the update fails to install.

Is this just my life from now on, or is there a way to keep getting system updates?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Rukbat:
What's the date when you're in TWRP? This isn't the first version I've seen the wrong time or date on.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Darke5tShad0w:
OTA will not take if you do not have stock recovery.

Alternatively you can leave stock recovery installed and just boot to twrp when needed with out installing it.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] goRt:
https://xdaforums.com/pixel-2/how-to/guide-how-to-install-google-software-t3760033
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] dewhashish:
I'm trying to fastboot boot the latest TWRP on the April security patch, but it's not booting. After sending the fastboot command, a white screen comes up with the G logo and an open lock at the bottom. I have to force shut it off with power&volume down combination.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] NinjaCoool:
My TWRP fastboot works on the April security patch. Ensure that you have the latest adb tools though https://developer.android.com/studio/releases/platform-tools.html
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] dewhashish:
I did. I downloaded all of the latest tools.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] goRt:
Worked for me without issue Monday evening.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ZeroSkylineX:
Is anyone having trouble flashing TWRP 3.2.1-2? I just received a Pixel 2 (April security patch) and unlocked the bootloader. I flashed the img file but when I flash the zip file on TWRP, it won't let me proceed past the Google loading screen and takes me back to TWRP. When I flashed the older version 3.2.0-0, I am able to go past the Google loading screen but when I go into recovery, it is not flashed. I had no issues flashing TWRP on my Pixel 2 XL.

Not sure if this makes a difference but when I received the phone, it was critically unlocked but the bootloader itself was locked. I know on the Pixel 2 XL, it is recommended that it should be critically unlocked but it didn't make a difference when I flashed TWRP on either occasions.

EDIT: I reflashed the April factory image and I was able to successfully flash TWRP 3.2.1-1.

3.2.0-0 and 3.2.1-2 did not work for me for some reason.

Summary:

3.2.0-0 allows me to go past the Google loading screen, but TWRP won't be flashed. Recovery page shows "no command."

3.2.1-2 does not allow me to go past the Google loading screen, but TWRP is flashed. I had to reflash the stock image.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ZeroSkylineX:
Just wanted to update this post. I gave it another try and flashed 3.2.1-2 again. The same issue occurred, first time rebooting it got stuck on the Google loading screen. I rebooted it again and my new ROM came through. I restarted it a few times again after and the issue never came back.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] infamousvincci:
Hello, im on the latest twrp. using aquari OS.

Question, does back up and restore using TWRP works fine?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jascolli:
Yes it does. I've backed up and restored this rom a few times while testing things out. AquariOS is my daily, but I like testing out the one off builds from munchy_cool too.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] V0latyle:
What's the deal with time in TWRP? I can't figure out how to set it. I can change the time zone, not the actual time.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] C5Longhorn:
I have the same issue and finally gave up messing with it.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Rukbat:
I think the time has been off on TWRP since the first version. It's about the least important bug in the whole program so maybe one day, when there's nothing else to add or fix, someone will get to it. Who cares, though? Do you look at the last modified date of a backup, or do you look at the name of the backup (which normally includes the date and, if you do more than one on the same day, the time)? If you haven't been putting up with a time that's 15 minutes off (or whatever yours is) for years, you'll get used to looking at it, thinking "not fixed yet" and ignoring it.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mamarcac:
Tips?

I've been ROM'ing for a while but for the life of me cannot get TWRP on my P2 non-XL to backup and restore properly. Backup says it works, but when I go to restore I get the extractTarFork() process ended with ERROR: 255 message.

Is there any chance you could quickly share the steps you used? I've tried all I know at this point. FWIW was using latest TWRP, 3.2.1-2 and Magisk. I hear the Vendor partition can cause issues? I chose pretty much every check box when I created the backup, I'm guessing something in there that I chose was wrong?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jascolli:
I have backups of these for ROMs. And I switch over every couple of days using one of my backups. The next screenshot shows the only three items that I select in TWRP.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mamarcac:
Ah gotcha thx for sharing the screenshots!
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jascolli:
Did it work out okay for you?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mamarcac:
I haven't had a chance to try. Spent most of Sunday re-doing my phone thx to the botched TWRP backup so I'm back on unrooted + stock recovery for now. I don't think this whole slot a/b thing is totally ironed out yet tbh.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] jascolli:
Yeah this phone is a completely different animal. I'm still not totally comfortable with it either.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mamarcac:
Whew, glad I'm not alone...coming from a Galaxy S3 which was great for hacking, the P2 has me scared haha. Already recovered from a soft brick a few months ago and now the TWRP backup. I'm starting to re-think tinkering with this until people/devs much more experienced than me have some rules/guidelines.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] BS86:
Well, basically, walleye has treble which makes tinkering a lot easier - but the way of tinkering needs to change ;)

AICP already have seemless updates through A/B partition working on their Custom Rom build for taimen and walleye - but they are only active on G+.

For the TWRP backup's - those were already tricky on my bullhead due to encryption keys not matching across different installs. But TWRP backup is not really needed anyway as most things now get saved in the Google cloud - and the 2-3 apps that don't save stuff in the cloud have an integrated backup and restore system (for example Nova launcher)
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] mamarcac:
You sound like you've got some experience so let me ask a dumb question...I have a 64 GB P2. So how does slot a/b work exactly...does each slot take up like 2 GB of the drive like they're partitions? Or are the slots a/b separate from the 64 GB capacity similar to a BIOS? I'm trying to relate to something I can understand :(
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] BS86:
on all Android phones, all partitions are part of the internal storage - so /system is part of the 64GB.

On walleye (and all other phones that have an a/b partition scheme), the /system - partition is present twice: /system_a and /system_b and yes, that is also "taking" space away from the 64GB.

How the seamless update basically works is:

In the beginning partition a and b are in an identical state. The booted slot always is slot a.

The OTA now installs the update into slot b. When it is done, it displays the message that you should reboot your phone. When you reboot it, the updated slot b becomes slot a and the old slot a becomes slot b, basically switching the partitions. When the boot succeeds, the now labelled slot b partition gets synchronized with the new slot a so that they are identical again.

When the boot does not succeed after some tries, the slots are switched back and the phone boots the old, not updated system.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] buffal0b1ll:
TWRP 3.2.1-2 seems to be decrypting fine after May OPM2 update. I had no problem putting my lockscreen pattern into TWRP this month.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Hadookie:
I'm pretty new to the Pixel 2 phone and have just created a TWRP backup but forgot to remove my pin before doing so. Does this now make my backup useless. I remember times where a backup would fail to decrypt on my 6P when not removing the pin.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] razrlover:
Good questions, i would create another to be safe

Twrp and these devices have been quirky and sometimes decrypt fails even if it should work so if you want to be sure i would create another and under security select none
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] eled7:
I have TWRP permanently flashed on my Pixel 2. If I want to flash the May 2018 update in TWRP, I just need to flash the OTA .zip, correct? Or do I need the full image?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] joetheshmo:
Full image
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] eled7:
That would wipe my phone, wouldn't it? I want to avoid doing that and retain TWRP.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] joetheshmo:
Not if you remove the -w from the flash all script...

Then just reflash twrp
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] eled7:
I removed -w from the flash.all and re-zipped and now I get 'Invalid zip file format' as an error when trying to flash the revised update .zip from TWRP. Why?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] joetheshmo:
You don't rezip it or even use twrp for the factory image. You use fastboot. Not sure you should be messing with your phone if you don't understand something so basic
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] eled7:
I've 'messed' with my phone to be able to root it and flash TWRP so there's no need to be condescending over some knowledge that is not made explicit in most rooting/flashing threads. I am asking in the TWRP thread for a TWRP-related solution to flashing an update to my phone because I wanted to work within TWRP but if that's impossible, you could just say that.

Anyway, thanks, I guess.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] DuckRuckus:
Ah, but it is explicitly stated on both the OTA and factory image download pages, if you were to fully read them. OTAs are packaged zips that are flashed in stock recovery via ADB sideloading. They are meant for locked devices. Factory images are zip files that contain all the necessary files to update using fastboot, which includes stock recovery, so TWRP will never persist. They are not update.zips, so to speak. Just follow the instructions in the "How to install the latest Google software update" and you'll be good to go.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] ooom416354:
Hi, I searched but just want to clarify, I'm running 8.0 and am rooted with Magisk v16.0 but would like to install TWRP and not wipe my phone. Would the initial steps in the first post take care of that? Also once installed, I would want to update to 8.1, would I do that using the flash-all removing -w in TWRP? Or is there another way?

Also, would I need to re-root at any point in doing the above?

Thanks very much in advance.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] goRt:
Do the flash-all first (removing the -w), then boot twrp, install twrp/kernel/masgisk as required
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Rukbat:
Not if you're running 3.2.1.2. I've restored more than once. (I back up every time I do anything that could brick the phone. And I'm an expert mason - brick it all the time. This afternoon was the latest, but a boot restore fixed it.)
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] infamousvincci:
Random question:

Im on dp2 stock right now, if i install twrp as my recovery, can i still get OTA to update to next dp3 or stable release? Im not planning on rooting.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] Pete02:
From what I understand once you install twrp you can no longer get otas. It changes something the ota can't verify anymore.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] CarteNoir:
Is anyone else having the issue of the installed zip version of TWRP (not the fastboot image version) being completely unresponsive to touch input? It just sits at the password/decryption screen. Is there any way to fix this?
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] eevanskiteboards:
I just tap rapidly on the screen then swipe my pattern for it to respond.
[Google Pixel 2 ROMs, Kernels, Recoveries, & Other ] razrlover:
I have had the issue, i just re flash again.. Don't know what causes it but i also delete my security when booting into twrp now to avoid issues.