Xiaomi Poco F1 (Beryllium)

  • This is a port of Ubuntu Touch to Xiaomi Poco F1 (Beryllium).

    Sources: https://github.com/ubports-beryllium
    Kernel: https://github.com/ubports-beryllium/android_kernel_xiaomi_sdm845
    Device: https://github.com/ubports-beryllium/android_device_xiaomi_beryllium
    Halium: https://github.com/ubports-beryllium/local_manifests/blob/master/roomservice.xml

    What Works

    • Wifi
    • Bluetooth
    • Mobile Data
    • Calls
    • Audio
    • GPS
    • Fingerprint
    • Sensors

    What Doesn't Work Properly

    • Dual Sim usage. Sometimes calls on sim 1 crash with dual sims. Best config is a single sim on slot 2.
    • The wifi driver doesnt go into sleep mode leading to battery drain when left on for a long time.
    • Overall Reliability. This is an early/initial effort to run linux on Poco F1. Expect lot of bugs.

    You can track the overall porting status here : https://github.com/ubports-beryllium/projectmanagement/issues/20

    Requires Unlocked Bootloader and Custom Recovery (TWRP recommended). Backup your files. We will be doing a clean installation.

    1. Wipe Dalvik/ART Cache, Cache, System, Data.
    2. Download Android Pie firmware V11.0.5.0 from here and install it from twrp.
    3. Download and install Lineage-16.0 (Pie) from twrp.
    4. After installing lineageos, FORMAT DATA from twrp. (Your Internal Storage will be wiped)
    5. Download the latest UBports GSI image from here and copy it to your device and install the zip file from twrp.
    6. Download the latest halium-boot image from here
    7. You can copy it to device, and use "Install Image" option in twrp to install the halium-boot.img to the Boot partition.
      You can use your computer to flash the halium boot image using fastboot.
    8. Reboot to the system. Ubuntu should boot.
    9. Both the default username and password is "phablet". You can change it later from terminal using passwd command as in linux os.
    10. To install the proper camera app with fix, open the terminal app in the phone
      OR connect your phone to the computer with USB and ssh phablet@
      and run the following commands (Internet Required)
      wget https://static.peat-network.xyz/junk/ubports/com.ubuntu.camera_3.1.2+gstdroid3_armhf.click
      pkcon install-local --allow-untrusted com.ubuntu.camera_3.1.2+gstdroid3_armhf.click

    Thats it!

    Issues/Bug Reports
    Feel free to report issues here: Github. Do attach the below logs for debugging:
    kernel log:

    cat /var/log/syslog

    sudo -s
    LD_LIBRARY_PATH=/system/lib64 lxc-attach -e -n android -- /system/bin/logcat

    Hack, Have Fun and Peace! 🙂

  • @joel - Thanks so much for this!
    What is the current status for camera, camera flash/zoom, torch, and video encoding/decoding for the F1?

    Best regards,
    Steve Berson

  • @joel Thank you very much! Works great!

    @TotalSonic said in Xiaomi Poco F1 (Beryllium):

    What is the current status for camera, camera flash/zoom, torch, and video encoding/decoding for the F1?

    Camera works, recording videos works, flash works, torch works. Haven't tried playing local video files other than taken with camera, but youtube in Morph works.

Log in to reply