[APP] Flash Image GUI - Flash Kernels and Recoveries from normal Android mode!

Search This thread

joeykrim

Inactive Recognized Developer
Jan 9, 2009
1,978
1,311
If i use adb to get into recovery i usually just run adb reboot recovery. Ill get on irc later to test. In some horrible pain today from my car wreck.
First, no rush. health is way more important than cell phone application testing!

to provide more detail around my initial request regarding 'adb shell reboot recovery' and the difference in comparison to 'adb reboot recovery', the adb shell command actually executes the reboot binary stored on the Android device itself, usually in /system/bin, while the later command executes a reboot command through the adb binary on the host computer and the Android device itself.

An Android application or user of the device is not able to access the 'adb reboot recovery' command without being connected to a host computer, while the adb shell reboot recovery command, can also be executed from the device by removing the adb shell portion and only using 'reboot recovery' from the terminal.

The key question that remains is whether or not the reboot recovery command works from the terminal of this device. If it does, does it require root access or not to execute?
Thanks for the support and quick responses!
 

Shawheim

Senior Member
Jun 15, 2010
1,385
105
The Star City
so i used this to flash a boot img to flash CM10. worked no problem but thr rom itself didnt seem complete so i rebooted to recovery to restore my backup. now when i reboot after restoring my phone hangs on the HTC logo. any help?
 

DvineLord

Senior Member
Aug 29, 2010
1,446
402
AT&T Samsung Galaxy S III
AT&T HTC One X
so i used this to flash a boot img to flash CM10. worked no problem but thr rom itself didnt seem complete so i rebooted to recovery to restore my backup. now when i reboot after restoring my phone hangs on the HTC logo. any help?

well u have to flash the boot.img from ur backup. no reason why backups would be any different.
 

joeykrim

Inactive Recognized Developer
Jan 9, 2009
1,978
1,311
ok thanks. what it says in the OP for trouble shooting made me think i didnt have to flash the boot img for a backup. thanks again.
Can you clarify what specific words in the OP "made me think i didnt have to flash the boot img for a backup"?
Want to clear up any points of confusion
 

joeykrim

Inactive Recognized Developer
Jan 9, 2009
1,978
1,311
Under trouble shooting solution #1. Where it says "or restore a previously known good nandroid backup".

Sent from my EVO using Tapatalk 2
Okay. First, I want to clarify the scope of this issue. I provide the troubleshooting steps as a courtesy for users who have made a mistake because the issue is not related to Flash Image GUI and generally outside the scope of this application and thread.
I would suggest thoroughly consulting other threads/posts to learn more about the specific device limitations imposed by the HTC unlock process. I've added this also to the OP to help clarify and provide directed guidance.

Second, to improve the wording and courtesy steps I provide, I've replaced the long sentence with multiple sentences each with a number at the beginning indicating the order of steps to proceed.

Now the OP reads, "Solution for #1: 1) Boot into fastboot. 2) Load the custom recovery (Command: fastboot boot c:\downloads\cwm-recovery.img). 3) Flash a known good kernel or restore a previously known good nandroid backup."

Does this new form and structure help clear up the confusion?
 
Last edited:

DvineLord

Senior Member
Aug 29, 2010
1,446
402
AT&T Samsung Galaxy S III
AT&T HTC One X
Okay. First, I want to clarify the scope of this issue. I provide the troubleshooting steps as a courtesy for users who have made a mistake because the issue is not related to Flash Image GUI and generally outside the scope of this application and thread.
I would suggest thoroughly consulting other threads/posts to learn more about the specific device limitations imposed by the HTC unlock process. I've added this also to the OP to help clarify and provide directed guidance.

Second, to improve the wording and courtesy steps I provide, I've replaced the long sentence with multiple sentences each with a number at the beginning indicating the order of steps to proceed.

Now the OP reads, "Solution for #1: 1) Boot into fastboot. 2) Load the custom recovery (Command: fastboot boot c:\downloads\cwm-recovery.img). 3) Flash a known good kernel or restore a previously known good nandroid backup."

Does this new form and structure help clear up the confusion?

the problem is most people that are using this utility for this phone can't flash boot.img in recovery because of hboot 1.14. we also dont have cwm recovery so it would be best to say twrp instead of cwm. it would be best to tell people to boot into fastboot, then fastboot flash boot boot.img the original kernel or a known working kernel.
 

Shawheim

Senior Member
Jun 15, 2010
1,385
105
The Star City
I think what confused me was that I thought I could just twrp back to my nandroid. But what I have to do is find the correct kernel that goes with my backup, flash that through flash gui, then reboot to recovery and flash my nandroid backup.

Sent from my EVO using Tapatalk 2
 

KitWasHere

Senior Member
Jun 29, 2012
175
51
So I am new to rooting and I used this to get CleanRom put on my phone from completely stock, and it worked great!
Bought the donate version after using the free one, highly recommended!
 
Last edited:
  • Like
Reactions: joeykrim

Dacra

Senior Member
Jan 15, 2013
206
41
Liverpool
Trying to flash the latest tarp through this but doesnt seem to work.

Any instructions or should it just easily replace old recovery on next boot?
 

joeykrim

Inactive Recognized Developer
Jan 9, 2009
1,978
1,311
Trying to flash the latest tarp through this but doesnt seem to work.

Any instructions or should it just easily replace old recovery on next boot?
First, by tarp, I'm going to assume you mean TWRP.

Flashing recovery should be fairly simple. Either select the recovery .img file or a .zip with a file inside labeled recovery.img.
Can you explain more what "doesn't seem to work" means? What steps are being taken and can you link to the file being used?
For the latest TWRP, I'd recommend using the official web site: http://teamw.in/project/twrp2
 

Dacra

Senior Member
Jan 15, 2013
206
41
Liverpool
First, by tarp, I'm going to assume you mean TWRP.

Flashing recovery should be fairly simple. Either select the recovery .img file or a .zip with a file inside labeled recovery.img.
Can you explain more what "doesn't seem to work" means? What steps are being taken and can you link to the file being used?
For the latest TWRP, I'd recommend using the official web site: http://teamw.in/project/twrp2

This http://techerrata.com/browse/twrp2/evita

Flash Gui says it's worked, but then when I reboot to recovery it's still my previously flashed 3.2.2.1 (i think that's the version ref I've been using but want to replace)
 

joeykrim

Inactive Recognized Developer
Jan 9, 2009
1,978
1,311
This http://techerrata.com/browse/twrp2/evita

Flash Gui says it's worked, but then when I reboot to recovery it's still my previously flashed 3.2.2.1 (i think that's the version ref I've been using but want to replace)
As this is the first I've heard of this issue, would help if I can have a second person confirm.
Can anybody else confirm flashing a plain recovery.img is not working in Flash Image GUI for this device?

Some basic steps that can be taken are to re-download the image and make sure the MD5 hash matches as provided on the web site.
Another step is simply to flash twice as on some rare occasions the 1st flash doesn't take.
 

Dacra

Senior Member
Jan 15, 2013
206
41
Liverpool
As this is the first I've heard of this issue, would help if I can have a second person confirm.
Can anybody else confirm flashing a plain recovery.img is not working in Flash Image GUI for this device?

Some basic steps that can be taken are to re-download the image and make sure the MD5 hash matches as provided on the web site.
Another step is simply to flash twice as on some rare occasions the 1st flash doesn't take.

Redownloaded, same again.

Might be my device, can't install elemental kernel either at the moment, which most people can.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 33
    Description:
    This android application, FlashImageGUI, is basically a GUI interface for the linux binary, flash_image provided by google in AOSP for loading custom kernels and recovery images onto the phone.
    This app allows the flashing of kernels and custom recovery images in normal android mode!

    Current Device Support:
    Full Kernel, Logo and Recovery flashing: Samsung Moment, Transform, Intercept and Acclaim - the s3c6410 series of devices
    Full Kernel (Anykernel and boot.img) Flashing and Recovery (zip file or image) flashing: HTC One XL, One S, EVO 4G LTE, EVO 3D CDMA and GSM, Amaze, Vivid/Holiday, EVO 4G, EVO Shift, Nexus 4, Nexus 10, Nexus 7, Samsung Google Galaxy Nexus (GSM & CDMA), Nexus S/Nexus S 4G & LG Optimus
    Full Kernel (zImage) Flashing: Samsung Epic
    Check application version for updates

    Credits for HTC One XL Testing:
    Special Thanks to: dorkboy69 and DvineLord
    Old tester thread

    Credits:
    birbeck for the usual random java guidance, slushpupie for his previous java guidance, dodgejcr for extreme amounts of testing, and one_love_420 and shift for some great graphics!
    testers: JT-, couga6442, happytweak and many others I might have forgot in the furry of three days I built the initial app from scratch.!
    Thanks to SDX

    Background:
    flash_image (bmlwrite) is an extremely useful utility for flashing custom kernels, boot logos (so far ONLY Samsung devices) and recoveries. This binary has made it possible to easily flash all these items and is used almost everywhere behind the scenes (i.e. in custom recoveries, packaged into kernel /sbin, etc).

    Custom Recovery
    Supports both CWM and TWRP!

    Future Support:
    Will continue to test kernels as they are released to ensure compatibility!

    Install Directions:
    Install process is the same as any other .apk. Download to computer and adb push or mount sdcard on computer and copy over or download directly to the phone. Use any file manager, adb, connectbot/terminal emulator to install.
    My preferred method, maybe a bit more technical: ./adb install c:\downloads\FlashImageGUI.apk

    Download Locations
    Market (99 cents!): Flash Image GUI
    Release version (free): Flash Image GUI

    Contact:
    Any questions, comments, concerns, or issues, please post in this thread or send me an email! Thanks for all the help and support!

    FAQ:
    Q: Will this app support a marketplace to pick and chose kernels from?
    A: No. Use Kernel Manager!

    Screenshots:
    FlashImageGUI-main-portrait-gn-v1.4.2-50.png


    FlashImageGUI-main-portrait-optionsmenu-evo3d-v1.3.2-50.png


    sshot-FlashImageGUI-main-portrait-flash-kernel-evo3d-50.png


    Feedback:
    Please post any helpful feedback. I'm always looking to improve the application!

    HTC Unlock - User Guides for Flash Image GUI!!

    HTC Unlock - Users Guide for ROMs with a Kernel (boot.img file):
    1) Unlock using Official HTC method
    2) Load this application, Flash Image GUI, onto the device, either through the Market or the link provided in this OP.
    3) Download ROM .zip file to the sdcard on the device.
    4) Open up Flash Image GUI, select Browse and select the ROM .zip file, downloaded to /sdcard in the previous step.
    5) Flash Image GUI will provide a warning, reminding that the ROM .zip file will *need* to be flashed in the custom recovery afterward.
    6) Flash Image GUI will index the full ROM .zip file searching for the kernel and kernel modules. Once located, the Flash Image button should be enabled.
    7) Select the Flash Image button and Flash Image GUI will load the kernel modules and kernel from inside the ROM zip file.
    8) Select reboot recovery.
    9) Inside the custom recovery, wipe cache and dalvik-cache (consult specific ROM directions) then load/flash the ROM zip file.
    10) Reboot to normal Android mode and all should work including Wifi!

    HTC Unlock - Users Guide for flashing ONLY a Kernel (zip file):
    1) Make sure the selected Kernel is compatible with the currently loaded ROM. If not, this will result in a lot of frustration!!! See troubleshooting steps below.
    2) Download kernel zip file to /sdcard.
    3) Open Flash Image GUI, browse and select kernel zip file, downloaded/loaded to sdcard in previous step.
    3) Flash Image GUI will validate the kernel zip file is contains the minimum required files
    4) Select the Flash Image button and Flash Image GUI will load the kernel and the kernel modules from the source kernel zip file.
    5) Reboot

    Basic Troubleshooting:
    Troubleshooting after Rebooting:

    First step, when experiencing issues flashing is to RE FLASH the files again. Many times, re flashing again will clear up any issues.

    If not, as a courtesy, I've provided general guidelines and suggestions below.

    If the device is not booting, the majority of the time, this is not related to Flash Image GUI and therefore outside the scope of this application and thread. Generally, the root cause is due to user error in flashing a bad kernel or wrong kernel/ROM combination. Please refer to other threads/posts to learn more about the specific device limitations imposed by the HTC unlock process and generally accepted practices of recovering from a mistake.

    Issue #1: If the device hangs or reboots while on the splash screen, the kernel (or packaged ramdisk in the kernel) is NOT compatible with your device!!!
    Solution for #1: 1) Boot into fastboot. 2) Load the custom recovery (Command: fastboot boot c:\downloads\recovery.img). 3) Flash a known good kernel or restore a previously known good nandroid backup
    Issue #2: If the device hangs or reboots while on the boot animation, the ROM is likely NOT compatible with the kernel!!!
    Solution for #2: 1) Boot into fastboot. 2) Load the custom recovery. 3) Flash a known good ROM/kernel combination either from a zip file or restore from a known good nandroid backup.
    4
    Here is a video if you guys want to see it in action, I didnt know at the time but you can select the rom from the app and it will extract and install the boot.img for you so you dont have to extract anything like i did in my video.

    http://www.youtube.com/watch?v=EP5dX23aZ1M
    2
    Sweet, that was quicker then expected.

    Going to do a video review on this in a few hours.
    2
    Hi everybody and thanks for the great work !

    I have an HOXL under CyanogenMod 10.1 and I have to swich to hboot 2.14 tu be able to update the rom, but I'm scared about using a wrong hboot img. My CID is 11111111. Which hboot img should I use please ?

    Thanks ! :p

    I think you're getting a little bit confused between hboot and boot.img, they're entirely different things. And it's not only the hboot you need to upgrade to run cm10.1, you need to upgrade the entire firmware, so you need to run an RUU.

    You have SuperCID (11111111) which is good, but you need to make sure you're s-off before you RUU otherwise you'll brick your phone. Follow the instructions on the s-off thread, it's very easy. Then you can run the 3.18 RUU.

    Sent from my Evita
    2
    so i used this to flash a boot img to flash CM10. worked no problem but thr rom itself didnt seem complete so i rebooted to recovery to restore my backup. now when i reboot after restoring my phone hangs on the HTC logo. any help?

    well u have to flash the boot.img from ur backup. no reason why backups would be any different.