State of the UBports installer, or command line

I bundled all the files with a README and a linux shell script at https://www.dropbox.com/s/o9nu7xpvytpkguz/flash_ubports_fp2.zip?dl=0

Unzip the files, have a look at the README and the script. Worked for me :wink:

Edit: here is the full script so anyone could as well just copy the individual commands

#!/bin/bash

echo "Checking for connected Fairphone 2"

if !(fastboot devices | grep fastboot 2>&1 >/dev/null); then
    echo "Phone needs to be in bootloader mode (fastboot)"
    if !(adb devices 2>&1 >/dev/null); then
        echo "Reboot to bootloader and start again"
        exit 1
    else
         echo "Trying to reboot to bootloader (if that fails, reboot to bootloader manually)"
         echo "Start again when phone is in bootloader mode"
        adb reboot bootloader 2>&1 >/dev/null
        exit 1
    fi
fi

fastboot flash recovery ./images/recovery-FP2.img
fastboot flash splash ./images/splash-FP2.img
#fastboot flash splash ./images/splash-FP2_black.img

echo "Please reboot to recovery now"

adb wait-for-recovery

echo "Pushing 13 files to the phone to prepare installation"

adb push ./images/ubports-b68401f63e2fac3c8c533a804183ee276ee834b0154ca3ec20c80504dd17415c.tar.xz /cache/recovery/
adb push ./images/ubports-b68401f63e2fac3c8c533a804183ee276ee834b0154ca3ec20c80504dd17415c.tar.xz.asc /cache/recovery/
adb push ./images/device-10ac49deff49c650c78d8c8139c6099a7e1058649a318dfc6f668a08fba9382a.tar.xz /cache/recovery/
adb push ./images/device-10ac49deff49c650c78d8c8139c6099a7e1058649a318dfc6f668a08fba9382a.tar.xz.asc /cache/recovery/
adb push ./images/keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz /cache/recovery/
adb push ./images/keyring-4c4e7ef380ebcfa2c31084efa199138e93bfed8fc58aa3eb06bdf75a78af9b57.tar.xz.asc /cache/recovery/
adb push ./images/version-697.tar.xz /cache/recovery/
adb push ./images/version-697.tar.xz.asc /cache/recovery/
adb push ./images/image-signing.tar.xz /cache/recovery/
adb push ./images/image-signing.tar.xz.asc /cache/recovery/
adb push ./images/image-master.tar.xz /cache/recovery/
adb push ./images/image-master.tar.xz.asc /cache/recovery/
adb push ./images/ubuntu_command /cache/recovery/
#adb push ./images/ubuntu_command_wipe /cache/recovery/ubuntu_command

echo "Rebooting to recovery now to start the actual installation"

adb reboot recovery
1 Like