This instuction for (64GB version)!
For partitioning we need to Boot the phone from TWRP recovery
So first of all we need to copy parted for android (https://pwdx.lanzoux.com/iUgSEmkrlmh) to the phone's sbin directory
# host
adb push parted /sdcard/
adb shell
# phone
cp /sdcard/parted /sbin/ && chmod 755 /sbin/parted
Next, we need to remove userdata partition and create new partitions
/sbin/parted /dev/block/sda
rm 21
mkpart esp fat32 1611MB 1900MB
mkpart userdata ext4 1900MB 25GB
mkpart win ntfs 25GB 50GB
mkpart lnx ext4 50GB 58.1GB
mkpart pe fat32 58.1GB 59.1GB
set 21 esp on
Next, we need to reboot the phone to TWRP again
Format created partions
mkfs.fat -F32 -s1 /dev/block/by-name/esp
mkfs.ntfs -f /dev/block/by-name/win
mke2fs -t ext4 /dev/block/by-name/userdata
mke2fs -t ext4 /dev/block/by-name/lnx
mkfs.fat -F32 -s1 /dev/block/by-name/pe
Reboot
- Android on userdata partition (https://wiki.lineageos.org/devices/beryllium/install)
- Windows on win partition (https://renegade-project.org/#/en/windows/Installation-guide)
- PostmarketOS on lnx partition (https://wiki.postmarketos.org/wiki/Xiaomi_Poco_F1_(xiaomi-beryllium) pmbootstrap flasher flash_rootfs --partition lnx
Rename the boot files as (android_boot.img, postmarketos_boot.img and windows_boot.img) and put them at boot dir
- Install TERMUX & TERMUX WIDGETS (FDROID)
- Run from host computer
cd android
install.sh
- Create termux widgets (windows.sh, pmos.sh)
Copy instalation files to postmarketos and run
cd linux
sudo ./install.sh
Download dd for Windows http://www.chrysocome.net/downloads/ddrelease64.exe copy to windows dir
Copy instalation files to windows and run
cd windows
As administrator
install.bat