Difference between revisions of "ROM Android: Penggunaan flash image"
Onnowpurbo (talk | contribs) (New page: == Installing a recovery image using flash_image == Use of the flash_image binary assumes your device already has root. For more detailed instructions on using the tools in this guide, pl...) |
Onnowpurbo (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | There's various custom recovery images - a popular one is Clockworkmod. This can be installed through the app "ROM Manager", but it sometimes has problems if it can't recognize your tablet. As it turned out, when I first used Uberizer to backup my partitions, it automatically installed the CWM recovery image, which works fine. Here's how to install it manually. | ||
+ | |||
+ | The image file is called "recovery.img" and is in the changer_files directory in Uberizer's main program directory. Copy it into Uberizer's main directory, since that's where we'll be running commands from. | ||
+ | |||
== Installing a recovery image using flash_image == | == Installing a recovery image using flash_image == | ||
Line 28: | Line 32: | ||
+ | |||
+ | |||
+ | |||
+ | The Method | ||
+ | |||
+ | Connect your phone to your computer via USB and make sure USB debugging mode is enabled. | ||
+ | Follow the first four steps of the ‘With flash_image’ section of our custom recovery installation guide. | ||
+ | Launch a Command Prompt/Terminal window on your computer and enter the following commands: | ||
+ | |||
+ | adb remount | ||
+ | adb shell | ||
+ | adb push c:\flash_image /system/bin/flash_image | ||
+ | adb shell chmod 0755 /system/bin/flash_image | ||
+ | adb push c:\recovery.img /system/bin/ | ||
+ | adb shell | ||
+ | flash_image recovery /system/bin/Recovery.img | ||
+ | rm /system/bin/recovery.img | ||
+ | |||
+ | This should flash the recovery image to your phone. Do not close the Command Prompt/Terminal window yet. | ||
+ | To verify that the recovery has been installed correctly, use this command to boot into it: | ||
+ | |||
+ | reboot recovery | ||
+ | |||
+ | This will boot your phone into the newly installed recovery! | ||
+ | |||
+ | That’s it – it really is this easy! | ||
Line 34: | Line 64: | ||
* http://wiki.cyanogenmod.org/w/Template:Recovery_install_flash_image | * http://wiki.cyanogenmod.org/w/Template:Recovery_install_flash_image | ||
+ | * http://www.addictivetips.com/mobile/how-to-flash-a-recovery-to-an-android-device-without-sd-card/ |
Latest revision as of 20:34, 22 December 2014
There's various custom recovery images - a popular one is Clockworkmod. This can be installed through the app "ROM Manager", but it sometimes has problems if it can't recognize your tablet. As it turned out, when I first used Uberizer to backup my partitions, it automatically installed the CWM recovery image, which works fine. Here's how to install it manually.
The image file is called "recovery.img" and is in the changer_files directory in Uberizer's main program directory. Copy it into Uberizer's main directory, since that's where we'll be running commands from.
Installing a recovery image using flash_image
Use of the flash_image binary assumes your device already has root. For more detailed instructions on using the tools in this guide, please visit ADB.
- Download the flash_image binary
- flash_image: download or download older version (if you get Illegal Instruction)
- md5:
bd475f29e0665c702f8eaf57a0423b58
- md5:
- flash_image: download or download older version (if you get Illegal Instruction)
- Install the binary into /data/local on your phone via adb and set permissions
adb push flash_image /data/local/
adb shell chmod 777 /data/local/flash_image
- Download {{{install_devname}}}'s ClockworkMod Recovery.
- {{{install_devname}}}'s ClockworkMod Recovery: [{{{install_file}}} download]
- md5:
{{{install_md5sum}}}
- md5:
- {{{install_devname}}}'s ClockworkMod Recovery: [{{{install_file}}} download]
- Push the file(s) to your device via adb.
adb push yourrecoveryimage.img /data/local/
adb shell chmod 777 /data/local/yourrecoveryimage.img
{{#ifeq:{{{device_codename}}}|desirec|adb shell rm /data/local/rights/mid.txt
adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
adb reboot
Wait for device to reboot fully.}}{{#ifeq:{{{device_codename}}}|hero|
adb shell rm /data/local/rights/mid.txt
adb shell ln -s /dev/mtd/mtd1 /data/local/rights/mid.txt
adb reboot
Wait for device to reboot fully.}}
Flash the recovery:
adb shell /data/local/flash_image recovery /data/local/yourrecoveryimage.img
The Method
Connect your phone to your computer via USB and make sure USB debugging mode is enabled. Follow the first four steps of the ‘With flash_image’ section of our custom recovery installation guide. Launch a Command Prompt/Terminal window on your computer and enter the following commands:
adb remount adb shell adb push c:\flash_image /system/bin/flash_image adb shell chmod 0755 /system/bin/flash_image adb push c:\recovery.img /system/bin/ adb shell flash_image recovery /system/bin/Recovery.img rm /system/bin/recovery.img
This should flash the recovery image to your phone. Do not close the Command Prompt/Terminal window yet. To verify that the recovery has been installed correctly, use this command to boot into it:
reboot recovery
This will boot your phone into the newly installed recovery!
That’s it – it really is this easy!