Sorry, I skipped some steps.
If you build the pac file all over again, you may find that you can’t packaging the pac file, because some vbmeta-related files are required. But since we have turned off the secure boot, these files won’t be generated.
My solution is to create some empty files:
- In directory source/out/target/product/ud710_3h10u/ , type:
dd if=/dev/zero of=vbmeta.img bs=1M count=1
dd if=/dev/zero of=vbmeta-sign.img bs=1M count=1
dd if=/dev/zero of=vbmeta-gsi.img bs=1M count=1
dd if=/dev/zero of=vbmeta_system.img bs=1M count=1
dd if=/dev/zero of=vbmeta_vendor.img bs=1M count=1
(I don’t know which one is necessary, so just create them all)
Now you are able to packaging the pac file.
The bootloader will be corrupted, so you need to flash magisk in recovery.
(use dd or simply rename magisk.apk to magisk.zip and flash it using adb sideload)
The reason I didn’t mention this issue before is that I also resized the super partition to 15GB last time.
I thought it was because I changed the partition table or I accidentally locked it…
Maybe there is another switch to turn off the secure boot, I will try to find it.
Another way to install magisk is to flash the signed & patched boot.img. A member uploaded it in QQ group and it is said to work very well.