Updating to future USB updates from HC "User-Debug" leak

From Exploitee.rs
Jump to navigationJump to search

Below is a method to flash the old "un-neutered" HC recovery onto the new userdebug build. This will allow you to update by USB to the official HC build that Google will hopefully release in the coming weeks. The method below requires that you have installed adb from the android sdk. Please make sure to enter the commands below after entering the directory that the recovery.img was extracted to (or to change the "adb push recovery.img /tmp/recovery.img" command to "adb push /path/to/recovery.img /tmp/recovery.img").

Warning: Using any recovery other than a properly signed recovery will brick your box, only use the recovery supplied. You also may to ensure you have a good network connection to your revue before continuing.

Recovery:


Note: recovery.img(sha1) = 14c31dc6db2d8f9ec15f94f2f929dbb68142d16c


Step 1.) Get IP Address of Revue (settings->network->status).

Step 2.) Enable adbd (settings->applications->development), then check "Remote Debugging".

Step 3.) Add the IP Address of the computer you are connecting from ("Debugger Ip Address in settings->applications->development).

Step 4.) Connect to adb from computer using the following (Replacing <ipaddresshere> with your ip) adb command:

  • adb connect <ipaddresshere>

Step 5.) Restart adbd as root by executing the following:

  • adb root

Step 6.) Reconnect to adbd on the revue using:

  • adb connect <ipaddresshere>

Step 7.) Paste each line of the following (one at a time).

  • adb push recovery.img /tmp/recovery.img
  • adb shell flash_image recovery /tmp/recovery.img

Successfully running the last line should output something similar to the following:

  • mtd: successfully wrote block at 0
  • mtd: successfully wrote block at 40000
  • mtd: successfully wrote block at 80000
  • mtd: successfully wrote block at c0000
  • mtd: successfully wrote block at 100000
  • mtd: successfully wrote block at 140000
  • mtd: successfully wrote block at 180000
  • mtd: successfully wrote block at 1c0000
  • mtd: successfully wrote block at 200000
  • mtd: successfully wrote block at 240000
  • mtd: successfully wrote block at 280000
  • mtd: successfully wrote block at 2c0000
  • mtd: successfully wrote block at 300000
  • mtd: successfully wrote block at 340000
  • mtd: successfully wrote block at 380000
  • mtd: successfully wrote block at 3c0000
  • mtd: successfully wrote block at 400000
  • mtd: successfully wrote block at 440000
  • mtd: successfully wrote block at 480000
  • mtd: successfully wrote block at 4c0000
  • mtd: successfully wrote block at 500000
  • mtd: successfully wrote block at 540000
  • mtd: successfully wrote block at 580000
  • mtd: successfully wrote block at 5c0000
  • mtd: successfully wrote block at 600000
  • mtd: successfully wrote block at 0