An Android shell script that creates two rescue boot images ('coreonly' by Tulsadiver and 'remove' by osm0sis) from magisk_patched.img
.
This script does not use Android Image Kitchen but uses magiskboot
contained in Magisk zip. So you need a working Android device to run this script, since magiskboot
binary in Magisk zip runs only on Android. But root access is NOT needed.
Screenshot: paracore-windows-cmd-200525.png
Latest SDK Platform Tools download: Windows | Mac | Linux
-
On your PC, download the factory image of your device and build number currently in use, and extract
boot.img
from there.- If your device is stuck on the boot screen or in a boot loop, reboot into fastboot mode using key combo. Then, boot from
boot.img
without flashing it. The device will probably boot.fastboot boot boot.img
- If your device is stuck on the boot screen or in a boot loop, reboot into fastboot mode using key combo. Then, boot from
-
Copy
boot.img
from your PC to your device.adb push boot.img /sdcard/Download/
-
On your device, download Magisk Manager apk (e.g.
MagiskManager-v7.5.1.apk
) and install the apk. -
Run Magisk Manager app and press [Install] > [Install] > [Select and Patch a File].
Selectboot.img
inDownload
folder and wait.
After the patch is complete, press [Back button] to return to the main screen of Magisk Manager. -
On your device, download Magisk zip (e.g.
Magisk-v20.4.zip
).
• Be sure the Magisk zip file is inDownload
folder (/sdcard/Download
).
• Or, in Magisk Manager, press [Install] > [Install] > [Download Zip Only] and wait for downloading to complete. -
On your PC, download
paracore-master.zip
and extractparacore.sh
from there. -
Copy
paracore.sh
from your PC to your device's/data/local/tmp
folder, and set "execute" permission onparacore.sh
.adb push paracore.sh /data/local/tmp/ && adb shell chmod u+x /data/local/tmp/paracore.sh
-
Run
paracore.sh
.adb shell /data/local/tmp/paracore.sh
-
Copy the created img files to your PC.
adb pull /sdcard/Download/magisk_patched.img adb pull /sdcard/Download/magisk_patched_coreonly.img adb pull /sdcard/Download/magisk_patched_remove.img
-
Reboot your device into fastboot mode using key combo. Then, boot from
magisk_patched_coreonly.img
without flashing it.fastboot boot magisk_patched_coreonly.img
Device will probably boot with Magisk core only mode. Run Magisk Manager and remove the offending module.
Then turn off 'Magisk Core Only Mode' in Magisk Manager Settings, and reboot system.
Screenshot (Terminal Emulator): paracore-terminal-emulator-200525.png
Screenshot (Termux): paracore-termux-1-200525.png | paracore-termux-2-200525.png
The process below is how to create two boot images using only a working Android device. You will eventually need a PC to boot from magisk_patched_coreonly.img
or magisk_patched_remove.img
.
-
Download the factory image of the target device and build number you need, and extract
boot.img
from there. -
Download Magisk Manager apk (e.g.
MagiskManager-v7.5.1.apk
) and install the apk. -
Run Magisk Manager app and press [Install] > [Install] > [Select and Patch a File].
Selectboot.img
and wait.
After the patch is complete, press [Back button] to return to the main screen of Magisk Manager. -
Download Magisk zip (e.g.
Magisk-v20.4.zip
).
• Be sure the Magisk zip file is inDownload
folder (/sdcard/Download
).
• Or, in Magisk Manager, press [Install] > [Install] > [Download Zip Only] and wait for downloading to complete. -
Download
paracore-master.zip
and extractparacore.sh
from there.
• Be sureparacore.sh
is inDownload
folder (/sdcard/Download
). -
Install Terminal Emulator or Termux from the Google Play Store.
-
Run Terminal Emulator or Termux, and execute the commands below. (Select all the commands, then copy & paste them.)
cp /sdcard/Download/paracore.sh ~; chmod u+x ~/paracore.sh; ~/paracore.sh
• For Terminal Emulator: You can't paste the commands directly.
Paste into the address bar of Chrome, then copy the commands again, and paste them into Terminal Emulator.
• For Termux: You must grant storage permission before executing the commands.
Press and hold Termux app icon in launcher, then press [circled i icon]. And then press [Permissions] > [Storage] > [Allow].
-
https://forum.xda-developers.com/pixel-4-xl/how-to/magisk-modules-disabler-booting-magisk-t3990557
-
https://github.com/topjohnwu/Magisk/blob/master/docs/guides.md#root-directory-overlay-system
Thanks: Tulsadiver, osm0sis, and topjohnwu