Img Flasher: This app allows you to flash, extract, unpack, and repack img files.
You can use the Img Flasher app or execute the imgf
command in the terminal.
When using the flash command, you cannot stop the process. Be careful; flashing the wrong file may cause your device to stop working or enter a boot loop.
You can extract IMG files from your phone such as boot.img
, nvram.img
, and recovery.img
.
-
When you press the Extract button, the files will be extracted to:
/storage/emulated/0/Download/ImgFlasher/
.
-
Note: Click the fab button or 🔃 to refresh the app.
You can flash IMG files such as boot.img
, recovery.img
, and also other files like fastboot files.
-
Note: Click on ✏️ to pick an IMG file or open a folder like
fastboot_redmi9a/
. -
Note: Open files appear in different colors for easy identification.
-
The
recovery.img
file was successfully flashed, but it seems to have been the wrong file.
- This is done by the magiskboot command /data/adb/magisk/magiskboot
You can unpack IMG files like boot.img
and repack them.
- Note : Click on ✏️ to pick an IMG file and pick a folder for unpack.
- You will find the repacked file in the picked folder.
- Note : Click on ✏️ to pick an IMG file and pick a folder for unpack. example : boot.img repacked to new-boot.img You will find the repacked file in the same path that was picked for the file
I developed this app using Sketchware Pro. I apologize for any mistakes or the simple interface, as I am still in the learning phase.
The app will crashed if you use this pathes so don't use.
Usage: imgf [command] [arguments]
Commands:
list - Print partitions list
size [partname] - Get partition size
dev [partname] - Get partition devname
flash [partname] [img] - Flash given partition
extract [partname] [img] - Extract given partition
unpack [img] [path] - Unpack given partition
repack [img] [path] [new-img] - Repack given partition
version - output version information and exit
help - Show this help message"
- list : Print devname ,partname, size
imgf list
- dev : get partition devname
imgf dev boot
- size : Get partition size
imgf size boot
- flash : Like fastboot
imgf flash boot /sdcard/download/boot.img
- extract : Extract img files from your device.
imgf extract boot /sdcard/download/boot.img
- unpack : Unpack img file
imgf unpack /sdcard/download/boot.img /sdcard/download/unpacked_boot
- repack : Repack img file
imgf repack /sdcard/download/boot.img /sdcard/download/unpacked_boot /sdcard/download/repacked-boot.img