Dos burning script and dos burning
1 @ echo off 2 3 4 5 @ set flashpath = Z: \ msm8909 \ out \ target \ product \ msm8909 \ 6 @ set boot_image = % flashpath % boot. img 7 @ set mbn_image = % flashpath % emmc_appsboot.mbn 8 @ set system_image = % flashpath % system. img 9 @ set persist_image = % flashpath % persist. img10 @ set ramdisk_image = % flashpath % ramdisk. img11 @ set recover_image = % flashpath % recovery. img12 @ set cache_image = % flashpath % cache. img13 14 15 @ echo 1. Burn boot. img16 @ echo 2. Burned into memory T. img17 @ echo 3. Burn persist. img18 @ echo 4. Burned out ramdisk. img19 @ echo 5. Burn recovery. img20 @ echo 6. Burn system. img21 @ echo 7. Burn cache. img22 @ echo 8. Burn all images 23 24 @ set/p option = set the path first, and then enter the option to burn: 25 26 27 adb wait-for-device28 adb reboot-bootloader29 30 31 32 if "% option %" = "1" (33 @ echo Burn boot. img ........ 34 fastboot flash boot % boot_image % 35) 36 37 if "% option %" = "2" (38 @ echo burned into memory T. img ........ 39 fastboot flash failed T % mbn_image % 40) 41 42 if "% option %" = "3" (43 @ echo burned persist. img .......... 44 fastboot flash persist % persist_image % 45) 46 47 if "% option %" = "4" (48 @ echo burned ramdisk. img .......... 49 fastboot flash ramdisk % ramdisk_image % 50) 51 52 if "% option %" = "5" (53 @ echo burn recovery. img ........... 54 fastboot flash recovery % recover_image % 55) 56 57 if "% option %" = "6" (58 @ echo burned the system. img ........ 59 fastboot flash system % system_image % 60) 61 62 if "% option %" = "7" (63 @ echo burn cache. img ........... 64 fastboot flash cache % cache_image % 65) 66 67 if "% option %" = "8" (68 @ echo burn all images ............. 69 fastboot flash boot % boot_image % 70 fastboot flash failed T % mbn_image % 71 fastboot flash persist % persist_image % 72 fastboot flash ramdisk % ramdisk_image % 73 fastboot flash recovery % recover_image % 74 fastboot flash system % system_image % 75 fastboot flash cache % cache_image % 76) 77 78 79 80 fastboot reboot81 adb wait-for-device82 adb root83 adb wait-for-device84 85 86 @ ping-n 5 127.0.0.1> nul87 adb shell dmesg> kmesg. log88 @ echo kernel log has been exported ..... 89 90 91 92 @ echo [burned successfully, disabled automatically in 5 seconds] 93 @ ping-n 5 127.0.0.1> nul
Dos image burning script to prevent memo;