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

    Fairphone 3 (FP3) Port

    Scheduled Pinned Locked Moved Fairphone 3
    42 Posts 9 Posters 15.1k Views 5 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.
      • LuksusL Offline
        Luksus
        last edited by Luksus

        For Fairphone 3+ please use the installer or follow this thread!

        This is a port for the Fairphone 3.

        It is required that the device is using Android 9, otherwise it must be downgraded first: see Troubleshooting section.
        Downgrading seems not to be necessary. Only the vendor partition should be replaced with the stock Android 9 vendor image.

        Sources

        Kernel: https://github.com/luksus42/android_kernel_fairphone_sdm632
        Build Toolchain: https://gitlab.com/ubports/community-ports/android9/fairphone-3/fairphone-fp3

        Latest Builds (Download):

        • stable (OTA-18)
        • release candidate
        • devel

        Status

        Working:

        Actors: Manual brightness
        Actors: Notification LED
        Actors: Torchlight (with uTorch app)
        Actors: Vibration (partly, not working on chat-messengers for example)
        Camera: Photo
        Camera: Video
        Camera: Switch between back and front camera
        Camera: Flashlight
        Cellular: Incoming, outgoing calls
        Cellular: Data connection
        Cellular: Carrier info, signal strength
        Cellular: PIN unlock
        Cellular: Voice in calls
        Cellular: SMS in, out
        Cellular: MMS in, out
        Cellular: Change audio routings
        Endurance: Battery lifetime > 24h from 100%
        GPU: Boot into UI
        GPU: Hardware video decoding
        Misc: AppArmor patches applied to kernel (Kernel 4.9)
        Misc: Battery percentage
        Misc: Online charging
        Misc: Shutdown / Reboot
        Misc: SD card detection and access
        Misc: RTC time is used after reboot
        Misc: Recovery image + OTA Updates
        Misc: Anbox patches applied to kernel
        Network: Bluetooth
        Network: WiFi
        Network: Flight mode
        Network: Hotspot
        Sensors: Fingerprint reader
        Sensors: Proximity
        Sensors: Rotation
        Sensors: Touchscreen
        Sensors: GPS
        Sensors: Automatic brightness
        Sound: Loudspeaker
        Sound: Microphone
        Sound: Volume control
        Sound: Earphones

        Working with additional steps:

        USB: MTP access (partly working: the ISODrive App works, but switching back to SSH dows not work)

        Not working:

        USB: ADB access
        USB: External monitor - only for devices that support it
        Misc: Offline charging

        Not tested:

        Endurance: No reboot needed for 1 week
        Misc: Reset to factory defaults

        How to flash

        Prepare

        • Unlock your phone, see: https://www.fairphone.com/en/bootloader-unlocking-code-for-fairphone-3/
        • You will need the android tools "fastboot" and "adb".
        • Download one of the the latest "flashable" artifacts zip, which contains boot.img and system.img (stable is recommended):
          • stable
          • release candidate
          • devel

        Flash

        1. Boot the phone into bootloader/fastboot by pressing power + volume-down buttons until it reboots. Or just reboot and click a volume button within 5 seconds and select the bootloader.
        2. If your phone is running with android 10, flash the android 9 vendor image with: $ fastboot flash vendor vendor.img
        3. Flash boot image: $ fastboot flash boot boot.img
          • if fastboot throws the error: Couldn't parse partition size '0x' try the following command: $ fastboot flash:raw boot boot.img
        4. Flash system image: $ fastboot flash system system.img
          • if flashing of system image does break before finished (file data too large), try: $ fastboot -S 300M flash system system.img
        5. Wipe your data partition with command: $ fastboot -w
        6. reboot the system.

        Troubleshooting

        In case something wents wrong, you should be prepared to flash back a working android image.

        • Stockimage (prepared to not wipe your data while flashing): https://www.androidfilehost.com/?fid=7161016148664802137

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

        1 Reply Last reply Reply Quote 6
        • P Offline
          Purplecroc89
          last edited by

          Hi ! Firstly, good job for your work, awesome to finally have UT on FP3. Thanks πŸ™‚
          I have downloaded the last artifacts.zip and flash my FP3 and everything work well. But, when i update my phone to the last version offered of UbuntuTouch (version 91) and reboot my FP3 to done the update, the phone boot automatically on recovery.
          Have seen on ubuntu_updater.log this message "/sbin/system-image-upgrader[284]: SYSTEM PARTITION: not found".
          someone knows how to fix this problem ?

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

            @purplecroc89
            Uh, perhaps I did forget to merge my last changes?!
            Did you take the artifacts from anbox branch or master?

            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
              Purplecroc89 @Luksus
              last edited by Purplecroc89

              @luksus
              The artifacts from the master branch. I will retry to download and flash the last one from the master branch and see what happen.

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

                @purplecroc89 please try the anbox branch if you did not yet. Perhaps I need to trigger a new build first for the master branch...

                Edit @Purplecroc89 :

                So I just took a look and encountered, that theoretically the master branch should have worked. On the anbox branch my latest fixes were missing.
                Now I updated it and did a new build and for me the recovery is (still) working.

                Please try this boot-image (system should not matter, regarding recovery):
                https://gitlab.com/ubports/community-ports/android9/fairphone-3/fairphone-fp3/-/jobs/968159027/artifacts/raw/out/boot.img

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

                P 1 Reply Last reply Reply Quote 1
                • A Offline
                  anditor
                  last edited by

                  Hi!

                  I flashed the newest build and system image of the anbox branch. But the kernel is still from December 30.

                  Linux ubuntu-phablet 4.9.112-perf+ #1 SMP PREEMPT Wed Dec 30 13:19:35 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
                  

                  My hope was, with the newest images of the anbox branch, I can try out anbox. πŸ™‚ But the status tell me:

                  $ anbox-tool status
                  Kernel: NOT OK
                  System: NOT FOUND
                  Enabled: NO
                  Running: NO
                  

                  So, am I doing sth wrong or does the kernel still do not support anbox? πŸ™‚

                  Kind regards,
                  Andreas

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

                    @anditor Hm no, that seems not right:
                    If this kernel would be able to run anbox, there would be displayed "Kernel: OK".

                    BUT: Even if it was "OK", it is currently not possible to do anbox-tool install, because it says, that the installation is not supported on arm64 devices yet. So this is no priority now, I just prepared the kernel, in case we will be ableto install anbox some time in the future.

                    Back to the current build: I also installed the latest one and I have the same issues as you described. It seems that I messed something up.
                    I first need to take a look and will inform you, if a new build is testable.

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

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

                      I think it is better to keep this thread clean...
                      So please just open a new thread for specific issues. Thanks.

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

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

                        @luksus Ok, thanks, i will try this πŸ™‚

                        1 Reply Last reply Reply Quote 1
                        • A Offline
                          anditor @Luksus
                          last edited by

                          Thanks for feedback @luksus . The build from last night was still the December Kernel. πŸ™‚ Well, I will wait until you tell me/us there is a fixed one.

                          because it says, that the installation is not supported on arm64 devices yet

                          Ok thats not what I expected to hear. But thanks for clarify it. And of course, I can understand. There are still more important issues have to fix first.

                          Thanks for you work and time to port UbuntuTouch to FP3. πŸ™‚

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            louisoquinn
                            last edited by

                            Hello Luksus, hello everyone πŸ™‚
                            I tried to flash Ubuntu Touch many times, using different artifacts, but it's not working. Maybe I missed something. Here is the steps I did :

                            • Fairphone 3 unlocked
                            • Fastboot OK
                            • Flashing Android 9 stock image successful (I boot Android 9 to check, and it's working)
                            • Then, I went to fastboot again, and flashed both boot.img and system.img from different artifacts
                            • When I reboot, there is Fairphone bootscreen with "powered by android" on the bottom, and nothing happen.
                              I hope you can help me. It's been years I follow Ubports and I'm so thankfull you work on Fairphone 3 port Luksus πŸ˜„ Many thanks for that.
                            LuksusL 1 Reply Last reply Reply Quote 0
                            • LuksusL Offline
                              Luksus @louisoquinn
                              last edited by Luksus

                              @louisoquinn Great, that you give it a try.
                              But I fear you are hitting the same dead end like there:
                              https://forums.ubports.com/topic/5662/bug-two-sim-cards-only-one-is-working-perfect/53
                              (the thread-title does not fit anymore though).

                              And I have no solution yet.
                              Honestly my hope is, that some android/flashing-experienced user, who has the same issue could investigate this further... :crossed_fingers:
                              Because I cannot reproduce it on my Fairphone.

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

                              L 1 Reply Last reply Reply Quote 0
                              • L Offline
                                louisoquinn @Luksus
                                last edited by

                                @luksus Alright, yeah I saw that post 😞
                                Even with older artifacts it seems that it's not working.
                                Let me know if I can do anything to help you by doing some tests (I'm not a dev, just a fan), and I hope these issues will be fixed soon

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  Altor
                                  last edited by

                                  Hello,
                                  Thank you for your port.
                                  I succeed to install the last version of the port without difficulty (master artifact from 4 days ago).

                                  I have one issue, the sound doesn't work when calling or when looking at a youtube video. I know that at the top of the installation there is a warning :Β " audio-module do currently not work with this port" but in the working section, the sound seems to work (Cellular: Incoming, outgoing calls is working, Sound : microphone/volume control work…)

                                  When I press the volume up and down, nothing happen.

                                  So, does the sound work on this port ?

                                  If necessary, IΒ could open a new post.

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

                                    @altor it is not working for the new FP3+ modules.
                                    The working section therefor depends on the "older" FP3 model.

                                    Do you have an FP3+ or FP3 with newer modules?

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

                                    A 1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      Altor @Luksus
                                      last edited by

                                      @luksus hello,
                                      Indeed, I have the fp3+... So everything is normal.

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

                                        Small Update:

                                        Since today's update, automatic display brightness should work.

                                        Either install latest OTA Update (only if it is smaller than 500MB) or flash one of the lates builds, see first post in this topic.

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

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          rd440
                                          last edited by

                                          I am trying to build for FP3 using the instructions at
                                          https://forums.ubports.com/topic/4964/fairphone-3-fp3
                                          I am stuck at this line, as the directory fairphone/sdm632 does not exist.
                                          "missing exfat modules: cd into kernel/fairphone/sdm632 and do: git submodule update --init --recursive"
                                          Under ~/halium/kernel, I only have configs and test.
                                          Did I miss any prerequisite?

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

                                            @rd440 Hi, looks like I forgot to mention, that you have to do another repo sync after adding the manifest file. Then the sources, given in the manifest, will be downloaded.
                                            For further questions regarding building, please start a new topic, thanks. πŸ˜‰

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

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

                                              Hi,
                                              I just created an initial post for my FP3+ Port.
                                              Look here: https://forums.ubports.com/post/48578.

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

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post