Grimoire-
Command
.es

GNU+Linux command memo

Install UBports (or Fairphone Open OS) on Fairphone 2

Installer UBports sur FP2.

1. Flash UBports

$ su (1)
# vi /etc/udev/rules.d/51-android.rules (2)
# /etc/init.d/udev reload
# exit
$ groups (3)
XXX cdrom floppy audio dip video plugdev netdev lpadmin scanner bluetooth
$ wget https://github.com/ubports/ubports-installer/releases/download/0.4.18-beta/ubports-installer.0.4.18-beta.AppImage (4)
$ ./ubports-installer.0.4.18-beta.AppImage
$ # Plug your device and carefully follow the graphical instructions (5)
1 Become root, to add a udev rule to access your device from a regular user (or stay root)
2 Add the following line in the file : SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d00d", MODE="0666", GROUP="plugdev" check that your idVendor and idProduct are the ones found in your /var/log/syslog while pluging the device (it differs if you’re booting in fastboot mode, recovery / bootloader mode and regular mode, so you’ll have to update your file and reload udev during the installation).
3 Check that your current unix user is member of the plugdev group
4 Check for the last version of the .AppImage here : https://devices.ubuntu-touch.io/installer/
5 You’ll have to reboot the phone in fastboot mode (holding volume-down button while booting, and then in bootloader mode (holding volume-up button while booting) don’t mix up !

As of 2020-06-28 :

  • WiFi and web navigation is working

  • Wikipedia offline is proposed via Kiwix, from stock OpenStore

  • Offline GPS navigation is proposed (using 3 apps, from stock OpenStore : UT Tweak, OSM Scout, Pure Maps)

  • APN is working with stock Camera app, but the flash light is not operated

  • No radio app found

  • The stock OpenStore counts 899 apps, in 22 categories (maybe overlapping)

  • Found : Weather ; Stellarium ; ePub, PDF and ODF readers ; stock terminal with SSH

  • Regular desktop application are installable, like deltachat-desktop (via Libertine Container)

  • Android apps should run via Anbox emulation.

2. Flash Fairphone Open OS

Official documentation : https://code.fairphone.com

$ wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip (1)
$ unzip platform-tools-latest-linux.zip
$ export PATH="$PATH:/path/to/unzipped/folder/platform-tools:" (2)
$ wget https://storage.googleapis.com/fairphone-updates/29504e26-999e-48af-8f68-12d1f4b50ae0/fp2-sibon-19.11.2-manual.zip (3)
$ unzip fp2-sibon-19.11.2-manual.zip
$ sh flash-for-unix.sh (4)
1 You may have to accept terms and conditions here before : https://developer.android.com/studio/releases/platform-tools
2 Add your newly downloaded fastboot binary to your $PATH.
3 Check for the last version here : https://code.fairphone.com/projects/fp-osos/user/fairphone-open-source-os-downloads.html
4 If stuck for more than a minute with no output, something is not going as expected, check /var/log/syslog, udev permissions…