yashsingh1/xdaforums huggingface dataset:
[Google Pixel XL Guides, News, & Discussion] JU57US:
More information: On the Pixel XL TWRP thread I saw mention that when doing a factory image flash of Android Q there was trouble decrypting, but that wasn't an issue when doing a sideload of the OTA. SO I thought I'd give a sideload of the May 19 OTA a try. When booting to recovery, and this should be the stock recovery, I get an image of a tiny android on the operating table and the words "No Command". That's it. No other options. When booting to bootloader and then entering recovery mode manually, the same thing happens.

I checked the SHA-256 on my May-19 factory image download, and it's good.

I started re-flashing the factory image again and I noticed that when executing flash-all.bat, I get the messages saying that the "archive does not contain" certain .img files, including 'recovery.img'. I had TWRP installed as my recovery before doing the full factory flash, and now it seems I have no recovery?

Should I go back and flash the March or April image first, and then try the May image?

Edit: I tried flashing the April image. Seemed to go okay, but when I rebooted to system and tried to unlock my phone it kept resetting back to the lock screen. It worked, but didn't work. I input the wrong PIN on purpose to check and it told me "wrong PIN", so it was recognizing the correct PIN. So, I flashed the May image again and am back at square 1, everything works except I can't decrypt in TWRP because it tells me the password failed, and I have no idea why.

If I take the PIN/Password off my phone lockscreen, when booting TWRP it doesn't even ask for a PIN/Password. Could I do that, and then install Magisk, and then put my PIN lock back on after I'm done? Any problems with that?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Did you check the md5 or sha256 of twrp-marlin-3.3.0-0

Img?

Maybe you downloaded a bad twrp file.
[Google Pixel XL Guides, News, & Discussion] JU57US:
Yes, the TWRP 3.3.0 md5 checked out too.
[Google Pixel XL Guides, News, & Discussion] Snowknight26:
Just had a similar issue setting up a brand new Pixel XL that started on Android N, 7.1.4.

I did the following steps straight from the box:

Booted it for the first time and completed the setup with minimal settings (no wifi, no SIM, etc)

Connected to Wifi to allow for OEM Unlocking to be enabled in Developer Settings, turned OEM unlocking on

Booted into bootloader, ran 'fastboot flashing unlock'

Applied latest Marlin factory image from https://developers.google.com/android/images (ran flash-all.bat) to get to 9.0, May 2019 build.

Re-completed initial setup

Applied a PIN

Tried to boot into TWRP to root the device (fastboot boot twrp-3.3.0-0-marlin.img).

Entered PIN, but decryption failed

For the time being I removed the PIN, booted into TWRP, installed Magisk (since TWRP was able to use the default encryption password), then re-added a PIN. Not sure if future attempts to re-root after applying, say, June 2019's factory image will result in the same issue.

I feel like I've had this issue before but I can't remember how I ultimately solved it.

As it stands, I have two identical Pixel XLs running the same version of Android 9, both with the same PIN, both booting the same version of TWRP. One will let me decrypt using the PIN, the other one (the one mentioned above) won't.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Ok. If you have the Android Pie May 2019 factory image installed. I have no clue as to why twrp-3.3.0-0 is not accepting your pin. Maybe someone else has the solution.
[Google Pixel XL Guides, News, & Discussion] JU57US:
I'll try Snowknight's solution. At least that's confirmation that what I was thinking may actually work. I'll report back here in a bit.

Edit: Well, that seems to have worked. I now have TWRP 3.3.0 installed, Magisk 19.1 installed, and I re-added my PIN. Everything seems to be working fine. Google Pay even works.

I did not try to boot to my installed TWRP 3.3.0 with my PIN to see if it would decrypt. At this point, I don't think there's any need, other than curiosity. But I've already rebooted my phone about 50 times in the last 24 hours so I'm just going to use it for awhile lol.
[Google Pixel XL Guides, News, & Discussion] Snowknight26:
Decryption will still fail unfortunately. If you manually flash the next update you'll have to remove your PIN and do the whole procedure all over again.

I thought it might be due to one phone having FDE while the other had FBE but both had the same encryption type. I'm at a loss.

For my own curiosity's sake, I ran TWRP on both devices, tried to decrypt, then pulled /tmp/recovery.log from each:

Old Pixel XL (decryption succeeds):

I:Is encrypted, do decrypt page first
I:Switching packages (TWRP)
I:Set page: 'decrypt'
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
I:Unable to find a directory to store TWRP logs.I:Decrypting FBE for user 0
Using synthetic password method
Handle is 'd5cb5677cbbcf1d9'
Using synthetic password method
Handle is 'd5cb5677cbbcf1d9'
using secdis
keystoreid matched handle_sub: 'd5cb5677cbbcf1d9'
copying '/data/misc/keystore/user_0/1000_USRSKEY_synthetic_password_d5cb5677cbbcf1d9' to '/tmp/misc/keystore/user_0/0_USRSKEY_synthetic_password_d5cb5677cbbcf1d9'
[...]

New Pixel XL (decryption fails):

I:Is encrypted, do decrypt page first
I:Switching packages (TWRP)
I:Set page: 'decrypt'
I:Set page: 'trydecrypt'
I:operation_start: 'Decrypt'
I:Unable to find a directory to store TWRP logs.I:Decrypting FBE for user 0
Using synthetic password method
Handle is 'df43cd10164671e6'
Using synthetic password method
Handle is 'df43cd10164671e6'
using secdis
gatekeeper verification failed
[...]

Based on TWRP's source code, the "gatekeeper verification failed" line comes from the Decrypt_User_Synth_Pass function: https://github.com/TeamWin/Team-Win...09eedb8e29/crypto/ext4crypt/Decrypt.cpp#L1090.

Not sure where to go from there though, don't know which code path is causing the failure.
[Google Pixel XL Guides, News, & Discussion] Chainwater:
How to check between old pixel xl and new pixel xl? Are they different? From the serial number?

---------- Post added at 11:14 PM ---------- Previous post was at 11:12 PM ----------

Same problem here with may updates. It also happens when trying to install Q beta 3 thru OTA or firmware image.

I even tried dirty flashing by going back to official April, rooted then adb sideload beta 3 OTA, then flash TWRP and magisk again while still in TWRP. Phone booted normally but Imei was null.
[Google Pixel XL Guides, News, & Discussion] Snowknight26:
I had two physical devices. By "old Pixel XL" I meant a device I've had for a few years and was going to RMA, and "new Pixel XL" was the replacement device I received.
[Google Pixel XL Guides, News, & Discussion] p1zz4br0etch3n:
Hi all,

I cannot re-root my Google Pixel with Magisk 19.3 after sideloading the new June 2019 OTA.

Before the sideload Magisk 19.1 was installed. I booted twrp (without install) straight after sideloading without booting up normally and flashed Magisk 19.3 zip.

After that my Pixel got in a bootloop, restarting after some time and booting a recovery where it says "Can't load Android System" with the options to try again or reset all data to factory state.

After I booted twrp again and flashed the newest magisk-uninstaller it boots up just fine, so I assume my stock boot.img is ok.

I also tried flashing the old Magisk 19.1 but same result.

I previously used a little older versions of twrp (3.2.3) and platform-tools (28.0.2). I tried again with the newest versions (all hashes checked) but it didn't help.

Anybody else facing this issue or has successfully re-rooted after updating to June 2019?
[Google Pixel XL Guides, News, & Discussion] crackerjack1957:
All good here but I don't side load.....follow op's instructions with ADB
[Google Pixel XL Guides, News, & Discussion] p1zz4br0etch3n:
Thanks for your reply.

After sideloading the same ota version again it works again.

Maybe the usb cord, I used previously, is broken. Or it's because now the other slot is used.
[Google Pixel XL Guides, News, & Discussion] badabing2003:
[MENTION=4810220]Homeboy76[/MENTION]

Thanks for the guide updates,

Couple of minor typos.

Intro - c

This guide is not for use with the ... Pixel XL

remove Pixel XL from the list

7 B 1 a,b,c and 7 E, H

TWRP 3.3.1-1 ...

Needs to change to TWRP 3.3.0

Thanks

BB
[Google Pixel XL Guides, News, & Discussion] wolf45801:
Sorry but I'm new to the pixel XL scene I was wondering how can I update to new otas when released without loosing TWRP
[Google Pixel XL Guides, News, & Discussion] lafester:
You can flash in twrp, then flash twrp again before reboot.
[Google Pixel XL Guides, News, & Discussion] jeffshead:
It's super easy to just reinstall TWRP after you update Android. I follow instructions number 4 & 7 under the

Index

heading from the first thread post each time I update and have never encountered an issue. Just make sure you unhide Magisk Manager before you do anything.
[Google Pixel XL Guides, News, & Discussion] illalliance:
Is anyone else having issues re-rooting after flashing June? I end up bootlooping for a min, then it reboots to recovery. Not sure what the issue is
[Google Pixel XL Guides, News, & Discussion] altwu:
i didn't run into a bootloop but i did run into a different minor issue after flashing june. i fastboot booted twrp 3.3.0-0 and flashed magisk 19.3. when the phone rebooted, i wasn't rooted. i rebooted again and then magisk showed up and root is working fine. did this happen to anyone else?

are you using the latest magisk, platform tools, and twrp?
[Google Pixel XL Guides, News, & Discussion] TauriWarrior:
found this, tested today and it seemed to have fixed it

https://xdaforums.com/apps/magisk/module-oneplus-one-bacon-mic-fix-t3503128
[Google Pixel XL Guides, News, & Discussion] prestige777:
I have Magisk installed just fine, but TWRP wont accept a pin or password no matter what. I've tried disabling fingerprint and using a password instead of a pin but its still the same result. I havent found a flashing app that works for the Pixel XL, the TWRP App doesnt do anything after you download the image file and Flashify just freezes. I had to sideload TWRP and Magisk via ADB to get them to install.

---------- Post added at 04:50 PM ---------- Previous post was at 03:53 PM ----------

Try Fastboot Erasing System, Cache and Userdata and try flashing the older image. I've gotten mixed results with the flash-all script, sometimes it works, sometimes various things fail. The script flashes the boot image which contains the recovery as well, thats why you no longer had twrp, the dead android/no command is stock recovery, you have to hold down the power button and press volume up to access the menu. If someone could decompile the boot image file and replace the stock recovery image with the twrp image and recompile it again, I'm guessing that would work.
[Google Pixel XL Guides, News, & Discussion] prestige777:
I checked the twrp log and it shows this error when I try to use a pin/password: Unable to decrypt, data/system/gatekeeper.pattern.key not found. I went and looked and no gatekeeper.pattern.key or gatekeeper.password.key file exists, they exist on my other devices. Can someone verify if these files exist on their phone.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Suggestion: You may want to post this in the twrp thread: Google Pixel XL ROMs, Kernels, Recoveries, & Other Development TWRP 3.2.3-1 for Pixel Devices by Dees_Troy

Just add the twrp version, SDK platform-tools and Custom ROM version you are using if applicable.

Another option is read the last ten post on the thread above.
[Google Pixel XL Guides, News, & Discussion] prestige777:
Thanks, I read all the posts on this thread, none solved the problem.
[Google Pixel XL Guides, News, & Discussion] AllStar5:
why do we have to set pin before flashing twrp?

what if we forgot to do that?

sorry my bad english.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
A, long, time ago some were having problems installing twrp without setting the pin before flashing/fastbooting twrp. Now, some are having problems with encryption when flashing/fastbooting the current version of twrp.

If you are having problems with encryption try removing the Screen lock pin and fingerprint security options before flashing/fastbooting twrp. After, flashing/fastbooting twrp or installing twrp and Magisk reboot system and install the Screen lock pin and or fingerprint security option.

If it works, use that solution.:)
[Google Pixel XL Guides, News, & Discussion] teegale:
Ok so I'm on Verizon and my bootloader has been unlocked for awhile. All I want is a custom recovery and root. There's a ton of steps. Which should I start at?
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
- Install Custom Recovery and Root ( Do # 7 )

In case you need any of the following:

- Latest factory image (Prerequisites b.)

- SDK Platform-tools r29.0.1 (Prerequisites c.)

- Install latest factory image (# 4, 'keep data')

- Remove Custom ROM: Install latest factory image (# 4, 'Wipe data')
[Google Pixel XL Guides, News, & Discussion] Snowknight26:
TWRP 3.3.1.0 fixes this finally.
[Google Pixel XL Guides, News, & Discussion] teegale:
So i installed the twrp.img and had the TWRP zip on my phone ready to flash once I loaded in. Well I couldn't find it. It asks for a password to gain access. Hit cancel and it's all just system files, nothing on the user side. Tried my PIN and the supposed default password of "default_password" and nothing worked. Factory reset my phone and still does the same thing.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
- fastboot boot twrp-3.3.1-0.img

- When twrp boots ==> enter pin

- Tap install ==> select Twrp-3.3.0-0.zip

- Tap Add more zips ==> select Magisk-19.3.zip

- Swipe slider to install.

- reboot system
[Google Pixel XL Guides, News, & Discussion] teegale:
That's the thing. I'm entering the same exact pin I've used for ages and it isn't working.

EDIT: Nevermind got it working. The factory reset must have done the job.
[Google Pixel XL Guides, News, & Discussion] smithilberry:
Installing TWRP 3.3.1 without zip?

Anyone know how to install TWRP 3.3.1 without the zip file?

I searched and I understand you do not need a zip file to install it but I still don't know how to install it.

You are apparently able to install it from the boot .img...?
[Google Pixel XL Guides, News, & Discussion] AllStar5:
is twrp work for Q Beta?
[Google Pixel XL Guides, News, & Discussion] rhilway:
HUGE Thank You for your guides and the time you put in. Worked perfectly on my unlocked Pixel XL (G-2PW2100-022-A)

I followed your steps, but the first time with a PIN , TWRP kept shwoing 0 MB when mounting and I got stuck, redid it without a pin TWRP 3.3.0.0 and worked like magic.

Now to figure how to change the navbar buttons(ex samsung junkie) and find the flashlight.
[Google Pixel XL Guides, News, & Discussion] teegale:
Is there a different recovery we should use? Kind of tired of fastbooting the .img so I can decrypt with PIN. Does TWRP ever plan on adding the new version to a flashable zip?
[Google Pixel XL Guides, News, & Discussion] ToraxOutlaw:
Will this rooting allow me to be able to cast to Miracast devices???
[Google Pixel XL Guides, News, & Discussion] Ye_Jin:
My Pixel XL already unlocked automatic when i update OTA 8.1 to Android 10 Beta 5, OEM unlocking and USB Debugging on, can i continue root Pixel XL without unlock booloader?

So i follow steap 5 (ADB Sideload) is OK?
[Google Pixel XL Guides, News, & Discussion] zultron:
When and how to re-lock

It would be helpful to know under what scenarios the bootloader can be re-locked. For example, in my tests:

Stock: Relocking works flawlessly

LineageOS: Relocking works, but with "Your device has loaded a different operating system" message at boot (see pic)

LineageOS + TWRP: Relocking causes a fast boot-loop: initial "Google" screen flashes for a fraction of a second; black screen for ~4 seconds; repeat

This is a small nit. This post saved me a LOT of time. I can't imagine how much time it took to work out such a complete set of procedures, plus even more time to write such a highly-organized post. Thank you.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
There are no 'scenarios' that I would recommend 'relocking the bootloader'.

"LineageOS: Relocking works, but with "Your device has loaded a different operating system" message at boot (see pic)."

I think you should see this message because you removed the linageOS firmware and replaced it with Google's firmware.

Does this message persist after the first system reboot?

"LineageOS + TWRP: Relocking causes a fast boot-loop: initial "Google" screen flashes for a fraction of a second; black screen for ~4 seconds; repeat."

# 3B is a Factory reset (erase all data), it should return the Pixel XL phone to 'Factory specifications'.
[Google Pixel XL Guides, News, & Discussion] No1sy B0y:
I just got the notification for the August security update. I'm already rooted. Do I have to uninstall root in order to install the new update or is it safe to just go ahead, download and install the security update with root active?

EDIT: Figured it out.
[Google Pixel XL Guides, News, & Discussion] sportsman31:
Hi

Can you let me know what you did. I'm in the same boat.
[Google Pixel XL Guides, News, & Discussion] smithilberry:
Anyone know how to install TWRP 3.3.1.0 without the zip file?

You are apparently supposed to be able to install it from the boot .img but I cannot figure it out :confused:
[Google Pixel XL Guides, News, & Discussion] jeffshead:
Each time I update, I follow instruction numbers 4 & 7 (under the

Index

heading) from the first post in this thread and I have never encountered an issue and I'm fairly inexperienced with the whole root thing. Just make sure you unhide Magisk Manager (if you hid it) before you do anything.
[Google Pixel XL Guides, News, & Discussion] prestige777:
Its been a while so apparently not.
[Google Pixel XL Guides, News, & Discussion] teegale:
Another question. Security updates no longer will install with my device being rooted with Magisk installed correct? The August one just keep failing. Might have to give Lineage a shot soon.
[Google Pixel XL Guides, News, & Discussion] teegale:
Anyone else not getting texts occasionally until you restart your phone? Just started happening with the July security update.
[Google Pixel XL Guides, News, & Discussion] jdmst77:
adb shell
su
settings put secure sysui_nav_bar "space,recent;home;back,space"

Almost forgot about this to... There's a flash light tile and while you are at it install this Caffeine tile:

https://www.apkmirror.com/apk/sqcubes/caffeine/
[Google Pixel XL Guides, News, & Discussion] badabing2003:
[MENTION=4810220]Homeboy76[/MENTION]

Now that Android 10 is released, are you planning to update this guide or post another great guide to support Android 10 on Pixel XL?

Thanks

BB

---------- Post added at 01:16 PM ---------- Previous post was at 01:07 PM ----------

Found This, Thanks
[Google Pixel XL Guides, News, & Discussion] roman.ramirez.12:
Ive been trying to sideload an OTA image of pie and i keep getting the error message

ErrorCode::kPostinstallRunnerError)

Updater process ended with error: 1

Does anyone know whats going on or what to do? I'm stuck in boot loader mode
[Google Pixel XL Guides, News, & Discussion] lichan:
I just got a Pixel XL and was using this thread to move from Android 8 to 9, install TWRP and root with Magisk. Following the process in the OP I was never able to get TWRP 3.3.1-1 and/or Magisk 19.3 to install. The Magisk install would give errors '"unable to mount /system" and "unable to mount /vendor". I went back to TWRP 3.2.3-1 and it installed correctly. After that Magisk 19.3 installed and upon boot I had root. So if anybody is having problems with the most current versions don't hesitate to try an earlier known-working version. Now on to Viper4Android and Xposed. Thanks to Homeboy76. These are the most thorough and well written guides I have run across and had the pleasure to use.
[Google Pixel XL Guides, News, & Discussion] aholeinthewor1d:
I have a regular size Pixel with Android 10 and unlocked bootloader. What is the process for rooting now? It's been over a year since I've had to do anything to my phone
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
https://xdaforums.com/pixel-xl/how-to/guide-pixel-xl-android-10-0-q-t3964112

Do #9
[Google Pixel XL Guides, News, & Discussion] flash713:
I now understand. Haha. Took me long enough. ;p

I didn't have to flash to both slots, one works as well. Got it all taken care of. For anyone with out a computer you can indeed unlock bootloader and root your device using termux app and Osmosis's static fastboot magisk module from another Android device that's rooted. That is what I did. :)

(Edited)
[Google Pixel XL Guides, News, & Discussion] Scorsese19:
Factory reset

Hello,

Thanks for the guide, its an awesome compilation. Just wondering, after rooting my phone can I just perform a factory reset? Would it brick my phone? Already look around in the replies but could not find anything clear.

Thanks
[Google Pixel XL Guides, News, & Discussion] chesslearner:
Can't install TWRP

I downloaded the latest Android 9.0 image and used flash-all.

Added a PIN to Android

After fastboot boot twrp.img

Installed the TWRP installer zip

Then rebooting to Recovery, TWRP does not appear but instead boots to Android system.

What am I doing wrong?

Thanks
[Google Pixel XL Guides, News, & Discussion] hauckk@sfreserves.org:
I'm going to assume you can't boot into twrp

Try setting system about

Then tap build number 5 times to get developer options

Go to developer options and enable USB debugging

Plug in phone to a computer with adb and fasboot installed on it

Then accept USB debugging always prompt on your phone

Then type in adb on the computer

Adb reboot recovery

And you should be in recovery
[Google Pixel XL Guides, News, & Discussion] chesslearner:
Before I read this post, I was able to fastboot boot twrp.img and install Magisk. I think I understand now. Pixel XLs do not have a typical Recovery partition so, it won't work when I select Recovery from the bootloader. However, adb reboot recovery works?
[Google Pixel XL Guides, News, & Discussion] hauckk@sfreserves.org:
Rebooting from bootloader should take you to recovery odd

If your rooted there are reboot menu apps you can use to reboot to recovery or using a terminal emulator app you can type su approve root access then type reboot recovery
[Google Pixel XL Guides, News, & Discussion] lichan:
Try using TWRP 3.2.3-1. Some newer versions do not write to the partition. See entry #519 on the previous page.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
Update: SDK Platform-Tools: r30.0.0
[Google Pixel XL Guides, News, & Discussion] Reedickulus:
Just wanted to post that this POST saved my life. I was trying forever, and was pretty unsuccessful. I had more luck after upgrading to Android 9 (for some reason, couldn't get TWRP or Rooting to work on Android 8). But I definitely had to use these older version of TWRP and Magisk to have success. Thanks for posting this!!!
[Google Pixel XL Guides, News, & Discussion] Rootmaster906:
you ever find a way to unlock bootloader on dec patch?
[Google Pixel XL Guides, News, & Discussion] Rootmaster906:
which twrp u used? be specific
[Google Pixel XL Guides, News, & Discussion] zfk110:
on my Pixel XL running Q I flashed this

twrp-installer-3.6.2_9-0-marlin.zip but Im getting these errors​
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
No.

Tap #12, then tap the Viper4Android link. There might be some information there.

If all else fails Google it.
[Google Pixel XL Guides, News, & Discussion] Homeboy76:
It, Magisk-v16.0.zip, miraculously vanished lol.:)
[Google Pixel XL Guides, News, & Discussion] crackerjack1957:
Thanks

I looked earlier, just thought maybe you knew of something that I did not.