قالب وردپرس درنا توس
Home / Tips and Tricks / How to create & boot from a Magic Core image to fix a bootloop without custom recovery «Android :: Gadget Hacks

How to create & boot from a Magic Core image to fix a bootloop without custom recovery «Android :: Gadget Hacks



Bootloops are a risk associated with rooted devices – with great power comes, after all, great destructibility. While custom recovery sometimes provides a quick fix when you flash the wrong Magic module, with TWRP becoming more challenging to implement thanks to Android 10, the solution is a bit more complicated today.

If you are in a bootloop caused by a Magic module and do not have a custom recovery, you will need a special boot screen to put Magic in “Core-Only Mode.” It’s like a safe mode for Magic, so you can start in Android with all modules disabled, where you can then remove all problematic modules. Afterwards, you only need to change one setting to deactivate this mode.

Requirement

  • Android phone rooted with Magic
  • bootloop or softbrick caused by faulty Magic module
  • Windows, Mac or Linux computer
  • USB data cable

Step 1
: Complete your “magic_patched” image

This guide assumes two things: you have rooted your phone with Magic, but you have not installed a custom reset. If you have a custom recovery installed, you can simply run Magic Manager for recovery mode.

But because you rooted without a custom reset, that means you got the phone’s stock boot image, ran it through Magic, and then flashed the magic__patched image file it created to take root. The thing is, you requires that magisk_patched.img file for this to work.

So if you still have magisk_patched.img file from when you rooted your phone, move it to a location on your computer that you can easily access.

If you deleted it, you might be in luck here. However, if you search the XDA forum for your phone model, someone may have uploaded the file to your phone. Just note that it must have been done with your exact phone model, and it shall is done with the same Android version that you are running. If you’ve desperate, a premade magisk_patched file from an older Android version May work.

Step 2: Download Android Image Kitchen

To start in core only mode, you need to unpack magisk_patched image file, change it, and then unpack it again to start it temporarily. To do this, you need Android Image Kitchen, which you can download below.

While this application works with most Android phones, there are some confirmed cases where it does not. You can read about them in the developer’s release thread.

Step 3: Extract Android Image Kitchen

Once the file has been downloaded, extract the ZIP with either your operating system built-in tool or a third-party archive extractor such as 7-Zip.

Step 4: Unzip the image ‘magic_patch’

Find magisk_patched image file on your computer and open the extracted Android Image Kitchen folder. Drag magisk_patched archive and drop it directly on the “unpack” shortcut located in the Android Image Kitchen folder.

If you cannot drag and drop, you can also open the command prompt or terminal, enter the following command, and make room:

cd

Drag the Android Image Kitchen folder to the command prompt or terminal to automatically fill in the location, then press enter. Then enter the following and tap the space bar:

unpackimg

Then drag magiskpatched image file to the command prompt or terminal and press enter.

Either way, a series of commands will appear in the Command Prompt or Terminal, with the last line asking you to “Press any key to continue.” Follow this direction to close the window.

Step 5: Modify the image file

You should now see two new folders, “ramdisk” and “split_img.” Download the ZIP file linked below and extract it to your computer in one convenient place.

Once extracted, open the folder and copy the “overlay.d” folder to ramdisk folder located in the Android Image Kitchen folder.

Step 6: Unzip the image file again

Now that you have added the folder, double-click on the “repackimg” file. You can also use the command prompt or terminal (if you did not close it) by entering the following:

repackimg

Step 7: Enter Fastboot mode

Now you need to start in Fastboot mode. For most phones, this can be done by holding down the volume and power switch from the live state. If not, volume up and power should do the trick. But if you are in a startup loop, you need to set the time where you start holding the buttons as soon as you notice that your phone restarts.

Fastboot mode on Pixel 4. Image by Stephen Perkins / Gadget Hacks

Step 8: Start from the image file

Connect your phone to your computer and open a new command prompt or terminal window. Type the following command and press enter:

cd

Drag the Platform Tools folder to the window and press enter. Then type the following command and press the space bar:

fastboot boot

Drag the “image-new” file from Android Image Kitchen to Command Prompt or Terminal and press enter to boot from the modified magisk_patched picture temporarily.

Step 9: Disable the problematic module

Your phone should now boot up, keep the root, but with all Magic modules disabled. Open Magic Manager, select the hamburger menu and then “Modules.” Disable or uninstall the problematic module that caused your boot loop first.

Step 10: Disable Core-Only Mode (optional)

After removing the problematic modules, open Magic Manager Settings and disable the selector next to “Magic Core Only Mode”. Your phone restarts, but this time with all modules enabled and no start loop!

Keep your connection secure without a monthly invoice. Get a lifetime subscription to VPN Unlimited for all your devices with a one-time purchase from the new Gadget Hacks Shop and watch Hulu or Netflix without regional restrictions.

Buy now (80% off)>


Source link