ThomasKing2014 / Pixel7_32bit_helper

45 stars 8 forks source link

Installing patch on top of existing Magisk install #2

Open CCF100 opened 2 years ago

CCF100 commented 2 years ago

If I have already installed Magisk before using this patched apk, what do I need to do to get the patch to work?

Namelesswonder commented 2 years ago

A wipe is required. It appears that for some reason the 32-bit libraries inside APEXs aren't loaded, I think the libraries that are required get put into a list on first boot. If first boot was 64-bit only, then the 32-bit libraries can't be loaded. There might be some way around this, but for now the easiest solution is to just wipe the phone and first boot with the 32-bit patch.

  1. On your phone uninstall the Magisk app and then reboot to the bootloader. Do not use the uninstall Magisk button from within the app, simply just uninstall the app itself.
  2. Pull the stock init_boot.img from image.zip inside the firmware image for your version.
  3. Flash the stock init_boot.img and then boot into Android.
  4. Install the patched Magisk APK from the repository.
  5. Copy over the stock init_boot.img to your phone and patch it in the Magisk app.
  6. Copy the patched Magisk init_boot.img over to your computer
  7. Reboot your phone into the bootloader.
  8. fastboot --skip-reboot -w update image.zip
  9. Once the process is finished reboot back into the bootloader either on the device or with fastboot reboot bootloader
  10. Flash the patched Magisk init_boot.img
  11. Go through setup and do not open the Magisk stub and do not download Magisk from within it, instead install the patched Magisk APK.

It is also important to note that on QPR1 you cannot enable Zygisk as this will bootloop your device. This also means that next month's update which is when QPR1 will become stable will have this same issue.

tuyennn commented 1 year ago

@Namelesswonder on step 8, where do you get the image.zip from? Supposed this should be a command for patched init_boot.img?

sakurawald commented 1 year ago

@Namelesswonder on step 8, where do you get the image.zip from? Supposed this should be a command for patched init_boot.img?

You don't need to update all the facotry_image.zip. Just use fastboot flash init_boot init_boot.img, and then everything goes well. Only when you try to use OTA, then you should execute the flash_all.sh to flash all the files.