[RAZR HD Q&A, Help & Troubleshooting] mr.charlespeter:
Updated Droid Utility Version 2.1 Deluxe script,back to main menu option now added

Charles Branson's Updated Droid Utility Version 2.1 Deluxe script with back to main menu option now added

BEGIN >>>

[MENTION=279333]ECHO[/MENTION] off

::This progarm is HOMEMADE by Jeff Cimmino (Otherwise known as the lovely Mr. Parkinson).

[MENTION=569231]tit[/MENTION]le Charles Branson's Updated Droid Utility Version 2.1 Deluxe

echo ................................

echo . Updated Version .

echo . Mr.Parkinson's .

echo . DROID UTILITY .

echo . Version 2.1 .

echo . DANGEROUSLY REFRESHING .

echo . Deluxe Edition .

echo . Add back to main menu option .

echo ................................

pause

cls

echo 2.1 Changelog:

echo Edited by Charles Peterkin aslo known as charles Branson

echo email freshxpresscs@gmail.com

echo Add back to main menu option

echo 2.0 Changelog:

echo -Updated the layout.

echo -Did some housecleaning.

echo -Added more stock recovery options.

echo -Added remove bootloader unlock warning.

echo -Added push Batakang ROM Test 16.

echo -Created Deluxe, Lite, and Ultra-Lite Editions.

echo -Working on GUI.

echo 1.21 Changelog:

echo -Fixed a dangerous error where the recovery image wouldn't flash when recovering.

echo -Added the "Flash TWRP 2.5 Custom Recovery" program.

echo -Added an option to not flash recovery image.

echo -Added a step by step guide to see if your bootloader is unlocked.

echo -When restoring stock ROMs, you will now have the option to delete userdata.

echo 1.1 Changelog:

echo -Removed the "Push Eclipse" option from the utility.

echo 1.01 Changelog:

echo -Fixed a typo in the main menu.

echo -Changed the wording of fastboot option.

echo -Made a change to the Eclipse/GApps program.

echo 1.0 Changelog:

echo Initial Release.

pause

cls

echo A little license I wrote:

echo This program is free for PERSONAL use only.

echo Try not to use this program for a profit.

echo Before hosting this program on your website,

echo email me at Jeffc@myissn.com.

pause

cls

echo This utility is designed for the following Devices:

echo Motorola Droid Razr / Razr Maxx HD,

echo Motorola Droid Razr M,

echo Motorola Atrix HD.

echo And some features may work on other devices.

echo Some features of this utility will only work on

echo specific devices, you will be warned in this case.

pause

cls

echo STANDARD DISCLAIMER:

echo USE THIS UTILITY AT YOUR OWN RISK.

echo ME, OR DANIEL ROSENBERG, OR ANYONE INVOLVED

echo IN THE CREATION OF THE PROGRAMS AND EXPLOITS HEREIN ARE NOT RESPONSIBLE

echo IF YOUR PHONE BRICKS, OR ANY OTHER DAMAGE OCCURS

echo WHILE USING THIS UTILITY. FOLLOW ALL INSTRUCTIONS,

echo AND YOU *SHOULD* BE FINE.

pause

:menu

cls

echo [*] Marks Experimental Program

echo Choose a Section:

echo 1: Stock Stuff

echo 2: ROMS

echo 3: Apps

echo 4: Roots, Unlocks and Recoveries

echo 5: Exit

echo 6: menu

:(

SET /P menu=Make your selection:

IF %menu% == 1 GOTO stockstuff

IF %menu% == 2 GOTO roms

IF %menu% == 3 GOTO apps

IF %menu% == 4 GOTO rur

IF %menu% == 5 GOTO exit

echo Please select a valid option.

pause

GOTO menu

cls

:stockstuff

cls

echo Stock Stuff

echo Select an Option:

echo -------------------------------------------------

echo 1: Complete Fastboot Restore to 4.1.2 Stock (XT925/926)

echo 2: Fastboot Restore to 4.1.2 Stock (Dont Flash Recovery) (XT925/926)

echo 3: [*]Fastboot Restore to 4.1.2 Stock (Dont Flash Modem) (XT926/926)

echo 4: Fastboot Restore Stock Recovery

echo 5: Fastboot Restore Stock Modem

echo 6: Go to Main menu

SET /P stock=Make Your Selection:

IF %stock% == 1 GOTO restore

IF %stock% == 2 GOTO restorenr

IF %stock% == 3 GOTO restorenm

IF %stock% == 4 GOTO resrecovery

IF %stock% == 5 GOTO resmodem

IF %stock% == 6 GOTO menu

echo Please select a valid option.

pause

GOTO stockstuff

:roms

cls

echo *Suggest a ROM! Add to the utility thread, PM Mr. Parkinson, or email me at Jeffc@myissn.com!*

echo ROMs

echo Select an Option:

echo -------------------------------------------------

echo 1: Batakang ROM Test 16 for Droid Razr/ Razr Maxx HD with Gapps

echo 2: Go to Main menu

SET /P roms=Make Your Selection:

IF %roms% == 1 GOTO batakang

IF %roms% == 2 GOTO menu

echo Please select a valid option.

pause

GOTO roms

:batakang

cls

echo This program will push the Batakang ROM and its gapps package.

echo To your sdcard/downloads folder.

echo MAKE SURE YOU HAVE 411 MB OF FREE SPACE BEFORE YOU PUSH.

echo It will NOT install it, you need to do that yourself, through a custom recovery

echo or through safestrap.

echo Press any key to begin the push...

pause

echo Pushing Gapps...

adb push roms/Gapps4BatakangROMv2 sdcard/Download/Gapps4BatakangROMv2

echo Pushing Batakang ROM...

adb push roms/BatakangROM sdcard/Download/BatakangROM

echo Push complete!

echo Press any key to return to main menu...

pause

GOTO menu

:apps

cls

echo *Suggest an app! Add to the utility thread, PM Mr. Parkinson, or email me at Jeffc@myissn.com!*

echo Apps

echo Select an Option:

echo -------------------------------------------------

echo 1: Install Safestrap 3.05

echo 2: Install Safestrap 3.12

echo 3: Install voodoo's OTA Rootkeeper

echo 4: Install Titanium Backup

echo 5: Go to Main Menu

SET /P apps=Make Your Selection:

IF %apps% == 1 GOTO safestrap

IF %apps% == 2 GOTO safestrap3.12

IF %apps% == 3 GOTO voodoo

IF %apps% == 4 GOTO titanium

IF %apps% == 5 Go to Main menu

echo Please select a valid option.

pause

GOTO apps

:rur

cls

echo Roots, Unlocks, and Recoveries

echo Select an Option:

echo -------------------------------------------------

echo ROOTS:

echo 1: Root Your Phone! (Motochopper Method)

echo UNLOCKS:

echo 2: Unlock Your Bootloader! (Motopocalypse Method)

echo 3: Is My Bootloader Unlocked?

echo 4: Remove Bootloader Unlock Warning

echo RECOVERIES:

echo 4: Flash TWRP Custom Recovery (UNLOCKED BOOTLOADER REQUIRED)

echo 6: Main Menu

SET /P rur=Make Your Selection:

IF %rur% == 1 GOTO root

IF %rur% == 2 GOTO unlock

IF %rur% == 3 GOTO unlock2

IF %rur% == 4 GOTO rmbuwarn

IF %rur% == 5 GOTO twrp

IF %rur% == 6 Go to Main menu

echo Please select a valid option.

pause

GOTO rur

:rmbuwarn

echo This program will remove the Bootloader Unlock Warning from your phone.

echo Press any key to remove the warning...

pause

fastboot flash logo VZW_XT926_4.1.2/logo.bin

echo Your phone is now free from that pesky bootloader unlock warning!

echo Press any key to return to the main menu.

pause

GOTO menu

:restore

cls

echo *****************

echo * 4.1.2 Restore *

echo * by *

echo * Mr. Parkinson *

echo *****************

echo This program will restore your phone to Verizon stock Android 4.1.2.

echo It will also replace your custom recovery with stock, if you have one.

echo WARNING: THIS PROGRAM IS ONLY GUARANTEED FOR XT925/926 DEVICES (Droid Razr/Razr Maxx HD)!

echo USE AT YOUR OWN RISK, EVEN BETTER, IF YOUR PHONE IS NOT AN XT925/926, DO NOT USE THIS PROGRAM AT ALL.

pause

echo This program will now install stock 4.1.2 firmware to your device.

echo Before launching the utility, put your phone into Fastboot mode!

echo Turn of the phone, then, hold the vol-up and vol-down buttons,

echo while holding the power button, until the boot menu comes up.

echo Scroll down to AP FASTBOOT, and select it.

pause

fastboot flash sbl1 VZW_XT926_4.1.2/sbl1.mbn

fastboot flash sbl2 VZW_XT926_4.1.2/sbl2.mbn

fastboot flash sbl3 VZW_XT926_4.1.2/sbl3.mbn

fastboot flash rpm VZW_XT926_4.1.2/rpm.mbn

fastboot flash tz VZW_XT926_4.1.2/tz.mbn

fastboot flash aboot VZW_XT926_4.1.2/emmc_appboot.mbn

fastboot reboot-bootloader

echo. When the screen bcomes back on, press any key to continue!

pause

fastboot flash partition VZW_XT926_4.1.2/gpt_main0.bin

fastboot flash sbl1 VZW_XT926_4.1.2/sbl1.mbn

fastboot flash sbl2 VZW_XT926_4.1.2/sbl2.mbn

fastboot flash sbl3 VZW_XT926_4.1.2/sbl3.mbn

fastboot flash rpm VZW_XT926_4.1.2/rpm.mbn

fastboot flash tz VZW_XT926_4.1.2/tz.mbn

fastboot flash aboot VZW_XT926_4.1.2/emmc_appboot.mbn

fastboot flash boot VZW_XT926_4.1.2/boot.img

fastboot flash system VZW_XT926_4.1.2/system.img

fastboot flash recovery VZW_XT926_4.1.2/recovery.img

fastboot flash modem VZW_XT926_4.1.2/NON-HLOS.bin

fastboot flash devtree VZW_XT926_4.1.2/device_tree.bin

fastboot flash logo VZW_XT926_4.1.2/logo.bin

fastboot flash cdrom VZW_XT926_4.1.2/cdrom

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg VZW_XT926_4.1.2/fsg.mbn

fastboot erase cache

fastboot erase tombstones

echo After this point, the utility will erase userdata.

echo It is recommended you do this, but not required.

set /p z=Would you like to erase userdata? (Y/N CASE SENSITIVE)

IF %z%==Y GOTO restore2

IF %z%==N GOTO restorecomplete

:restore2

fastboot erase userdata

fastboot flash modem VZW_XT926_4.1.2/NON-HLOS

fastboot erase modemst1

fastboot erase modemst2

:restorecomplete

fastboot reboot

echo You are now on stock 4.1.2 for XT925/926 devices!

echo Pressing any key will return to the main menu.

pause

goto menu

:restorenr

cls

echo *****************

echo * 4.1.2 Restore *

echo * by *

echo * Mr. Parkinson *

echo * No Recovery *

echo *****************

echo This program will restore your phone to Verizon stock Android 4.1.2.

echo This will NOT flash the stock recovery.

echo WARNING: THIS PROGRAM IS ONLY GUARANTEED FOR XT925/926 DEVICES (Droid Razr/Razr Maxx HD)!

echo USE AT YOUR OWN RISK, EVEN BETTER, IF YOUR PHONE IS NOT AN XT925/926, DO NOT USE THIS PROGRAM AT ALL.

pause

echo This program will now install stock 4.1.2 firmware to your device.

echo Before launching the utility, put your phone into Fastboot mode!

echo Turn of the phone, then, hold the vol-up and vol-down buttons,

echo while holding the power button, until the boot menu comes up.

echo Scroll down to AP FASTBOOT, and select it.

pause

fastboot flash sb11 VZW_XT926_4.1.2/sbl1.mbn

fastboot flash sb12 VZW_XT926_4.1.2/sbl2.mbn

fastboot flash sb13 VZW_XT926_4.1.2/sbl3.mbn

fastboot flash rpm VZW_XT926_4.1.2/rpm.mbn

fastboot flash tz VZW_XT926_4.1.2/tz.mbn

fastboot flash aboot VZW_XT926_4.1.2/emmc_appboot.mbn

fastboot reboot-bootloader

echo. When the screen bcomes back on, press any key to continue!

pause

fastboot flash partition VZW_XT926_4.1.2/gpt_main0.bin

fastboot flash sb11 VZW_XT926_4.1.2/sbl1.mbn

fastboot flash sb12 VZW_XT926_4.1.2/sbl2.mbn

fastboot flash sb13 VZW_XT926_4.1.2/sbl3.mbn

fastboot flash rpm VZW_XT926_4.1.2/rpm.mbn

fastboot flash tz VZW_XT926_4.1.2/tz.mbn

fastboot flash aboot VZW_XT926_4.1.2/emmc_appboot.mbn

fastboot flash boot VZW_XT926_4.1.2/boot.img

fastboot flash system VZW_XT926_4.1.2/system.img

fastboot flash modem VZW_XT926_4.1.2/NON-HLOS.bin

fastboot flash devtree VZW_XT926_4.1.2/device_tree.bin

fastboot flash logo VZW_XT926_4.1.2/logo.bin

fastboot flash cdrom VZW_XT926_4.1.2/cdrom

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg VZW_XT926_4.1.2/fsg.mbn

fastboot erase cache

fastboot erase tombstones

echo After this point, the utility will erase userdata.

echo It is recommended you do this, but not required.

set /p x=Would you like to erase userdata? (Y/N CASE SENSITIVE)

IF %x%==Y GOTO restorenr2

IF %x%==N GOTO restorenrcomplete

:restorenr2

fastboot erase userdata

fastboot flash modem VZW_XT926_4.1.2/NON-HLOS

fastboot erase modemst1

fastboot erase modemst2

:restorenrcomplete

fastboot reboot

echo You are now on stock 4.1.2 for XT925/926 devices!

echo Pressing any key will return to the main menu.

pause

goto menu

:restorenm

cls

echo *****************

echo * 4.1.2 Restore *

echo * by *

echo * Mr. Parkinson *

echo * No Modem *

echo *****************

echo This program will restore your phone to Verizon stock Android 4.1.2.

echo This will NOT flash the stock modem.

echo WARNING: THIS PROGRAM IS ONLY GUARANTEED FOR XT925/926 DEVICES (Droid Razr/Razr Maxx HD)!

echo USE AT YOUR OWN RISK, EVEN BETTER, IF YOUR PHONE IS NOT AN XT925/926, DO NOT USE THIS PROGRAM AT ALL.

pause

echo This program will now install stock 4.1.2 firmware to your device.

echo Before launching the utility, put your phone into Fastboot mode!

echo Turn of the phone, then, hold the vol-up and vol-down buttons,

echo while holding the power button, until the boot menu comes up.

echo Scroll down to AP FASTBOOT, and select it.

pause

fastboot flash sb11 VZW_XT926_4.1.2/sbl1.mbn

fastboot flash sb12 VZW_XT926_4.1.2/sbl2.mbn

fastboot flash sb13 VZW_XT926_4.1.2/sbl3.mbn

fastboot flash rpm VZW_XT926_4.1.2/rpm.mbn

fastboot flash tz VZW_XT926_4.1.2/tz.mbn

fastboot flash aboot VZW_XT926_4.1.2/emmc_appboot.mbn

fastboot reboot-bootloader

echo. When the screen bcomes back on, press any key to continue!

pause

fastboot flash partition VZW_XT926_4.1.2/gpt_main0.bin

fastboot flash sb11 VZW_XT926_4.1.2/sbl1.mbn

fastboot flash sb12 VZW_XT926_4.1.2/sbl2.mbn

fastboot flash sb13 VZW_XT926_4.1.2/sbl3.mbn

fastboot flash rpm VZW_XT926_4.1.2/rpm.mbn

fastboot flash tz VZW_XT926_4.1.2/tz.mbn

fastboot flash aboot VZW_XT926_4.1.2/emmc_appboot.mbn

fastboot flash boot VZW_XT926_4.1.2/boot.img

fastboot flash system VZW_XT926_4.1.2/system.img

fastboot flash recovery VZW_XT926_4.1.2/recovery.img

fastboot flash devtree VZW_XT926_4.1.2/device_tree.bin

fastboot flash logo VZW_XT926_4.1.2/logo.bin

fastboot flash cdrom VZW_XT926_4.1.2/cdrom

fastboot erase modemst1

fastboot erase modemst2

fastboot flash fsg VZW_XT926_4.1.2/fsg.mbn

fastboot erase cache

fastboot erase tombstones

echo After this point, the utility will erase userdata.

echo It is recommended you do this, but not required.

set /p x=Would you like to erase userdata? (Y/N CASE SENSITIVE)

IF %x%==Y GOTO restorenr2

IF %x%==N GOTO restorenrcomplete

:restorenm2

fastboot erase userdata

fastboot erase modemst1

fastboot erase modemst2

:restorenmcomplete

fastboot reboot

echo You are now on stock 4.1.2 for XT925/926 devices!

echo Pressing any key will return to the main menu.

pause

goto menu

:rescovery

cls

echo This program will restore the stock 4.1.2 recovery for XT925/926 devices.

echo Press any key to start the restore.

pause

fastboot flash recovery VZW_XT926_4.1.2/recovery.img

fastboot erase cache

fastboot erase tombstones

fastboot reboot

echo You are now running the stock recovery!

echo Pressing any key will return to the main menu.

pause

goto menu

:resmodem

cls

echo This program will restore the stock 4.1.2 modem for XT925/926 devices.

echo Press any key to start the restore.

pause

fastboot flash modem VZW_XT926_4.1.2/NON-HLOS.bin

fastboot erase cache

fastboot erase tombstones

fastboot reboot

echo You are now running the stock modem!

echo Pressing any key will return to the main menu.

pauseg

goto menu

:root

cls

echo This program will give you root privelages.

echo Thank Dan Rosenberg (Djrbliss) for this root exploit!

echo Feel free to donate to him for his hard work!

echo Press any key to root your phone.

pause

adb kill-server

echo [*] Waiting for device...

adb wait-for-device

echo [*] Device found.

echo [*] Pushing exploit...

adb push root/pwn /data/local/tmp/pwn

adb shell chmod 755 /data/local/tmp/pwn

echo [*] Pushing root tools...

adb push root/su /data/local/tmp/su

adb push root/busybox /data/local/tmp/busybox

adb install apps/Superuser.apk

echo [*] Rooting phone...

adb shell /data/local/tmp/pwn

echo [*] Cleaning up...

adb shell rm /data/local/tmp/pwn

adb shell rm /data/local/tmp/su

adb shell rm /data/local/tmp/busybox

echo [*] Exploit complete. Press enter to reboot and exit.

pause

adb reboot

adb kill-server

goto menu

:safestrap

cls

echo This program will install Safestrap 3.05 to your phone.

echo Enable USB Debugging!

echo *Requires Root Privelages to work!*

pause

adb wait-for-device

adb install apps/RAZR-HD-Safestrap-3.05.17.apk

adb kill-server

echo Install complete!

echo Press any key to return to the main menu.

pause

goto menu

:safestrap3.12

cls

echo This program will install Safestrap 3.12 to your phone.

echo Enable USB Debugging!

echo *Requires Root Privelages to work!*

pause

adb wait-fordevice

adb install apps/safestrap3.12.apk

adb kill-server

echo Install complete!

echo Press any key to return to the main menu.

pause

goto menu

:twrp

cls

echo This program will now flash the TWRP Custom Recovery.

echo Before we do this, your bootloader needs to be unlocked!

set /p b=Is your bootloader unlocked? (Y/N/NotSure CASE SENSITIVE)

IF %b%==Y GOTO twrp1

IF %b%==N GOTO unlock

IF %b%==NotSure GOTO unlock2

:twrp1

echo Press any key to flash TWRP!

pause

fastboot flash recovery twrp/twrp-2.5.0.0-recovery-vanquish.img

echo Flash complete.

echo Press any key to return to the main menu.

pause

GOTO menu

:voodoo

cls

echo This program will install voodoo's OTA Rootkeeper.

echo Enable USB Debugging!

pause

adb wait-for-device

adb install apps/org.projectvoodoo.otarootkeeper-1.apk

adb kill-server

echo Install complete!

echo Press any key to return to the main menu.

pause

goto menu

:titanium

cls

echo This program will install Titanium Backup Pro.

echo Enable USB Debugging!

echo *Requires Root Privelages to work!*

pause

adb wait-for-device

adb install apps/TBackuppro.apk

adb kill-server

echo Install complete!

echo Press any key to return to the main menu.

pause

goto menu

:unlock

cls

echo This program will unlock your Motorola device bootloader.

echo Works with Razr /Razr Maxx HD, Razr M, and Atrix HD.

echo Thank Dan Rosenberg (Djrbliss) for his hard work!

echo Feel free to donate to him for this fantastic exploit!

echo *Requires Root Privelages to work!*

pause

echo WARNING! UNLOCKING YOUR BOOTLOADER WILL RESULT IN A MAJOR SECURITY HOLE IN YOUR PHONE.

echo ANY THEIF WITH ENOUGH KNOW HOW COULD STEAL ALL THE DATA ON YOUR PHONE, REGARDLESS OF A LOCK SCREEN.

echo IT IS RECOMMENDED THAT YOU ENCRYPT YOUR PHONE AFTERWARDS.

echo THIS PROGRAM ALSO PERMANANTLY UNLOCKS THE BOOTLAODER, AKA: PERMANANTLY VOIDS YOUR WARRANTY.

echo NOONE INVOLVED IN MAKING THIS PROGRAM IS RESPONSIBLE FOR ANY DAMAGE TO YOUR PHONE.

echo RUN THIS PROGRAM AT YOUR OWN RISK.

set /p q=Are you sure you want to unlock your bootloader? (Y/N CASE SENSITIVE)

IF %q%==Y GOTO unlock1

IF %q%==N GOTO menu

:unlock1

cls

echo You have chosen to unlock your bootloader.

pause

cls

adb kill-server

echo [*] Waiting for device...

adb wait-for-device

echo [*] Device found.

echo [*] Pushing unlock tool...

adb push unlock/unlock /data/local/tmp

adb shell chmod 755 /data/local/tmp/unlock

echo [*] Unlocking phone...

adb shell su -c /data/local/tmp/unlock

echo [*] Cleaning up...

adb shell rm /data/local/tmp/unlock

echo [*] Unlocking complete. Rebooting into bootloader mode.

adb reboot bootloader

echo [*] Press enter once the phone has rebooted into bootloader mode.

pause

echo [*] Displaying bootloader variables:

fastboot getvar all

echo [*] Press enter to reboot and exit.

pause

fastboot continue

adb kill-server

echo Congratulations! Your phone's bootloader is now unlocked!

pause

goto menu

:unlock2

cls

echo How to tell if your bootloader is unlocked:

echo Step 1: Power off your phone.

pause

cls

echo Step 2: Boot into AP Fastboot mode

echo (Hold the VOL-Down and VOL-Up buttons as you push the power button.

echo When the menu shows up, scroll down to AP FASTBOOT and select it.)

pause

cls

echo Step 3: Check your status,

echo If it says Status 0, then your bootloader is locked.

echo If it says Status 1, then your bootloader is unlocked!

echo Pressing any key will return to the main menu.

pause

GOTO menu

:exit

cls

echo Thank you for using the DroidHD Utility by Mr. Parkinson!

echo Contact me at Jeffc@myissn.com!

echo (I do websites too!)

pause

<<< END