The other problem was with patching boot.img via script.
In order to be able to use boot_patch.sh without root, these links were the ones:
This is the place for general support and discussion regarding "Public Releases", which includes both stable and beta releases. All information, including troubleshoot guides and notes, are in the Announcement Thread
forum.xda-developers.com
This is the place for general support and discussion regarding "Public Releases", which includes both stable and beta releases. All information, including troubleshoot guides and notes, are in the Announcement Thread
forum.xda-developers.com
So:
---Downloaded latest Magisk apk from Github
---Unzipped lib/arm64-v8a/{libmagisk64.so,libmagiskboot.so,libmagiskinit.so} and assets/{boot_patch.sh,util_functions.sh}
---Renamed the *.so removing the "lib" and ".so" parts
---Put original boot.img among all these files, and all of them in one single directory
---Pushed all of them to device's /data/local/tmp/tempdir
---Chmod all to 0755, except boot.img, which was 0644
---adb shell "cd /data/local/tmp/tempdir && ./boot_patch.sh boot.img
The patching was successful, but not so the flashing...
As mentioned in the above post, fastboot boot didn't work, so had to just directly fastboot flash boot.
The boot.img patched by Magisk app directly was ok.
The boot.img patched by scripting like described above, did flash, but did not boot. When LOS was trying to boot, it just ran the animated booting logo endlessly (boot loop?).
I hard reset, tried to flash the "good" patched img, or even original one... now fastboot command hanged with no response until hard resetting device...
In another try I got
error: Failed to identify current slot
Rebooted into LOS recovery, it said slot b was active (as always for this device).
Back into bootloader mode. Again ran fastboot --set-active=b. It already was set.
Then suddenly it let me again flash either the Magisk patched img or the original one.
One thing, since the very beginning, when flashing I always got these messages:
<bootoader> logical has-slot: slot_b not found
writing boot_b image not signed or corrupted
However in the end everything went ok according to fastboot.
Do you happen to have an idea why I got these shenanigans when trying the "scripted" patching?