I think you forgot the screenshot?Anybody seen this when trying to flash a factory image? If so, any ideas how to get around it?
This is a new Pixel 2 XL 128GM straight from Google.
I have never had any issues with using Fastboot or adb om Ubuntu, Mint any distro for the past few years. I just install adb and android-tools-fastboot. You will need java installed for it to function. I currently run jdk-8u152-linux-x64.do you have the latest abd and fastboot? Are you trying to install a factory image?
Another question if I may. I got this all set up and can adb like u explained. When I ./fastboot I get "no permissions (user in plugdev group); are your udev rules wrong?) Any ideahttps://dl.google.com/android/repository/platform-tools-latest-linux.zip
This zip has the latest tools. Download, unzip, cd to the directory you extracted it to, and use ./fastboot for the fastboot things, and ./adb for those.
Verizon network, yesSo will this work on Verizon?
Dang.. alright.. thanks.. hopefully someone can figure it out for the unlucky owners.. lol!!Verizon network, yes
Verizon bought phone, no.
If you can't toggle "unlock bootloader" under developer settings, then you can't proceed with this guide.
Don't get your hopes up. Verizon phones are a hard case. Even the few that had some success get patched quickly.Dang.. alright.. thanks.. hopefully someone can figure it out for the unlucky owners.. lol!!
Hmm. Its so weird. I can adb all day long. And fastboot detects my phone no problem. I can fastboot reboot too. But as soon as I try to flash factory images I get fastboot too old. I don't have jdk installed. And it worked once without it. Can u explain to me how to flash factory on Ubuntu please? I gotta be doing it wrong.I have never had any issues with using Fastboot or adb om Ubuntu, Mint any distro for the past few years. I just install adb and android-tools-fastboot. You will need java installed for it to function. I currently run jdk-8u152-linux-x64.
Installed Magisk, all seemed to go well after some unlocking issues, however, after rebooting the bootloader, ads are still appearing on YouTube.do you have the latest abd and fastboot? Are you trying to install a factory image?
Don't know about ads issue, but rule of thumb is this:Installed Magisk, all seemed to go well after some unlocking issues, however, after rebooting the bootloader, ads are still appearing on YouTube.
Also, is it customary (or even possible) to relock the bootloader these days after this process is complete?
Attached screenshots from Pixel 2 XL (hit "upload" this time).
Thanks for the feedback. The grim warnings about having an unlocked bootloader prompted the question. Just wondered what everyone else, with infinitely more experience, are doing with their devices regarding this.Don't know about ads issue, but rule of thumb is this:
Never ever lock your bootloader without being 100% restored to 100% stock.
Many of us just ignore the warning. It's the nature of the beast these days when you unlock the bootloader. Which, is definitely worth it to get rid of those adds! :good:Thanks for the feedback. The grim warnings about having an unlocked bootloader prompted the question. Just wondered what everyone else, with infinitely more experience, are doing with their devices regarding this.
For me, returning to a phone riddled with ads after years without them, is like, well, having an iPhone.
Any recommendations then? Start over from the unlocked bootloader and re-install Magisk, etc.?Many of us just ignore the warning. It's the nature of the beast these days when you unlock the bootloader. Which, is definitely worth it to get rid of those adds! :good:
I would recommend that you read the instructions in the OP thoroughly! Nathan is excellent at this stuff. Once your rooted, you can install AdAway and get rid of many of those adds :good:Any recommendations then? Start over from the unlocked bootloader and re-install Magisk, etc.?
Introduction
Hello everyone, this is a guide to assist you with customizing your Pixel 2 XL! I will be going over installing fastboot and adb, unlocking your bootloader, how to flash the factory images for clean flashes and upgrades, and how to root. Please feel free to ask any questions if you need clarification. Enjoy!
This information has been distilled from Google's official factory image site and the Magisk thread.
Installing fastboot and adb
Thankfully, Google has provided just adb, fastboot, and systrace as a simple zip file, making this process super easy. You MUST be on at LEAST 26.0.2 for the commands in this guide to work. When in doubt, grab the latest copy and install them using the following instructions.
Windows:
- Unzip the folder somewhere on your hard drive.
- Go to the folder containing the adb and fastboot files and type "cmd" in the path bar at the top.
- A command prompt should open with the current folder showing on the prompt.
- Type the following commands:
You should see some information appear. If that is the case, you were successful!Code:adb --version fastboot --version
Mac/Linux:
- Unzip the folder somewhere on your hard drive.
- Navigate to that folder with your terminal.
- Run the following commands:
Code:sudo install adb /usr/local/bin sudo install fastboot /usr/local/bin- Type the following commands:
You should see the version information, along with telling you they are installed to /usr/local/bin. If so, you were successful!Code:adb --version fastboot --version
Unlocking the bootloader
WARNING: This WILL wipe your entire phone. Please make copies or backups of any important data. This can also go wrong rendering your device inoperable. Proceed with caution.
- On your phone, open Settings, navigate to "System" then "About phone", and tap on the build number 7 times.
- Go one menu up, click on "Developer options", and turn on USB debugging and OEM unlocking.
- In your terminal, type the following command:
Code:adb reboot bootloader- 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.
- Depending on what you decided in the previous step, run one of the following commands:
ORCode:fastboot flashing unlock
Code:fastboot flashing unlock_critical- Follow the prompts on your device then reboot!
Flashing factory images
NOTE #1: You CANNOT downgrade factory images. Google has prevented users from doing so to keep them safe from vulernabilities that were patched. You should only upgrade or reinstall the current image.
NOTE #2: If you have mounted /system as rw at any point (like in TWRP), you must upgrade using the factory image method. OTAs will fail because they cannot verify the integrity of the disk since its verity data has been changed.
Updating to a new release (factory image):
Updating to a new release (OTA zip):
- Download the latest factory image from Google's website.
- Reboot into the bootloader:
Code:adb reboot bootloader- Unzip the factory image.
- Inside you will see a bootloader image, a radio image, an image zip file, and a couple of flash scripts.
- If you are on Windows, open the "flash-all.bat" file in a text editor. If you are on Mac or Linux, open the "flash-all.sh" instead.
- Remove the "-w" flag before the fastboot command towards the end of the file. This will prevent fastboot from formatting your device.
- Run the flash all script! Open a command prompt, navigate to the folder with the script, and run one of the following commands:
Windows:
Mac/Linux:Code:flash-all
Code:./flash-all.sh- Reboot once it is finished!
Clean flashing a factory image (wipe everything):
- Download the latest OTA zip from Google's website
- Reboot into recovery:
Code:adb reboot recovery- Hold down the power button and push volume up
- Select "Apply update from ADB"
- Run the following command from the folder containing the OTA zip:
Code:adb sideload <zip_name>.zip- Reboot once it is finished!
- Download the latest factory image from Google's website
- Reboot into the bootloader:
Code:adb reboot bootloader- Unzip the factory image.
- Run the flash all script! Open a command prompt, navigate to the folder with the script, and run one of the following commands:
Windows:
Mac/Linux:Code:flash-all
Code:./flash-all.sh- Reboot once it is finished!
Rooting with Magisk
- Download the Magisk Manager from the official thread and install it.
- Grab a boot image to patch (either the one from the latest factory image or a custom kernel one) and push it to your device:
Code:adb push <path_to_file> /sdcard/Download- Open Magisk Manager and click the Install button.
- Click "Install" at the first prompt then choose "Patch Boot Image File". A file manager will pop up.
- Select the boot image you want to patch and let Magisk Manager patch it.
- Pull it off your device:
Code:adb pull /sdcard/MagiskManager/patched_boot.img- Reboot into the bootloader:
Code:adb reboot bootloader- Flash the boot image and reboot.
Code:fastboot flash boot patched_boot.img fastboot reboot- Open Magisk Manager and you should be rooted!
Closing statements
If there are any procedures you would like to see added (like flashing a custom kernel or booting TWRP), I am happy to add them if requested. Also, when requesting help, please be as specific as possible where you get confused. I want this guide to be clear as possible.
Never doubted Nathan's excellence, however, my own in this area is another story...I would recommend that you read the instructions in the OP thoroughly! Nathan is excellent at this stuff. Once your rooted, you can install AdAway and get rid of many of those adds :good: