[ROM][UBports] Ubuntu Touch for Redmi Note 4X

Search This thread


Senior Member
Jan 17, 2020


Ubuntu Touch

First things first, this rom is not android based and this build is in pre-alpha stage, in short it's not meant to be your daily driver, you may face many bugs..

Ubuntu Touch (also known as Ubuntu Phone) is a mobile version of the Ubuntu operating system that was originally developed by Canonical Ltd. and is now being developed by the UBports community.

#include <std_disclaimer.h>

* Your warranty is now void.
* We are 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 us for messing up your device, we will laugh at you. Hard & a lot.


[URL] https://github.com/ubports/porting-notes/wiki/Xiaomi-Redmi-Note-4(X)-(xiaomi-mido)[/URL]


In the beginning I would like to thank:

Ubports community
LineageOS community




Pre-Alpha Release Version 1.0

Download link: https://www.mediafire.com/file/w6qccgtubcc7uq5/Ubuntu-Touch-mido(Pre-Alpha).zip/file

Pre-Alpha Release
Version 1.1

Download link: http://www.mediafire.com/file/cgyqxk6wgy60yhz/Ubuntu-Touch-mido%28Pre-Alpha_V1.1%29.zip/file

Alpha Release
Version 1.0

Download link: http://www.mediafire.com/file/dj68d53sg0loprz/Ubuntu-Touch-mido%28Alpha_V1.0%29.zip/file

Alpha Release
Version 1.1

Download link: https://www.mediafire.com/file/52vgjns7dktx7if/Ubuntu-Touch-mido(Alpha_V1.1).zip/file


WIFI is fixed
Bluetooth is fixed
Tethering is fixed
GPS is fixed
Media sound is fixed

Calls issue is fixed
Scaling is fixed
Power button bug fixed

Camera is fixed (only snapshots no video)
Anbox is fixed (Instructions https://github.com/ubports-mido/android_kernel_xiaomi_msm8953/pull/2)
Alarm is fixed
Loudspeaker in calls bug is fixed
Time keeping between reboots is fixed
And many more :)....

Temporary Fix for torch
Media decoding for videoplay (To fix this, open terminal and run : sudo mount -o remount,rw / and then
enter password, default it is "a" without quotes. Now run sudo apt update and
finally run sudo apt install gstreamer1.0-libav, enter Y upon prompt. Reboot and
open video from mediaplayer app)

More fixes and versions upcoming:D
Upcoming Fixes And Features


I couldn't add the screens directly as there were some scaling issues, please bear with me :)











Note: The reason I didn't fix these and post the ROM was because of demand by some users to try out the ROM, these issues will be fixed in the later builds ;)


It is STRONGLY recommended to fully wipe your device before flashing and please avoid restoring system apps and system data with Titanium Backup (or with any backup/restore app) as this can cause stability issues that are very hard to debug, restoring regular apps is fine though.
If you believe you know what you're doing - then fine, go ahead, but please don't complain if you experience any strange behavior.

How to flash for the first time:
(Again: Don't do it if you don't know!)

1. Boot to recovery (TWRP recommended).
2. Wipe the System, Cache, and Data (and format the data partition!).
3. Download the ROM and transfer it to your device.
4. Flash the ROM Zipfile.
5. Reboot your device.
6. A password prompt may come once its started and the password is "a" , you can change the password using the terminal, typing "passwd" and change the password (as in any Linux system)



[Sources link at the bottom of the above page]

XDA:DevDB Information
Ubports-Mido, ROM for the Xiaomi Redmi Note 4

gopikrishnanrmg, jodev
Source Code: https://github.com/ubports-mido

ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.1.x
Based On: Lineage OS

Version Information

Created 2020-03-20
Last Updated 2020-06-20
Last edited:


Senior Member
try to install. but get error on mounting data partition even seems its mounted . try official latest TWRP,redmwolf and orange fox. same problem.
any advices?
btw, im comig from PE android 10. now device unable too boot. only twrp and fastboot
Last edited:


Senior Member
Jan 17, 2020
try to install. but get error on mounting data partition even seems its mounted . try official latest TWRP,redmwolf and orange fox. same problem.
any advices?
btw, im comig from PE android 10. now device unable too boot. only twrp and fastboot
It will show the error about data partition and also show no OS installed, did you try to reboot after flashing? Also do format and wipe system, data, dalvik and cache (not just wipe). I used twrp. The errors are normal, It should boot to Ubuntu touch
Last edited:


Mar 25, 2020
Thanks for the port bro! It works well!

However, when i compiled your code from 'ubports-mido' (Dev Branch). I am not able to boot. It crashes once and then on reboot, it gets stuck at ubuntu loading logo. May I kindly know which branch you use for device, kernel and vendor? Any other specific instructions to build?

I would love to contribute!

In between, the device gets mis-recognized as desktop, instead of handset. Because a configuration file in '/etc/ubuntu-touch-session.d/mido.conf' is missing. Creating it with following values:
fixes the display scaling issues.

You can also integrate this in the ubuntu folder in device tree itself to fix the issue. Maybe I can create a pull request?

Last, Where can we create issue and track them? It would be nice if you could enable Github Issues for this project 'ubports-mido/android_device_xiaomi_mido' maybe?


Top Liked Posts