Dos烧录脚本

2018-01-27 08:09:28来源:cnblogs.com作者:yooooooo人点击

分享
 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、烧录boot.img16 @echo 2、烧录aboot.img17 @echo 3、烧录persist.img18 @echo 4、烧录ramdisk.img19 @echo 5、烧录recovery.img20 @echo 6、烧录system.img21 @echo 7、烧录cache.img22 @echo 8、烧录所有镜像23 24 @set /p option=请先设置路径后,再输入要烧录的选项:25 26 27 adb wait-for-device28 adb reboot-bootloader29 30 31 32 if "%option%" == "1" (33 @echo 烧录boot.img........34 fastboot flash boot %boot_image%35 )36 37 if "%option%" == "2" (38 @echo 烧录aboot.img........39 fastboot flash aboot %mbn_image%40 )41 42 if "%option%" == "3" (43 @echo 烧录persist.img..........44 fastboot flash persist %persist_image%45 )46 47 if "%option%" == "4" (48 @echo 烧录ramdisk.img..........49 fastboot flash ramdisk %ramdisk_image%50 )51 52 if "%option%" == "5" (53 @echo 烧录recovery.img...........54 fastboot flash recovery %recover_image%55 )56 57 if "%option%" == "6" (58 @echo 烧录system.img........59 fastboot flash system %system_image%60 )61 62 if "%option%" == "7" (63 @echo 烧录cache.img...........64 fastboot flash cache %cache_image%65 )66 67 if "%option%" == "8" (68 @echo 烧录所有镜像.............69 fastboot flash boot %boot_image%70 fastboot flash aboot %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已经导出.....89 90 91 92 @echo [烧录成功,暂停5秒自动关闭]93 @ping -n 5 127.0.0.1>nul

dos烧录镜像脚本,以防备忘;

最新文章

123

最新摄影

闪念基因

微信扫一扫

第七城市微信公众平台