Boot Patch Menu

 


Original project is made by @BlassGoo  boot_patch
I just adapted this to a menu to improve the user experience



◕ 🔰 MENU TERMUX:
━━━━━━━━━━━
• You can unpack multiple .img files
• A folder will be created with the name of each file that you unpack (To be able to have many independent projects and be able to work on it whenever you want)
• You can repack multiple .img files

◕ 🔰 KERNEL OPERATIONS:
━━━━━━━━━━━
• Unpack Kernel from Partition
• Unpack Kernel from MyProjects folder
• Repack Kernel 
• Flash Kernel from MyProjects folder

◕ 🔰 RECOVERY OPERATIONS:
━━━━━━━━━━━
• Unpack Recovery from Partition
• Unpack Recovery from MyProjects folder
• Repack Recovery 
• Flash Recovery from MyProjects folder

◕ 🔰 MISCELLANEOUS:
━━━━━━━━━━━
• Update Ramdisk kernel or Recovery
• Patch Cmdline kernel permissive
• Clean Folders Projects
• Flash Recovery from MyProjects folder


 🔰 Installation:
━━━━━━━━━━━
Magisk or Ksu :
• Flash the zip and reboot you device.

 🔰 Use guide:
━━━━━━━━━━━
• Open Termux App and type: su -c bpmenu (then press enter)

 1- Unpack Kernel from Partition: It will unpack your active kernel directly from your device (You can find your kernel in the Unpacked_Kernel folder) You can make the changes you want and then do Repack

 2- Unpack Kernel from MyProjects folder: Select the .img file you want to unpack (Note that it has to be a kernel not a recovery)

 3- Repack kernel: Repack your modified kernel (Select the name of the file you want to repack) you can find the exported file in "buildsRecovery"

 4- Flash kernel from MyProjects folder: Select the .img file you want to flash directly to the boot partition, reboot your device to apply the changes.

 5- Unpack Recovery from Partition: It will unpack your active recovery directly from your device only if it exists, there are devices that do not have the Recovery partition, the Recovery is integrated into the kernel "Boot.img" (You can find your Recovery in the Unpacked_Recovery folder) You can make the changes that you want and then do Repack.

 6- Unpack Recovery from MyProjects folder, Repack Recovery, Flash Recovery from MyProjects folder: They are the same steps as option 2,3,4 (You only have to consider that the file is from the Recovery partition) if your phone does not have this independent partition, skip the RECOVERY OPERATIONS section and edit your recovery within the kernel with the KERNEL section OPERATIONS

 7- Update Ramdisk kernel or Recovery: You must have two .img files (kernel or Recovery), for example stock.img and mod.img. The first file you select will be the one that will transfer the ramdisk to the second file, that means if you select stock.img it will transfer the ramdisk.cpio from "stock.img" to mod.img

 8- Patch Cmdline kernel permissive: Select the kernel file you want to make selinux permissive (kernel only, no recovery)

 9- Clean Folders Projects: You can choose which folder to clean from the project