Instead of KINGbabasulas post,yours should be featured on xda.Thank you my friend for your valuable post.:good: 


Error 11 could be because you don't have the right version of TWRP.Hello, I just ported a rom to my device using a windows tool and it said there was a problem with the updater-script so i looked over it and didnt understand anything. I came over to XDA for a solution and found this. After reading i still dont get why when i flash i get an error ending in code 11 in twrp..
format("yaffs2", "MTD", "system", "/system");
ui_print("Format Completed");
mount("yaffs2", "MTD", "system", "/system");
package_extract_file("system.img", "/system");
unmount("/system");
Background: I have a Samsung device. I have install a stock ROM on it using Odin3 v3.13. I want to edit the system image of the AP file of the ROM and then flash it. For this I have extracted the system image from the AP file and tried to make a valid tar or tar.md5 file to flash with Odin. It failed to flash. I have also tried Heimdall but got Handshake errors. So, I am thinking of flashing it with adb sideload feature because there is no custom recovery available for my Samsung S10 5G (Qualcomm).
I have created a simple update script as following:
Now, the problems is where to get the correct binary to run my script with adb sideload feature?Code:format("yaffs2", "MTD", "system", "/system"); ui_print("Format Completed"); mount("yaffs2", "MTD", "system", "/system"); package_extract_file("system.img", "/system"); unmount("/system");
So, the only option I have is to find a way to flash modified AP file. Do you have any idea how can I make a valid tar/tar.md5 that can be flashed with the Odin? I am facing this issue.
No No No. Your script is for quite old system.
This won't work on newer Samsung phones. (They use emmc)
I doubt you can flash anything using stock Samsung recoveries since the recovery blocks unsigned zips. And only Samsung can sign the zips.
Your best bet is the S10 5G section. :highfive:.So, the only option I have is to find a way to flash modified AP file. Do you have any idea how can I make a valid tar/tar.md5 that can be flashed with the Odin? I am facing this issue.
Wondering, Why fastboot don't require such signing and can flash any image?
No No No. Your script is for quite old system.
This won't work on newer Samsung phones. (They use emmc)
I doubt you can flash anything using stock Samsung recoveries since the recovery blocks unsigned zips. And only Samsung can sign the zips.
Unlocking bootloader trips e-fuse. Plus unlocking bootloader wipes data.Wondering, Why fastboot don't require such signing and can flash any image?