Fairphone 3 (FP3) Port
- 
 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.SourcesKernel: https://github.com/luksus42/android_kernel_fairphone_sdm632 
 Build Toolchain: https://gitlab.com/ubports/community-ports/android9/fairphone-3/fairphone-fp3Latest Builds (Download):StatusWorking: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: EarphonesWorking 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 chargingNot tested:Endurance: No reboot needed for 1 week 
 Misc: Reset to factory defaultsHow to flashPrepare- 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):
 Flash- 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.
- If your phone is running with android 10, flash the android 9 vendor image with: $ fastboot flash vendor vendor.img
- 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
 
- if fastboot throws the error: 
- 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
 
- if flashing of system image does break before finished (file data too large), try: 
- Wipe your data partition with command: $ fastboot -w
- reboot the system.
 TroubleshootingIn 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
 
- 
 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 ?
- 
 @purplecroc89 
 Uh, perhaps I did forget to merge my last changes?!
 Did you take the artifacts from anbox branch or master?
- 
 @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.
- 
 @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
- 
 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/LinuxMy hope was, with the newest images of the anbox branch, I can try out anbox.  But the status tell me: But the status tell me:$ anbox-tool status Kernel: NOT OK System: NOT FOUND Enabled: NO Running: NOSo, am I doing sth wrong or does the kernel still do not support anbox?  Kind regards, 
 Andreas
- 
 @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.
- 
 I think it is better to keep this thread clean... 
 So please just open a new thread for specific issues. Thanks.
- 
 @luksus Ok, thanks, i will try this  
- 
 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. 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.  
- 
 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. Many thanks for that.
 
- 
 @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.
- 
 @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
- 
 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. 
- 
 @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? 
- 
 @luksus hello, 
 Indeed, I have the fp3+... So everything is normal.
- 
 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. 
- 
 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?
- 
 @rd440 Hi, looks like I forgot to mention, that you have to do another repo syncafter 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. 
- 
 Hi, 
 I just created an initial post for my FP3+ Port.
 Look here: https://forums.ubports.com/post/48578.
