Skip to content

Integrate Magisk into Android-x86 project

License

Notifications You must be signed in to change notification settings

haha647/initrd-magisk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

initrd-magisk

Another easy and convenient way to integrate Magisk, add support boot.img for Magisk into Android-x86 project (BlissOS, PrimeOS, ...). Check out Wiki page for install instructions and more information.

Build your own initrd on Linux environment

If you want to merge initrd-magisk support directly into initrd.img instead of using split two initrd image, you can build initrd-magisk with all files added from initrd.img into initrd/first_stage, initrd-magisk will then stop finding original initrd.

You can make initrd-magisk.img pre-rooted with Magisk by default (user can still have choice to uninstall magisk through Magisk app if they don't need): decompress boot.img.gz to boot.img , patch boot image through Magisk app. Compress patched boot image with gzip format and put it as initrd/boot.img.gz.

  1. Prepare environment:
  • For Termux (Android):
apt update; apt upgrade; pkg install git; pkg install cpio
  • For Ubuntu (Linux):
sudo apt update
sudo apt upgrade
sudo apt-get install git
sudo apt-get install cpio
  1. Clone this repo by:
git clone http://github.com/huskydg/initrd-magisk
  1. Change current directory to ~/initrd-magisk/initrd:
cd ~/initrd-magisk/initrd
  1. Build with these command:
chmod -R 777 *; ln -fs /bin/ld-linux.so.2 lib/ld-linux.so.2; find * | cpio -o -H newc | gzip > ../initrd-magisk.img

Credits

  • Magisk: The most famous root solution on Android

About

Integrate Magisk into Android-x86 project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%