RomFlasher
Rom Flasher tool

Miku UI Android 13 on Redmi K50i GSI Flash & First Boot

Rom Flasher · Redmi K50i · MIUI · 1 Dec 2022 · 3648 views

TagsMIUIRedmi K50iFlashKernelBootloop

Part of Redmi guides, MIUI guides, 2022 guides.

Miku UI on the Redmi K50i is a generic system image, so you flash it in fastbootd and let your existing vendor and kernel do the hardware work. The order matters: flash vbmeta with verity off, erase system, flash the image, wipe data, then boot. Skip a step and you get a bootloop, not a working phone.

The video starts muted so it does not blast at you — tap the speaker to hear it, or open it on YouTube.

No PC in the room?The free Rom Flasher tool runs the whole flash from the phone in your hand — USB-OTG cable, no laptop, no command line.
Download the free Rom Flasher tool

Miku UI is one of those Android projects with a personality of its own. On the Redmi K50i it runs as a generic system image, Android 13 base, phh-treble, ARM64 AB. In plain terms: the ROM half is Miku UI, the hardware half is whatever vendor and kernel are already on your phone. So how the camera, calls and sensors feel depends on what you had before, not on the image itself.

That is the one thing to understand before you start. A GSI does not bring its own drivers. It sits on top.

What this build is

The maintainer reports no bugs inside the ROM yet, and asked to be told if any show up. Device-side issues are the ones to expect, and those come from your vendor and kernel, not from Miku UI.

What you need first

Step 1 - get fastboot seeing the phone

Install Platform Tools, open a command window in that folder, and check the tools respond. Boot the K50i into fastboot with Volume Down and Power, plug it in, and run fastboot devices. You want a serial number and the word fastboot on the same line.

No serial number means a driver problem. Fix that now. It will not fix itself halfway through the flash.

Step 2 - move to fastbootd

Miku UI is a system image, and system lives in the dynamic partition. Normal fastboot cannot touch it. You need fastbootd for that, which is the userspace fastboot inside recovery.

From the bootloader, run:

fastboot reboot fastboot

The screen changes to a fastboot UI driven by the recovery. If fastboot devices still lists your phone here, you are in the right place.

Step 3 - flash vbmeta with verification off

This is the step that decides whether the phone boots or loops. Flash the vbmeta image with verity and verification disabled:

fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img

Do not skip this and do not flash a vbmeta from another build. A mismatched one is a black screen with extra steps.

Step 4 - erase system

fastboot erase system

Erase takes a moment. If it fails, you are almost certainly not in fastbootd, or the partition is busy. Go back to step 2 and check where you are.

Step 5 - flash the Miku UI image

Now flash the image you downloaded. If it is a sparse image split into chunks, flash every chunk in order. Then confirm it landed:

fastboot flash system <the-image-you-downloaded>

If your download is a plain image file, that is the one fastboot wants. Nothing else goes here.

Step 6 - wipe data in recovery, then boot

Reboot to recovery. On the K50i that is the stock Mi Recovery, which is fine for this. Wipe data there, not just cache. Then choose reboot to system.

The first boot on a GSI takes a while. It patches and settles before it shows you the setup screen. Give it a few minutes before you decide it is stuck.

Where people get stuck

Honest notes

A GSI is a trade. You get a fast, clean Android 13 with Miku UI's look, and you keep whatever camera and kernel behaviour your phone already had. That means a bug you see might not be Miku UI at all, which makes forum hunting harder. Start from a clean stock base if you can, because that gives the image the best vendor to sit on.

If the driver side of the PC setup is the part you dread, the free Rom Flasher tool on GitHub packages the ADB and fastboot driver install into a few clicks, so you are not reading Device Manager at midnight. The link is in the downloads section.

One quiet reassurance: flashing system over a bad attempt is not the end of the phone. Boot back to fastbootd and do the order again, slowly. The steps above are less fragile than they look.

Full description from the video

Miku UI Android 13 on the Redmi K50i — the GSI download, the vbmeta, and the flash order that gets it booting without a bootloop.

Miku UI is one of those custom Android projects with a personality of its own, and here it's running as a generic system image on the Redmi K50i. Android 13.0 base, phh-treble, ARM64 AB — the usual GSI recipe. In plain terms: the ROM half is Miku UI, the hardware half is your vendor and kernel, so how the camera, calls and sensors feel depends on what's already on the phone.

🧩 Build Info

  • Android version: 13.0
  • ROM type: generic system image (GSI)
  • Specific device: phh-treble
  • Architectures: ARM64 AB
  • GApps: available · Vanilla: available
  • SELinux: enforcing and permissive both work
  • Bugs inside the ROM: none reported yet — the maintainer asked to be told if any turn up
  • Device-side issues: depend on your vendor and kernel
  • Maintainer: @xiaoleGun

📲 Flash Order

  1. Get Platform Tools on the PC and confirm fastboot actually sees the phone.
  2. Boot to fastboot and switch to fastbootd with fastboot reboot fastboot.
  3. Flash vbmeta with verity and verification disabled.
  4. Erase the system partition.
  5. Flash the Miku UI system image.
  6. Reboot to recovery, wipe data in Mi Recovery, then boot to system.

❓ Common Questions

  • GApps or Vanilla image? GApps if you want Google apps baked in, Vanilla if you don't.
  • Is a custom recovery needed? The steps here run through fastboot plus the stock Mi recovery.
  • Can I dirty flash this over another GSI? Start clean — erase system and wipe data.

Common questions

Why does my Redmi K50i bootloop after flashing the Miku UI GSI?

Almost always vbmeta or data. Flash vbmeta with verity and verification disabled before you erase system, and wipe data in recovery after the flash. Skipping either one leaves the phone on the boot animation.

Do I need fastbootd to flash a GSI on the Redmi K50i?

Yes. System lives in the dynamic partition, so bootloader fastboot cannot write it. Run fastboot reboot fastboot from the bootloader to reach the userspace fastboot, then erase and flash system there.

Should I use the GApps build or the vanilla Miku UI image?

Take the GApps build if you want Google apps already in place, since a GSI is a system image and you cannot simply flash a Gapps zip over it. Take vanilla if you do not want Google services on the phone.

Is a custom recovery needed for this flash?

Not to flash the image. The steps run through fastboot and fastbootd, and the stock Mi Recovery is enough for the data wipe. A custom recovery is optional here.

Do I lose my data flashing Miku UI on the K50i?

Yes. You wipe data as the last step before booting, and that clears internal storage. Copy your photos and anything else you care about off the phone first, and expect the setup screen on first boot.

More for Redmi K50i