How To: Apply OTA Updates on Your Rooted Pixel 2 or 2 XL

How To: Apply OTA Updates on Your Rooted Pixel 2 or 2 XL
So, you rooted your Pixel 2 or 2 XL and everything seems to be working quite well. However, a month passes, and you get a notification to install the monthly security update. Like clockwork, Google has been pushing out OTA security patches every single month for a while, but there is a new problem for you at this point — as a rooted user, you are unable to apply the update correctly.Not knowing this vital detail can throw off root beginners and even experienced Pixel owners returning to the root scene all the same. It is critically important to keep up with security updates, especially with all of the nasty malware and exploits that have been running amok in recent times. We will dive into more specific details on how to solve this update issue for rooted users in the sections below.

The A/B PartitionGoogle introduced the first Pixel phone back in 2016 with a new feature called seamless updates, which allows an OTA update to install on a secondary partition while keeping the active partition intact (your current session). This makes it easier to update on the user side since, upon a system reboot, the two partitions switch places. For the new update method to work as intended, Google had to introduce another system partition in a new concept they are calling the A/B partition. An easy understanding of how seamless updates work with an A/B partition. Image via Gadget Hacks This posed a challenge to the root scene in the earlier days since the recovery and boot partitions were merged as a result of the new layout, but has since been figured out thanks to the support from great developers across the community. It is important to note that the seamless system updates and A/B partition are no longer exclusive to the Pixel phones. We can expect these new features to be included in many more Android devices now and well into the future. If you want to know the specifics on how the A/B partition works in newer devices like the Pixel phones, you can check out Google's official explanation.
The Solution for Root UsersWhile the introduction of the A/B partition is excellent for the people who are running stock without root access, what about the root users like yourself? In the days of old, you had to find the factory images from the manufacturer of the phone and flash the system back to the original stock firmware. This was a bit overwhelming for many, especially since it essentially means you must wipe the user data partition — no one likes having to do a factory reset and start from scratch every single time. But the A/B partition layout has helped alleviate this problem.The solution? We must leverage the power of TWRP and use the ADB sideload function in a recovery environment. Sideloading an OTA update using this method will allow your device to take the update just like a stock device can, but guess what? You get to keep all of your data all the same — no more worrying about having to start over every single month! Let us dive into how we can accomplish this once and for all with the easy to follow steps below.

Step 1: Pick the Right CableGo ahead and make sure you have your phone connected to your computer via a USB port before moving on. If you are lucky enough to have a native USB Type-C port on your computer you can use that; otherwise, you will have to use or purchase a USB Type-C to USB-A cable to proceed with this root heavy guide. Since you are looking to update your rooted device with an OTA file, you probably already have the cable you need anyways. An example of a USB-C to USB-A cable. Image via Stephen Perkins

Step 2: Download the OTA FileThere is no way around it — you'll still need to download the OTA image file manually. You can find the newest and most up to date list of OTA images for the Pixel devices on Google's official firmware page:Download OTA image files for Pixel devices For the sake of this guide, you will be looking for the device codename of either taimen (Pixel 2 XL) or walleye (Pixel 2). Scroll down to find the most recent monthly security update you want to install and hit the download link next to it. Make sure to save this file to your computer.

Step 3: Download the Platform-ToolsThe A/B partition changes the way root works when it comes to flashing files, which makes this a mandatory step so the OTA update can be applied to your system correctly. If you try to flash the OTA without the platform tools, you could cause yourself a bootloop. To avoid all of that headache, download the latest SDK Platform-Tools package from Google:Download the latest Platform-Tools package from Google The official download page for the SDK Platform Tools. Image via Google As of this guide, 28.0.1 (September 2018) is going to be the most current platform-tools release we want to use for the Pixel devices. Most root users are probably going to download the Windows release, but pick the platform that corresponds with your current system.

Step 4: Move Files AroundOnce you have the platform-tools downloaded from Step 3, go ahead and extract that file to any location of your choosing. To keep things simple, we recommend extracting it to your desktop.You'll then want to take the OTA file you downloaded in Step 2, and drag that file into your newly extract platform-tools folder on the desktop. To keep things easier still, go ahead and rename this zip file just to "ota" (or "ota.zip" if your computer is set to show file extensions). An example of what your platform-tools folder might look like. Image via Stephen Perkins Renaming the ZIP file will make it easier to initiate the sideload command in TWRP later. You also do not have to worry about extracting the OTA file since the ADB sideload command will read it as-is.
Step 5: Prepare ADB & FastbootNext, if you're using Windows, install the ADB and fastboot drivers if you haven't already done so (you most likely did this when you rooted your phone initially). Then, on your phone, enable the hidden Developer Options menu and make sure "USB Debugging" is turned on.
Step 6: Update TWRPIt is crucial that you grab the latest version of TWRP since it has had a lot of problems in the past with the Pixel 2 devices in particular. This was again, because of the A/B partition — it just recently got to the point where everything is working correctly now.Before the latest update, if you had the fingerprint security feature enabled, you had to disable it every single time you wanted to boot into recovery mode. Having to remove your security features every single time was less than ideal, but that has since been fixed in version 3.2.3-1 and beyond. It is always advisable to keep TWRP updated as much as possible to avoid future conflict when flashing files, especially on newer devices.To update TWRP, grab the latest ZIP for Pixel 2 or Pixel 2 XL, then simply flash the file in recovery. Want to learn more about installing or updating TWRP? We have you covered!
Step 7: Open a Command Prompt in the Right FolderNow that TWRP has been updated, you'll need to get a command prompt or terminal window open to the platform-tools folder. This varies slightly depending on your computer's operating system.Windows users:Press the Windows button on your keyboard, then type in "cmd" and hit enter. Head back to your platform-tools folder on the desktop. Copy the file location of the folder by clicking the bar in the current window that shows what folder you are in. Go back to your terminal and type in "cd" followed by a space, then paste in the file location you just obtained and hit enter.Mac users:Press command and space bar on your keyboard simultaneously, then type in "Terminal" and hit enter. Go back to your platform-tools folder on the desktop, then click on "File" and choose "Get Info." Copy everything from the "Where:" section, then go back to your terminal. Type in "cd" followed by a space, then paste in the file location you just obtained and hit enter.Linux users:Without over complicating things on the Linux platform, head into your platform-tools folder located on the desktop, and then right-click any blank spot of the window. Now you must select the "Open in Terminal" option, which will allow the local files in that folder to communicate with the terminal.

Step 8: Boot into RecoveryNow that your terminal is pointing to the folder that we need it to, go ahead and enter the following command:Windows users: adb reboot recovery Mac and Linux users: ./adb reboot recovery Note: Since ADB/fastboot commands may not be installed system-wide, it is crucial for Mac and Linux users to manually add the "./" before entering any of these commands in the future. This ensures you are launching the files from the local folder without issue.If all is well, your device will respond by transitioning to the recovery environment. When you have security features set up on your device, such as Pixel Imprint, you will be presented with a message that asks you to enter your password. Go ahead and enter the password or PIN you use to unlock your device upon first boot of your system and tap the enter key. If you are on the most recent version of TWRP, it will decrypt your data successfully so you can move onward.Note: There still appears to be a bug in TWRP with the screen off timer on the Pixel 2 devices. Just to be safe, you might want to disable the screen timeout option so that it will stay on during the install process. It can occasionally turn off entirely and prevent it from turning back on, which results in a failed update or a semi-bricked device. To do this, start from the main TWRP menu, tap "Settings," and then tap the icon in the middle with the brightness symbol. Uncheck the only box available in this section, and you are good to go!

Step 9: Sideload the UpdateFrom within the TWRP main menu, tap "Advanced" and then "ADB Sideload." You can choose to wipe the caches if you feel the need, but it is not mandatory. Swipe the bar at the bottom to initiate the sideload command on the recovery menu side. From here, you need to go back to your computer's desktop and into the command prompt or terminal within the platform-tools folder from the previous steps. You should have all the files renamed and ready to go by this point, so we can finally start the update process. If you closed the terminal application, go ahead and repeat the first part of Step 7 to open a terminal for the platform-tools folder on your desktop.Once you have your terminal ready to go, enter the following command:Windows users: adb sideload ota.zip Mac and Linux users: ./adb sideload ota.zip The OTA file will begin to extract, and then it will apply the update to your system. This whole process will take a few minutes, so sit back and hang out while it does its thing. Once it finishes updating, you can manually hit the reboot option and land back on your lock screen in no time! You might see a message that will let you know the system update is finalizing, but you are good to go from there. Now you need not fear the monthly security updates and can tackle the situation with relative ease.
Step 10: Re-Root (Optional)Since the new A/B partition tightly integrates more core system files into the way updates work now, you will now be back on the stock kernel, you will lose root access, and you will default back to the stock recovery as well. Feel free to install anything you wish from this point on that fits into your personal device usage.If you need a refresher on any of these extras, please visit the guides below:How to Install TWRP (the Best Custom Recovery for Android) How to Install Magisk & Root with TWRP How to Install the ElementalX Custom Kernel It can sound like a lot of work at the beginning of this adventure, but it is also quite easy to use and maintain once everything is all set up. Having a new understanding of how all these things work will help you out greatly in the root scene. Just think — now that the preparation is all done, it should be smooth sailing from here. For example, the next time you want to install an OTA update, all you have to do is download the file and launch the ADB sideload command from TWRP. Nice and easy. Enjoy your monthly OTA updates without losing your data ever again!Don't Miss: The 5 Best Phones for Rooting & ModdingFollow Gadget Hacks on Pinterest, Reddit, Twitter, YouTube, and Flipboard Sign up for Gadget Hacks' daily newsletter or weekly Android and iOS updates Follow WonderHowTo on Facebook, Twitter, Pinterest, and Flipboard
Cover image and screenshots by Stephen Perkins/Gadget Hacks



Actually, "App Store not working" is too general which might include App Store not loading (cannot connect to App Store, App Store blank), App Store won't download/update apps, App Store search not working, etc. Don't Miss: Common 37 iPhone iPad Problems after iOS 11 Update > To fix App Store problems, this post offers 4 basic tips as
iOS App Store Not Loading or Working on Your iPhone? Here's


Fortunately, CyanogenMod developed Gello, a browser that includes the best and most used features in one fast Chromium-based application, so the browser wars slowed down a bit with one clear winner atop the heap. Don't Miss: CyanogenMod's Gello Browser Gives You the Chrome Experience Without Google's Tracking
Replace Your Android Browser with This Enhanced Version of

How to access the on-screen keyboard of the BlackBerry KEYone


How to Unroot Android. Rooting your device can give you a lot more control over it, but it also will usually void your warranty and make repairs a hassle. Rooting also makes installing OTA (over-the-air) updates more difficult.


Android: Google and Android are typically a package deal. Even if Samsung or Sony makes your phone, you'll still find it loaded with Google Maps, Gmail, Chrome, YouTube, and all the other apps
How to use Google search to find your lost Android phone - CNET


Culture How to take time-lapse photos on Android. Share a series of photos with friends and family--time-lapse style. Just follow these steps.
android app for taking photos automatically at regular


It does involve themes which you did not want, but at this time this is the only way I have found to do what you want which is changing title bar color from white on inactive windows. On a personal note I have been using this theme for the past several builds and I have never had any windows update or upgrade change it in anyway so far.
Update Windows 10 Colors in Personalization Settings


State contexts have two types of tasks, enter tasks and exit tasks. An enter task is the default, and runs when the profile becomes active. An exit task on the other hand runs when the profile is deactivated. It's important to understand that Tasker doesn't enforce anything you specify in the enter task while the profile is active.
How to set exit task on Tasker simplest way - YouTube


How to charge Apple Watch without charger? Except the charging cable comes with the Apple Watch, people also found other ways to charge their watch without this charger. Slide off the Apple Watch's bottom band, peek into the connection slot and you'll find there is a hidden port that Apple doesn't acknowledge to public. One accessory
Use Nightstand mode on your Apple Watch - Apple Support


This tutorial talks about how to change Slack theme and apply custom themes.After going through this tutorial, you'll be able to learn how to change the appearance of Slack by changing and customizing the theme. in this tutorial I will explain how to change the appearance of Slack interface by changing the default theme and also by applying custom themes.
How to Customize Desktop Background in Windows 7 - OS


How To: Use Your Android's Volume Keys to Move the Cursor in Any Text Field—No Root Needed How To: Make Your Volume Buttons Control Media Volume by Default, Not Ringtones How To: The Difference Between the Control Panel & Settings Menus in Windows 10
How to Fix Your Cell Phone's Broken or Missing Volume Buttons


A brand new Android 4.4.4 KitKat firmware has been rolled out for the Galaxy Note 4 International variant. Check the instructions listed in this post in order to learn how to successfully install
How to Get the New KitKat-Style - Samsung Galaxy Note 3


Truecaller works even when there is no internet on your device. After the caller was identified by Truecaller once, Truecaller will still identify the caller for you even without internet connection. Copy a number anywhere on your phone and Truecaller will quickly identify it for you. You can even call or message the number quickly from there.


To help save battery power, you can choose a lower screen timeout setting on your Samsung Galaxy S4. How to turn off the screen lock on my Samsung Galaxy S III;
Turn On Your Android's Flashlight Using the Power Button

How to Disable Notification Previews for All Apps with iOS 11

0 comments:

Post a Comment