├── Place_Extracted_Firmware_Here ├── adb.exe ├── fastboot.exe ├── AdbWinApi.dll ├── AdbWinUsbApi.dll ├── 3-rsd-flash-Droid-windows.bat ├── 2-rsd-flash-flashfile-windows.bat └── 1-rsd-flash-servicefile-windows.bat ├── READ_ME_FIRST!!!.txt └── .gitignore /Place_Extracted_Firmware_Here/adb.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootjunky/Motorola-XML-To-Batch-Script/HEAD/Place_Extracted_Firmware_Here/adb.exe -------------------------------------------------------------------------------- /Place_Extracted_Firmware_Here/fastboot.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootjunky/Motorola-XML-To-Batch-Script/HEAD/Place_Extracted_Firmware_Here/fastboot.exe -------------------------------------------------------------------------------- /Place_Extracted_Firmware_Here/AdbWinApi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootjunky/Motorola-XML-To-Batch-Script/HEAD/Place_Extracted_Firmware_Here/AdbWinApi.dll -------------------------------------------------------------------------------- /Place_Extracted_Firmware_Here/AdbWinUsbApi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rootjunky/Motorola-XML-To-Batch-Script/HEAD/Place_Extracted_Firmware_Here/AdbWinUsbApi.dll -------------------------------------------------------------------------------- /READ_ME_FIRST!!!.txt: -------------------------------------------------------------------------------- 1 | Note scripts 1 and 2 should work on all moto devices and 3 on most droid devices 2 | 3 | 1-rsd-flash-servicefile-windows.bat 4 | run this script to convert the servicefile.xml in you motorola firmware to a batch script that will not wipe your device data 5 | 6 | 2-rsd-flash-flashfile-windows.bat 7 | run this script to convert the flashfile.xml in you motorola firmware to a batch script that WILL wipe your device data 8 | 9 | 3-rsd-flash-Droid-windows.bat 10 | run this script to convert xml files from older device that do not have a servicefile or flashfile but have a xml file that is he model of the device. if the script that is created doesn't work then use 2-rsd-flash-flashfile-windows.bat and see if it works. -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # Files for the ART/Dalvik VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # Generated files 12 | bin/ 13 | gen/ 14 | out/ 15 | 16 | # Gradle files 17 | .gradle/ 18 | build/ 19 | 20 | # Local configuration file (sdk path, etc) 21 | local.properties 22 | 23 | # Proguard folder generated by Eclipse 24 | proguard/ 25 | 26 | # Log Files 27 | *.log 28 | 29 | # Android Studio Navigation editor temp files 30 | .navigation/ 31 | 32 | # Android Studio captures folder 33 | captures/ 34 | 35 | # IntelliJ 36 | *.iml 37 | .idea/workspace.xml 38 | .idea/tasks.xml 39 | .idea/gradle.xml 40 | .idea/assetWizardSettings.xml 41 | .idea/dictionaries 42 | .idea/libraries 43 | .idea/caches 44 | 45 | # Keystore files 46 | # Uncomment the following line if you do not want to check your keystore files in. 47 | #*.jks 48 | 49 | # External native build folder generated in Android Studio 2.2 and later 50 | .externalNativeBuild 51 | 52 | # Google Services (e.g. APIs or Firebase) 53 | google-services.json 54 | 55 | # Freeline 56 | freeline.py 57 | freeline/ 58 | freeline_project_description.json 59 | 60 | # fastlane 61 | fastlane/report.xml 62 | fastlane/Preview.html 63 | fastlane/screenshots 64 | fastlane/test_output 65 | fastlane/readme.md 66 | -------------------------------------------------------------------------------- /Place_Extracted_Firmware_Here/3-rsd-flash-Droid-windows.bat: -------------------------------------------------------------------------------- 1 | echo off 2 | 3 | echo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 4 | echo " ___ ____ ____ _____ ____ ___ ____ ____ __ ________ _ _ " 5 | echo " / _ \/ _ \/ _ \/_ _/_ / / / / / \/ / //_/\ \/ / / __/ _ \/ \/ \ " 6 | echo " / , _/ |_| / |_| / / / / // / /_/ / / < \ /_/ /_/ |_| / , , \ " 7 | echo " /_/|_|\____/\____/ /_/ \___/\____/_/\_/_/\_/ /_/_/___/\____/_/ \/ \_\ " 8 | echo " " 9 | echo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 10 | echo ------------------------------------------------------------------------------ 11 | echo [*] Welcome to Motorola xml to bat converter for windows 12 | echo [*] please rename your xml file to firmwareflash.xml 13 | echo ------------------------------------------------------------------------------ 14 | pause 15 | echo echo off > firmwareflash.bat 16 | findstr "\" firmwareflash.xml > step.txt 17 | for /F delims^=^"^ Tokens^=2^,4^,6^* %%G in (step.txt) DO @echo fastboot %%G %%H %%I >> firmwareflash.bat 18 | echo echo ------------------------------------------------------------------------- >> firmwareflash.bat 19 | echo echo please scroll up and check your flash for any errors >> firmwareflash.bat 20 | echo echo ------------------------------------------------------------------------- >> firmwareflash.bat 21 | echo pause >> firmwareflash.bat 22 | echo fastboot reboot >> firmwareflash.bat 23 | echo exit >> firmwareflash.bat 24 | echo [*] The firmwareflash.xml has been converted to a firmwareflash.bat 25 | echo [*] press any key to exit then double click the firmwareflash.bat 26 | echo [*] to start your firmware restore on your motorola device. 27 | echo [*] make sure your device is in fastboot mode first before you start 28 | echo ------------------------------------------------------------------------------ 29 | del step.txt 30 | pause 31 | exit -------------------------------------------------------------------------------- /Place_Extracted_Firmware_Here/2-rsd-flash-flashfile-windows.bat: -------------------------------------------------------------------------------- 1 | echo off 2 | 3 | echo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 4 | echo " ___ ____ ____ _____ ____ ___ ____ ____ __ ________ _ _ " 5 | echo " / _ \/ _ \/ _ \/_ _/_ / / / / / \/ / //_/\ \/ / / __/ _ \/ \/ \ " 6 | echo " / , _/ |_| / |_| / / / / // / /_/ / / < \ /_/ /_/ |_| / , , \ " 7 | echo " /_/|_|\____/\____/ /_/ \___/\____/_/\_/_/\_/ /_/_/___/\____/_/ \/ \_\ " 8 | echo " " 9 | echo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 10 | echo ------------------------------------------------------------------------------ 11 | echo [*] Welcome to Motorola flashfile.xml to batch converter for windows 12 | echo ------------------------------------------------------------------------------ 13 | pause 14 | echo echo off > flashfile.bat 15 | echo fastboot getvar max-sparse-size >> flashfile.bat 16 | echo fastboot oem fb_mode_set >> flashfile.bat 17 | findstr "\" flashfile.xml > filename.txt 18 | findstr "\" flashfile.xml > erase.txt 19 | findstr "\" flashfile.xml > mbn.txt 20 | findstr "\" flashfile.xml > BTFM.txt 21 | for /F delims^=^"^ Tokens^=4^,6^,8^* %%G in (filename.txt) DO @echo fastboot %%H %%I %%G >> flashfile.bat 22 | for /F delims^=^"^ Tokens^=2^,4^,6^* %%G in (erase.txt) DO @echo fastboot %%G %%H >> flashfile.bat 23 | for /F delims^=^"^ Tokens^=4^,6^,8^* %%G in (mbn.txt) DO @echo fastboot %%H %%I %%G >> flashfile.bat 24 | for /F delims^=^"^ Tokens^=4^,6^,8^* %%G in (BTFM.txt) DO @echo fastboot %%H %%I %%G >> flashfile.bat 25 | echo fastboot oem fb_mode_clear >> flashfile.bat 26 | echo echo ------------------------------------------------------------------------- >> flashfile.bat 27 | echo echo please scroll up and check your flash for any errors >> flashfile.bat 28 | echo echo ------------------------------------------------------------------------- >> flashfile.bat 29 | echo pause >> flashfile.bat 30 | echo fastboot reboot >> flashfile.bat 31 | echo exit >> flashfile.bat 32 | echo [*] The flashfile.xml has been converted to a flashfile.bat 33 | echo [*] press any key to exit then double click the flashfile.bat 34 | echo [*] to start your firmware restore on your motorola device. 35 | echo [*] make sure your device is in fastboot mode first before you start 36 | echo ------------------------------------------------------------------------------ 37 | del BTFM.txt 38 | del mbn.txt 39 | del erase.txt 40 | del filename.txt 41 | pause 42 | exit -------------------------------------------------------------------------------- /Place_Extracted_Firmware_Here/1-rsd-flash-servicefile-windows.bat: -------------------------------------------------------------------------------- 1 | echo off 2 | 3 | echo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 4 | echo " ___ ____ ____ _____ ____ ___ ____ ____ __ ________ _ _ " 5 | echo " / _ \/ _ \/ _ \/_ _/_ / / / / / \/ / //_/\ \/ / / __/ _ \/ \/ \ " 6 | echo " / , _/ |_| / |_| / / / / // / /_/ / / < \ /_/ /_/ |_| / , , \ " 7 | echo " /_/|_|\____/\____/ /_/ \___/\____/_/\_/_/\_/ /_/_/___/\____/_/ \/ \_\ " 8 | echo " " 9 | echo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 10 | echo ------------------------------------------------------------------------------ 11 | echo [*] Welcome to Motorola servicefile.xml to batch converter for windows 12 | echo ------------------------------------------------------------------------------ 13 | pause 14 | echo echo off > servicefile.bat 15 | echo fastboot getvar max-sparse-size >> servicefile.bat 16 | echo fastboot oem fb_mode_set >> servicefile.bat 17 | findstr "\" servicefile.xml > filename.txt 18 | findstr "\" servicefile.xml > erase.txt 19 | findstr "\" servicefile.xml > mbn.txt 20 | findstr "\" servicefile.xml > BTFM.txt 21 | for /F delims^=^"^ Tokens^=4^,6^,8^* %%G in (filename.txt) DO @echo fastboot %%H %%I %%G >> servicefile.bat 22 | for /F delims^=^"^ Tokens^=2^,4^,6^* %%G in (erase.txt) DO @echo fastboot %%G %%H >> servicefile.bat 23 | for /F delims^=^"^ Tokens^=4^,6^,8^* %%G in (mbn.txt) DO @echo fastboot %%H %%I %%G >> servicefile.bat 24 | for /F delims^=^"^ Tokens^=4^,6^,8^* %%G in (BTFM.txt) DO @echo fastboot %%H %%I %%G >> servicefile.bat 25 | echo fastboot oem fb_mode_clear >> servicefile.bat 26 | echo echo ------------------------------------------------------------------------- >> servicefile.bat 27 | echo echo please scroll up and check your flash for any errors >> servicefile.bat 28 | echo echo ------------------------------------------------------------------------- >> servicefile.bat 29 | echo pause >> servicefile.bat 30 | echo fastboot reboot >> servicefile.bat 31 | echo exit >> servicefile.bat 32 | echo [*] The Servicefile.xml has been converted to a Servicefile.bat 33 | echo [*] press any key to exit then double click the servicefile.bat 34 | echo [*] to start your firmware restore on your motorola device. 35 | echo [*] make sure your device is in fastboot mode first before you start 36 | echo ------------------------------------------------------------------------------ 37 | del BTFM.txt 38 | del mbn.txt 39 | del erase.txt 40 | del filename.txt 41 | pause 42 | exit --------------------------------------------------------------------------------