UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Can't install UBport on Fairphone3+ the ubports-installer won't find the phone

    Scheduled Pinned Locked Moved Solved Fairphone 3
    25 Posts 5 Posters 3.8k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • G Offline
        gandalf
        last edited by gandalf

        I had some similar issues restoring my FP4. At least for that one the installer warns you to have the stock android installed due to the partition layout (iirc). As such I went /e/ -> factory image -> UT.

        While installing that factory image I had to disable frp_wipe in the installer script as it would fail the script. Afterwards I had to manually activate the correct slot for booting:

        #check the selected slot for booting: should be a or b
        fastboot getvar current-slot

        #I had to manually set it to boot slot a to boot the factory image
        fastboot --set-active=a

        after that I was able to boot back into the factory image and could install UT without even setting up the device on android.

        1 Reply Last reply Reply Quote 1
        • LuksusL Offline
          Luksus
          last edited by

          @picrard

          1. It is recommendet to install the Fairphone OS stock rom, before installing UT. This hint is given in the ubports installer.

          2. It must be a Android 10 Fairphone OS, not Android 11.

          3. The device is an A/B Slot device and has no dedicated recovery partition. That is why it does not work to flash TWRP, just booting it works. The recovery is part of the boot image.

          So I would recommend, flashing the Android 10 stock rom, which is linked in the installer under the "Unlock your device" section.
          Then on a first install, it is needed that you check the wipe userdata and bootstrap (flashs bootimage with recovery) option.

          You can just boot your device manually in the fastboot mode with power + volume-down button.
          Then the installer should recognize it. If not and you are sure, that fastboot on the pc should see your device, select the device manually.
          Then just follow the instructions of the installer.

          TWRP should not be needed.

          Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

          1 Reply Last reply Reply Quote 1
          • P Offline
            picrard
            last edited by

            @Luksus
            yes, that was it...(I hope it, when I write this line, because I am installing now your STOCK ROM, from the link in the installer)
            It was my fault, yes, I haven't read on, because the instructions are so clear you just have to read the whole text, not just some of the first lines,

            mistake 1 : I had installed /e/ os an in the instructions is written that it will not work under /e/
            mistake 2 : I have first installed the actual STOCK ROM which is Android 11, so this also won't work
            mistake 3 : then I have installed an older STOCK ROM Android 9 won't also work...

            and now ..... after finishing install under debian with

            chmod a+x FP3_flashall
            ./FP3_flashall

            hm....how long do I have to wait ???
            do I have to activate via fastboot, or without.... both doesn't work,
            always hangs in this loop
            Bildschirmfoto von 2022-08-22 17-03-55.png Bildschirmfoto von 2022-08-22 23-05-01.png

            Fairphone 3+

            1 Reply Last reply Reply Quote 0
            • P Offline
              picrard
              last edited by

              or this ....

              😞

              Bildschirmfoto von 2022-08-22 23-10-31.png

              Fairphone 3+

              LuksusL 1 Reply Last reply Reply Quote 0
              • LuksusL Offline
                Luksus @picrard
                last edited by

                @picrard hm, if it says "Fastboot is scanning devices".
                Could you please open a terminal and check if the device gets recognized by the command fastboot devices?

                If not, does the device display that it is in fastboot mode?
                Did you already try another USB port?
                Maybe your fastboot version does not work for the installer. Maybe try to start the installer with root-privileges.

                Since you have 3 different states of the ubports installer where it hangs, maybe the usb connection gets lost somewhere in the process?

                Flashing boot partition should only take some seconds. Erasing userdata too. That happens in fastboot mode.
                Then it downloads the rootfs image and pushs it via ADB to the device, you will have to choose recovery mode manually on the device for that. This maybe takes one or two minutes.
                After that it automatically reboots to recovery and setup of UT begins.

                Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                P 1 Reply Last reply Reply Quote 1
                • P Offline
                  picrard @Luksus
                  last edited by

                  @luksus ,thank you, it wents on 😉

                  I'm a step closer to finish my instalation,
                  so I checked the fastboot, looks like it works:

                  picrard@mobile:~$ fastboot devices 
                  A209SRHW0202	fastboot
                  picrard@mobile:~$ su
                  Passwort: 
                  root@mobile:/home/picrard# ubports-installer 
                  2022/08/24 16:41:29.396661 cmd_run.go:1053: WARNING: cannot start document portal: write unix @->/run/user/1000/bus: write: broken pipe
                  mkdir: cannot create directory '/run/user/0': Permission denied
                  No protocol specified
                  [3568:0824/164137.065581:ERROR:ozone_platform_x11.cc(247)] Missing X server or $DISPLAY
                  [3568:0824/164137.065726:ERROR:env.cc(226)] The platform failed to initialize.  Exiting.
                  The futex facility returned an unexpected error code.
                  Abgebrochen
                  root@mobile:/home/picrard# exit
                  exit
                  picrard@mobile:~$ ubports-installer 
                  Gtk-Message: 16:41:56.873: Failed to load module "xapp-gtk3-module"
                  Gtk-Message: 16:41:56.986: Failed to load module "canberra-gtk-module"
                  Gtk-Message: 16:41:56.992: Failed to load module "canberra-gtk-module"
                  info: Welcome to the UBports Installer version 0.9.6-beta!
                  WARNING: Kernel has no file descriptor comparison support: Operation not permitted
                  info: device detected: FP3
                  [3770:0824/164216.198102:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
                  info: Installing Ubuntu Touch on your Fairphone 3/3+ (FP3)
                  info: configuring...
                  info: settings: {"bootstrap":true,"wipe":true,"channel":"16.04/arm64/android9/stable"}
                  [3770:0824/164306.679806:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
                  [3770:0824/164309.816910:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
                  info: UBports Installer restarting...
                  info: device selected: FP3
                  info: Installing Ubuntu Touch on your Fairphone 3/3+ (FP3)
                  info: configuring...
                  info: settings: {"bootstrap":true,"wipe":true,"channel":"16.04/arm64/android9/stable"}
                  info: Good bye!
                  warn: lost connection to device
                  picrard@mobile:~$ ubports-installer 
                  Gtk-Message: 16:51:13.671: Failed to load module "xapp-gtk3-module"
                  Gtk-Message: 16:51:13.759: Failed to load module "canberra-gtk-module"
                  Gtk-Message: 16:51:13.764: Failed to load module "canberra-gtk-module"
                  info: Welcome to the UBports Installer version 0.9.6-beta!
                  WARNING: Kernel has no file descriptor comparison support: Operation not permitted
                  info: device detected: FP3
                  info: Installing Ubuntu Touch on your Fairphone 3/3+ (FP3)
                  info: configuring...
                  info: settings: {"bootstrap":false,"channel":"16.04/arm64/android9/stable"}
                  [4703:0824/165134.563240:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
                  [4703:0824/165134.574091:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
                  [4703:0824/165147.740475:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
                  info: Good bye!
                  warn: lost connection to device
                  ^[[Apicrard@mobile:~$ ubports-installer 
                  Gtk-Message: 16:52:47.539: Failed to load module "xapp-gtk3-module"
                  Gtk-Message: 16:52:47.599: Failed to load module "canberra-gtk-module"
                  Gtk-Message: 16:52:47.601: Failed to load module "canberra-gtk-module"
                  info: Welcome to the UBports Installer version 0.9.6-beta!
                  WARNING: Kernel has no file descriptor comparison support: Operation not permitted
                  info: device detected: FP3
                  info: Installing Ubuntu Touch on your Fairphone 3/3+ (FP3)
                  info: configuring...
                  info: settings: {"bootstrap":true,"wipe":true,"channel":"16.04/arm64/android9/stable"}
                  [5022:0824/165258.116226:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
                  [5022:0824/165258.120067:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
                  [5022:0824/165259.903712:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
                  
                  

                  after the first try in the middle of the code I went on to the recovery which showed me this screen like this:
                  alt text

                  and the installer waited for a adb .. but nothing found

                  so after a second try:
                  Bildschirmfoto von 2022-08-24 16-55-11.png
                  I dont know what to do now, it again looks like it doesnt work on...
                  I went on, and I got a :
                  Can't load Android system. You continue to get this message, factory data reset erase a device

                  and now ?

                  Sorry

                  Fairphone 3+

                  P 1 Reply Last reply Reply Quote 0
                  • P Offline
                    picrard @picrard
                    last edited by

                    @Luksus

                    now I'm again in this UBports Recovery:
                    it shows me

                    Reboot
                    Factory reset
                    Advanced

                    the installer on the PC shows:
                    Bildschirmfoto von 2022-08-24 17-09-17.png

                    Fairphone 3+

                    P 1 Reply Last reply Reply Quote 0
                    • P Offline
                      picrard @picrard
                      last edited by

                      sorry for my post at the bottom on the phone it shows:

                      Halium 9 Slot b

                      do i have to change via fastboot to slot a ??

                      picrard@mobile:~$ fastboot getvar current-slot
                      current-slot: b
                      Finished. Total time: 0.007s
                      picrard@mobile:~$ fastboot --set-active=a
                      Setting current slot to 'a'                        OKAY [  0.022s]
                      Finished. Total time: 0.030s
                      picrard@mobile:~$ fastboot getvar current-slot
                      current-slot: a
                      Finished. Total time: 0.004s
                      
                      

                      but it does not work, or do I have to install again once again?

                      Fairphone 3+

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        picrard
                        last edited by picrard

                        o.k., I think there was a problem with this Debian distro ?!?!

                        I have instead used an other computer with an older distro,
                        using the *.deb package on it.
                        On this one here I've used the snap package.

                        The computer with the *.deb package found the phone directly and installed all packages with response in the installer and in the terminal, now I have Ubuntu on my phone.

                        Thank you, will now test first then I maybe have to install the halium.....

                        Thank you

                        Fairphone 3+

                        LuksusL 1 Reply Last reply Reply Quote 0
                        • LuksusL Offline
                          Luksus @picrard
                          last edited by

                          @picrard great, thanks for the response.
                          To make it complete:
                          If your phone was showing the recovery, and the installer tried to push files via adb, but did nothing, it was clear that obviously something with your usb/adb to pc connection was wrong.

                          Now I would say it was the adb-toold package of your debian.

                          Have fun 🙂

                          Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                          P 1 Reply Last reply Reply Quote 0
                          • P Offline
                            picrard @Luksus
                            last edited by picrard

                            @luksus yep it worked, and has automatically updated to halium after installation and next reboot...

                            now I have another problem, maybe I have to reinstall ubports again, maybe I have killed it, because I wanted to install an Android emulation but insted of installing Waydroid I've installed Anbox, wich seems to me very outdated right?

                            And I maybe also have killed the system because I did the

                            apt update
                            apt upgrade
                            

                            ... :astonished_face:

                            it's now not possible for me to remove anbox,

                            apt remove anbox
                            

                            hasn't worked...

                            So I think it's maybe better to reinstal ubports and after it installing "Waydroid" with the
                            "Waydroid Helper"

                            ...is'nt it possible to install programs via apt ?

                            Fairphone 3+

                            LuksusL 1 Reply Last reply Reply Quote 0
                            • LuksusL Offline
                              Luksus @picrard
                              last edited by Luksus

                              @picrard yes, just reinstall using ubports installer. It is not needed to wipe data again. Bootstrap option is not neccesary too.

                              Then just run waydroidhelper again.

                              You can install things using apt, but it is not recommended and therefor not officially supported.
                              You would need to make the rootfs writeable for such things... I think there are enough topics about it here in the forum.

                              And never ever use apt upgrade!

                              Devices: BQ e4.5, Fairphone 2, Fairphone 3, Lenovo X605F, Pinephone, Moto Z2 Force, OnePlus5T

                              P 1 Reply Last reply Reply Quote 0
                              • P Offline
                                picrard @Luksus
                                last edited by

                                I also had to wipe the whole data, without was maybe not enough, because I think that Anbox has to be completely deleted on the phone, without wiping my whole data Anbox was still on the phone, and I still wasn't able to start Waydroid....

                                After starting a completely new installation I was able to start the Waydroid after using the Waydroid installer from the AppStore...

                                ... now I must try to install something which cooperates with google, maybe Gmicro(Or, what was the name using in /e/ ???)
                                because my banking software needs connection to google 😞

                                and Waydroid doesn't cooperate with WIFI or Bluetooth, right ?

                                But many thank 👍

                                Fairphone 3+

                                LakotaubpL 1 Reply Last reply Reply Quote 0
                                • LakotaubpL Offline
                                  Lakotaubp @picrard
                                  last edited by

                                  @picrard The instructions for allowing G apps are in here https://forums.ubports.com/topic/5907/open-ubuntu-touch-to-all-android-applications/115 along with which other services need to be activated.

                                  1 Reply Last reply Reply Quote 2
                                  • P Offline
                                    picrard
                                    last edited by

                                    @lakotaubp many thanks, that worked for me ... great .. have now installed the microG, workes great, I think maybe better than on /e/...

                                    Fairphone 3+

                                    1 Reply Last reply Reply Quote 1
                                    • P picrard marked this topic as a question on
                                    • P picrard has marked this topic as solved on
                                    • First post
                                      Last post