[ROM][UBPorts][perseus] Ubuntu Touch

Search This thread

xperseus

Senior Member
Aug 31, 2010
149
28
Phnom Penh
Xiaomi Mi 5
Xiaomi Mi A1
photo_2021-06-02_04-46-54 (2).png


Ubuntu Touch for Xiaomi Mi Mix 3
With Support for OTA Updates


DISCLAIMER:
Code:
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

REQUIRED:
- Unlocked bootloader
- Enable USB Debugging

INSTALLATION:
Download official installer from ubuntu-touch.io and follow on-screen instructions.

KNOWN BUGS:
Automatic brightness
Proximity sensors
GPS
Others: Please test and report

BUGS STATUS:
See here.

CHANGELOGS:
01 July 2021:

- Added ubports installer support (one-click installer)
- Fixed call audio
- Added Anbox 10 early support

22 June 2021:
- Added OTA support
- Fixed audio
- Fixed fingerprint
- Fixed MTP and ADB
- Fixed charging icon

27 May 2021:
- Switched from GSI to manual build using UBPorts CI
- Battery icon doesn't show as charge during charging, but it is charging fine
- Anbox is now working

Build info:
Build author:
xperseus
Repo: https://gitlab.com/ubports/community-ports/android9/xiaomi-mi-mix-3

References:
Ubports' CI Guide:
https://github.com/ubports/porting-notes/wiki/GitLab-CI-builds-for-devices-based-on-halium_arm64-(Halium-9)
Ubports' Documentation: https://docs.ubports.com/en/latest/
Halium Documentation: https://docs.halium.org/en/latest/index.html
Common tree: https://github.com/LineageOS/android_device_xiaomi_sdm845-common/tree/lineage-16.0
Device tree: https://github.com/LineageOS/android_device_xiaomi_perseus/tree/lineage-16.0
Kernel source: https://github.com/LineageOS/android_kernel_xiaomi_sdm845/tree/lineage-16.0

Credit to UBPorts & Halium team for support and guides. Specially thanks to NotKit.

Created 20 May 2021
Last Updated 01 July 2021
 
Last edited:
  • Like
Reactions: Azev

xperseus

Senior Member
Aug 31, 2010
149
28
Phnom Penh
Xiaomi Mi 5
Xiaomi Mi A1
Screenshots
 

Attachments

  • 6.png
    6.png
    405.3 KB · Views: 891
  • 7.png
    7.png
    129.4 KB · Views: 911
  • 1.png
    1.png
    430.5 KB · Views: 837
  • 2.png
    2.png
    273.8 KB · Views: 823
  • 3.png
    3.png
    89.5 KB · Views: 748
  • 4.png
    4.png
    173.8 KB · Views: 725
  • 5.png
    5.png
    181.7 KB · Views: 692
  • 8.png
    8.png
    136.4 KB · Views: 911
  • Like
Reactions: Azev

luigi024

Member
Jul 23, 2015
11
1
Hi,
No matter how hard I try I cannot get past the MI logo.
I tried several twrp img (not every, and on most recent ones I get a treble zip compatibility error btw, seems normal tho)

I wonder if I missing something obvious...
 

xN&5NP

Member
Dec 26, 2017
12
1
Xiaomi Mi Mix 3
Finally the possibility of Linux on this phone I waited for this day so long thank you so much for your work. Sadly Im unable to boot. On what TWRP Version are you? The current one wouldnt work with any Miui Android 9 version i tried. Tried flashing via TWRP / ADB both end in stuck Mi Logo.
 

xN&5NP

Member
Dec 26, 2017
12
1
Xiaomi Mi Mix 3
Finally the possibility of Linux on this phone I waited for this day so long thank you so much for your work. Sadly Im unable to boot. On what TWRP Version are you? The current one wouldnt work with any Miui 10 / Android 9 version i tried. Tried flashing via TWRP / ADB both end in stuck Mi Logo.
What Rom did you have previously installed? And did you do a full wipe / format before installing Miui 9?
 

xperseus

Senior Member
Aug 31, 2010
149
28
Phnom Penh
Xiaomi Mi 5
Xiaomi Mi A1

xperseus

Senior Member
Aug 31, 2010
149
28
Phnom Penh
Xiaomi Mi 5
Xiaomi Mi A1
What Rom did you have previously installed? And did you do a full wipe / format before installing Miui 9?
Please follow this steps:


1. Install Android 9 MIUI as base (I used CN 9.2.15) < Mi Flash fastboot as I was on android 11
2. Install and boot to TWRP < use TWRP 3.2.3, don't use the latest version
3. Download and flash Ubuntu Touch GSI v10 from here in TWRP < flash ubports GSI
4. Flash halium-boot.img attached in this post via fastboot/TWRP. < flash my halium-boot.img
5. Download and flash Halium-boot_no_console_patch from here in TWRP. < THIS IS A MUST, otherwise bootloop
6. Wipe data and reboot.

Note: u will lose all data in step 1, pls backup
 

xperseus

Senior Member
Aug 31, 2010
149
28
Phnom Penh
Xiaomi Mi 5
Xiaomi Mi A1
Hi,
No matter how hard I try I cannot get past the MI logo.
I tried several twrp img (not every, and on most recent ones I get a treble zip compatibility error btw, seems normal tho)

I wonder if I missing something obvious...
Did you download and flash Halium-boot_no_console_patch as mentioned in op, this is very important to get out of bootloop.
 

luigi024

Member
Jul 23, 2015
11
1
Yes I flashed Halium-boot_no_console_patch each time I tried to boot, but it wasn't even booting, only MI logo...
I use the recovery package to reflash android 9, it may have caused the issue... Gonna wait a few more hours to download the fastboot package ! And while waiting I'll try just with this TWRP version if it works !
 

xperseus

Senior Member
Aug 31, 2010
149
28
Phnom Penh
Xiaomi Mi 5
Xiaomi Mi A1
Yes I flashed Halium-boot_no_console_patch each time I tried to boot, but it wasn't even booting, only MI logo...
I use the recovery package to reflash android 9, it may have caused the issue... Gonna wait a few more hours to download the fastboot package ! And while waiting I'll try just with this TWRP version if it works !
Yes pls do that, and let me know.. i did it a few time, always working from my side. I think u might need to fastboot flash CN9.2.15 like me.
 

chromanju

Member
Dec 28, 2019
10
0
Please follow this steps:


1. Install Android 9 MIUI as base (I used CN 9.2.15) < Mi Flash fastboot as I was on android 11
2. Install and boot to TWRP < use TWRP 3.2.3, don't use the latest version
3. Download and flash Ubuntu Touch GSI v10 from here in TWRP < flash ubports GSI
4. Flash halium-boot.img attached in this post via fastboot/TWRP. < flash my halium-boot.img
5. Download and flash Halium-boot_no_console_patch from here in TWRP. < THIS IS A MUST, otherwise bootloop
6. Wipe data and reboot.

Note: u will lose all data in step 1, pls backup
Where do I find halium-boot.img as described in 4.? I'm obviously blind. Thanks in advance.
 

xperseus

Senior Member
Aug 31, 2010
149
28
Phnom Penh
Xiaomi Mi 5
Xiaomi Mi A1
  • Like
Reactions: chromanju

Top Liked Posts