[Miscellaneous Android Development] Qba_S:
Hi, [MENTION=8132642]diplomatic[/MENTION]: many thanks for the mtk-su, I also confirm it works flawlessly on Nokia 5.1+ (P60 MT6771) running Pie.

Similar to stizzie I had slightly different suboot output:

[B]Executing scripts from /storage/emulated/0/init.d (17 lip 2019 08:58:55)[/B]
suboot.sh
[COLOR="Green"]/data/data/com.ryosoftware.initd/files/bin[/COLOR]
New UID/GID: 0/0
CapInh:	0000000000000000
CapPrm:	0000003fffffffff
CapEff:	0000003fffffffff
CapBnd:	0000003fffffffff
CapAmb:	0000000000000000
source type magisk does not exist
Error in: allow magisk (null) (null) (null)
client: launching new main daemon process

Nevertheless Magisk works fine (7.0.0 version, as this is Pie).

Question for [MENTION=5312578]mrmazak[/MENTION] regarding dd-backup-maker.sh:

I'm trying to perform backup of the whole device, however this Nokia is using new Mediatek's A/B partitioning scheme, so your script is unable to obtain the base location:

PDA_sprout:/ $ ls /dev/block/platform/*/by-name/
boot_a cda_a hidden_b nvdata protect1 sutinfo
boot_b cda_b lk_a nvram protect2 system_a
boot_para efuse lk_b odmdtbo_a scp_a system_b
box elabel logdump odmdtbo_b scp_b systeminfo_a
cam_vpu1_a expdb logo_a otp sec1 systeminfo_b
cam_vpu1_b flashinfo logo_b para seccfg tee_a
cam_vpu2_a frp md1img_a persist spmfw_a tee_b
cam_vpu2_b gz_a md1img_b preloader_a spmfw_b userdata
cam_vpu3_a gz_b metadata preloader_b sspm_a vendor_a
cam_vpu3_b hidden_a nvcfg proinfo sspm_b vendor_b

Also there is no recovery partition on this device :)

I have no expirience with the MT devices, and I'm wondering if it's enough to just backup both A/B partition sets, or some additional work has to be done?

Or maybe it'd be enough to add asterisk to the #25 line of your script:

basefile=$(ls /dev/block/platform/*/by-name/boot[COLOR="Red"]*[/COLOR] \
/dev/block/platform/*/*/by-name/boot | head -1) 2> /dev/null

What do you think?

Edit:

So I've tried the asterisk patch, backup looks good:

PDA_sprout:/sdcard/dd-backup # ls -lh
total 3.4G
-rw-rw---- 1 root sdcard_rw 32M 2019-07-17 09:43 boot_a
-rw-rw---- 1 root sdcard_rw 32M 2019-07-17 09:43 boot_b
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 boot_para
-rw-rw---- 1 root sdcard_rw 8.0M 2019-07-17 09:43 box
-rw-rw---- 1 root sdcard_rw 15M 2019-07-17 09:43 cam_vpu1_a
-rw-rw---- 1 root sdcard_rw 15M 2019-07-17 09:43 cam_vpu1_b
-rw-rw---- 1 root sdcard_rw 15M 2019-07-17 09:43 cam_vpu2_a
-rw-rw---- 1 root sdcard_rw 15M 2019-07-17 09:43 cam_vpu2_b
-rw-rw---- 1 root sdcard_rw 15M 2019-07-17 09:43 cam_vpu3_a
-rw-rw---- 1 root sdcard_rw 15M 2019-07-17 09:43 cam_vpu3_b
-rw-rw---- 1 root sdcard_rw 9.3M 2019-07-17 09:43 cda_a
-rw-rw---- 1 root sdcard_rw 15M 2019-07-17 09:43 cda_b
-rw-rw---- 1 root sdcard_rw 512K 2019-07-17 09:43 efuse
-rw-rw---- 1 root sdcard_rw 16M 2019-07-17 09:43 elabel
-rw-rw---- 1 root sdcard_rw 20M 2019-07-17 09:43 expdb
-rw-rw---- 1 root sdcard_rw 16M 2019-07-17 09:43 flashinfo
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 frp
-rw-rw---- 1 root sdcard_rw 16M 2019-07-17 09:43 gz_a
-rw-rw---- 1 root sdcard_rw 16M 2019-07-17 09:43 gz_b
-rw-rw---- 1 root sdcard_rw 32M 2019-07-17 09:43 hidden_a
-rw-rw---- 1 root sdcard_rw 32M 2019-07-17 09:43 hidden_b
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 lk_a
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 lk_b
-rw-rw---- 1 root sdcard_rw 16M 2019-07-17 09:43 logdump
-rw-rw---- 1 root sdcard_rw 8.0M 2019-07-17 09:43 logo_a
-rw-rw---- 1 root sdcard_rw 8.0M 2019-07-17 09:43 logo_b
-rw-rw---- 1 root sdcard_rw 100M 2019-07-17 09:43 md1img_a
-rw-rw---- 1 root sdcard_rw 100M 2019-07-17 09:43 md1img_b
-rw-rw---- 1 root sdcard_rw 32M 2019-07-17 09:43 metadata
-rw-rw---- 1 root sdcard_rw 32M 2019-07-17 09:43 nvcfg
-rw-rw---- 1 root sdcard_rw 64M 2019-07-17 09:43 nvdata
-rw-rw---- 1 root sdcard_rw 64M 2019-07-17 09:43 nvram
-rw-rw---- 1 root sdcard_rw 16M 2019-07-17 09:43 odmdtbo_a
-rw-rw---- 1 root sdcard_rw 16M 2019-07-17 09:43 odmdtbo_b
-rw-rw---- 1 root sdcard_rw 43M 2019-07-17 09:43 otp
-rw-rw---- 1 root sdcard_rw 512K 2019-07-17 09:43 para
-rw-rw---- 1 root sdcard_rw 48M 2019-07-17 09:43 persist
-rw-rw---- 1 root sdcard_rw 4.0M 2019-07-17 09:43 preloader_a
-rw-rw---- 1 root sdcard_rw 4.0M 2019-07-17 09:43 preloader_b
-rw-rw---- 1 root sdcard_rw 3.0M 2019-07-17 09:43 proinfo
-rw-rw---- 1 root sdcard_rw 8.0M 2019-07-17 09:43 protect1
-rw-rw---- 1 root sdcard_rw 9.4M 2019-07-17 09:43 protect2
-rw-rw---- 1 root sdcard_rw 6.0M 2019-07-17 09:43 scp_a
-rw-rw---- 1 root sdcard_rw 6.0M 2019-07-17 09:43 scp_b
-rw-rw---- 1 root sdcard_rw 2.0M 2019-07-17 09:43 sec1
-rw-rw---- 1 root sdcard_rw 8.0M 2019-07-17 09:43 seccfg
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 spmfw_a
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 spmfw_b
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 sspm_a
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:43 sspm_b
-rw-rw---- 1 root sdcard_rw 128K 2019-07-17 09:43 sutinfo
-rw-rw---- 1 root sdcard_rw 2.5G 2019-07-17 09:44 system_a
-rw-rw---- 1 root sdcard_rw 2.5G 2019-07-17 09:45 system_b
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:45 systeminfo_a
-rw-rw---- 1 root sdcard_rw 1.0M 2019-07-17 09:45 systeminfo_b
-rw-rw---- 1 root sdcard_rw 6.0M 2019-07-17 09:45 tee_a
-rw-rw---- 1 root sdcard_rw 6.0M 2019-07-17 09:45 tee_b
-rw-rw---- 1 root sdcard_rw 512M 2019-07-17 09:45 vendor_a
-rw-rw---- 1 root sdcard_rw 512M 2019-07-17 09:45 vendor_b

The backup boot/recovery however still does not work due to different naming/lack of /boot.