Skip to content

Instantly share code, notes, and snippets.

@anjuan
Last active June 20, 2024 16:34
Show Gist options
  • Save anjuan/91dee66acfdad3674d8f71f5b1c866f1 to your computer and use it in GitHub Desktop.
Save anjuan/91dee66acfdad3674d8f71f5b1c866f1 to your computer and use it in GitHub Desktop.
Sideload Android OTA Update Using ADB

Pre-Work

  1. Make sure you backup any personal data such as photos before applying update.
  2. Get the latest adb tool from the Android SDK Platform-Tools package.
  3. Add adb to your PATH environment variable or, as the instructions below assume, change into the directory containing the executable.
  4. Enable USB debugging for your device as described here.

On Machine

  1. Change into the directory containing the adb executable.
  2. Download the latest OTA image (appropriate for your device) from https://developers.google.com/android/ota into the adb directory.
  3. When you apply an OTA image, the file is validated. However, you can verify the checksum of the image beforehand. The last portion of the filename is the first 8 digits of its SHA-256 checksum. The full SHA-256 checksum is also shown next to the download link.
  4. With the device powered on, connected to your machine via USB cable, and USB debugging enabled, execute:

./adb reboot recovery

Your device will reboot.

On Device

Hold the Power button and press the Volume Up rocker once, and a menu will appear. Use the Volume Down (or, Volume Up, as needed) rocker to navigate through the menu and use the Power button to select the option Apply update from ADB.

On Machine

  1. Run the following command:

./adb devices

  1. Check that your device shows up with sideload next to its name.
  2. Run the following command:

./adb sideload <ota_file.zip>

where <ota_file.zip> is the name of the OTA image you downloaded.

On Device

Use the Power button to select the Reboot system now option to reboot the device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment