Booting legacy Android & alternative OSes purely in RAM (tmpfs) on modern smartphones.
Modern smartphones ship with locked-down vendor stacks, GKI 5.x/6.x kernels, Project Treble, dynamic partitions, and proprietary GPU drivers that make porting legacy Android versions slow or destructive.
IRMP (In-RAM Mobile Ports) takes a non-destructive, in-RAM Proof-of-Concept approach — keeping your device's internal system, vendor, and userdata partitions untouched while booting legacy Android directly into RAM:
- Stock GKI Kernel + Vendor
.koReuse — No kernel rebuilds from scratch; load only curated vendor modules (DRM/KMS, DSI panel, touchscreen, USB Type-C/UDC, PMIC, clocks). - Two-Stage
initramfs→tmpfsBoot — Overcome8 MB–64 MBboot/init_bootpartition limits with a tiny Stage 1 BusyBox + FunctionFSmini_adbdenvironment, then push compressed userspace intotmpfsandswitch_root. - DRM/KMS + Software OpenGL ES HAL Shims — Bridge legacy
SurfaceFlinger/gralloc/hwcomposerto Linux/dev/dri/card0dumb buffers +libGLES_android.so, avoiding proprietary GPU reverse-engineering. - Targeted Userspace Adaptation — Binary-patch legacy
initSELinux loading, mountbinderfs→/dev/binder, replace legacyandroid_usbsysfs withconfigfsFunctionFS, and trim unneeded subsystems.
| Repository | Target OS | Supported Devices (Branches) | Status |
|---|---|---|---|
IRMP/Android-5.1 |
Android 5.1.1 (Lollipop, arm64-v8a) |
Google Pixel 7 (panther) — Pixel-7 |
Active PoC |
Every OS repository under IRMP follows a clean branch-per-device layout:
| Branch | Contents |
|---|---|
main |
Shared architecture docs, cross-device tools (mini_adbd, drm_test, simg2img), Bionic HAL headers, CI |
<Device-Name> (e.g. Pixel-7) |
Device-specific HAL shims (gralloc, hwcomposer), kernel module extraction scripts, init.rc adaptations, and boot instructions |
Warning
All IRMP builds are engineering Proofs-of-Concept, not daily-driver ROMs. Cellular/RIL, Wi-Fi, Bluetooth, camera, audio hardware, and sensors are stubbed or disabled unless stated otherwise. Always back up stock boot, init_boot, vendor_boot, and vbmeta images before flashing or booting test artifacts.
Contributions, new device branches, and new OS ports are welcome — see CONTRIBUTING.md.