[Miscellaneous Android Development] Rortiz2:
Ok so it worked on /data/local/tmp with ./ but IDK why.

Output and cat of dd-backup.txt:

C:\Users\rorle\Desktop\Rortiz2\ANDROID\ADB AND FASTBOOT>adb shell
shell@Aquaris_M8:/ $ ./data/local/tmp/mtk-su
New UID/GID: 0/0
shell@Aquaris_M8:/ # cd data/local/tmp
shell@Aquaris_M8:/data/local/tmp # chmod 755 dd-backup.sh
shell@Aquaris_M8:/data/local/tmp # ./dd-backup.sh
making dd-backup folder
finding by-name with full path
saving 1.txt
In /sdcard/dd-backup folder
strip first line
done stripping first line
add extra newline
adding dd if= cmd's to *.txt
done adding dd if= cmd's
adding dd of= cmd's to *.txt
Quick grep and cut
add extra newline
add .img to names
bust out paste cmd
done paste
remove spaces
It's almost complete!!!

cleaning up before exit

dd-backup.txt created with no user input required

Hit @diplomatic THANKS button for mtk-su!!

Hit My THANKS Button Cheers @bigrammy
shell@Aquaris_M8:/data/local/tmp # cd ..
shell@Aquaris_M8:/data/local # cd ..
shell@Aquaris_M8:/data # cd ..
shell@Aquaris_M8:/ # cat /sdcard/dd-backup/dd-backup.txt
dd if=/dev/block/platform/soc/11230000.mmc/by-name/flashinfo of=/sdcard/dd-backup
/flashinfo.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/userdata of=/sdcard/dd-backup
/userdata.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/cache of=/sdcard/dd-backup
/cache.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/system of=/sdcard/dd-backup
/system.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/custram of=/sdcard/dd-backup
/custram.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/metadata of=/sdcard/dd-backup
/metadata.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/dkb of=/sdcard/dd-backup
/dkb.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/kb of=/sdcard/dd-backup
/kb.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/tee2 of=/sdcard/dd-backup
/tee2.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/tee1 of=/sdcard/dd-backup
/tee1.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/frp of=/sdcard/dd-backup
/frp.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/expdb of=/sdcard/dd-backup
/expdb.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/logo of=/sdcard/dd-backup
/logo.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/para of=/sdcard/dd-backup
/para.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/secro of=/sdcard/dd-backup
/secro.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/recovery of=/sdcard/dd-backup
/recovery.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/boot of=/sdcard/dd-backup
/boot.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/lk of=/sdcard/dd-backup
/lk.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/seccfg of=/sdcard/dd-backup
/seccfg.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/persist of=/sdcard/dd-backup
/persist.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/protect2 of=/sdcard/dd-backup
/protect2.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/protect1 of=/sdcard/dd-backup
/protect1.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/nvram of=/sdcard/dd-backup
/nvram.img dd if=/dev/block/platform/soc/11230000.mmc/by-name/proinfo of=/sdcard/dd-backup
/proinfo.img
shell@Aquaris_M8:/ #

BTW: lk its a .bin file not a img and logo too.