[MISC] 1click tools (Windows only) - HTC Desire S

S-Off + Perm root is required to use this tools!
there are 3 batch files inside:
_Radio.bat
_Recovery.bat
_EngBootloader.bat
how to use:
_EngBootloader - run and follow instructions
_Radio.bat - download radio image, rename it to radio.img and put it into the directory, run _Radio.bat
_Recovery.bat - download recovery image, rename it to recovery.img and put it into directory, run _Recovery.bat
don't know if all of you think that those tools are useful, but for some people it may be useful cause they aren't familar with cmd & adb
code for the batch files are included in the 2nd post, executables (no drivers) for adb and fastboot are included in the attachment

_EngBootloader.bat
Code:
@echo off
cls
adb devices
echo If your device is not listed exit this program now, enable usb debugging and try again.
pause
cls
adb push hboot.img /data/local/tmp
adb shell chmod 777 /data/local/tmp/hboot.img
echo Please accept superuser request on your phone
adb shell su
pause
adb shell dd if=/dev/block/mmcblk0p18 of=/sdcard/backup.img
adb shell dd if=/data/local/tmp/hboot.img of=/dev/block/mmcblk0p18
echo Bootloader should be flashed to your device now, backup from old bootloader is saved at /sdcard/backup.img
pause
adb reboot bootloader
_Radio.bat
Code:
@echo off
cls
adb devices
echo If your device is not listed exit this program now, enable usb debugging and try again.
pause
cls
echo Please accept superuser request on your phone
adb shell su
pause
echo Phone should reboot now to bootloader, please wait for it to boot
adb reboot bootloader
pause
echo Wait for flash to finish
fastboot flash radio radio.img
pause
fastboot reboot
_Recovery.bat
Code:
@echo off
cls
adb devices
echo If your device is not listed exit this program now, enable usb debugging and try again.
pause
cls
echo Please accept superuser request on your phone
adb shell su
pause
echo Phone should reboot now to bootloader, please wait for it to boot
adb reboot bootloader
pause
echo Wait for flash to finish
fastboot flash recovery recovery.img
pause
fastboot reboot

is this method for s off DS without xtc clip?

jalal.arkat said:
is this method for s off DS without xtc clip?
Click to expand...
Click to collapse
No, unfortunately these are a group off tools that can only be used once you are S-OFF.
So S-ON need not apply
@Blezz : thanks these will be useful

i don't know if they will be useful, they are still simply work.. it's more for... lazy people

Related

[APP][root][HK]mb860/mb861 2.3.4 root

i just want to help thoese chinese friends:
my phone is mb861 (860+dock super pack) flashed with hk rom
now 2.3.4 is updated, so it need to be root.
super onclick root does'nt work on my phone. (operation not permitted)
but,by flashing boot.img and then root is fine with mine phone. well, hope u know what to do
my thread: (chinese)
bbs.hiapk.com viewthread.php?tid=2670677
my bat file:
Code:
@echo off
echo 1st turn off power, then press power button while holding volume button down
echo when seeing FASTBOOT on screen then press volume button up!
echo step 1/3...
pause
echo step 2/3 flashing root.img
fastboot flash preinstall root.img
ping 127.0.0.1>null
fastboot reboot
echo open usb debug mode! and then press any key to enter next step
pause
echo step 3/3 installing su, superuser
adb shell
/preinstall/su
/bin/mount /system -o remount,rw
cp /preinstall/su /system/bin/su
chmod 6755 /system/bin/su
PATH=/system/bin:$PATH pm install /preinstall/Superuser.apk
files needed:
adb.exe
AdbWinApi.dll
AdbWinUsbApi.dll
fastboot.exe
root.img
su
Superuser.apk

[Q] 2.20 root on mac?

sorry for the noob question, but i am new to android and new to rooting. is there a way to do this on a mac that isnt running a windows partition? if so is there an explanation?
jasonr803 said:
sorry for the noob question, but i am new to android and new to rooting. is there a way to do this on a mac that isnt running a windows partition? if so is there an explanation?
Click to expand...
Click to collapse
1. Make sure you have installed ADB and FASTBOOT command line tools first. You can install them from here: http://code.google.com/p/adb-fastboot-install/
2. Download djrbliss's exploit files. You can find it here: http://forum.xda-developers.com/showthread.php?t=1952038
3. Extract the entire zip file.
4. Connect your device via USB, ensure USB debugging mode is enabled.
5. Open Terminal and enter into the folder that you extract that zip file.
6. Just type the following command lines step by step:
1. adb wait-for-device
May be you will see this information in your terminal
=======================================
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
=======================================
2. adb restore backup1.ab
3. adb shell "rm /data/data/com.android.providers.telephony/databases/a/b 2>/dev/null"
4. adb shell "ln -s /dev/diag /data/data/com.android.providers.telephony/databases/a/b 2>/dev/null"
5. adb restore backup2.ab
6. adb push pwn /data/local/tmp
After this you can see some information in your terminal like this:
========================================
1180 KB/s (64526 bytes in 0.053s)
========================================
7. adb shell "chmod 755 /data/local/tmp/pwn"
8. adb shell "/data/local/tmp/pwn"
After this if you see this in your terminal that means you are close to success:
========================================
[+] Set CID!
========================================
9. adb reboot bootloader
In this step, just keep waiting until your phone enter into fastboot mode, then excute step 10.
10. adb kill-server
11. fastboot oem readcid
If you see the cid like this you are success!!!
========================================
...
(bootloader) cid: 11111111
OKAY [ 0.010s]
finished. total time: 0.010s
========================================
12. fastboot oem get_identifier_token
Finally you can get your own identifier token.
For some reason the adb commands dont work for me. Is there something I'm missing?
Edit: Figured it out but now I get a "Failed." error when I type adb shell "/data/local/tmp/pwn"
jasonr803 said:
sorry for the noob question, but i am new to android and new to rooting. is there a way to do this on a mac that isnt running a windows partition? if so is there an explanation?
Click to expand...
Click to collapse
instructions have been updated and there is now a script for mac you can execute in terminal
http://forum.xda-developers.com/showpost.php?p=33178597&postcount=1
h1m said:
For some reason the adb commands dont work for me. Is there something I'm missing?
Edit: Figured it out but now I get a "Failed." error when I type adb shell "/data/local/tmp/pwn"
Click to expand...
Click to collapse
I also encounter this problem. Try to factory reset your phone first. I do this then it works fine.

[Q&A] Mr.Parkinsons DroidHD Utility 2.0

Q&A for Mr.Parkinsons DroidHD Utility 2.0
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for Mr.Parkinsons DroidHD Utility 2.0. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
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 >>>
@ECHO off
::This progarm is HOMEMADE by Jeff Cimmino (Otherwise known as the lovely Mr. Parkinson).
@title 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 [email protected]
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 [email protected].
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 [email protected]!*
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 [email protected]!*
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 [email protected]!
echo (I do websites too!)
pause
<<< END

Stuck on LG Logo

I flash KDZ,TOT but it not work
When finish flashing, LG Logo and reset and LG Logo(reboot) and reset.
TOT - FBoot check failed
KDZ - WParam error
SerenityS said:
I flash KDZ,TOT but it not work
When finish flashing, LG Logo and reset and LG Logo(reboot) and reset.
TOT - FBoot check failed
KDZ - WParam error
Click to expand...
Click to collapse
try this, Chapter 3 Using ADB as solution. Sorry , my English too bad, so it's all i can find for you.Hope you can countinue with CM rom.
Source: http://forum.xda-developers.com/showthread.php?t=1660596
ADB can be used to access the phone while booting, be aware that some bootloops make it unable to use ADB since they do not go further then the samsung logo.
The only tricky part about using ADB with bootloops is that you have to do it on the right time, this is just after the Galaxy S Plus logo, so just when the bootanimation starts. The easiest way to enter your phone in this part is using a batch script that monitors the state of your device and connects directly when possible.
I use this script for example (requires adb.exe and the 2 dlls)
Code:
@echo off
cd /d %~dp0
echo.
echo Waiting for device...
adb wait-for-device
echo.
adb -d shell stop
adb push mycwmfix.zip /sdcard/mycwmfix.zip
adb reboot recovery
This script will wait for the device to become ready, when it's ready it freeze the device, so the script has more time to push the file (instead of keep rebooting). Then it will push the specified cwmfix zip to your sdcard, and after that it will reboot in recovery so you can install the cwm fix you made.
You can also make an batch script that pushes the files automatically to your phone, here is an example:
Code:
@echo off
cd /d %~dp0
echo.
echo Waiting for device...
adb wait-for-device
echo.
adb -d shell stop
adb -d shell su -c "mount -o remount rw /system"
adb push framework-res.apk /system/framework/framework-res.apk
adb -d shell chmod 644 /system/framework/framework-res.apk
adb push SystemUI.apk /system/app/SystemUI.apk
adb -d shell chmod 644 /system/app/SystemUI.apk
adb reboot
This script will wait for the device to become ready, when it's ready it freeze the device, so the script has more time to push the file (instead of keep rebooting). Then it will push framework-res.apk and SystemUI.apk to the directory it belongs to, after that it changes the permissions of the files to RW-R-R (644) and then it will reboot.
odatoshiie said:
try this, Chapter 3 Using ADB as solution. Sorry , my English too bad, so it's all i can find for you.Hope you can countinue with CM rom.
Source: http://forum.xda-developers.com/showthread.php?t=1660596
ADB can be used to access the phone while booting, be aware that some bootloops make it unable to use ADB since they do not go further then the samsung logo.
The only tricky part about using ADB with bootloops is that you have to do it on the right time, this is just after the Galaxy S Plus logo, so just when the bootanimation starts. The easiest way to enter your phone in this part is using a batch script that monitors the state of your device and connects directly when possible.
I use this script for example (requires adb.exe and the 2 dlls)
Code:
@echo off
cd /d %~dp0
echo.
echo Waiting for device...
adb wait-for-device
echo.
adb -d shell stop
adb push mycwmfix.zip /sdcard/mycwmfix.zip
adb reboot recovery
This script will wait for the device to become ready, when it's ready it freeze the device, so the script has more time to push the file (instead of keep rebooting). Then it will push the specified cwmfix zip to your sdcard, and after that it will reboot in recovery so you can install the cwm fix you made.
You can also make an batch script that pushes the files automatically to your phone, here is an example:
Code:
@echo off
cd /d %~dp0
echo.
echo Waiting for device...
adb wait-for-device
echo.
adb -d shell stop
adb -d shell su -c "mount -o remount rw /system"
adb push framework-res.apk /system/framework/framework-res.apk
adb -d shell chmod 644 /system/framework/framework-res.apk
adb push SystemUI.apk /system/app/SystemUI.apk
adb -d shell chmod 644 /system/app/SystemUI.apk
adb reboot
This script will wait for the device to become ready, when it's ready it freeze the device, so the script has more time to push the file (instead of keep rebooting). Then it will push framework-res.apk and SystemUI.apk to the directory it belongs to, after that it changes the permissions of the files to RW-R-R (644) and then it will reboot.
Click to expand...
Click to collapse
I try to anything for recovery my phone, but everything not work.
I think Some partition(Cant recover with TOT and KDZ) were broken.
SerenityS said:
I try to anything for recovery my phone, but everything not work.
I think Some partition(Cant recover with TOT and KDZ) were broken.
Click to expand...
Click to collapse
i think MR. Le Thanh Tung can help you. ask him about this problem
facebook.com/Tungkick777?fref=ts
SerenityS said:
I flash KDZ,TOT but it not work
When finish flashing, LG Logo and reset and LG Logo(reboot) and reset.
TOT - FBoot check failed
KDZ - WParam error
Click to expand...
Click to collapse
This is a Super Brick,i have the same Problem 2 Months ago,tungkick help me,but no change to repair this error.
I send my GP2 to Repair Station and he tell me,the Board is death.I have brought a new GP2.
R.I.P.
I think so too.
R.I.P.

[HELP] Need help running command 'fastboot erase modemst1' on Pixel 5

After the March security update my Pixel 5 is not receiving any mobile network and i am not able to turn on radio power via the *#*#4636#*# command.
After googling for a solution i found similar posts which suggested resetting the modemst1 and 2 partitions
Tried running the following commands in adb but was unable to
Code:
adb shell 'dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst1'
adb shell 'dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst2'
For fastboot I used the following commands
Code:
fastboot erase modemst1
fastboot erase modemst2
which gave me an error
Code:
FAILED (remote: Not allowed to erase (modemst1))
I'm also not able to boot into adb root but i am able to run adb shell su
I tried installing adbd insecure which was unable to patch adbd and also installed an adb_root module in magisk which still failed to initialize adb root
Currently I'm running ProtonOS on my Pixel 5. I thought running a custom rom might help but the problem still persists
Please help
Hi.
I would suggest making a back up before you erase a partition in case you need to restore it.
Make sure to name the backup clearly so you know what it is.
Since you do not have adb root, you need to run the command as root using su -c "NameOfCommand".
If you boot into a custom recovery, you generally have adbd and do not need to use the su -c option.
Also double check your path, you should be able to call it from /dev/block/by-name.
or list by-name, ls -la /dev/block/by-name/ and call it from the true partition number.
Example of making a backup.
Dump the partition(s) into an image.
Code:
adb shell su -c "dd if=/dev/block/by-name/modemst1 of=/sdcard/redfin-modemst1.img"
adb shell su -c "dd if=/dev/block/by-name/modemst2 of=/sdcard/redfin-modemst2.img"
Copy the image(s) to computer.
Code:
adb pull /sdcard/redfin-modemst1.img
adb pull /sdcard/redfin-modemst2.img
Delete the image(s) from the device.
Code:
adb shell rm /sdcard/redfin-modemst1.img
adb shell rm /sdcard/redfin-modemst2.img
You need to be in fastbootd to modify critical partitions.
adb reboot bootloader will reboot into fastboot.
adb reboot fastboot will reboot into fastbootd.
You can do the same in fastboot/fastbootd
fastboot reboot bootloader will reboot into fastboot.
fastboot reboot fastboot will reboot into fastbootd.
Be Careful.
There are always risks involved when you start messing around with a device.
If something goes wrong, you may end up with a non-working "bricked" device.
This is especially true when you start modifying partitions.
Good luck.
Cheers.
ipdev said:
Hi.
I would suggest making a back up before you erase a partition in case you need to restore it.
Make sure to name the backup clearly so you know what it is.
Since you do not have adb root, you need to run the command as root using su -c "NameOfCommand".
If you boot into a custom recovery, you generally have adbd and do not need to use the su -c option.
Also double check your path, you should be able to call it from /dev/block/by-name.
or list by-name, ls -la /dev/block/by-name/ and call it from the true partition number.
Example of making a backup.
Dump the partition(s) into an image.
Code:
adb shell su -c "dd if=/dev/block/by-name/modemst1 of=/sdcard/redfin-modemst1.img"
adb shell su -c "dd if=/dev/block/by-name/modemst2 of=/sdcard/redfin-modemst2.img"
Copy the image(s) to computer.
Code:
adb pull /sdcard/redfin-modemst1.img
adb pull /sdcard/redfin-modemst2.img
Delete the image(s) from the device.
Code:
adb shell rm /sdcard/redfin-modemst1.img
adb shell rm /sdcard/redfin-modemst2.img
You need to be in fastbootd to modify critical partitions.
adb reboot bootloader will reboot into fastboot.
adb reboot fastboot will reboot into fastbootd.
You can do the same in fastboot/fastbootd
fastboot reboot bootloader will reboot into fastboot.
fastboot reboot fastboot will reboot into fastbootd.
Be Careful.
There are always risks involved when you start messing around with a device.
If something goes wrong, you may end up with a non-working "bricked" device.
This is especially true when you start modifying partitions.
Good luck.
Cheers.
Click to expand...
Click to collapse
Hello, I hope you will see this text. As you have mentioned, I have rebooted my Pixel 5 to fastbootd but I cannot erase any critical partition. for example, when i run fastboot erase cache OR fastboot erase modemst1, i get the same error message saying FAILED (remote: 'Partition doesn't exist'). Would you mind helping me? I would appreciate it a lot. Thank you.

Categories

Resources