The Ultimate All-in-One Custom ROM Migration & Flashing Utility by @BuildBytes
Important
This standalone script is no longer maintained.
The core backend engine has been fully integrated into the official ROM Shifter App with enhanced speed, fixed issues, and with overall a better experience.
π Use the official app repository instead: ShivamXD6/ROM-Shifter
ROM Shifter is a highly advanced, pure shell-based utility designed to make Android custom ROM migrations painless, fast, and completely automated. Whether you want to backup apps with their exact states, flash multiple ZIPs automatically in a broken recovery, or manage live partitions, ROM Shifter does it all without needing an internet connection. Also small in size ~1.3MB.
Check out the documentation for a deep dive into every feature and video tutorials!
Powered by DataBackup Module, ROM Shifter achieves mind-blowing speeds and better compression than premium alternatives.
- Insane Speed: Achieves mind-blowing benchmarksβranging from ~811.42 MB in 10 seconds (Internal Storage, eMMC, 1 App) to 52.77 GB in just 7m 28s (Internal Storage, UFS, 312 Apps), and ~509 MB in 34 seconds (SD Card, 2 Apps).
Note: Speeds automatically scale and optimize based on your device's hardware, delivering maximum possible I/O performance whether you use UFS, eMMC, or an SD Card.
- Superior Compression: Unlike Swift Backup, it completely compresses APKs + Splits alongside data. This yields backup sizes ~3% smaller for a single app and 15%+ smaller for bulk backups compared to the competition.
- Comprehensive Selection: Gives you granular control to backup App (Base/Splits), Data, ExtData (
Android/data), Media, OBB, and Android ID (SSAID) in one single go. Also supports system apps. - Smart Restore Logic: Automatically grants necessary runtime permissions, restores original UID/GID, and clears GMS tracking to prevent crash loops upon booting.
- Zero Installation: Operates entirely as a script. It leaves no trace in your app drawer and auto-removes its background caches once operations are complete.
Drop your ZIPs into the Auto-Flash folder, and the background daemon handles the rest.
- The Ultimate Use-Case: Got a custom recovery with broken touch and no PC/Laptop nearby? ROM Shifter's Auto-Flasher will sequentially flash your ROM, GApps, and Magisk automatically.
- Intelligent Auto-Sorting: Automatically sorts your files in the safest flashing order: Firmware > ROM > GApps > Addons > Kernel > Magisk.
- Advanced Wipe Modes: Allows you to seamlessly choose between Dirty Flash (Wipes Dalvik/Cache), Clean Flash (Dirty + Wipes System/Data), or Format Data (Wipe Everything).
- Duplicate Handling: If multiple ZIPs of the same category exist, it safely ignores or moves the older ones out of the active flashing queue.
- Security Failsafes: Strictly ensures your lock screen (PIN/Password) is removed before rebooting to prevent FRP in new rom or nasty decryption lockouts in recovery.
Backup and restore your device's core partitions while the system is running, completely bypassing the need for a PC.
- Save Your Device: If your custom recovery dies or your bootloader (
abl) gets corrupted, you can safely flash a working.imgdirectly from the OS. - Smart Slot Detection: Automatically detects Active/Inactive slots for A/B dynamic devices (e.g.,
boot_a,boot_b) and highlights your current working slot. - Standard & Custom Targets: Features 1-click options for
bootandrecovery, while allowing you to manually type and flash any custom partition likemodem,splash, ordtbo. - Strict Verification: Verifies the exact block path before attempting any read/write operations to prevent accidental soft-bricks.
- Raw Image Dumps: Easily backup your currently working partitions to raw, safe
.imgfiles before testing a new kernel or recovery.
A collection of powerful tools to optimize and modify your newly flashed Android system instantly.
- Debloat & Setup: Flashed a new ROM filled with useless stock apps? Safely debloat unwanted System or User apps for User 0 in seconds.
- Safe Restoration: Keeps track of debloated packages so you can easily restore them later with a single click.
- Systemize App (GCam Example): If your current ROM's default camera is poor, easily convert your favorite GCam into a System App.
- AOT DexOptimization: Purges Dalvik caches and forces a heavy Ahead-Of-Time (
speed-profile) compilation in the background. - Instant Fluidity: Specifically designed to be run right after a dirty flash to eliminate lag and make your UI buttery smooth immediately.
- Ultra-Lightweight: Everything the script needs is built right into a single ~2.3 MB file.
- Self-Extracting: Uses Base64-encoded strings to extract dependencies natively without pinging any external servers.
- No Internet Required: Operates entirely locally. No unexpected
curldownloads or "missing file" errors when you have no network. - Clean Workspace: Creates a highly organized, user-defined workspace folder (Default:
/sdcard/#Shifter/) for easy manual file management.
- A Rooted Android Device (Magisk / KernelSU / APatch).
- A Terminal Emulator like MT Manager (Recommended) or Termux.
- Download the latest
ROM-Shifter.shscript from the Releases tab. - Open your Terminal, Termux or MT Manager and grant Superuser access:
su
- Execute the script:
OR, Just use script executor of MT Manager.
sh /sdcard/Download/ROM-Shifter.sh
- On the first run, the Interactive Directory Browser will ask you to select your main working folder. Setup your workspace and enjoy!
If you find ROM Shifter helpful and want to keep it alive, you can donate here:
π° PayPal: Donate via PayPal
π² SuperMoney: UPI ID - shivam.dhage@superyes
π GPay UPI QR Code: Donate via UPI QR
Every contribution helps keep the project alive and improved! Thank you! π
Loved the script? Encountered a bug? Or just want to hang out with fellow Android enthusiasts?
- π‘ Join our Telegram Channel: BuildBytes
- π Report Bugs: Open an issue on this repository or drop a message in our Telegram group.










