[TOOL] Recovery Flasher Batch


Last Updated:

  1. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    Im pulling the file until I get the issues resolved sorry guys.
     

    Advertisement
    metroflash and killertonez like this.
  2. thelostsoul

    thelostsoul Well-Known Member

    Joined:
    Sep 21, 2010
    Messages:
    53
    Likes Received:
    6
    Looks like a useful tool, but I could see this not working for some people if, like me, "adb remount" doesn't work for them. I'm not sure why, but it always says permission denied, whether I run as root or not.
     
  3. myfishbear

    myfishbear Well-Known Member

    Joined:
    Sep 5, 2010
    Messages:
    299
    Likes Received:
    62
    hey that was really cool... thanks... ill use it when i update next time. bty i get that problem sometimes too... i just try it again then it works for some reason.
     
  4. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708

    are you issuing adb root before the remount?
    it took me a few tries to realize I had to do that :)
     
  5. thelostsoul

    thelostsoul Well-Known Member

    Joined:
    Sep 21, 2010
    Messages:
    53
    Likes Received:
    6
    Yeah, took me a few tries too, then I ran adb root thinking oh that'll definitely fix it! but it didn't :( I don't know why. Might be specific to my current setup for some reason though.
     
  6. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    Well hopefully after some people use it I can get some feedback and fix it if it isn't working correctly
     
  7. swc2001

    swc2001 Well-Known Member

    Joined:
    Aug 28, 2010
    Messages:
    1,005
    Likes Received:
    234
    Wow I cant wait to try that out.... No more typing code.... YOU ROCK!!!
     
  8. getitnowmarketing

    getitnowmarketing Well-Known Member Developer

    Joined:
    Apr 27, 2010
    Messages:
    477
    Likes Received:
    788
    try to have it do
    Code (Text):
    1.  
    2. ECHO Remounting /SYSTEM Read-Write
    3. res\adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
    4.  
    then do an adb sync when done

    that should help on ones with stock ramdisk where adb isn't root and remount fails and you could try an adb shell su too intstead of adb root.
     
  9. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708

    Thanks for the tip.

    I have been mucking around with it and have had issues getting adb shell su to work the way I want it to, if I pass that command the batch gets stuck in a shell and I cant get it to pass more commands. I know Im just missing something but I cant see what.

    Code (Text):
    1.  
    2. res\adb shell su
    3. #
    4.  
    then the script will pause until the shell is exited from, I have tried just passing exit but dos is lame and waits for "adb shell su" to exit before proceeding

    any ideas? If I can get adb shell su to work I can fix all these problems
     
  10. swc2001

    swc2001 Well-Known Member

    Joined:
    Aug 28, 2010
    Messages:
    1,005
    Likes Received:
    234
    Ok So is this why it didnt work for My Father-In-Law's Phone?

    He wants the recovery system and he has a stock phone.
    So I rooted it with Universal Androot. and then hooked it up via USB
    and Ran your Batch file. It failed:(

    Did I do somthing wrong or was it the program?
    Cool idea for a Program by the way.
     
  11. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    Right now its only works on about 50% of the setups out there, its nothing you did wrong, just a problem with the tool.

    I would suggest using rom manager to flash for the time being if this tool didnt work, You can even flash AmonRA thru rom manager now.
     
  12. swc2001

    swc2001 Well-Known Member

    Joined:
    Aug 28, 2010
    Messages:
    1,005
    Likes Received:
    234
    Hmmm I can do it the old fashioned way for sure. I just was looking for the cheap way out. LOL

    However the rom manager is a good idea.
     
  13. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    Fixed it, the way its written now it should work on any setup as long as usb debugging is on and the sdcard is not mounted on the pc
     
  14. swc2001

    swc2001 Well-Known Member

    Joined:
    Aug 28, 2010
    Messages:
    1,005
    Likes Received:
    234

    So ignorant question.... Is this where you will download the New version?
    Again thanks for taking the time to make this. You rock Brother.
     
  15. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    Im pulling the file for now.


    I am working on it but running into roadblocks. I need to find a way to get the batch file to relay commands thru the adb shell, I have tried opening a new cmd window to get su and continue in the original to no avail. The commands that require su need to be run from within the same session that requested them. So the search is on, Ill let you guys know when I get it working, I might have to resort to VB sorry about the premature release, Ill make sure to test it on more than one ally next time
     
  16. swc2001

    swc2001 Well-Known Member

    Joined:
    Aug 28, 2010
    Messages:
    1,005
    Likes Received:
    234
    Hey Props for the idea And I wish you best of luck on getting this running.
    If you need any help testing I am your man.
     
  17. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    I need a tester.

    I spent all day remembering VB and putting this together

    LINK

    I dont have an ally so I cant test it, but it goes through all the motion s on my dinc

    If someone can test this it would be great, just extract, plug phone in with USB DEBUGGING on and phone plugged in WITH adb drivers, select the top 3 settings then hit flash

    [​IMG]
     
    dumbteentarget likes this.
  18. darkxsun

    darkxsun Well-Known Member

    Joined:
    Sep 2, 2010
    Messages:
    470
    Likes Received:
    119
    VB... :(

    just kidding. Though I am glad I rid myself of that language.
     
  19. dumbteentarget

    dumbteentarget Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    70
    Likes Received:
    8
    Just downloaded and ran it. Works great!! thanks alot, this will be coming in handy.
     
  20. swc2001

    swc2001 Well-Known Member

    Joined:
    Aug 28, 2010
    Messages:
    1,005
    Likes Received:
    234
    Well when my father in law gets back we will definately be testing this on his ally..
     
  21. netizenmt

    netizenmt Well-Known Member

    Joined:
    Oct 3, 2010
    Messages:
    490
    Likes Received:
    111
    OK - weird but true story. I could not restore to Clockwork until I allowed it to restore RA over itself first. After that, I could switch between the two with ease.

    It doesn't appear that it worked to flash the Stock recovery image with this. Also, once you flash recovery, you have to close Flasher and reopen it if you want to flash a different recovery or you get the error dialog in the attached file.

    Glad that it finally works with my phone. So much easier than typing all those lines of code in that tiny terminal screen!
     
  22. savoxis

    savoxis Well-Known Member Developer This Topic's Starter

    Joined:
    Aug 10, 2010
    Messages:
    812
    Likes Received:
    708
    Yeah Im glad its starting to come together,

    Im going to email myself the code today from work, as I have installed visual studio 2010 at home.

    I plan on reworking the code, as right now it is written very poorly ( very reminiscent of an old qbasic program) adding a textbox that debug info spits into, adding a root button and if I can figure out how koush sends instructions to recovery I will add tools for flashing roms, kernels and more!
     
    swc2001 likes this.

Share This Page

Loading...