PixelFlasher 5 released, hooray.
Now, given this, my previous attempt, and your notes:
Do these notes still apply for everything I should fix in that first attempt of wrapper I did, or should I now fix more beyond that?
Thanks again.
Now, given this, my previous attempt, and your notes:
Some cursory comments.
Keep in mind that, if Magisk is hidden, even if you have the correct package name, you only have the stub, which is not enough to create a patch.Code:MAGISK_APK=$(pm path com.topjohnwu.magisk) # If hidden, replace with package name
PF copies this to /data/local/tmp, you're expecting it to be there, but I don't see where is the copying part.Code:../busybox unzip -o ../pf.zip
Not all systems have busybox, so you have to account for it.
If you're on x86_64, then you need to copy x86 version, that's one of the checks that PF does.
The other check is for this special Magisk by @Namelesswonder which provides 32 bit functionality to 64 bit only phones, you still want to copy the 32 bit Magisk if the Magisk in use is Magisk Zygote64_32, if you don't care about those, then your check is enough.
I find that this is enough to check for SYSTEM_ROOT
Code:SYSTEM_ROOT=false grep ' / ' /proc/mounts | grep -qv 'rootfs' && SYSTEM_ROOT=true
For Pixel devices, I never needed to bother for Recovery mode, did you do any testing on a device with recovery mode? I'm curious about your results.
You want to add 40 character SHA1 to the filename?Code:SHA1=$(./magiskboot sha1 "$1" 2> /dev/null) cp -f new-boot.img /sdcard/Download/magisk_patched_$SHA1.img
just add| cut -c-8
Do these notes still apply for everything I should fix in that first attempt of wrapper I did, or should I now fix more beyond that?
Thanks again.