<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Xiaomi on Ivon's Blog</title><link>https://ivonblog.com/en-us/tags/xiaomi/</link><description>Recent content in Xiaomi on Ivon's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><managingEditor>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</managingEditor><webMaster>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</webMaster><copyright>You are welcome to share articles from Ivon's blog (ivonblog.com). Please cite the source article URL when sharing. All article content is licensed under a Creative Commons Attribution-ShareAlike 4.0 license, unless otherwise stated. For commercial use, please contact me first.</copyright><lastBuildDate>Mon, 03 Apr 2023 18:00:00 +0800</lastBuildDate><atom:link href="https://ivonblog.com/en-us/tags/xiaomi/index.xml" rel="self" type="application/rss+xml"/><follow_challenge><feedId>56005902658351104</feedId><userId>1132431067563556864</userId></follow_challenge><item><title>Debian for Phones: Installing Mobian on the Xiaomi Pocophone F1</title><link>https://ivonblog.com/en-us/posts/xiaomi-poco-f1-mobian/</link><pubDate>Mon, 03 Apr 2023 18:00:00 +0800</pubDate><author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author><guid>https://ivonblog.com/en-us/posts/xiaomi-poco-f1-mobian/</guid><description>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;What is Mobian? It is a phone Linux system based on Debian, developed from the Debian Testing branch, which means Debian 12 Bookworm.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/xiaomi-poco-f1-mobian/images/DSC-0074.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;Mobian was originally developed only for Pine64 devices. Later, it added support for several Android phones: OnePlus 6T, Xiaomi Pocophone F1, Xiaomi Mix 2S, Fairphone 4, and SHIFT 6mq. I think this has something to do with the development of &lt;a href="https://ivonblog.com/en-us/posts/postmarketos-general-installation/" target="_blank" rel="noreferrer"&gt;postmarketOS&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;My phone is a Xiaomi Poco F1. As of April 2023, most hardware functions work normally under Mobian, but the camera and OTG still do not work.&lt;/p&gt;
&lt;p&gt;Hands-on video:&lt;/p&gt;</description><content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;What is Mobian? It is a phone Linux system based on Debian, developed from the Debian Testing branch, which means Debian 12 Bookworm.&lt;/p&gt;
&lt;p&gt;&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://static.ivonblog.com/posts/xiaomi-poco-f1-mobian/images/DSC-0074.webp"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;Mobian was originally developed only for Pine64 devices. Later, it added support for several Android phones: OnePlus 6T, Xiaomi Pocophone F1, Xiaomi Mix 2S, Fairphone 4, and SHIFT 6mq. I think this has something to do with the development of &lt;a href="https://ivonblog.com/en-us/posts/postmarketos-general-installation/" target="_blank" rel="noreferrer"&gt;postmarketOS&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;My phone is a Xiaomi Poco F1. As of April 2023, most hardware functions work normally under Mobian, but the camera and OTG still do not work.&lt;/p&gt;
&lt;p&gt;Hands-on video:&lt;/p&gt;




&lt;div style="position: relative; padding-bottom: 56.25%; overflow: hidden;"&gt;
 &lt;iframe style="position: absolute; width: 100%; height: 100%;"
 src="http://www.youtube.com/embed/sDW3bcCshlw" allowfullscreen frameborder="0" loading="lazy"&gt;
 &lt;/iframe&gt;
&lt;/div&gt;

&lt;h2 class="relative group"&gt;1. Installation Process
 &lt;div id="1-installation-process" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-installation-process" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Flashing Mobian will overwrite the Android system. To restore Android, use MiFlash.&lt;/p&gt;
&lt;p&gt;First confirm that the Pocophone F1 bootloader is unlocked.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Power off the phone, then hold Power and Volume Down at the same time to enter fastboot.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;From &lt;a href="https://images.mobian-project.org/sdm845/weekly/" target="_blank" rel="noreferrer"&gt;Mobian Weekly builds&lt;/a&gt;, download the flashing file (.tar.gz) for phones with the s845 processor. Extract it. It contains boot.img for booting and rootfs.img for the system. Open a terminal in that directory.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use Fastboot to flash boot.img to the boot partition and the system partition. This Xiaomi phone also has displays made by Tianma and EBBG. Mine is Tianma, so I chose the tianma boot.img.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fastboot flash boot mobian-sdm845-phosh-20230402.boot-beryllium-tianma.img
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fastboot flash system mobian-sdm845-phosh-20230402.boot-beryllium-tianma.img&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="4"&gt;
&lt;li&gt;Next, flash rootfs.img to the userdata partition.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fastboot -S 100M flash userdata mobian-sdm845-phosh-20230402.rootfs.img&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="5"&gt;
&lt;li&gt;Erase dtbo.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fastboot erase dtbo&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="6"&gt;
&lt;li&gt;Reboot.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;fastboot reboot&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 class="relative group"&gt;2. Mobian Interface and Usage Tips
 &lt;div id="2-mobian-interface-and-usage-tips" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2-mobian-interface-and-usage-tips" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;The default account is mobian, and the password is 1234.&lt;/p&gt;
&lt;p&gt;The default interface is Phosh (based on Gnome), and the display protocol is Wayland.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The basic gesture is to tap the bottom of the screen to enter multitasking.
&lt;img src=https://static.ivonblog.com/posts/xiaomi-poco-f1-mobian/images/2022-03-24-19-32-16.webp width=200 alt="" loading="lazy"&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Tap the top of the screen to open the status bar. Landscape mode has to be toggled manually.
&lt;img src=https://static.ivonblog.com/posts/xiaomi-poco-f1-mobian/images/2022-03-24-19-33-39.webp width=200 alt="" loading="lazy"&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can switch the interface to Chinese in Settings, but most Linux phone apps are not translated, and there is no Chinese touch keyboard.
&lt;img src=https://static.ivonblog.com/posts/xiaomi-poco-f1-mobian/images/2022-03-24-19-34-33.webp width=200 alt="" loading="lazy"&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open the terminal (King Cross) and use APT commands to update packages:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt update
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt upgrade -y&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;img src=https://static.ivonblog.com/posts/xiaomi-poco-f1-mobian/images/2022-03-24-19-33-03.webp width=200 alt="" loading="lazy"&gt;
&lt;ol start="5"&gt;
&lt;li&gt;Mobian&amp;rsquo;s software sources are the Debian bookworm repositories, and Gnome Software supports installing packages directly from the repository.
&lt;img src=https://static.ivonblog.com/posts/xiaomi-poco-f1-mobian/images/2022-03-24-19-31-33.webp width=200 alt="" loading="lazy"&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After installing Flatpak, the software store can also download apps from Flathub.&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt install flatpak
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt install gnome-software-plugin-flatpak
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If you want to find other software made for Linux phones, check the &lt;a href="https://wiki.mobian-project.org/doku.php?id=apps" target="_blank" rel="noreferrer"&gt;Mobian&lt;/a&gt;, &lt;a href="https://wiki.postmarketos.org/wiki/Applications_by_category" target="_blank" rel="noreferrer"&gt;postmarketOS&lt;/a&gt;, and &lt;a href="https://plasma-mobile.org/" target="_blank" rel="noreferrer"&gt;Plasma Mobile&lt;/a&gt; wikis. They have plenty of app lists.&lt;/p&gt;
&lt;p&gt;Mobian is a Debian derivative, so there are also third-party repositories you can add to install tools made for Linux phones. Be careful, though: they can also make the phone fail to boot. Fun hobby.&lt;/p&gt;

&lt;h2 class="relative group"&gt;3. Install Waydroid to Run Android Apps
 &lt;div id="3-install-waydroid-to-run-android-apps" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#3-install-waydroid-to-run-android-apps" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Mobian is based on Debian Testing. Use this command to add Waydroid&amp;rsquo;s upstream bookworm repository and install it:&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt install curl ca-certificates -y
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;curl https://repo.waydro.id &lt;span class="p"&gt;|&lt;/span&gt; sudo bash -s bookworm
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt install waydroid -y
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; waydroid-container
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo systemctl start waydroid-container&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then refer to &lt;a href="https://ivonblog.com/posts/postmarketos-waydroid/" target="_blank" rel="noreferrer"&gt;Waydroid + postmarketOS Tutorial&lt;/a&gt;.&lt;/p&gt;

&lt;h2 class="relative group"&gt;4. Play Steam Games
 &lt;div id="4-play-steam-games" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#4-play-steam-games" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Create a chroot environment, compile Box86 + Wine, and run Windows programs. Detailed process: &lt;a href="https://ivonblog.com/en-us/posts/linux-phone-box86-steam/" target="_blank" rel="noreferrer"&gt;Play Steam Games with Box86&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But the Phosh desktop environment is not suitable for desktop apps, because Phosh treats every window as an app. It is better to &lt;a href="https://wiki.debian.org/Gnome" target="_blank" rel="noreferrer"&gt;install the GNOME desktop environment&lt;/a&gt; separately.&lt;/p&gt;

&lt;h2 class="relative group"&gt;Further Reading
 &lt;div id="further-reading" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#further-reading" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://mobian-project.org/" target="_blank" rel="noreferrer"&gt;Mobian official website&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.mobian-project.org/doku.php?id=apps" target="_blank" rel="noreferrer"&gt;Mobian WIKI&lt;/a&gt;: includes a list of commonly used apps.&lt;/li&gt;
&lt;li&gt;&lt;a href="https://droidian.org/" target="_blank" rel="noreferrer"&gt;Droidian&lt;/a&gt;: based on Mobian, uses libhybris, and tries to make Mobian run on more Android phones.&lt;/li&gt;
&lt;/ul&gt;</content:encoded><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://ivonblog.com/en-us/posts/xiaomi-poco-f1-mobian/featured.webp"/></item><item><title>First Look at Ubuntu Touch: Redmi Note 5 + Android Dual Boot</title><link>https://ivonblog.com/en-us/posts/redmi-note5-ubuntu-touch/</link><pubDate>Thu, 04 Nov 2021 18:00:00 +0800</pubDate><author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author><guid>https://ivonblog.com/en-us/posts/redmi-note5-ubuntu-touch/</guid><description>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;Ubuntu Touch aims to bring Linux to phones as a mobile operating system.&lt;/p&gt;
&lt;p&gt;After Canonical abandoned Ubuntu Touch, the Ubports community took over maintenance. Around 20 devices are officially supported, and they provide a one-click installer.&lt;/p&gt;
&lt;img src="https://i.imgur.com/jcWAoGl.png" width=200&gt;
&lt;p&gt;This Redmi Note 5 is not officially supported. It uses technology from the Halium Project, can coexist with Android, and can even install an Android emulator.&lt;/p&gt;
&lt;p&gt;Redmi Note 5 + Ubuntu touch test items:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WIFI&lt;/li&gt;
&lt;li&gt;Bluetooth&lt;/li&gt;
&lt;li&gt;4G network&lt;/li&gt;
&lt;li&gt;Flashlight&lt;/li&gt;
&lt;li&gt;Screen rotation&lt;/li&gt;
&lt;li&gt;GPS&lt;/li&gt;
&lt;li&gt;Vibration&lt;/li&gt;
&lt;li&gt;Camera&lt;/li&gt;
&lt;li&gt;Audio&lt;/li&gt;
&lt;li&gt;Fingerprint&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;1. Required Tools
 &lt;div id="1-required-tools" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-required-tools" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Phone: Redmi Note 5 (whyred), MIUI 11&lt;/p&gt;</description><content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;Ubuntu Touch aims to bring Linux to phones as a mobile operating system.&lt;/p&gt;
&lt;p&gt;After Canonical abandoned Ubuntu Touch, the Ubports community took over maintenance. Around 20 devices are officially supported, and they provide a one-click installer.&lt;/p&gt;
&lt;img src="https://i.imgur.com/jcWAoGl.png" width=200&gt;
&lt;p&gt;This Redmi Note 5 is not officially supported. It uses technology from the Halium Project, can coexist with Android, and can even install an Android emulator.&lt;/p&gt;
&lt;p&gt;Redmi Note 5 + Ubuntu touch test items:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;WIFI&lt;/li&gt;
&lt;li&gt;Bluetooth&lt;/li&gt;
&lt;li&gt;4G network&lt;/li&gt;
&lt;li&gt;Flashlight&lt;/li&gt;
&lt;li&gt;Screen rotation&lt;/li&gt;
&lt;li&gt;GPS&lt;/li&gt;
&lt;li&gt;Vibration&lt;/li&gt;
&lt;li&gt;Camera&lt;/li&gt;
&lt;li&gt;Audio&lt;/li&gt;
&lt;li&gt;Fingerprint&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;1. Required Tools
 &lt;div id="1-required-tools" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-required-tools" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Phone: Redmi Note 5 (whyred), MIUI 11&lt;/p&gt;
&lt;p&gt;Recovery: TWRP 3.5.2.&lt;/p&gt;
&lt;p&gt;ROM &amp;amp; halium-boot.img: choose one to download. Each has its own bugs, and none of them pass every test item.&lt;/p&gt;
&lt;p&gt;The version on Github has weird camera and timezone behavior: &lt;a href="https://github.com/Linux-On-Sdm6Series/Linux_manifest/releases" target="_blank" rel="noreferrer"&gt;https://github.com/Linux-On-Sdm6Series/Linux_manifest/releases&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The version built by parasparihar0 on the Ubports forum has no audio: &lt;a href="https://forums.ubports.com/topic/5128/redmi-note-5-pro-whyred" target="_blank" rel="noreferrer"&gt;https://forums.ubports.com/topic/5128/redmi-note-5-pro-whyred&lt;/a&gt;&lt;/p&gt;

&lt;h2 class="relative group"&gt;2. Installation Steps
 &lt;div id="2-installation-steps" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2-installation-steps" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Android seems to have partition encryption issues that prevent Ubuntu Touch from booting. If you run into that, you can only format the data partition and then install Ubuntu Touch.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enter TWRP Recovery and back up the boot partition.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Flash &lt;code&gt;halium-boot.img&lt;/code&gt; to the boot partition.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Flash the Ubuntu Touch system. It will be installed to the /data partition.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Boot into the Ubuntu Touch system.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After setting the language and region during first boot, enter the desktop. There will be a basic usage tutorial.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The default login account is &lt;code&gt;phablet&lt;/code&gt;, and the password is also &lt;code&gt;phablet&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;To boot back into Android, just restore the original boot.img. Github also has a zip file for completely uninstalling Ubuntu Touch.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 class="relative group"&gt;3. Applications
 &lt;div id="3-applications" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#3-applications" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;Controls: swipe inward from the right to enter multitasking mode, and swipe inward from the left to open the launcher. Swipe down from the top-right corner to open the quick settings menu.&lt;/p&gt;
&lt;p&gt;The Ubuntu Touch screenshot shortcut is pressing the volume up and volume down buttons at the same time.
&lt;img src="https://i.imgur.com/AffGowc.png" width=200&gt;&lt;/p&gt;
&lt;img src="https://i.imgur.com/fGKVZFo.png" width=200&gt;
&lt;p&gt;Lock screen.
&lt;img src="https://i.imgur.com/a27evfK.png" width=200&gt;&lt;/p&gt;
&lt;p&gt;The camera can take photos normally, but occasionally crashes.
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://i.imgur.com/zDnaiLF.png"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;Opening the terminal always requires entering the password.
&lt;img src="https://i.imgur.com/tIzKMVQ.png" width=200&gt;&lt;/p&gt;
&lt;p&gt;The built-in Morph browser is based on Chrome 77. It does not seem to have hardware acceleration, and it opens desktop websites by default.
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://i.imgur.com/uoVJmc2.png"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;Apps are downloaded from the OpenStore app store.
&lt;figure&gt;
 &lt;img
 class="my-0 rounded-md"
 loading="lazy"
 decoding="async"
 fetchpriority="low"
 alt=""
 src="https://i.imgur.com/q5gcqtp.png"
 onerror="this.onerror=null;this.src='https://ivonblog.com/images/unable-to-load-the-image-pepe.webp'"
 &gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The Godot 3D app works normally, so I tested 3D performance (this phone uses the s636 processor).
&lt;img src="https://i.imgur.com/34Csgta.png" width=200&gt;&lt;/p&gt;
&lt;p&gt;There is also a UI Tweak Tool app, which can force the system into large-screen desktop mode.&lt;/p&gt;
&lt;p&gt;In phone mode, normal Linux GUI apps cannot be opened. They have to be installed through a Libertine container.&lt;/p&gt;

&lt;h2 class="relative group"&gt;4. Notes
 &lt;div id="4-notes" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#4-notes" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;The biggest problem is that the firmware in these ROMs is unstable. Apps can start crashing as soon as they get updated.&lt;/p&gt;
&lt;p&gt;Linux programs also have to run in a container, and there are not many native apps to use.&lt;/p&gt;
&lt;p&gt;Maybe installing chroot on Android is more practical&amp;hellip;&lt;/p&gt;</content:encoded></item><item><title>Redmi Note 5 postmarketOS Performance Notes</title><link>https://ivonblog.com/en-us/posts/redmi-note5-postmarketos/</link><pubDate>Sun, 31 Oct 2021 10:03:00 +0800</pubDate><author>infoivonblog.nkfjt@aleeas.com (Ivon Huang)</author><guid>https://ivonblog.com/en-us/posts/redmi-note5-postmarketos/</guid><description>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;On December 5, 2021, I tried &lt;a href="https://ivonblog.com/en-us/posts/postmarketos-general-installation/" target="_blank" rel="noreferrer"&gt;postmarketOS&lt;/a&gt; for the first time.&lt;/p&gt;
&lt;p&gt;postmarketOS is based on Alpine Linux. It puts a real Linux system on an Android phone, similar to Ubuntu Touch. It is not chroot, not proot, and not Android. Just plain Linux.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apps that opened during testing: GIMP, LibreOffice, Firefox.&lt;/li&gt;
&lt;li&gt;Things that did not work: Wifi, audio, Bluetooth, 3D acceleration, screen rotation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This phone is not on the official recommended list. Its status is testing, which basically means it is half-dead on arrival. Just fixing hardware drivers is already enough work.&lt;/p&gt;
&lt;p&gt;The installation flow is to build a flashable package on the computer, then flash it on the phone with TWRP.&lt;/p&gt;</description><content:encoded>&lt;!-- Co-translated by ChatGPT --&gt;
&lt;p&gt;On December 5, 2021, I tried &lt;a href="https://ivonblog.com/en-us/posts/postmarketos-general-installation/" target="_blank" rel="noreferrer"&gt;postmarketOS&lt;/a&gt; for the first time.&lt;/p&gt;
&lt;p&gt;postmarketOS is based on Alpine Linux. It puts a real Linux system on an Android phone, similar to Ubuntu Touch. It is not chroot, not proot, and not Android. Just plain Linux.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apps that opened during testing: GIMP, LibreOffice, Firefox.&lt;/li&gt;
&lt;li&gt;Things that did not work: Wifi, audio, Bluetooth, 3D acceleration, screen rotation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This phone is not on the official recommended list. Its status is testing, which basically means it is half-dead on arrival. Just fixing hardware drivers is already enough work.&lt;/p&gt;
&lt;p&gt;The installation flow is to build a flashable package on the computer, then flash it on the phone with TWRP.&lt;/p&gt;

&lt;h2 class="relative group"&gt;1. Required Tools
 &lt;div id="1-required-tools" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#1-required-tools" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Phone: Redmi Note 5 (whyred), bootloader unlocked, Recovery is TWRP 3.5.2, all partitions wiped.&lt;/li&gt;
&lt;li&gt;Computer: Ubuntu 20.04 with Python 3.7, Git, and Openssl installed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 class="relative group"&gt;2. Build the Flashable Package
 &lt;div id="2-build-the-flashable-package" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#2-build-the-flashable-package" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Install pmbootstrap on Linux:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pip3 install --user pmbootstrap
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;source&lt;/span&gt; ~/.profile&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Install shell completion:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;sudo apt install python3-argcomplete&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="3"&gt;
&lt;li&gt;Add the following to the bash shell config file &lt;code&gt;~/.bashrc&lt;/code&gt;:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;span class="k"&gt;$(&lt;/span&gt;register-python-argcomplete3 pmbootstrap&lt;span class="k"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="4"&gt;
&lt;li&gt;During installation, pmbootstrap downloads the latest version from Gitlab, including configuration files for many devices. Initialize pmbootstrap:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pmbootstrap init
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Work path: Enter &lt;span class="c1"&gt;#Use the default work directory (/home/user/.local/var/pmbootstrap)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Channel: edge
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Vendor: xiaomi
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pmbootstrap install --android-recovery-zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Device codename: whyred
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;Username: User
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;User Interface: xfce4&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="5"&gt;
&lt;li&gt;Build the flashable package. By default it installs to the phone&amp;rsquo;s system partition. If there is not enough space, you can use parameters to install to another partition; check the Wiki. During the build, it asks you to create a user password. Enter it twice, then press Enter.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pmbootstrap install --android-recovery-zip
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;&lt;span class="c1"&gt;#Shut down pmbootstrap&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;pmbootstrap shutdown&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="6"&gt;
&lt;li&gt;Connect the phone to the computer, boot into TWRP, and find the generated pmos-*.zip package in the work directory. Mine was here:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;~/.local/var/pmbootstrap/chroot&lt;span class="se"&gt;\_&lt;/span&gt;buildroot&lt;span class="se"&gt;\_&lt;/span&gt;aarch64/var/lib/postmarketos-android-recovery-installer&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ol start="7"&gt;
&lt;li&gt;
&lt;p&gt;Copy it to the phone, mount the system partition, and install it directly.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the system partition cannot be mounted, format it as ext4 to repair the filesystem, then try again.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After installation, TWRP may show a &amp;ldquo;cannot mount system: resources are busy&amp;rdquo; warning. You can ignore it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reboot the phone.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 class="relative group"&gt;3. Install Software
 &lt;div id="3-install-software" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#3-install-software" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;p&gt;The default buttons look tiny on the phone. Tap the top-left corner and go to Appearance -&amp;gt; Settings -&amp;gt; Window Scaling, then set the scale to the maximum.&lt;/p&gt;
&lt;p&gt;When you tap an input field, the on-screen keyboard opens automatically. It feels a bit like using Termux.&lt;/p&gt;
&lt;p&gt;At boot, WIFI cannot load the driver&amp;hellip; so no WIFI. I followed the WIKI and shared the computer&amp;rsquo;s fiber connection to the phone over USB: &lt;a href="" &gt;https://wiki.postmarketos.org/wiki/USB_Internet&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;At least that gets it online.&lt;/p&gt;
&lt;p&gt;postmarketOS uses apk as its package manager (unrelated to Android APK files). If the software you want is not available, you can only grab a deb file yourself and install it.&lt;/p&gt;
&lt;div class="highlight-wrapper"&gt;&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apk add firefox libreoffice gimp&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The tested apps all opened&amp;hellip; but hardware driver problems need to be solved before software problems are even worth discussing. Not practical yet.
&lt;img src="https://i.imgur.com/v476CsH.jpeg" width=200&gt;&lt;/p&gt;

&lt;h2 class="relative group"&gt;4. References
 &lt;div id="4-references" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#4-references" aria-label="Anchor"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://wiki.postmarketos.org/wiki/Installation_guide" target="_blank" rel="noreferrer"&gt;Installation guide - PostmarketOS Wiki&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://wiki.postmarketos.org/wiki/Installation_from_recovery_mode" target="_blank" rel="noreferrer"&gt;Installation from recovery mode - PostmarketOS Wiki&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content:encoded></item></channel></rss>