YuriDrak
YuriDrak is a native Android port of Miku Flick/02 that reproduces the original rhythm-game rules and supports streaming video and audio decoding.
- Type: PC port
- Game: Miku Flick/02
- Runs on Android
- By YuriDrak
- Latest release v0.4.0, 2026-11-28
- Source: https://github.com/YuriDrak/mikuflick-recomp
README
Miku Flick/02 — native Linux, Android and iOS port
A clean-room C11/SDL2 reimplementation of Miku Flick/02 (SEGA, iOS v1.1.5) for Linux, Android (see android/README.md) and iOS (see ios/README.md). The rhythm-game rules — note timing, judgement windows, scoring, combo bonus, tension gauge and ranks — are reproduced from the reverse-engineered original, as documented in docs/.
This repository ships no game data. It contains no SEGA/Crypton assets, music, video, artwork or charts. You need your own legally obtained, decrypted copy of
com.sega.MikuFlick02-iOS5.0-(Clutch-2.0.4).ipaios3-6-ipas (v1.1.5, armv7). The port extracts the IPA locally and reads its tables, movies, audio and textures at runtime.
Download
Ready-made builds are on the latest release. On first start, each app asks for your IPA and imports it.
-
iOS (AltStore, SideStore or Feather): add this source URL in the app's Sources screen:
https://github.com/YuriDrak/mikuflick-recomp/releases/latest/download/altsource.jsonAdd this exact link, not the repository link (
https://github.com/YuriDrak/mikuflick-recomp): the repository page is not a source, so the app cannot read it. The source always lists the latest release's IPA, so the app is offered updates as new releases come out, and AltStore, SideStore or Feather re-signs it on your device. You can also downloadMikuFlick-<version>-iOS.ipafrom the release and sign it yourself. iOS 26.0 or newer. -
Android: download
mikuflick-<version>-android.apkfrom the release and open it on the phone (Android 7.0 or newer). Each release is signed with a different key, so to update you must uninstall the old version first. Uninstalling also deletes the imported game data and your saves. -
Linux: build it from source; see Build and set up.
Features
- Boot logos, title screen and music select with cover flow, artwork, star ratings and song previews.
- Full rhythm gameplay: flick notes, interludes, press/release timing judgement, combo and climax bonuses, tension gauge with vocal fade, game over and the pause menu (RESUME / RETRY / MUSIC SELECT, plus the original's per-song INPUT TIMING bar).
- OPTIONS screen (display guides, volumes, fail sound, handedness, keyboard style, the original help pages and licence text in English or Japanese, credits with the ENDING credits roll; saved).
- PV viewer (music videos with lyrics, KARAOKE, LOOP, SHUFFLE; swipe to the next/previous video; its own pause menu).
- Streaming MPEG-1 video and two ADX audio tracks (vocals + backing) decoded directly from the original
.usmfiles by built-in decoders (no FFmpeg needed). - Result screen with ranks and the per-key FLICK RESULT page; RESULTS / RECORDS (from the title's crown) with your best score per song and difficulty; a persistent local save file.
- Mouse and multi-touch flick input, keyboard equivalents for every screen, input-timing calibration, fullscreen and volume controls.
- Any screen shape: the original 2:3 layout stays centred (keys exactly where they were on iOS), and the bars on wide monitors show a blurred copy of the video or menu (on phones: black during a song, a dim blur of the menu elsewhere).
- DLC songs: the 63 songs of the 21 DLC packs, from an IPA that includes them, or downloaded one pack at a time from the DLC page. See DLC songs.
- Android app (APK) built from the same C sources: touch, Back button, pause when the app is left. The IPA import and DLC page are native Android screens. See
android/README.md. - iOS app built from the same C sources: the IPA import (with the Files picker) and DLC page are native UIKit screens; scene-based lifecycle. See
ios/README.md. - Headless modes for automated verification (
--autoplay,--autoplay-input, screenshot and script modes).
All 11 bundled songs and all five difficulties (Easy, Normal, Hard, Extreme, Break the Limit) are unlocked.
Requirements
Debian/Ubuntu package names:
sudo apt install build-essential pkg-config \
libsdl2-dev libsdl2-image-dev libsdl2-ttf-dev
unzip is used by the one-time setup step; the built-in importer (--import-ipa, or Import IPA in the Android and iOS apps) does not need it. DLC pack downloads on Linux use the curl tool. The Android build has its own requirements (JDK 17+, about 4 GB of disk for the SDK/NDK it downloads into the project); see android/README.md.
Build and set up
# 1. Build the port
make -C port
# 2. One-time extraction: unpacks your IPA and exports the game tables
make -C port setup IPA="/path/to/com.sega.MikuFlick02-iOS5.0-(Clutch-2.0.4).ipa"
# 3. Run from the repository root
./port/mikuflick
setup unpacks the IPA into extracted/ipa/ (about 1 GB, path-safety checked) and writes port/data/gamedata.txt from your MikuFlick2 binary. mfextract verifies the binary UUID and refuses any other build. If the IPA includes the DLC packs, setup adds those songs too (see DLC songs). Alternatively, ./port/mikuflick --import-ipa your.ipa --import-to DIR runs the same importer the Android and iOS apps use (no unzip needed) and writes DIR/MikuFlick2.app and DIR/gamedata.txt; start the game with --app DIR/MikuFlick2.app --gamedata DIR/gamedata.txt.
If you already have an extracted app bundle, you can skip the IPA argument:
make -C port setup # uses extracted/ipa/Payload/MikuFlick2.app
Updating from an earlier version: run make -C port setup (or re-import the IPA) once more. gamedata.txt now also holds the ending credits read from your binary; with an older file the game still runs, but the ENDING button on OPTIONS → CREDITS stays hidden.
Runtime options
--app DIR extracted MikuFlick2.app directory (default extracted/ipa/Payload/MikuFlick2.app)
--gamedata FILE tables exported by mfextract (default port/data/gamedata.txt)
--data DIR save directory (default ~/.local/share/mikuflick-port)
--song N --diff D jump straight into a song (N from 0; diff 0 Easy … 3 Extreme, 4 Break the Limit)
--offset N input-timing steps -10..10 for this session (overrides the per-song pause-menu value)
--volume F music volume
--se-volume F sound-effect volume
--no-fail-sound disable the "sad" sound on a miss
--font PATH menu font (none = built-in bitmap font)
--fullscreen start fullscreen (F11 toggles)
--window WxH window size
--import-ipa FILE import your own IPA into --import-to DIR (default imported/) and exit
--import-to DIR destination for --import-ipa
--dlc-url URL list the DLC packs of the IPA at URL and exit
--dlc-get LIST with --dlc-url: install packs (1,2,97 or all) into --app/--gamedata and exit
--import-ipa writes DIR/MikuFlick2.app/ and DIR/gamedata.txt; start the game with --app DIR/MikuFlick2.app --gamedata DIR/gamedata.txt.
Environment variables:
MIKUFLICK_AUDIO_BUFFER=N audio buffer in frames (power of two, 256..8192; default 1024):
raise it if the sound crackles under system load
MIKUFLICK_LANG=ja|en language of the help pages and option subtitles
(default: the system language, as in the original)
Controls
| Action | Mouse / touch | Keyboard |
|---|---|---|
| Flick key あかさ / たなは / まやら / わ | press, drag in the flick direction, release | Q W E / A S D / Z X C / Space, or numpad 7 8 9 / 4 5 6 / 1 2 3 / 0 |
| Flick direction | drag ≥ 16 pt (32 px at 640×960) | hold an arrow key while releasing the letter key |
| Interlude (♪ panel) | tap the panel | any board key |
| Pause menu | pause button (bottom right) | Esc / P, then Up/Down + Enter: RESUME, RETRY or MUSIC SELECT |
| Input timing (pause menu, per song) | drag the INPUT TIMING bar | Left / Right while paused |
| PV playback | swipe left / right: next / previous PV (or restart); pause button | Right / Left; Esc pauses |
Notes are judged when you release, as in the original. Menus are navigated with the mouse or Up/Down/Left/Right + Enter; Esc goes back. On a touchscreen, a tap works wherever a click does, and the flick board takes several fingers at once.
See port/README.md for the full control and UI description.
Android
The same sources build into an Android app (arm64-v8a, armeabi-v7a, x86_64; Android 7.0+). A ready-made APK is on each release (see Download). On the phone, the app imports your own IPA itself: copy the .ipa to the phone, tap Import IPA on the first start and pick it. No PC is needed for that step.
To build it yourself, the android/Makefile downloads the SDK, NDK, Gradle and SDL sources into the project (gitignored):
make -C android toolchain # downloads into android/third_party/
make -C android licenses # review and accept the Android SDK licences
make -C android sdk apk # NDK, CMake, platform 35 → app-debug.apk
make -C android install run # install and start, then import your IPA in the app
Details, controls and debugging: android/README.md.
iOS
The same sources build into an iOS app (arm64, iOS 26.0+). On first launch, the app presents a native Files picker to import your own IPA.
To install it from AltStore, SideStore or Feather, add the source URL given under Download, not the repository link.
To build it yourself, the ios/Makefile wraps CMake and fetches the SDL dependencies:
make -C ios sim # Simulator build (arm64)
make -C ios device # Device build (unsigned, arm64)
For a signed installation on a physical device:
make -C ios device SIGNING=YES TEAM=ABCDE12345 BUNDLE_ID=com.example.yourname.mikuflick
open ios/build/iphoneos/MikuFlick.xcodeproj
Then select your device in Xcode and run. Details: ios/README.md.
Builds from CI
Every push and pull request runs .github/workflows/build.yml on GitHub Actions, which builds the Linux port, an unsigned iOS IPA (MikuFlick-unsigned.ipa, Release, arm64) and an Android debug APK. Download them from the run's Artifacts section. Sign the IPA yourself (your own certificate or a sideloading app) before installing it. The debug APK is signed with a key made on the runner for each run, so uninstall the previous one before installing another (your imported data goes with it). Like the source, these builds contain no game data: the app asks for your own IPA on first start.
Pushing a version tag (for example v0.4.1) makes the same workflow publish a GitHub release. The workflow sets the iOS app's version from the tag and attaches these files to the release:
MikuFlick-<version>-iOS.ipa;mikuflick-<version>-android.apk;MikuFlick-linux-x86_64.tar.gz(for now it holds only themfextracttool, not the game);- the AltSource,
altsource.json(made byios/altsource.sh).
For AltStore, SideStore or Feather, add the source URL given under Download, not the repository link.
Repository layout
| Path | Contents |
|---|---|
port/ | The game: C sources shared by Linux, Android and iOS, Linux Makefile, bundled M+ font and the pl_mpeg (MIT) video decoder, detailed README. |
android/ | Android build: Gradle/CMake project, Makefile that fetches the toolchain into android/third_party/ (ignored), README. |
ios/ | iOS build: CMake/Makefile project, Objective-C bridge, native IPA import and DLC screens, the AltSource script, README. |
docs/ | Reverse-engineering notes, the port design plan and the original IPA archive inventory. |
.github/workflows/ | CI: builds the Linux port, the unsigned iOS IPA and the Android debug APK, and publishes a release for a version tag (see Builds from CI). |
tools/ | Self-contained C utilities and scripts used during analysis (machoinfo, usmdump, bplist2json, mfextract, Ghidra helpers, IPA extractor). mfextract shares the table reader in port/src/mfx.c. |
CLAUDE.md | Agent operational rules and the current project status. |
extracted/ | Ignored. Your extracted game bundle, created by make setup. |
work/ | Ignored. Reverse-engineering scratch space: chart dumps, decompiled functions and Ghidra projects. |
build/, port/build/ | Ignored. Compiled objects and helper binaries. |
Documentation
port/README.md— detailed build, controls, features and testing aids.android/README.md— Android toolchain, APK build, installing and adding your game data, debugging.ios/README.md— iOS build, CMake/Makefile, native IPA import, signing, status.docs/linux_port_plan.md— platform mapping, module layout, timing/sync design, deliberate deviations, verification, and the Android/decoder notes (§9).docs/re_notes.md— reverse-engineering notes: USM format, chart format, atlases, judgement/scoring formulas, scene state machine and rendering.docs/archive_layout.md— inventory of the original IPA and its binary.
DLC songs
The original game downloaded its DLC packs from SEGA's server, which no longer exists. Some IPAs (for example the iMazing-style "All DLC Included" package) carry a Container/ folder next to Payload/: the game's data folder from a device that owned the packs, with the unpacked packs in Container/Library/InstallData/Mov_*/ and the original save Container/Documents/MikuFlick2.dat. That save is the only remaining copy of the DLC song list (titles, BPM, difficulty stars, file names).
Both make -C port setup IPA=… and the importer (--import-ipa, Import IPA on Android and iOS) pick these up automatically: the pack files go next to the app's files and the DLC songs are added to gamedata.txt from that save, after the 11 built-in songs. Packs whose files are missing are skipped. Importing an IPA afterwards keeps the DLC packs you already have that it does not bring itself, including downloaded ones (the importer moves them over). The full package needs about 7 GB of free space.
The title menu's DLC button (the original SHOP slot) opens the DLC page. It shows how many packs and songs are installed and has a Show DLC Songs switch (saved) that hides or shows them in music select and PV mode. It also lists the packs for download (below). On desktop the page is drawn by the game. On iOS and Android it is a native screen of the system's own controls, with an Import IPA with DLC row to import a DLC IPA without reinstalling.
Downloading single packs
You don't need the whole 7 GB file. The DLC page comes with the link of the archive.org copy of the "All DLC Included" IPA (miku-flick-2-1.1.5), so opening it is enough. The link is an editable field: to use another IPA that includes the DLC packs, enter its direct download link there (on desktop, click the field or press Ctrl+V/Cmd+V to paste). Restore Default Link appears whenever the link differs from the built-in one, so the archive.org link is never lost. The game reads that IPA's pack list over the network (about 1 MB: the zip directory and the original save), then shows the 21 packs with their songs and sizes. Tap a pack to download it: only that pack's files are fetched (230–360 MB each), checked against the archive's CRCs, and its songs show up right away. Tap the pack again while it downloads to cancel; the files of a cancelled pack are removed again. Packs that the linked IPA does not contain are shown greyed out. Songs show their English title next to the Japanese one. A link you enter is saved for next time.
This works with any link whose server allows partial downloads (HTTP range requests), such as archive.org's download links; a web page about the file (e.g. an archive.org details/ page) is not enough, the link must lead to the .ipa file itself. Nothing is uploaded; the built-in link is DLC_DEFAULT_URL in port/src/dlcdl.h. Downloads use the curl tool on Linux/macOS, the system's HTTP stack on Android and iOS. From the command line: ./port/mikuflick --dlc-url URL lists the packs and --dlc-get 1,97 (or all) installs them into --app/--gamedata. High scores of DLC songs are saved by song (the song field of their rec lines in save.txt is the movie name), so they survive re-imports.
Not included
The shop (buying DLC), Game Center, Twitter, ads, replays, the collection and PV playlist editing. The DLC servers are long gone; DLC songs come only from an IPA that already contains them (imported whole, or single packs downloaded from it).
Testing aids
SDL_VIDEODRIVER=offscreen SDL_AUDIODRIVER=dummy ./port/mikuflick --autoplay --exit-after-song
Additional flags: --autoplay-input, --shot-dir DIR --shot-times 8,30, --shot-ui-times 0.5,3, --start-scene title|select|result|options|pv|credits|ending|movie|scores|records|dlc (on Android and iOS also import|import-update, the native import screen as on a first start or an outdated install), --script "9:enter,12:right". See port/README.md.
Reverse-engineering tools
The utilities in tools/ are optional and are only needed if you want to redo the analysis. Build them with a C compiler, e.g.:
cc -O2 -Wall -o build/machoinfo tools/machoinfo/machoinfo.c -lm
cc -O2 -Wall -o build/usmdump tools/usmdump/usmdump.c
cc -O2 -Wall -o build/bplist2json tools/bplist2json/bplist2json.c
cc -O2 -Wall -Iport/src -o build/mfextract tools/mfextract/mfextract.c port/src/mfx.c
Ghidra is not vendored. To use tools/ghidra_decompile.sh, download Ghidra 11.2.1 and either place it at tools/third_party/ghidra_11.2.1_PUBLIC or set GHIDRA_DIR.
Credits and licence
- The port source and documentation are released under the MIT License — see
LICENSE. - MPEG-1 video decoding: pl_mpeg by Dominic Szablewski, MIT License (
port/third_party/pl_mpeg.h, with a small patch for the 11-bit intra DC precision of the game's videos, markedMIKUFLICK PATCH). - The Android and iOS builds use SDL2, SDL2_image and SDL2_ttf (zlib License) and FreeType (FreeType License), downloaded at build time and not stored in this repository. The Android screens use Material icons (Apache License 2.0).
- Menu font: M+ 1p Bold, © The M+ Project Authors, licensed under the SIL Open Font License 1.1 (
port/fonts/OFL.txt). - Miku Flick/02, Hatsune Miku and all related artwork, music and game data are © SEGA / Crypton Future Media. No such material is included in this repository.
This is an unofficial fan preservation project and is not affiliated with SEGA or Crypton Future Media. Use it only with game data you legally own.