본문 바로가기
카테고리 없음

Verizon Phones Unlocked Bootloader

by tremexcapequicae 2021. 9. 13.


I bought a new Pixel phone on Ebay a couple months ago for testing an Android app i’m developing. To my surprise,the phone I received in the mail was not the unlocked Google version I thought I ordered (with an unlocked bootloader), but rather the locked downVerizon version.
I was hoping to eventually root the device in order to play around with some pentesting tools (specifically Frida). Sadly, I wasn’t ableto find an easy solution until now.

  • Remove any and all Google accounts from your Pixel. Also delete any kind of screen lock.
  • Unlock the bootloader on Pixel phones from Verizon and EE with dePixel8 by beaups and jcase Hurry. The device will restart to the bootloader where fastboot can be used to issue the oem unlock.

Unlock Bootloader

This morning I saw a post on the xda forums by user burduli,illustrating how he unlocked the bootloader on a Verizon Pixel. His article was posted on May 27th, 2018. It’s taken almost two years since the phone’s release for this simple bootloader workaround to be found!
The steps are as follows, adapted slightly based on my experience and environment (Ubuntu):

  1. Remove Google account and PIN/Fingerprint from your device.
  2. Eject sim card from your device.
  3. Factory reset your device. Skip everything in the setup wizard.
  4. Go to Developer Options and enable USB debugging.
  5. Connect your phone to computer.
  6. Open terminal in adb directory and typeadb shell pm uninstall --user 0 com.android.phone
  7. Restart your device.
  8. Connect to WiFi, open Chrome and go to any website. (nobody knows why we do this??)
  9. Go to Developer Options and enable OEM unlocking.
  10. Reboot into bootloader and via terminal runfastboot oem unlockorfastboot flashing unlock
  11. Profit
BootloaderVerizon

Now Verizon, the only wireless carrier that sold its phones unlocked out of the box, is reversing course. The company said earlier this week it would begin locking the phones it sells to consumers.

Are verizon phones unlocked

Notes

  • For adb and fastboot, I installed Android Studio on my machine and navigated to ~/Android/Sdk/platform-tools when I wanted to use those programs. I had difficulty with the fastboot installed from apt that was attached to my PATH.
  • I had to restart my phone twice to perform step 9. The first time, the OEM unlocking slider was grayed out. Others in the original post’s comments had similar problems.
  • If you see the error “insufficient permissions for device error”, you’ll need to first kill the server adb kill-server, and then restart with root privs sudo adb start-server.
  • Be aware that unlocking bootloader removes everything from your device. The fact that you factory restore in step 3 means you should be ok with this…

Rooting Prereqs

These are the requirements and files I found necessary.

  • adb and fastboot (which you already have from the bootloader bit above)
  • A cable to connect phone to computer
  • “SailFish” Pixel Factory Image v8.1-May (downloaded to host computer)
  • twrp-3.2.1-2-sailfish.img (downloaded to host computer)
  • twrp-pixel-installer-sailfish-3.2.1-2.zip (downloaded to device file system BEFORE starting)
  • Magisk (downloaded to device file system BEFORE starting)

Get rid of all the Verizon

Now i’m not positive if this step is essential, but after encountering difficulty I decided to reimage the phone with an official Googleimage. Either way, can’t hurt to start with a clean slate.
Download the image above and follow this steps Google provides on their factory images page.Essentially, you’ll want to unzip the image archive, plug in your device, and run the flash-all.sh it provides. You’ll need to make sure thecorrect fastboot is in your PATH. Mine wasn’t, so I modified the four spots that fastboot was called in the script and wrote out the full path (~/Android/Sdk/platform-tools/fastboot).

Prep TWRP

First off, make sure to set a PIN number in the OS before continuing. You need a PIN so TWRP can decrypt and access the file system later.
I had no idea what TWRP was before this guide, but apparently it’s a custom recovery tool used for installing custom software on your device. The way weinstall TWRP is by first loading a temporary TWRP state onto the device, and then in that state overwriting our recovery partition with a full TWRP install.
Install the .img file from above, move it to your platform-tools folder and rename it to twrp.img.

mv ~/Downloads/twrp-3.2.1-2-sailfish.img ~/Android/Sdk/platform-tools/twrp.img

Load TWRP

Now we’re ready to load TWRP onto our phone. Start bootloader mode by holding down power button + volume down and plug in your phone. If you see an Android lying on his back, you’re in the right spot. Try running fastboot devices - you should see your device show up.

Boot from the twrp image we just moved to the platform-tools directory by issuing:

Are Verizon Phones Unlocked

fastboot boot twrp.img

Install TWRP

Verizon Phones Unlocked Bootloader Download

Great! You should now be booted into the twrp interface.

Press the “install” button, navigate to your Downloads folder, and install the twrp-pixel-installer-sailfish-3.2.1-2.zip you downloaded to your phone earlier. Let that installation complete (hopefully with no errors).
Now go back a few steps to the page we started at, press the restart button, and then press recovery. You should now boot into a version of TWRP running entirely on your device. You can use TWRP to do a whole bunch of things…one of them being rooting the device.

Actually root the device

Verizon phones with unlocked bootloaders

Is My Verizon Phone Unlocked

Same as last time! Press the “install” button, but this time you’re installing the Magisk zip you downloaded at the start of this guide.
Like magic, your device is now rooted! I downloaded a free “Root checker” app from the Play Store to confirm. Enjoy!