[Moto G40 / G60] RajivShastri king:
Thank you very much for answering!

OK, looking at your answer i will study more about ab partition & flashing. anyway this has been a confusing topic for me from the beginning.

We have obtained hanoip-flashall.bat from kfhost.net which was proposed by @sd_shadow on xda thread.

https://xdaforums.com/t/guide-using-fastboot-exe-with-motorola-devices.4042039/page-2#post-82186933

Yes, There are also available xml to bat converter (windows)+ online converter, which is given below.

After getting the file i matched & verified the script of service file.xml & flashfile.xml from hanoip's fastboot firmware which is 100% accurate.

Yes, The extra fastboot file that we have given is just for the understanding of the readers, comparative, as an example. When the reader understands my point well, then only he will be able to answer me in a good way. That file is also absolutely authentic and has been checked.

Yes, i know fastboot super.img always takes slot A. But wait here.. if boot.img will goes on only slot A according you than why we need to flash as:-

Why is it recommended to flash boot.img on AB device as such? :-

fastboot flash boot_a patched_boot.img

fastboot flash boot_b patched_boot.img

But my real question was why fastboot flashing command of hanoip seems as older device's fastboot command,,, i.e. as non AB device.

Why, I have also put the question so that I was making a recovery flashable script for myself which can be flashed vbmeta.img in AB partition by recovery If it succeeds, creates a recovery script to flash boot.img and flash it Just had to test it which is the following.

ui_print("* Boot installer *");

ui_print(" ");

ui_print(" ");

show_progress(1.000000, 0);

ui_print("* Checking device... *");

ui_print("* *");

ui_print("* *");

if getprop("ro.product.device") != "hanoip" then

package_extract_file("boot.img", "tmp/boot.img");

else

ui_print("* Device: hanoip *");

endif;

if getprop("ro.build.system_root_image") != "true" then

if getprop("ro.boot.dynamic_partitions") != "true" then

ui_print("* Partition Type: A-Only *");

ui_print("* *");

ui_print("* *");

ui_print("* Flashing Boot... *");

ui_print("* *");

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");

else

ui_print("* Partition Type: Dynamic *");

ui_print("* *");

ui_print("* *");

ui_print("* Installing new Boot... *");

ui_print("* *");

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot_a");

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot_b");

endif;

else

ui_print("* Partition Type: A/B *");

ui_print("* *");

ui_print("* *");

ui_print("* Installing new Boot.... *");

ui_print("* *");

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot_a");

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot_b");

endif;

set_progress(0.525000);

ui_print("*********************************************");

ui_print("* Installation successful... *");

ui_print("*********************************************");

ui_print(" ");

set_progress(1.000000);

I have done this work successfully in the past, although I am not a developer or script writer but I use UKAtools (given below) successfully for this work. I am seeing/reading xda for approx 9-10 yrs or IDK since. I do government job now I don't have time all day at all and whenever there is 10 minutes 20 minutes time in duty hour, I study XDA and this is the only way to get technical knowledge about android for me now.

But all of a sudden i got scared and stopped my experiment because i have only one moto g60.

i got a guy from my own society who is a tech enthusiast and interested in new information about android. It told me that the boot loader got locked when I flashed img on Moto G60. I am also seeing on xda that boot loader of moto g60 gets locked problem.

I talked to a friend an android software engineer of service/reparing center on this subject through phone call and he told that i m busy in my work & I don't have time to study about Moto G60 this device is quite little bit new, Till now no one has come to me for mobile repairing software related problem. but it can happen that if you flash something wrong or command flash or maybe the boot loader is hardcoded and does not tolerate any reverse movement.

Thankyou!

https://xdaforums.com/t/unpacker-kitchen-for-android-uka.4087797/