Skip to content

TODO : deze pagina moet revised en herwerkt worden

informatie uit verschillende bronnen , die elkaar soms tegenspreken , onduidelijke uitleg , ongestructureerd , stappen overgeslagen en wat al niet.

Magisk

bestaat uit verschillende onderdelen :
- Magisk is a flashable ZIP / image
- Magisk Manager is an app/ APK file , that can be installed on any Android device, whether rooted or not.
- modules : provide extra( also community written) functionalities via tools & apps

Reasons to use Magisk Manager

  • if the phone doesn’t have TWRP Recovery, you cannot use Magisk ZIP, and
    Magisk Manager becomes the way of rooting your device.
  • it provides a rooted device an interface to interact with apps that ask for root permissions.
  • there are tons of Magisk Modules that you could install from this app itself.
  • if you need to unroot your device
  • whether or not your device has Magisk ZIP Installer, Magisk Manager is very recommended for a rooted device.

install

~~Download Latest Magisk zip v24.3 and Magisk Manager 8.0.7 and Root your phone : https://www.getdroidtips.com/download-latest-magisk-zip-magisk-manager-root-phone/~~

two methods to install :
1/ If you have TWRP Recovery, you can flash the flashable zip Magisk zip v24.3
https://github.com/topjohnwu/Magisk/releases/tag/v24.3
If your phone is not rooted, you can install Magisk and gain systemless root access on your device in one pass by using TWRP Recovery.

methode 2 ; niet doen :
2/ If you don’t have TWRP Recovery, you can try patching the stock boot image (kernel) and flashing the modified boot on your device.

error met method 1 => zip : unrecognized format

=>
zie:
https://www.getdroidtips.com/root-moto-g7-magisk/
https://topjohnwu.github.io/Magisk/
https://en.wikipedia.org/wiki/Magisk_(software)
https://www.xda-developers.com/install-magisk-manager-without-separate-zip/
you’ll only need to download one file — the latest version of the Magisk Manager APK — to both root your phone and manage root access.
v 24.x : the binaries and scripts required to root your phone are now contained within the Manager app rather than being downloaded over the Internet.

==? Magisk Manager or Magisk or both ?== => ENKEL Magisk
download the latest ~~Manager~~ APK, change its extension to ZIP so it’ll be recognized as a flashable file by TWRP, and then flash the ZIP.
The reason this works is that APK files follow the ZIP file format, so with a few modifications, it’s possible for an APK to act as both an Android installation package and as a flashable ZIP file recognized by TWRP.

officiele documentatie
https://topjohnwu.github.io/Magisk/install.html
installatie via recovery (zoals TWRP dat doet) is niet langer recommended
en niet meer fully supported

  • in de Magisk app kan je zien of er een ramdisk booted is of niet
  • check to see if there is already a vbmeta (one sim) , vbmeta_a or vbmeta_b (dual sim) mount :
    in adb shell : ls -l /dev/block/by-name

Create a Patched Boot Image

create a Patched Boot Image based on the Stock ROM file.
First find which version you are running on your device.
go to Settings > About Phone > Software channel : reteu
Lookup the first two letters and find the matching ROM there.
full Stock ROM for Moto G7: https://mirrors.lolinet.com/firmware/moto/lake/official/

Patching Images

  • copy the boot/recovery image to your device via a USB cable
  • start the magisk app
  • press the Install button , the one on the Magisk card (pane achtig iets )
    - [NO] If you are patching a recovery image, check the “Recovery Mode” option
    - [NO] If your device does NOT have a separate vbmeta partition, check the “Patch vbmeta in boot image” option
  • Choose “Select and Patch a File” in method, and select the boot / ~~recovery~~ image
  • Start the installation, and copy the patched image to your PC using ADB:
    adb pull /sdcard/Download/magisk_patched_[random_strings].img => ./adb pull /sdcard/Download/magisk_patched-24300_xXYIo.img [ spaties MOETEN precies zijn !! ]

Flash the patched boot/recovery image to your device.
- (For most devices,) reboot into fastboot mode :
./adb reboot fastboot + check : ./fastboot devices
- and flash with command:
fastboot flash boot /path/to/magisk_patched.img   => ./fastboot flash boot magisk_patched-24300_xXYIo.img
~~fastboot flash recovery /path/to/magisk_patched.img~~
(Optional)
If your device has a separate vbmeta partition, you can patch the vbmeta partition with command:
fastboot flash vbmeta --disable-verity --disable-verification vbmeta.img

  • Reboot and voila!