How to Install AOSP ROM on Xiaomi Mi Pad 5
Prerequisites
- MIUI 14 firmware or MIUI 14 ROM
- Back up all apps, images, videos, contacts, etc. to cloud or external storage
- Latest platform-tools
- Unlocked bootloader and Arrow Recovery
GKI stands for Generic Kernel Image, also known as Android Common Kernels.
The purpose of GKI is to address Android fragmentation. Manufacturers often modify the kernel source code and add device drivers to provide support for System-on-Chips (SoCs) and peripheral devices. However, these modifications can be extensive, leading to a situation where up to 50% of the code running on a device is out-of-tree code (not from the upstream Linux and AOSP common kernels).
A device kernel consists of the following parts:
1 | sudo pacman -Syu # update system |
1 | sudo pacman -S redis # install redis |
Dot not start redis service after install, we need to config redis service first.
redis default config file is located at /etc/redis/redis.conf
,but we dot not use this file, we use /etc/redis/minimal-redis.conf
instead.
file demo /etc/redis/minimal-redis.conf
:
the file is a minimal configuration file for redis, we can use this file to start redis service.
1 | # Redis minimal configuration file |
Arch Redis start service file is located at /usr/lib/systemd/system/redis.service
the config file use Chinese locale, so we need to add locale config to the service file.
1 | [Unit] |
1 | sudo mkdir -p /var/run/redis |
1 | sudo systemctl start redis # start redis service |
1 | sudo systemctl enable redis # enable redis service |
1 | sudo systemctl status redis # active (running) |
1 | redis-cli ping # PONG |
Essay
After installing Arch, I found that VMware’s 3D acceleration was not enabled.
However, in Settings - Hardware - Display - 3D Graphics - Accelerate 3D Graphics, it was already checked.
Then I came across this Enable 3D HW acceleration on VMWare Workstation 10 on Ubuntu 14.04 solution.
It just required adding a line of configuration.
Open
1 | vim ~/.vmware/preferences |
Add
1 | mks.gl.allowBlacklistedDrivers = "TRUE" |
But what truly amazed me is that this answer is already nine years old.
From Ubuntu 14.04 LTS - vmware-workstation-10 to the current Ubuntu 22.04 LTS - vmware-workstation-17, it still works.
This is My Buyvm of Roost Bissen
1 |
|
1 | mka updatepackage # this will all threads build fastboot rom |
1 | mka bacon -j$(nproc --all) # -jx is number of thread ,$(nproc --all) is all thread |
if fastboot rom
1 | fastboot -w # clean data and cache |
if recovery rom
1 | fastboot reboot recovery # reboot to recovery |
Before you begin, make sure you have the following:
1 | fastboot devices |
We aim for open system and kernel source code while also being committed to digital forensics security. We demand a smooth system but also wish our privacy and freedom to be protected. Admittedly, this creates a contradiction.