yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
I'm trying to run this script (https://xdaforums.com/pixel-2-xl/development/tool-deuces-bootloop-recovery-flashing-t3704761), all my files have been unzipped but the script can't find them! Everything has been unzipped at the root of the folder (see thumbnail).

And if I try to install the factory image, I'm getting another error (see second thumbnail attached). I tried downloading the factory image twice and the SHA-256 matches.

Of course, I had the awesome idea of trying to factory reset using TWRP and now it says "no OS installed"!

Man, this phone is driving me crazy! :eek:

Edit: now if I try to fastboot boot trwp.img, TWRP gets stuck on its splash screen! I think I have a fancy 800 euros paperweight in my hands...
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Dude... My humble advice is to start from scratch.

I think you're unzipping too far for the factory image (if I read your screenies right), and make sure everything is in the same folder as the platform tools application. I've yet to see an instance where flashing factory image did not bring the device back from "the dead"...

Try following these steps start after unlocking bootloader, leave the -w in , fresh, 100% clean device, go from there.

You could be chasing these ghosts forever, and still get no where.

Again, my humble opinion, when all goes south, start fresh from square 1.
[Google Pixel 2 XL Guides, News, & Discussion] TonikJDK:
Don't panic, you can flash out of this.

Too much unzipping there. All the stuff inside image-tamien......zip stays in that zip. The flash all bat file pulls from there.

So just unzip the top level stuff. You end up with that tamien zip, flashall.bat and .sh, radio and bootloader......zip.

And do not factory reset with twrp on this phone.
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
Thanks but this is what I've been trying but it won't work. I was able to flash the boot.img to get rid of TWRP. But running the flash-all.bat still gives me the same error (see screenshot attached).

My SDK is up-to-date and everything should be OK. But nope, stupid Pixel is being stubborn :(

Yeah, I just unzipped the factory image and I'm running the flash-all.bat from there. This is where I get the error attached.

I did advanced wipe in TWRP, I shouldn't have done that!
[Google Pixel 2 XL Guides, News, & Discussion] TonikJDK:
Your screen shot indicates that you also pulled everything from inside the image-tamien zip. Look in that zip, bet it's empty. That is where the flash all pulls from.
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
This was when I was trying to use deuce's script. This is what my folder looks like right now. And the flash-all.bat still gives me the previous error.

Second screenshot shows what's in the .zip file (image-taimen-opm2.171019.029.zip).

I've been meddling with Android for a long time but I don't think I've ever got that stuck...
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
I agree ^^^^^

This is what I meant when I said I think you unzipped too far.

Have you tried a diff USB cable or diff USB port?

I know it sounds stupid, but you would be surprised how many times THIS simple thing fixed user's "issues"....

We're gonna get you running! Even if I have to wait until I get home so I have access to all my tricks and examples :D
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
I am trying right now, doesn't seem to make a difference (using the stock Nexus 6P cable and a Samsung cable with a USB type C adapter, which worked fine so far with the P2XL).

Thanks man, I appreciate the help!

OK, I've also tried to apply a full OTA using Google's instructions (https://developers.google.com/android/ota), doesn't work either. I'm getting a "error: protocol fault (no status)" error. Adb devices did show my device prior to running the adb sideload command.

---------- Post added at 10:40 PM ---------- Previous post was at 10:35 PM ----------

OMG YES! IT FINALLY WORKED!!

I moved the factory image files to the AppData\Local\Android\android-sdk\platform-tools directory and IT WORKED!

I wonder if using the flash-all.bat from another location didn't trigger a "wrong" adb (I also have a minimal adb in another directory).

Now back to square one! haha

Thanks guys for the help.
[Google Pixel 2 XL Guides, News, & Discussion] CPngN:
Thanks, I appreciate your time. And good looking out, as yes, many Mac and Linux users don't know how to run the commands properly as they don't have "adb" and "fastboot" in their PATH variable. Mine are installed with homebrew via "brew install android-platform-tools" and linked to /usr/local/bin/adb and /usr/local/bin/fastboot. Once you get that working, you can just run "adb blahblahbalh" as expected.

Thanks for the info on the default bootloader, though, I guess I've just glossed over it's use before so wasn't prepared to try anything.

So, yes, i flashed the "full" April update (radio and all that). All good.

So.... while browsing others similar issues with basicIntegrity failing, someone said that on some devices, having USB Debugging on can trigger it..! So I went into settings and accidentally disabled all dev options, then turned them back on and tried to restore. I may have previously changed the debug logging option, which can break Magisk. I verified taht this time it was left at 256k. I left USB debugging off and SafetyNet passes! Then I turned it back on (no reboot) and it still passes. I think, though, that I may leave it off most of the time.. can't see a need for it day-to-day, and not worth going through all that again if something "sets it off".

I'm still not sure why it got stuck failing, but resetting Developer Options seems to have corrected it.

Thank you all for diving in and contributing. I guess the less here is: if something is FUBAR and you're considering wiping everything, try resetting options first. Generally faster to do... depending on how much of a pain your restore process would be...!
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Glad you got it figured out.

Like I said, I have yet to see a Pixel 2 XL NOT be able to be brought back to life with the factory image.

The devil is in the details and having the fast boot files in the right folder is one of the easy ones to miss.
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
Yeah, never happened to me before! But hey, you learn something new everyday!

For those wondering, Xposed installs fine as a module through Magisk and doesn't trigger the corrupted boot error. Flashing the Xposed.zip is what broke everything.
[Google Pixel 2 XL Guides, News, & Discussion] garnet&gold:
Don't do that unless you want to lose the ability to flash if you get into a bootloop and can't get in to turn it on.

---------- Post added at 10:29 PM ---------- Previous post was at 10:28 PM ----------

To clarify, you will not be able to access adb with that off.
[Google Pixel 2 XL Guides, News, & Discussion] ecsnead69:
Why do we not factory reset with TWRP? Every ROM says to factory reset before flashing, how do you do it while flashing without using TWRP? Did you mean to say not to wipe system?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
The factory reset is implied for using twrp just before you flash the rom. A twrp FR does not wipe system, which can cause you problems if you do! ?
[Google Pixel 2 XL Guides, News, & Discussion] CPngN:
Good point, thanks for pointing out the obvious... sometimes you just have to read it to realize how dumb an idea was. :)
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
I think it's better to use advance wipe in TWRP and select everything but the internal sd card. This way, system is wiped as well. At least, this is what I've been doing for years. Correct me if I'm wrong.

On a completely different note, my PC (Win 7 x64) doesn't recognize my P2XL as an MTP device. ADB works fine though. Should I install an extra driver? My 6P MTP is recognized without any problem.
[Google Pixel 2 XL Guides, News, & Discussion] p70shooter:
Apart from you don't want to wipe system, not on this device
[Google Pixel 2 XL Guides, News, & Discussion] damngood98:
Where can I find that version of Dolby? I can find 6 other versions of it but not that one lol
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Is this what your looking for?

https://androidfilehost.com/?fid=818070582850489683
[Google Pixel 2 XL Guides, News, & Discussion] damngood98:
Maybe...? Is that what you're using? I thought you said you were permissive but I know the other fellow I quoted was not... Would prefer not to go that route
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Yep it's permissive. Better ask the other guy :good:
[Google Pixel 2 XL Guides, News, & Discussion] rickysidhu_:
Here you go! I got it from the ARISE thread
[Google Pixel 2 XL Guides, News, & Discussion] vibrantliker:
Dude, where's the new avatar?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Hahahahahaha...haven't got there yet bruh! ???
[Google Pixel 2 XL Guides, News, & Discussion] cleopete:
Criminey! Why am I still on Verizon? Just got my Pixel 2 XL yesterday and have spent hours reading up on the process before realizing I'm hosed. Ugh.

It was an absolute fluke the Note 4 (which I'm coming from) ever got unlocked, and one reason I held on to it so long. Gonna miss that IR blaster.
[Google Pixel 2 XL Guides, News, & Discussion] fortillian:
I had an ATT note 4 which I loved, I was jealous when the Verizon variant finally got unlocked, att never did. Went to the 6P and now the P2XL. I picked up the Verizon P2XL first and like you saw I was screwed. It's now sitting in a box being returned and I got a Google variant in a few days ago and am free from their bs. Best of luck.
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
Hey guys,

My P2XL is finally setup and running! Man, this device is fussy! I had several "bootloops" (device stuck on the bootanimation) after restoring apps with TiBu and other things. Nexus devices were much more permissive...

Anyway, since you guys have been super helpful and OT is allowed, I have a couple of more questions:

- can I easily replace the stock bootanimation without risking a bootloop or something? I'd rather have a blacked-out bootanimation than the blinding white stock one;

- transferring all my photos from my PC to the P2XL changed all the files dates (as I thought it would) and everything is a mess. Is there an app or anything else to fix the dates sorting on any photo app? (I'm guessing something that uses the EXIF info instead of the files' dates);

- can anyone recommend a good black theme for Substratum please? I'm using Substratum Black Theme (https://play.google.com/store/apps/details?id=substratum.piereligio.bst) but it doesn't work as well on Oreo as it does on Nougat (a lot of black on black stuff so impossible to read).

Thanks!
[Google Pixel 2 XL Guides, News, & Discussion] brando56894:
This thing really is a pain in the ass to root/unlock. I had trouble unlocking it 2 months ago (couldn't flip the dev switch for some reason) and a factory reset fixed that. I never managed to get a working ROM installed since the process is a lot different compared to pretty much every other Android device.

I decided to give it a go again, but now I can't even unlock it from fastboot. I did a factory reset and took out the SIM card (IDK if that matters, I bought it from Google but I'm on T-Mobile) and let Android boot up and then rebooted into fastboot.

If I type fastbooot flashing by any command the response I get is the following

[bran@laptop Pixel]$ fastboot flashing unlock
...
FAILED (remote: unknown command)
finished. total time: 0.000s

I'm on the April security patch

bootloader version: TMZ12bb

I'm using Arch Linux and have the latest platform tools installed.

[bran@laptop ~]$ yaourt -Ss platform-tools

aur/android-sdk-platform-tools r27.0.1-1 [installed] (1186) (7.25)

Edit:

This is interesting...I rebooted into Windows 10, which I had originally used to root and unlock, and it worked without issue!

C:\Users\Bran\Downloads\platform-tools>fastboot --version
fastboot version 0.0.1-4500957
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Here is a stock pixel dark bootanimation. Using your root browser, navigate to system/media. On the stock bootanimation, put .bat at the end, then drop in the new one and just rename it bootanimation.zip, reboot, done! https://drive.google.com/file/d/1zStFsJiqq5bLTp5krQnpwlztoJfK_B33/view?usp=drivesdk

Don't know about the photos, the same thing happens to mine, but it doesn't bother me, so I've never looked for a solution.

As far as themes go, my personal favorites are...Domination, Swift black, and Swift dark. Have fun bruh ??
[Google Pixel 2 XL Guides, News, & Discussion] ridobe:
Arch platform tools aren't up to date. You'll have to obtain using the SDK.
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
I think you have to change new boot animation file permission also to rw-r--r-- / 0644
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Nope :good::cool:
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
correct me if I'm wrong...

But if the boot animation was changed, and you updated your pixel by flashing full factory image without the "-w", that flashing would undo this boot animation, right?

So, if you were keeping up with every update, you'd have to redo this like you would a kernel/twrp/magisk?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Correct. Which is why I keep a copy on my internal storage and change it out every month :good:
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
Thanks for the reply! :sigh: Yet another thing/step to add after doing the update every month /s :p

I apologize...it's probably because I came from the Galaxy S5 and we had Flashfire and such... this is my first time on a Google phone so rooting and updating is a whole other "beast" (but I'll take it with it's stability, camera, and to be the most up-to-date on patches rather than waiting for Samsung or other manufacturer to make it for that specific phone...)
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
Thanks bud! I was just making sure replacing the boot animation zip file was still valid. Man, the black version is so much better!

The photos thing is quite annoying, I'll look for a solution and post it if I ever find one.

I'm in touch with the dev for my theme and he's surprised things don't work flawlessly. I managed by disabling the system UI layer for now. Notifications are white but the settings remain black. It's the best I could find. I still have Domination installed I think, might take a look!

---------- Post added at 08:19 AM ---------- Previous post was at 08:17 AM ----------

I actually did that too, just to be safe.
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
I've always changed the permissions of a surrogate file to match that of the file it replaced (just because it seemed like the right thing to do). But if it's not needed, one less step to perform :D
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
One less step is always good. There are some apk's and files you have to change, but luckily the bootanimation isn't one of them in this case :good::cool:
[Google Pixel 2 XL Guides, News, & Discussion] Jay07jay:
Hello all i have a question. this isnt my first time rooting but my first time with a pixel phone. I know there a 2 versions of this phone the verizon and the google edition. My question is i bought a pixel xl 2 and was told it was verizon but i been reading that verizon wont let you unlock the oem setting in developer options thats its grayed out. Mine will let me unlock it. Is there a difference method because im not sure if i have the verizon or google edition xl 2. TIA!!!!
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
If you can enable OEM unlocking in the developer options menu, you have a google phone. Or a freak of nature from Big Red. Where did you buy if from?
[Google Pixel 2 XL Guides, News, & Discussion] Jay07jay:
I bought it off someone on facebook. I asked was it verizon she said yes. But when i go to developer options i can activate the oem.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Nice! Well you can go to this site, type in your IMEI number, and know for sure if you'd like :good:

http://www.imeipro.info/check_lg.html
[Google Pixel 2 XL Guides, News, & Discussion] Jay07jay:
Thank you!!!!! Also weather or not the version I have can i use the beginning of this thread to unlock and root my phone?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
You can if you have the google version :good:
[Google Pixel 2 XL Guides, News, & Discussion] Jay07jay:
That site didnt say if i had the verizon or Google edition.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
What did it say under "version"??
[Google Pixel 2 XL Guides, News, & Discussion] Jay07jay:
There is no section that says version
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Well then, enable OEM unlocking and USB debugging, and go for it! At worst, it won't work. You really don't have anything to lose by trying :good:
[Google Pixel 2 XL Guides, News, & Discussion] Jay07jay:
I might I don't want to mess up a phone I just got. Only paid 250 for it so I think that's a hell of a deal. I might try it and see. Thanks for all your help!!!!
[Google Pixel 2 XL Guides, News, & Discussion] Jay07jay:
From all the info i gathered it is the big red version. Is there a thread that i could use to root this?
[Google Pixel 2 XL Guides, News, & Discussion] p70shooter:
Yes this one. Like what has been said already, if oem unlocking isn't greyed out then you are good to go.
[Google Pixel 2 XL Guides, News, & Discussion] x31234:
is it possible to root without having an unlocked bootloader?
[Google Pixel 2 XL Guides, News, & Discussion] rickysidhu_:
No
[Google Pixel 2 XL Guides, News, & Discussion] wvcadle:
Moviepass

Hello all. Long time no post.

I just rooted with Magisk, and flashed [MENTION=6842057]nathanchance[/MENTION] 's kernel. I was pretty excited, until I realized MoviePass won't allow me to install it's app. Not sure if it recognizes I have an unlocked bootloader or what. I did the SafetyNet check in Magisk, and it passed.

Anyone else use MoviePass with root? I'd hate to lose root for it, but MoviePass is too good not to have.
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
I just installed it to test, installed just fine. Maybe check in the app store settings to see if it says certified or unknown for certification? Some apps won't install unless it says certified.
[Google Pixel 2 XL Guides, News, & Discussion] def-g:
Quick question. Once Black Bootmation is download. Produced a folder with 5 parts and another file. Which do you use to replace stock Bootmation?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
You just substitute the new bootanimation.zip for the old one like in the pic :cool:

Which won't upload for whatever reason ?
[Google Pixel 2 XL Guides, News, & Discussion] def-g:
When I down load link. Doesn't give a zip. Gives the extracted folder for some reason .

G
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
How bout this one??

https://drive.google.com/file/d/1OQ8sMCcQRgwIrxGu7NPxhqsnI-w2cV7y/view?usp=drivesdk
[Google Pixel 2 XL Guides, News, & Discussion] Pkt_Lnt:
You know AFH gives you a free account as an RC, right? Upload it there and give folks a link, since Drive wants to open zips and it takes more understanding to download it, and NOT do what every other places works when you do. :good:
[Google Pixel 2 XL Guides, News, & Discussion] def-g:
That worked. Quick question. When I boot. White screen still comes up at first. Then switches to Black. Is that normal? Was wondering cause added the .bat to original Boot image and left it in the media folder.

G
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Well thank you my friend for the info. I was not aware of that. Guess I better look into that :good::cool:

---------- Post added at 05:28 AM ---------- Previous post was at 05:26 AM ----------

Yep, that's normal. No way around that blinding white google splash screen at the beginning! At least not to my knowledge anyway ?
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
Upon reboot, close ?'s for 5 seconds (screen appears black) open eyes and boom.... No white screen :eek:
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
Man, I'd love to get rid of that blinding white Google logo at boot!
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Read the post just before yours! My genius friend has a fool proof solution! Works every time! ????
[Google Pixel 2 XL Guides, News, & Discussion] wvcadle:
It's definitely a widely popular app. I'm sure it's certified. I just went back to stock and it installed fine.

I did install Adaway, and the systemless option was greyed out. Could it have modified something MoviePass could have identified as my phone being rooted? If so, how does one install Adaway systemless?

Edit: Also, I did have the systemless option ticked in Magisk.
[Google Pixel 2 XL Guides, News, & Discussion] Ghisy:
???

Too easy!
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
Wasn't referring to the app not being certified, was talking about the app store app itself. Sometimes after root, the appstore becomes uncertified and doesn't allow some apps, at that point you just clear data for the app store apk. I have adaway also so it's not that.
[Google Pixel 2 XL Guides, News, & Discussion] wvcadle:
Gotcha! I decided to try again. However, I ran the regular unlock command, forgetting about the critical unlock. So I relocked it, booted, rebooted to the bootloader, the bootloader says it's locked, but upon trying to unlock it with either command, it keeps telling me it's already unlocked and fails.

Any idea?
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
Try this command. It will tell you if you are locked or unlocked..... fastboot oem device-info
[Google Pixel 2 XL Guides, News, & Discussion] wvcadle:
Just did it. Here are my results:

(bootloader) Verity mode: true

(bootloader) Device unlocked: false

(bootloader) Device critical unlocked: true

(bootloader) Charger screen enabled: true.

Would it still show locked if it were unlocked (by any means)?
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
Did you see a locked or unlocked padlock during the boot screen? Looks as if it's only partially unlocked. Might have to lock both then unlock followed by critical unlock. Maybe a different USB port? Haven't seen this issue for awhile now
[Google Pixel 2 XL Guides, News, & Discussion] wvcadle:
Are there different commands to lock them both? I thought one only had to choose between the unlock commands. So I need to do both of them?
[Google Pixel 2 XL Guides, News, & Discussion] clothednblack:
Boot the Pixel 2 into Fastboot Mode

Type the following command into the Command Prompt. . .

fastboot flashing lock_critical

. . .then press Enter on the keyboard

Press the Volume Down button on the Pixel 2 XL

And press the Power button to confirm you want to relock the Pixel 2 bootloader

Wait for the Pixel 2 to reboot and activate Android again

Enable Developer Mode on the Pixel 2

This does wipe the device again as far as I know
[Google Pixel 2 XL Guides, News, & Discussion] wvcadle:
Boom! That's what I was looking for. Btw, on another topic... I downloaded the Magisk zip file as instructed in Nathan's guide, but it doesn't include an apk. Am I missing something? I think I got the apk by other means the other day when I set it all up.
[Google Pixel 2 XL Guides, News, & Discussion] myprecious:
>fastboot flash boot patched_boot.img

target reported max download size of 536870912 bytes

sending 'bootb' (25788 KB)...

OKAY [ 0.549s]

writing 'bootb'...

FAILED (remote: No such partition.)

finished. total time: 0.562s

Can anyone help with that?
[Google Pixel 2 XL Guides, News, & Discussion] nathanchance:
Your fastboot is out of date. Get the latest one from the links in the OP.