{% include alerts/tip.html content="For Windows users, we advise to use Git Bash. For more info about Downloads and Installation see [Official Documentation](https://git-scm.com/about)"%}
1. Unzip the archive
```
unzip <fileyoudownloaded>
```
> Replace `<fileyoudownloaded>` with the name of the archive file you downloaded.
> Alternately you can create a folder and unzip the archive there.
1. Confirm that extracted directory contains following content:
- `bin-linux-x86 directory` - which contains linux tools including fastboot and adb
- `bin-msys directory` - which contains Windows tools including fastboot and adb
- `img files` - The `img` files that are to be flashed onto the device.
- `flash_shiba_factory.sh` - The installer script.
1. Boot into bootloader/fastboot mode.
- Power OFF the device.
- While holding `Volume Down` button, plug in a USB Cable that's connected to a PC on the other end.
1. Run the installer script on Terminal(Linux) or on Git Bash UI(Windows).
- Make sure you are in the current directory which contains the `flash_shiba_factory.sh` file.
{% include alerts/warning.html content="The bootloader is lockable in official builds only. The procedure to lock the bootloader will not work on community builds."%}
1. Boot into bootloader/fastboot mode if not already there by
- {% t device.download_boot %}
1. Once the device is in bootloader/fastboot mode, verify your PC finds it by typing:
```
fastboot devices
```
{% include alerts/tip.html content="If you see `no permissions fastboot` while on Linux or macOS, try running `fastboot` as root." %}
1. Download the [avb custom key](https://images.ecloud.global/stable/pkmd_pixel.bin)
1. Erase the previous key `fastboot erase avb_custom_key`
1. Flash the new key previously downloaded `fastboot flash avb_custom_key pkmd_pixel.bin`
1. Lock the device `fastboot flashing lock`
1. Use the volume key to select `Lock the bootloader`