Jump to content

  1. 0
  2. 0
  3. 0/5

Rate this Topic

* * * * *
1 votes

HTC DUMLOCK - Flash boot from recovery without fastboot! (Updated 2012-02-28 v2)

Dumlock
  • Please log in to reply

OP Dees_Troy

Dees_Troy

TeamWin

Posted 28 February 2012 - 11:42 AM #1

Mod Type:: Application

Difficulty:: Moderate

Mod Status:: Stable

Apply In:: CWM Recovery

Requires Root:: Yes

Source:: https://github.com/D...Troy/HTCDumlock
HTC Dumlock

HTC Dumlock is a workaround for devices with HTC's unlock that cannot flash boot from recovery. Put simply, we make backups of recovery and boot, then we flash the backup of recovery to boot. When you reboot normally, you'll be in your recovery, but since your recovery is flashed to boot, you can make changes to boot. Head on over to our website for download links and instructions.

New v2 version scans / compares the backups of boot and recovery to help ensure that you don't run it twice and wipe out your backup of boot.
  • 2 Likes

OP Dees_Troy

Dees_Troy

TeamWin

Posted 29 February 2012 - 07:44 AM #2

Copy of text from the teamwin website as of 2012-02-29 (Note that I may not update this post, so always go to the website for the latest information!)

HTC Dumlock

HTC Dumlock is a workaround for devices with HTC's unlock that cannot flash boot from recovery. Put simply, we make backups of recovery and boot, then we flash the backup of recovery to boot. When you reboot normally, you'll be in your recovery, but since your recovery is flashed to boot, you can make changes to boot. We've added some extra features to TWRP 2 to allow you to easily restore the backup of boot once you've booted your recovery with this method. We also have a universal version that works with any recovery by using updater zips.

Before you install, there's a few things you should know:

  • First off, it puts extra wear and tear on your boot partition. To boot recovery using this method will result in flashing your boot twice.
  • You should keep a backup of boot handy. If for some reason this utility ran twice before you restore your boot, then the backup of boot will be another copy of your recovery making it impossible to restore your boot. Don't come crying to me if you lost your boot (kernel) and didn't make a backup first. You only have yourself to blame.
  • If you install a new kernel that doesn't work and you can't boot up, then you'll need a computer with fastboot access to fix it.
  • If you're using TWRP already and have a custom theme installed, you'll need to remove the theme until your theme gets updated with the HTC Dumlock features added to the theme.
  • Your ROM must have root access and you must give the app root (SuperUser) permissions.
Universal Version Instructions:
  • Download BOTH zip files and place them on your sdcard in a folder / location that you will remember.
    install-htcdumlock.zip
    restore-original-boot.zip
    Or download it easily on your phone using the official goo-inside.me app in /devs/teamwin/htcdumlock
  • Reboot to your recovery.
  • Make a backup!
  • Install the install-htcdumlock.zip
  • Reboot to Android.
  • Find and open the HTC Dumlock app.
  • If/when prompted, give the app root (SuperUser) permissions.
  • Tap the Execute HTC Dumlock button.
  • Wait patiently for a couple of minutes. It takes a little while.
  • If your device doesn't reboot automatically, reboot it manually. Reboot it normally. DO NOT reboot it to recovery.
  • You should now be in your recovery, but your recovery is flashed into boot.
  • Before doing anything else in your recovery, install the restore-original-boot.zip
  • Use your recovery like normal. Flash a new kernel. Restore a backup with a different kernel. Do whatever you please!
  • Consider donating!
Note, you must repeat steps 6 through 14 EVERY TIME you need to flash boot.

TWRP 2 Instructions:

  • Install the build of TWRP using your method of choice, but you must actually flash TWRP to recovery. No fastboot booting it. We need it in recovery so that this build of TWRP will be flashed to your boot. This new build of TWRP has features in it to easily restore your original boot.
  • Reboot into recovery.
  • Make a backup of your phone.
  • Tap Advanced.
  • Tap HTC Dumlock. (If you don't see HTC Dumlock then you need to remove any custom TWRP theme that you might be using.)
  • Tap Install HTC Dumlock. This will install the app and binaries needed to make everything work nicely.
  • Reboot your device.
  • Find and open the HTC Dumlock app.
  • If/when prompted, give the app root (SuperUser) permissions.
  • Tap the Execute HTC Dumlock button.
  • Wait patiently for a couple of minutes. It takes a little while.
  • If your device doesn't reboot automatically, reboot it manually. Reboot it normally. DO NOT reboot it to recovery.
  • You should now be in your recovery, but your recovery is flashed into boot.
  • Tap Advanced.
  • Tap HTC Dumlock.
  • Tap Restore Original Boot.
  • Use your recovery like normal. Flash a new kernel. Restore a backup with a different kernel. Do whatever you please!
  • Consider donating!
Note, you must repeat steps 8 through 18 EVERY TIME you need to flash boot.


Changelog:

2012-02-28 - v2: Add comparison of ramdisks between boot and recovery to virtually eliminate the chance that dumlock can run twice and end up replacing your backup of boot with another copy of recovery.
2012-02-21 - v1: Initial release

How does it work, the technical details:


HTC Dumlock essentially runs 3 commands to work its magic. The commands would be similar to this:
dump_image recovery /sdcard/recovery.img
dump_image boot /sdcard/boot.img
flash_image boot /sdcard/recovery.img

Once you get back into recovery, the restore original boot looks kind of like this:
flash_image boot /sdcard/boot.img

HTC Dumlock should work with any recovery. The only issue is that the recovery will need a method to restore your original backup of boot. The source code is public with a GPL license. I also realize that I probably could have done this with a shell script, but I am a much better C developer than script writer and this was the easiest way for me to do it. You are welcome to adapt this software to a different recovery if you so choose.

DOWNLOADS:


Go to the teamwin website!

Support:

Click here for live support or join us in #twrp on Freenode IRC servers.
Credits:
  • s0up for the Android app (apk)
  • shift for the icon
  • Dees_Troy for the binaries
  • TeamWin!!!

  • 1 Likes