yashsingh1/xdaforums huggingface dataset:
[Google Pixel 2 XL Guides, News, & Discussion] xflowy:
just unlocked the bootloader with critical method using the infos from the op. now that i wanted to root and flash a custom kernel the bootloader is locked again. hows that?

according to adb cmd im unlocked. according to bootloader device state, im locked. wtf.

flashing a custom boot.img doesnt work either. so im guessing i am locked.

---------- Post added at 04:07 PM ---------- Previous post was at 03:28 PM ----------

[MENTION=6842057]nathanchance[/MENTION]

you need to do both unlock commands, not one of the two like you stated in op. i suggest you change this accordingly in the op and point out its an "and" and not an "or" ;) thanks!
[Google Pixel 2 XL Guides, News, & Discussion] Prattham:
[MENTION=6842057]nathanchance[/MENTION] i am already on nov build

when i unlock the bootloader with critical unlock after that i have to flash full image for nov build right?

also i want root + twrp + your kernel

can you tell the steps in simple terms and the order for them

cheers

---------- Post added at 04:24 PM ---------- Previous post was at 04:23 PM ----------

[/COLOR [MENTION=6842057]nathanchance[/MENTION] i am already on nov build

when i unlock the bootloader with critical unlock after that i have to flash full image for nov build right?

also i want root + twrp + your kernel

can you tell the steps in simple terms and the order for them

cheers
[Google Pixel 2 XL Guides, News, & Discussion] xflowy:
no, you dont. and see my post before to avoid making the same misunderstanding.
[Google Pixel 2 XL Guides, News, & Discussion] garnet&gold:
If you can get to the bootloader you are not bricked. Of course if you did not do a full unlock, etc., then you could have an issue but assuming you are fully unlocked then you can flash the factory image and recover your phone. As Badger suggested Dueces tool may help. I've never used it personally but I've seen a number of positive comments about it.
[Google Pixel 2 XL Guides, News, & Discussion] HACK3DANDR0ID:
i lost my patients with it, Google replaced it, it will be here tomorrow...
[Google Pixel 2 XL Guides, News, & Discussion] HACK3DANDR0ID:
I had only read to flash? I have read the instructions found HERE

which states: CMD Fastboot flashing Unlocked

(Optional)

CMD: fastboot flashing unlock_critical

Here as well : https://www.xda-developers.com/how-to-unlock-bootloader-and-root-the-google-pixel-2-and-pixel-2-xl/
[Google Pixel 2 XL Guides, News, & Discussion] garnet&gold:
You have to unlock both in order to flash the factory image. Without flashing unlock critical you can only flash otas.
[Google Pixel 2 XL Guides, News, & Discussion] HACK3DANDR0ID:
Yea i had to send device back, and once they seen tracking info, they would send out the replacement. I am trying to find out where i went wrong so tomorrow it doesnt happen again. When you say Unlock the bootloader twice, and you saying once after another, like in CMD you enter Fastboot flashing unlocking, and it says bootloader unlocked are you sure you want to unlock bootloader? You CMD again Fastboot flashing unlocking. I just unlocked my Moto G6 Plus BL and i cant remember which, if not both made me do it twice, but again, can you show me where it says to Unlock BL twince, or is in in the CMD, once after another?

---------- Post added at 09:45 PM ---------- Previous post was at 09:44 PM ----------

Why does it says Unlock Critical is OPTIONAL?

*edit* More explanation on OPTIONAL should be added to the instructions.....
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Unlock_critical is optional for those who don't want to ever update the bootloader outside of OTAs IIRC.

You CAN just run unlock bootloader and root. But if you want to flash factory images via fastboot / adb, you must run unlock_critical.

I tell everyonje just run both in the beginning, if you never choose to flash factory images, no harm no foul, but if you choose to later, unlock_cricital wipes the entire device.

In my SIG is a 2 XL guide that has step by step instructions, with all files and links required. You can use it if you get stuck, or for clarification when needed.
[Google Pixel 2 XL Guides, News, & Discussion] HACK3DANDR0ID:
Yea, ill do that tomorrow....thanx
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Taken from OP: for better clarification :D

4.Next, decide if you want to do a standard unlock or critical unlock. A critical unlock allows you to directly flash bootloader files, otherwise you will get an error when you try to do so.

unlock allows you to root

critical_unlock allows you to flash factory images via fastboot

5.Depending on what you decided in the previous step, run the following commands:

Code:

fastboot flashing unlock

This step is optional in the event you've decided NOT to ever flash bootloader via fastboot

(OPTIONAL)

Code:

fastboot flashing unlock_critical

this step IS optional if you want to fastboot factory images

Not trying to be redundant, but this does mess with a lot of users not familiar with the 2 XL processes.

Can't wait to hear you're up and running soon!
[Google Pixel 2 XL Guides, News, & Discussion] brackett5:
When backing up a ROM or whatnot using TWRP, what all should I backup?? Do I need to backup vendor?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
No vendor. Just boot, system, and data will suffice. Actually, you just get away with doing data only if you wanted to. :good:
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
I'm just getting my new XL today and I'm wondering if there's any benefit switching to custom rom and/or kernel. As for the rom it must be customization, right? And what about kernel? Any functionality I will loose switching to custom (camera, security etc)?

Thanks
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Try the latest Google factory image and stock kernel for a day or so, then try the factory image using a cust kernel like Flash kernel (highly recommended).

There's a detailed step by step for the 2 XL in my sig that has all the files, links, and details you'll need to get up and running. Cust Roms will have their own flashing/install process.

IF you ever plan to do any serious flashing, I reco running BOTH the unlock and critical_unlock commands in Fastboot (again, see my sig for the links)... do these first as the critical_unlock wipes the device.

You'll love the 2 XL rooted with a cust kernel and either the factory image or a cust Rom ! :D
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
[MENTION=4670411]Az Biker[/MENTION], thank a lot, I'll do. Am I right saying I won't lose any fu ctionality including stock camera app and other stuff.
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Camera works great on factory image and DU cust Rom.
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
Other cust roms use different cam app? And which one would you recommend? Lineage?
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Only one I've tried other than factory is Dirty Unicorn. You'll have to Google their page and downloads.
[Google Pixel 2 XL Guides, News, & Discussion] ecsnead69:
How much trouble was it to flash DU? I've only been on stock cause I've seen its sometimes difficult to get a custom ROM going.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Go into twrp, flash rom, flash twrp installer zip, let it boot up once, do a minimal setup leaving screen lock set to swipe or none, go back to twrp and flash kernel(optional) then magisk. Boot up...done :good::cool:
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Or you could:

Flash DU in TWRP

Flash TWRP.ZIP in TWRP

Reboot, let the OS settle for 5 min

Flash Flash kernel in TWRP

Flash Magisk in TWRP

Reboot to Recovery (superstition)

Reboot to System

Profit

:p :p :p :p
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
That dang "superstition step" gets me every time! ??????
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
What does flash twrp.zip mean if I already have twrp installed? Guess I'm a bit outdated jumping from galaxy s6 to pxl2xl))
[Google Pixel 2 XL Guides, News, & Discussion] p70shooter:
If you flash a rom you need to flash twrp again because it gets overwritten.
[Google Pixel 2 XL Guides, News, & Discussion] KeyzerSuze:
thanks for the thread
[Google Pixel 2 XL Guides, News, & Discussion] sjgoel:
I rooted my Pixel 2 XL using the method in the OP, and installed the May factory image. But on first reboot, I get stuck at the message "Google services framework keeps stopping." I also tried to install April (and March) factory image, but they both get stuck at the Google splash screen, showing the 'G' logo. Please help.
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
make sure you have the TAIMEN factory image,

using the May factory image,

follow the 2 XL link in my sig,

start just after unlocking and critical_unlocking.

if it sticks at white G screen, do a hard reboot (hold power button until it reboots)

report back
[Google Pixel 2 XL Guides, News, & Discussion] sjgoel:
Thanks. But it did not help.

Using the May factory image, it goes past the 'G' screen to the wifi setup, and then gets stuck at "Google services framework keeps stopping." I waited for 40 minutes, hard rebooted few times, but with same results.

Thanks.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Sounds like some system files are not flashing properly. Have you tried different USB cables and ports? What type of pc are you using? You may try flashing the vendor.img to both slots. Which is....fastboot flash vendor vendor.img..

If you need to change slots it's...fastboot --set-active=a or b, depending on what slot your currently on.

If you don't know what slot your on, it's...fastboot getvar all.......best of luck to ya :good::cool:
[Google Pixel 2 XL Guides, News, & Discussion] sjgoel:
Thanks Badger, I was able to use Deuces script and get everything going, with May update.

Thanks again.
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Scripts are great when they pull you out of the weeds, but one reason I don't like them is we have no idea what the actual issue was.

I know you are thrilled to get your device up and running, but it would be great to know what the issue was and how to remedy it without resorting to using a script.

Yes, of course a script should be used when all else fails, I would use it if nothing else worked.

My OCD kicking in, wanting to know WHY it wasn't flashing properly.

Glad you're up and running, which in the end, is the primary goal :D
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
My plan was to unlock, root and flash magisk before even booting into system out of the box. But as I understood I should boot once at least to enable debugging?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Definitely yes. Enable USB debugging and OEM unlocking before you start :good::good:
[Google Pixel 2 XL Guides, News, & Discussion] HACK3DANDR0ID:
Thanks your guide worked perfectly!
[Google Pixel 2 XL Guides, News, & Discussion] HACK3DANDR0ID:
What would cause TWRP to freeze at decrypt screen. Cannot do anything, i have to Press Volume - and Power and the device Boots regularly. I am unable to do anything or even put in my pass code to decrpyt in TWRP. Do i have to Fastboot boot Recovery.img every time?

Any thoughts?
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
I'm not sure about this, try asking here.

My gut feeling says it has something to do with your password and latest version of TWRP, but I've been wrong before :D

Good luck.
[Google Pixel 2 XL Guides, News, & Discussion] drothenberger:
If you install TWRP permanently instead of just using fastboot to boot it temporarily, you also need to install a custom kernel. Without one, TWRP will not respond to touch.
[Google Pixel 2 XL Guides, News, & Discussion] HACK3DANDR0ID:
Thanks for the info!
[Google Pixel 2 XL Guides, News, & Discussion] ecsnead69:
So no wiping anything? I just came from the 6P so this is new to me....
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Yeah, do a twrp factory reset with the swipe bar. It only wipes Cache/ART and data. Then flash away :good:
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
I did everything as in Az Biker's post and OP, installed TWRP, Magisk and factory image. Everything seems to be fine, but I'm having "The bootloader is unlocked and software integrity cannot be guaranteed etc etc" message on the boot. Is it ok?
[Google Pixel 2 XL Guides, News, & Discussion] malybru:
That is normal, and nothing to worry about.

:)
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
Is there a themed available like for Samsung? If yes, where can I get them?
[Google Pixel 2 XL Guides, News, & Discussion] LenMetallica:
I get an error every time I run flash-all.bat. Everything goes well until it tries to push the actual image to the phone and says fails to load, not enough space.

This is the factory image of Android P, and I've also tried it with the latest 8.1 to no avail.

I might be missing something stupidily obvious, so I apologise in advance.
[Google Pixel 2 XL Guides, News, & Discussion] drothenberger:
I have had similar problems and changing USB cables usually solves it. For me, sometimes the USB A cable works best and sometimes USB C cables works best, and it's not consistent.
[Google Pixel 2 XL Guides, News, & Discussion] LenMetallica:
Thanks, but I've already tried two cables. The first one was a USB 3.0 cable so I switched to the one that came with my one plus 2. Both failed and I've switched USB ports as well.
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
I'd try finding a cable you know isn't 3.0.

Otherwise is your SDK Tools the latest version?

So far, that same issue has been resolved by using 2.0 cable or switching ports. I'm wondering if your plus 2 cable is 3.0 too.
[Google Pixel 2 XL Guides, News, & Discussion] LenMetallica:
As far as I know USB C is only compatible with 2.0, I might be wrong but there's always a chance that it could be a 3.0 cable.

I just downloaded the SDK tools in the OP and went from there but now I'm thinking maybe its an outdated ADB driver?

Either way, could I just as easily temporarily boot TWRP and flash from there? Should yield me the same results correct?
[Google Pixel 2 XL Guides, News, & Discussion] eruben:
Where can I find themes?
[Google Pixel 2 XL Guides, News, & Discussion] Pkt_Lnt:
Search for "Substratum" & ("Andromeda" if not rooted) here on XDA and the Google Play Store.
[Google Pixel 2 XL Guides, News, & Discussion] Whysthewifigone?:
thanks,im going to look into this then, i was uncertain at first,but since you have fi also, i feel better trying it
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
unfortunately, the flash-all.bat is actually just a set of fastboot commands, in which it uses fastboot. TWRP uses sideloading and a different type of commands to "install" .zip's.

In any case, I've come across and overcome this error! Believe it or not, when it displays, "fails to load, not enough space." it's

NOT

talking about the space in the phone and/or partition (i've even went through the trouble of changing the partition sizes to fit the images and what not in attempt to correct this issue!). It actually means there's not enough space

on your computer

! I figure, when the fastboot command flashes and installs, it also "extracts" the images for the partitions. I also figure that it does this by temporarily extracting on the computer before "pushing" it to your phone and processing it. If you have more than 4 GB free on your computer (most likely C: drive specifically), you should be able to get through the flashing without said errors...

Hope this helps...
[Google Pixel 2 XL Guides, News, & Discussion] LenMetallica:
Thank you very much for your response.

I have quite a few hundred GBs of space left on my C: drive, and it's also where the images and platform tools are located. I've even made sure I had 6GB+ of RAM free in my system and it still gave me the error.

Now you have me thinking whether there is an issue with the amount of cached space that Windows 10 allows by default, and how to clear it.

Thank you again
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
If that's the case, I would think that it might be about how you've tried it many times and the cached files are interfering. So I would erase everything you can in the %TEMP% folder. If that doesn't help, most surely it's the platform-tools version or the USB cord (make sure it is version 27.0.1 and USB-C to USB-A is most compatible). Also, not to say that you wouldn't know this already, but make sure you don't merely cut-and-paste over adb.exe and fastboot.exe -- as I've had a number of users do this mistake just recently. Make sure you put the image files and all necessary files

in

the platform-tools folder that holds the adb.exe and fastboot.exe files.

Any/All of these three things should get you straightened out...Anytime this kind of stuff comes up, these 3 things usually (I would say 95%+) are the culprits.

If anything, another USB port may help -- that port might even need to be on another computer in some/many cases...

Good luck to you and hope this helps...
[Google Pixel 2 XL Guides, News, & Discussion] mayorblurps:
Yes it's worked every single time perfectly for me. No issues or errors. Currently on the latest may 2018 Fi specific image, plus flash kernel and magisk with TWRP installed permanently. Updating to latest version (ensuring you don't wipe your device by editing the flash all command) literally takes 10 mins tops.

I have *not* tried flashing a custom ROM even with TWRP and root because I am on Fi and afraid the new esim may cause issues. The partition stuff on the pixel devices worries me a bit so I hate to mess up something that is working perfectly. So far the stock rooted 8.1 is pretty dang good anyway even though I wish for tweaks like Beans ROMs had or DU; however the magisk modules are awesome and work well so I can tweak that way and still have root, Android pay, and viper4android.

Although now I may have to do an RMA for a new P2XL as I'm seeing the blue shift actively on my screen and not just at angles.:eek:

Good luck!
[Google Pixel 2 XL Guides, News, & Discussion] Whysthewifigone?:
i just tried a custom rom,didnt work for me, having to go back to stock an run rooted with that instead
[Google Pixel 2 XL Guides, News, & Discussion] FlatOutRU:
Do i have to uninstall somehow twrp (installed with zip) and magisk if i want to go full stock?
[Google Pixel 2 XL Guides, News, & Discussion] drothenberger:
I'm not entirely sure what you are asking.

You can run the stock ROM and kernel with Magisk if you wish. You can also install TWRP, but the touch interface won't work without a custom kernel so there's not much point.

If you're asking how to revert to full stock, the easiest way is to download the stock ROM from Google and either flash it entirely after removing the -w switch from the flash-all script or extract the boot.img file and flash just that with fastboot. That should remove Magisk and TWRP, although you will still have to uninstall the Magisk app.
[Google Pixel 2 XL Guides, News, & Discussion] FlatOutRU:
Thanks, you asked all my questions!
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
If you want to return to 100% stock, flash the latest Google factory image via fastboot (flash-all.bat), and

leave the -w intact, (do not remove the -w)

this will wipe your entire device, removing TWRP, root, cust kernel, everything INCLUDING internal sdcard.

I think this is what you are looking for.
[Google Pixel 2 XL Guides, News, & Discussion] simplepinoi177:
Also, if you really

REALLY

want to return it to full stock, you should relock bootloader and relock critical the bootloader...

*Note: please remember doing this does wipe your whole device

INCLUDING

your internal sd, /sdcard, internal data...
[Google Pixel 2 XL Guides, News, & Discussion] CyberpodS2:
One thing to remember. ALWAYS make sure you are completely stock and everything is working correctly BEFORE locking the bootloader. If not you run the risk bricking your phone if something is not at the should...
[Google Pixel 2 XL Guides, News, & Discussion] getsideways:
just bought pixel 2 xl and want to unlock bootloader and root. i had no luck last night. i followed instruction from post 1 here. opened developer mode, oem unlock, android debugging worked. when connecting phone to computer, i see phone. i can open comand promt and boot to fastboot mode. but once there, no commands work. tried 3 cables and all usb port on computer with same results. phone comes with usb-c to usb -c- cable. i dont have a usb-c port on my computer so im using usb -c- to usb-a cables i have from my oneplus 3t. any ideas what to do? im very frustrated. my oneplus 3t seemed much easier to unlock and root. thanks.
[Google Pixel 2 XL Guides, News, & Discussion] ridobe:
If you're trying to flash anything in fastboot, you'll need to do the flashing_critical command as well. It's been a while but I believe that's your issue. Someone correct me if I'm wrong.
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Do you have SDK/platform-tools up to date? You need to open your command prompt on the platform-tools folder while your in bootloader/fastboot mode. If this is all up to date, then once in fastboot mode, open your command prompt on the folder I mentioned, and type in...fastboot devices..

If you see your phone ID number, then your good. If not, then you have a driver or cable issue. Are you using a desktop or laptop pc? Laptops are a little more finicky with the P2XL and usually require a 2.0 USB A to USB C cable.

If you get this far and all is well the 2 unlocking commands you need to use are...

fastboot flashing unlock

And

fastboot flashing unlock_critical

Both of these will completely wipe your phone, so it's best to do them back to back. I'll leave it at this for now until you report back. Good luck :good::cool:
[Google Pixel 2 XL Guides, News, & Discussion] Az Biker:
Check my signature for a detailed step by step for the 2 XL. It should fill in anything you might be missing.
[Google Pixel 2 XL Guides, News, & Discussion] getsideways:
i get this far and i do see the device id. but then those 2 unlock commands dont work. when i type either of those commands the phone is supposed to promt me to be sure i want do this then i hit yes right?
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
Correct :good:
[Google Pixel 2 XL Guides, News, & Discussion] alershka:
Just got a new Pixel 2 XL on Swappa. It was sold as a new unlocked, not Verizon. The box has esim id on it and the IMEI matches what is on the phone. However, I have a greyed out OEM unlocking switch in Developer Settings.

I haven't put a sim card in it yet since I am going to activate it on Verizon and didn't want to have any issues with it locking the bootloader because of Verizon. I was prompted to setup Project Fi but I skipped past it. I have done a factory reset and have not added a pin or any fingerprints. I also bypassed all setup including WiFi and haven't added a google account. The phone is on Android 8 with September 5, 2017 security patch.

Any advice on how to proceed to get the bootloader unlocked? I don't want to get too far with setup until the bootloader is unlocked. Everything seems to indicate that the phone is not a Verizon phone other than the fact that I can't get OEM unlock to work. I think I have an old ATT sim card laying around that I could try putting in but again, I don't want to get too far without a plan.

Thanks!
[Google Pixel 2 XL Guides, News, & Discussion] Badger50:
First, I would go to the linked site, enter your IMEI number and double check that it is indeed an unlockable Google variant phone. If so, do a factory reset and see if OEM unlocking comes back. This was an issue some faced back in December as I recall. http://www.imeipro.info/check_lg.html

You may have to put the sim card in and then factory reset as well. Trying to find the link that explains this in greater detail :good:

Found it :good: https://www.google.com/amp/s/www.xd...rs-reporting-inability-unlock-bootloader/amp/