Installation guide of Droidian for xiaomi-marble (POCO F5/Redmi Note 12 Turbo) (new)
← Back to Projects
*** Disclaimer
I am not responsible for any bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. YOU are choosing to make these modifications, and if you point a finger at me for messing up your device, I will laugh at you.
Normal boot:
Notes:
Dual Boot (with HyperOS)
#!/system/bin/sh

if [ $# -ne 1 ]; then
  echo "Usage: $0 <A|B>"
  exit 1
fi

MODE="$1"

if [ "$MODE" != "A" ] && [ "$MODE" != "B" ]; then
  echo "Error: Invalid slot. Use 'A' or 'B'"
  exit 1
fi

PARTITIONS="
abl
aop
aop_config
bk41
bluetooth
cpucp
devcfg
dsp
dtbo
featenabler
hyp
imagefv
keymaster
mdtp
mdtpsecapp
modem
multiimgoem
multiimgqti
qupfw
qweslicstore
recovery
shrm
tz
uefi
uefisecapp
vbmeta
vbmeta_system
vendor_boot
xbl
xbl_config
xbl_ramdump
"

for part in $PARTITIONS; do
  if [ "$MODE" = "B" ]; then
    SOURCE="/dev/block/by-name/${part}_a"
    TARGET="/dev/block/by-name/${part}_b"
    echo "[SLOT B] ${part}_a -> ${part}_b"
  else
    SOURCE="/dev/block/by-name/${part}_b"
    TARGET="/dev/block/by-name/${part}_a"
    echo "[SLOT A] ${part}_b -> ${part}_a"
  fi

  if [ ! -e "$SOURCE" ]; then
    echo "  ERROR: $SOURCE not found! Skipped."
    continue
  fi
  if [ ! -e "$TARGET" ]; then
    echo "  ERROR: $TARGET not found! Skipped."
    continue
  fi

  dd if="$SOURCE" of="$TARGET"

  if [ $? -eq 0 ]; then
    echo "  SUCCESS: Process completed.."
  else
    echo "  ERROR: An error appeared while copying $part !"
  fi
done

echo "Script done."
Notes:
WARNING: System updates are generally not recommended due to compatibility issues. If you absolutely must update the system, please remember that the slot where the system is installed may change during system updates and that the operations performed by DFE NEOv2 will be undone (you will encounter a boot loop problem because the userdata is still unencrypted). After the update process is complete, repeat the required slot preparation steps before booting Droidian.
DFE NEOv2:

When installing DFE NEOv2, answer the installer questions like this:

After DFE NEOv2 is installed, first open the Wipe Data screen in your Recovery, select everything available there and wipe data. Then use the normal Format Data option/button and format data too.

If you get any error while wiping or formatting, do not boot into system. Reboot directly back into Recovery, wipe the partitions again and do Format Data again.

Things to know
cd $LOCATIONOFBOOTIMAGE
# $LOCATIONOFBOOTIMAGE is location of boot image. Replace it.
dd if=boot.img of=/dev/block/by_name/boot_?
# Replace ? with correct slot letter.
e2fsck -fv /data/rootfs.img
resize2fs -f /data/rootfs.img xG
# x is how much GB you want. Replace it.
Links: