Oscar OS web installer

This page installs Oscar OS on a supported phone over USB, from your browser. It replaces the phone's OS and wipes all of its data.

Prerequisites

Supported devices:

Releases come from the stable channel.

You need a computer with at least 2GB of free memory and 32GB of free storage space, or an Android phone or tablet, with a browser supporting WebUSB: a current Chromium, Google Chrome, Microsoft Edge or Brave (with Brave Shields disabled, as they cap storage). Firefox and Safari don't support WebUSB. Avoid the Flatpak and Snap packages of browsers (Ubuntu's Chromium Snap has no working WebUSB), and don't use incognito or other private modes: they don't leave enough storage for the download. On Android, disable the browser's desktop mode.

Use a good USB-C cable, ideally the one that came with the phone, connected directly to the computer rather than through a hub or a front-panel port. Broken cables and hubs are the most common cause of failed installs. Installing from a virtual machine is not recommended: USB passthrough is often unreliable.

Start from the phone's stock Android, updated to its latest release, so the firmware used for the early flashing steps is current. Avoid carrier variants of the phone: carriers usually disable bootloader unlocking on them.

Enabling OEM unlocking

OEM unlocking needs to be enabled from within the stock OS.

Enable the developer options menu by going to Settings > About phone and repeatedly pressing the Build number menu entry until developer mode is enabled.

Next, go to Settings > System > Developer options and toggle on the OEM unlocking setting. This may require internet access, so that the stock OS can check whether the device was sold locked by a carrier.

Flashing as non-root (Linux)

On traditional Linux distributions, USB devices cannot be used as non-root without udev rules for each type of device. On Arch Linux, install the android-udev package; on Debian and Ubuntu, android-sdk-platform-tools-common. Elsewhere, add a udev rule giving your user access to Google's USB vendor id 18d1.

fwupd is known to grab fastboot devices, which shows up as an error about the USB device being in use. Stop it for the install with sudo systemctl stop fwupd.service.

Booting into the bootloader interface

Reboot the phone and hold the volume down button until it shows the bootloader interface. Alternatively, turn it off, then hold volume down while turning it on or plugging it in.

This step is not complete until the phone displays a red warning triangle and the words "Fastboot Mode". Don't press the power button to activate the "Start" menu item: the phone must stay in fastboot mode for the installer to connect to it.

Connecting the device

Connect the phone to the computer. On Linux, do this again if you didn't have the udev rules set up when you first connected it. Current Windows 10 and 11 include a generic fastboot driver; older versions need Google's USB driver.

The buttons below ask the browser for access to the phone the first time they need it: pick the phone in the browser's device chooser.

Unlocking the bootloader

Press the button below to unlock the bootloader, which enables flashing the OS and firmware:

The command needs to be confirmed on the device and will wipe all data. Use one of the volume buttons to switch the selection to accepting it and the power button to confirm.

Downloading the release

Download the current Oscar OS install zip for your device. The download is cached by the browser and checked against its published SHA-256 checksum; a zip that doesn't match is discarded and never flashed. If the phone is connected, its model is used and the selection below is ignored.

Flashing the release

This replaces the existing OS and wipes all the existing data. The installer checks the downloaded zip against its checksum again, checks its install script, then flashes the firmware, reboots into the bootloader interface and flashes the OS and the Oscar OS verified boot key.

Wait for the flashing process to complete and avoid interacting with the phone until it has. Then, proceed to locking the bootloader before using the phone, as locking wipes the data again.

Locking the bootloader

Locking the bootloader enables full verified boot, with the Oscar OS key flashed in the previous step. It also prevents using fastboot to flash, format or erase partitions. Verified boot detects modifications to any of the OS partitions and refuses to use modified or corrupted data.

In the bootloader interface, set it to locked:

The command needs to be confirmed on the device and will wipe all data. Use one of the volume buttons to switch the selection to accepting it and the power button to confirm.

Post-installation

Booting

Press the power button with the default Start option selected in the bootloader interface to boot.

On every boot the phone shows a yellow notice that it is loading a different operating system. This is expected: it means verified boot is on with a key that isn't Google's, here the Oscar OS key. The notice shows the first 8 characters of the key's fingerprint. A red or orange notice means something is wrong (orange: the bootloader is unlocked).

Disabling OEM unlocking

Once Oscar OS is set up, you can toggle off OEM unlocking in Settings > System > Developer options, so the bootloader can't be unlocked without first booting the OS and unlocking the phone.

Going back to the stock OS

Reinstall the stock OS with Google's web flashing tool, but first erase the Oscar OS verified boot key: boot into fastboot mode, make sure the bootloader is unlocked, then: