/magisk_for_linux

patch android images with magisk directly from pc

Primary LanguageShellGNU General Public License v3.0GPL-3.0

If you wanna help me

Buy Me A Coffee

magisk_for_linux

  • BEFORE RUN MAKE SURE YOU HAVE USB DEBUG ENABLED AND YOU HAVE TRUSTED THE COMPUTER.
  • THIS SCRIPT USES APT COMMANDS. YOU CAN REPLACE THEM WITH YOUR DISTRO PACKAGE MANAGER.
  • Tested on ubuntu (20.04, 21.10, 22.04) and debian 11 64 bit.

How to run

 wget https://raw.githubusercontent.com/daboynb/magisk_for_linux/main/magisk.sh && chmod +x magisk.sh && ./magisk.sh
  • When it ask for a device connect the phone

  • Drag & drop into the terminal the stock boot.img

  • Done, the patched boot.img will be inside the /home/$USER/Magisk/pc_magisk folder

Credits

Based on the things discovered by https://dev.sect0uch.world/SecT0uch/Magisk_boot_flasher#run-patch-boot-locally.