1. Prepare your workspace
Create a folder on your desktop named RamdiskWork. Extract the Pak_Ramdisk_Tool_v2.1.zip into this folder.
2. Unpack the boot image
Place your boot.img inside the RamdiskWork folder. Double-click pak_unpack.bat. A command window will open, showing:
[+] Detected boot image format: AOSP
[+] Extracting kernel... done.
[+] Extracting ramdisk (gzip)...
[+] CPIO unpack successful.
Your ramdisk contents will now be in RamdiskWork/ramdisk/. pak ramdisk tool link
3. Make modifications
Navigate into the ramdisk folder. Common edits include:
4. Repack the ramdisk
Run pak_repack.bat. The script will: Your ramdisk contents will now be in RamdiskWork/ramdisk/
5. Flash the new image Boot your Android device into fastboot mode and execute:
fastboot flash boot new_boot.img
fastboot reboot
Unzip the downloaded archive. Right-click PAK_Ramdisk_Tool.exe and select "Run as Administrator" (required for repacking operations). pak ramdisk tool link
Even with the correct pak ramdisk tool link, users encounter problems. Here is how to solve them.