yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Caesarivs:
Great!

Is this intended to work with both CWM and TWRP? The idea is great! :good:
[Android Apps and Games] richardddd:
Only works with TWRP for now. Will work on CWM compatibility later, but i need to find a way to ditermen which recovery is installed first :/
[Android Apps and Games] GuestK00150:
Hey, I really like the idea! First thing that confused me was that when adding a rule the folders are not sorted in any way. Small thing, but would help ;)

Otherwise thanks, I´ll test and report back :good:
[Android Apps and Games] kkkhattak:
Re: [App][2.1+][BETA] Auto Flasher ROM flash util

Waiting for CWM recovery support:p:p:thumbup::thumbup::p:p
[Android Apps and Games] rxmxsh:
Ah. This would have been helpful on the app's play store page. Came here to seek clarification. Perhaps add this bit of information to OP and the Play Store?
[Android Apps and Games] richardddd:
CWM will never work with this because the recovery update system is encrypted to work only with ROM Manager. There is an API but that requires users to have ROM Manager premium.

I encourage all to install TWRP instead of CWM so you can use this app and a much better recovery (imo)
[Android Apps and Games] kkkhattak:
Re: [App][2.1+][TWRP]Auto Flasher ROM flash util - 1-click!

Ok :)
[Android Apps and Games] karanrajpal14:
Re: [App][2.1+][TWRP]Auto Flasher ROM flash util - 1-click!

Indispensable app for a flashaholic! Great idea! Can you add an option to disable rules, for example, I usually switch between root box and Pac man ROM and I have rules set up for both. I'd like to disable Pac rule when I'm flashing root box. I guess you catch my drift now. What do you say?
[Android Apps and Games] kkkhattak:
Re: [App][2.1+][TWRP]Auto Flasher ROM flash util - 1-click!

Installed TWRP recovery will now try this app:thumbup::thumbup::D:D

---------- Post added at 08:44 AM ---------- Previous post was at 07:49 AM ----------

This app works really awesome:D:D:thumbup::thumbup::thumbup::thumbup:
[Android Apps and Games] richardddd:
Re: [App][2.1+][TWRP]Auto Flasher ROM flash util - 1-click!

Not a bad idea! What do you think of different "rule sets”? Different pages for your rules so you can sweep the start screen to easy change rules? Tell me what you think of that!
[Android Apps and Games] karanrajpal14:
Re: [App][2.1+][TWRP]Auto Flasher ROM flash util - 1-click!

That's cool too :) :thumbup: implement what seems best to you
[Android Apps and Games] richardddd:
Next version will also feature simple cloud synchronization without having to register or anything, just enter ID and Pass to store or retrieve your flash rules :)
[Android Apps and Games] kkkhattak:
Re: [App][2.1+][TWRP]Auto Flasher ROM flash util - 1-click!

NiCe:D:thumbup::thumbup:
[Android Apps and Games] richardddd:
New version is uploaded and will be available in a few hours! This release features cloud sync!

Did not have time to implement different rule sets but you can use different user id's in the cloud sync panel to sync different rules sets :)

For example, I have a user id called "richardddd" with all my files and one called "richarddddk" with just franco kernel as rule :) Super easy to change between devices and rules now with cloudsync!!!
[Android Apps and Games] brolee93:
Whoooo very good soft my Bro it is work well
[Android Apps and Games] fer14:
Re: [App][2.1+][TWRP][9/3/2013]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Hello!

Is this work width PX-recovery or just TWPR

Can this apk wipe data/factory reset or full wipe.

Tnx!!! :confused:
[Android Apps and Games] richardddd:
I have no idea, try and find out! PX-recovery is not available on my device (Nexus 4) so i cant try it myself.

New version uploaded now btw, and will be available in the Play Store in a few hours :)
[Android Apps and Games] lvints:
Man is possible post a mirror? I have problems with google play
[Android Apps and Games] Androguide.fr:
Very nice app with a very good idea behind it :good:

Here's a little tip that should make it work with CWM & other recoveries (I assume you use OpenRecoveryScript currently) :

CWM and other recoveries use a similar automation-scripting technique as OpenRecoveryScript for TWRP, this script should be placed in /cache/recovery/command and uses the following syntax (these are the only commands I know but it should be enough for this purpose) :

--wipe_dalvik
--wipe_cache
--wipe_data
--update_package=path/to/flashable/package.zip
boot-system
boot-recovery

So you could use something like this in addition to your current OpenRecoveryScript code :

Runtime mRuntime = Runtime.getRuntime();
Process mProcess = null;
DataOutputStream mOutput = null;

try{
mProcess = run.exec("su");
mOutput = new DataOutputStream(mProcess.getOutputStream());
mOutput.writeBytes("echo \"--update_package=path/to/flashable/package.zip\" >> /cache/recovery/command\n");
mOutput.writeBytes("echo \"--wipe_dalvik\" >> /cache/recovery/command\n");
mOutput.writeBytes("echo \"--wipe_cache\" >> /cache/recovery/command\n");
mOutput.writeBytes("reboot recovery\n");
mOutput.flush();

}catch(Exception e){
Log.e("Auto Flasher", "An Error Has Occured", e);
e.printStackTrace();
}

I use this in addition to OpenRecoveryScript for the flashable mods in Pimp my Rom. I've just tested it on a CWM-based recovery (the Siyah Kernel one) and it works properly.

Hope this helps a bit, I wish you all the best for your app ;)
[Android Apps and Games] the_rebel:
Beautiful utility! Thank you for this!!

One Request :

Please consider adding commands for Deleting last backup and creating a new backup BEFORE the flashing and cache clear.

This way we will have an automated system of creating a current backup of existing setup to go back to in case SHTF, alongwith the automated flashing already provided by your tool.
[Android Apps and Games] karanrajpal14:
Re: [App][2.1+][TWRP][2013/03/10]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Great update! Thank you so much! You make my flashaholic life a whole lot easier now :D also, please provide an option to backup before flash as requested above. Thanks!
[Android Apps and Games] jawonder:
This is very nice, hope you get it to work with CWMR soon . I would love to use it on my Nexus 4 but TWRP is not working so well on the Nexus 4 now, you can't restore and backup at the moment which is very important .
[Android Apps and Games] lan83:
as far as i concern, for now it's for TWRP only
[Android Apps and Games] CosMiiK:
What about Amon Ra recovery?
[Android Apps and Games] RomWiz:
Sv: [App][2.1+][TWRP][2013/03/10]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Hope you will make it for 4ext recovery :)

Regards,

Daniel
[Android Apps and Games] sumeetp:
mate..this is just awesome..i just tried it..i loved it..you should add features such as installing TWRP touch or CWM touch from the app itself..anyways..awesome..wish you best of luck..
[Android Apps and Games] richardddd:
Thanks! I was looking into this but using cache/recovery/command only allows you to flash one zip at a time so would not help so much...

There is a cache/recovery/extendedcommand that works with CWM but the latest versions of CWM added encryption to it so it only works with ROM manager :(
[Android Apps and Games] pnsdhrn:
Dear Richarddd,

Thank you for the great work.I would like to know whether this will work in my phone,Milestone A853 with Kabaldan's CM10 4.1.2 and MiniMod OR.I think TWRP can't installed in my phone.Waiting for your response with thanks...
[Android Apps and Games] TheHaso:
Universal?
[Android Apps and Games] s4shyam95:
Hey,

I am a learning developer, Wanted to ask, how do u use cloud backup ?

did u use some api ?

Thanks
[Android Apps and Games] echoff666:
Great work, it would be nice if the app had a section advanced so modders can do other operations in succession as wipe data, wipe cache, backup ....

In this way the app would become a composer for OpenRecoveryScript.
[Android Apps and Games] Soundtrack to Chaos:
wish i could see this thing in action in a video, but anyway, so i looked at the screen shots and one of them had an option to wipe dalvik cache

so my question is, will app be able to fully go through the process of flashing a rom whenever its available on cmw?

like for instance, would it be possible to say, make a rule for :

wipe data/factory reset

wipe cache

wipe dalvik cache

flash the rom

flash gaaps

reboot phone

?

if so, this would be such an amazing app,im very interested in this, but will wait till it works on cmw
[Android Apps and Games] SaurusM3:
The way I read richardddd's last comment is that it will never work with cwm...
[Android Apps and Games] lan83:
So, this apps is for flashing custom ROM only or it can flash any flashable .zip file? E.g, bootanimation?can i just use this apps to flash bootanimaton or theme for my ROM?:confused::confused:
[Android Apps and Games] karanrajpal14:
Re: [App][2.1+][TWRP][2013/03/10]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Can flash any flashable zip
[Android Apps and Games] richardddd:
You can use it to flash whatever you want, bootanimations, kernerls, ROMS, tweaks, themes etc :) And it ONLY works with TWRP because CWM has an encrypted recoveryscript system. So unless the creator of CWM removes the encryption or share his algorithm, it will never work on CWM :(

But why use CWM? TWRP has support for most of the devices and is better IMO :)
[Android Apps and Games] RomWiz:
Sv: [App][2.1+][TWRP][2013/03/11]Auto Flasher ROM flash util - 1-click, Cloud Sync!

What about 4ext recovery?

Regards,

Daniel,

Recognized Themer.
[Android Apps and Games] the_rebel:
Haha! you implemented this so quickly :D
[Android Apps and Games] richardddd:
;) And i would probably fail my exam tomorrow as well :P
[Android Apps and Games] petbede:
Add Support For ExtSdCard

Add Support For ExtSdCard.

PEACE!!!
[Android Apps and Games] jawonder:
I went back to an older version of TWRP on My Nexus 4 to try this , so base on your screen shots it does backups in the cloud right ?.
[Android Apps and Games] Androguide.fr:
Oh yeah, you got a point here, didn't think about this multi-flashing aspect, my bad.

Really a shame CWM went down that road, that's one more reason for users to move on to TWRP
[Android Apps and Games] the_rebel:
LOL... sorry man, but I have to say just a day back I was looking for some batch script or something that would do exactly what your app does right now. It i a simple utility but then so is a screwdriver :)

Thank you and all the best for your exam :good:
[Android Apps and Games] mazjed:
thanks

thanks is this compatible withe htc onx
[Android Apps and Games] fer14:
Re: [App][2.1+][TWRP][2013/03/11]Auto Flasher ROM flash util - 1-click, Cloud Sync!

If u use TWRP Recovery on htc onx it is compatibile. This is apk on Google play.
[Android Apps and Games] lan83:
ahhh :laugh::laugh: i like your answer! packed and complete! :good::good::good: now i can flash whatever i want! yay! :highfive: thanks to you who created this apps and thank god i'm using TWRP :angel::D
[Android Apps and Games] rkuijpers:
Wanted to try this little gem, but unfortunately I couldn't get it to boot in recovery.

It hangs on "Rebooting into recovery" like in this screenshot:

Using HTC One X

ViperX 3.4.0 rom

TWRP 2.4.3.0

Any way to make it boot in recovery automatically? Is there something I can do about it?

It's been on the status like screenshot for over 2 minutes, so I guess it will never boot in recovery like this :D

It does have granted root rights.

Edit: after I rebooted in recovery manually (wanting to install redvenom theme) the script ran automatically!

So it does work, only the rebooting in recovery part doesn't on my side ;)
[Android Apps and Games] richardddd:
Re: [App][2.1+][TWRP][2013/03/11]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Can you provide logcat log? Then it would be easier to look into :)
[Android Apps and Games] IvanAugustoBD:
Thanks

Give the opition to auto mount data and system
[Android Apps and Games] echoff666:
Can you add to the backup (system, data, boot) also the cache please? thanks :D
[Android Apps and Games] richardddd:
Re: [App][2.1+][TWRP][2013/03/11]Auto Flasher ROM flash util - 1-click, Cloud Sync!

What? Backup already backs up system data and boot image?
[Android Apps and Games] echoff666:
But not cache and android secure, can you add it please?

for the script : "backup SDCBA", so from recovery will be the user to select what he wants to restore.

Sorry for my bad english :(
[Android Apps and Games] richardddd:
Ok i will look into it :)
[Android Apps and Games] richardddd:
To bad yes! Thanks for the info anyway :)
[Android Apps and Games] rkuijpers:
Of course I can, sent you a pm with pastebin link just now ;)
[Android Apps and Games] richardddd:
The pastelink link, did not work :( Could you try again please :)
[Android Apps and Games] rkuijpers:
Just sent you a pm with another pastebin link, this time checked it myself before sending :o

Should work this time!

Let me know! :highfive:
[Android Apps and Games] richardddd:
Check your PM inbox again ;)
[Android Apps and Games] rkuijpers:
Next try :D
[Android Apps and Games] MorphiousGX:
Great App. I just used it and it went well.

However, few things I ran into that you might consider in your next update (if you plan it):

When using "Begins" or "Ends" with, consider that there might be multiple files that have that. Allow the user to select multiple ones. For example, I had two files that ended with "Uninstall.zip" and I wanted to use both, but couldn't unless I explicitly told it in the rules. Also I had multiple files that "Begin" with "CR" and it picked the first file, ignoring the rest, when it was another file I needed to use. I had to be explicit with using the file (couldn't use general)

Multiple Reboots? At times some scripts require multiple reboots to take effect.

Fix permissions? When flashing kernels, they require fixing permissions.

Over all I love it, and will continue to use it.
[Android Apps and Games] richardddd:
Re: [App][2.1+][TWRP][2013/03/11]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Thanks for your input!

The begin and ends issue will be hard to solve because it scans the last modified file matchning your rule. Thats the whole idea. IF multiple files matches your rule, only the last modified will return.

Regarding the multitle reboot issue:

Could you please get a logcat log (using adb logcat) and start monitor before and after it "hangs" so i could sove it :)
[Android Apps and Games] pnsdhrn:
I would like to know whether this will work in my phone,Milestone A853 with Kabaldan's CM10 4.1.2 and MiniMod OR.I think TWRP can't installed in my phone.Waiting for response with thanks..
[Android Apps and Games] lan83:
Re: [App][2.1+][TWRP][2013/03/11]Auto Flasher ROM flash util - 1-click, Cloud Sync!

As far as know, this app currently only works on TWRP...so if you dont have it, you can't use it..
[Android Apps and Games] pnsdhrn:
Please inform whether TWRP is compatible to Milestone A853?
[Android Apps and Games] richardddd:
Go to play store, download Goo Manager

Start Goo manager -> menu key -> Install Open recovery Script.
[Android Apps and Games] NOFATCHX:
Can someone please direct me on how to install the Open Recovery Script and TWRP on SGS i9000 ?

Couldn't find it anywhere...checked with Goo manager but it says "No Open recovery script found for your device" :/
[Android Apps and Games] MorphiousGX:
Re: [App][2.1+][TWRP][2013/03/11]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Sorry, I think I didn't express it correctly. The reboot was just a suggestion
[Android Apps and Games] echoff666:
The Open Recovery Script is included on TWRP, but your phone hasn't it. The only recovery is ClockworkMod that is incompatible with this app, sorry.
[Android Apps and Games] MorphiousGX:
OK here is a scenario that I am not sure if its a bug or as you descirbed:

I have 3 files. All three start with KERNEL. One is for TouchWiz, one is for AOSP 4.1 and another for 4.2. They are named as follows:

Kernel-TW-JB-03152013

Kernel-AOSP-JB41-03152013

Kernel-AOSP-JB42-03152013

I created a flash with 3 rules that says "Begins with"

Kernel-TW-JB

Kernel-AOSP-JB41

Kernel-AOSP-42

I was expecting it would display all 3, and I would select the one I wanted (depending on my rom). But what happened is that it displayed the first one of the 3 based on its order.

Is this the correct behavior?
[Android Apps and Games] richardddd:
Re: [App][2.1+][TWRP][2013/03/15]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Looks like a bug, will check it out! Thanks for the info!

Update: Worked fine for me, maybe you have the wrong file names? Check my screenshots:
[Android Apps and Games] MorphiousGX:
Re: [App][2.1+][TWRP][2013/03/15]Auto Flasher ROM flash util - 1-click, Cloud Sync!

I'll check and report back
[Android Apps and Games] MorphiousGX:
OK checked and it seems to be working now.

Should the ordering of the files "Stick" after I exit the program? Meaning if I added the files 1, 2, 3, 4 in that order, but then changed their order of flash to be 1 3 2 4, should that order stick when exit and come back?
[Android Apps and Games] richardddd:
This is a known bug! I just rolled out a fix for it! Will be available in a few hours :)
[Android Apps and Games] lyldz:
Ynt: [App][2.1+][TWRP][2013/03/15]Auto Flasher ROM flash util - 1-click, Cloud Sync!

great idea :)

note|| machine®
[Android Apps and Games] richardddd:
Re: [App][2.1+][TWRP][2013/03/18]Auto Flasher ROM flash util - 1-click, Cloud Sync!

Is anybody missing any features? :)
[Android Apps and Games] karanrajpal14:
Re: [App][2.1+][TWRP][2013/03/18]Auto Flasher ROM flash util - 1-click, Cloud Sync!

An option to delete old versions of the files maybe? Might make us a tad more lazier :P
[Android Apps and Games] kkkhattak:
Re: [App][2.1+][TWRP][2013/03/18]Auto Flasher ROM flash util - 1-click, Cloud Sync!

When we enter flash menu can you add fix permissions with the wipe cache/dalvik cache?:confused:
[Android Apps and Games] richardddd:
Will add a new version tomorrow, just implemented this feature :)

This is currently not supported to do via a script. It can be done using normal commands, but it will probably be to slow/advanced to do...
[Android Apps and Games] X-Jonte-X:
fix permission

Great tool!

But for me it is important to have a fix permission option. I test often ROM kernel combinations and the developer recommend always to fix permission after kernel flash.

Is this tool really device independent as long your phone works with twrp? Because the ROM manager works only with some devices.
[Android Apps and Games] richardddd:
Just uploaded a new version with this feature available. You should be able to download it in a few hours :)
[Android Apps and Games] TUN_SD:
Just want to thank you for this great tool. makes flashing a breeze :)

is there a way to add a "reboot to.." option? for example reboot to bootloader or stay in recovery?

keep up your great work.
[Android Apps and Games] MorphiousGX:
I noticed something with the new version.....

I had a clean install (factory reset). Installed Rom and Auto Flasher. After couple of uses (nightly updates of ROM and gapps and kernel), here is what I see

I was able to duplicate it on TW and AOSP ROMs alike
[Android Apps and Games] CNexus:
Factory reset only clears data. You need to format system too for it to be a clean install.

@OP

Would this tool be allowed to be included in ROMs? With proper credits given, of course
[Android Apps and Games] jluiscc25:
Can i use this app with the Safestrap recovery, or just the TWRP recovere, because the Safestrap is like a son of TWRP recovery :confused:
[Android Apps and Games] karanrajpal14:
This has happened to me too.
[Android Apps and Games] richardddd:
Sync your rules to the cloude and give me your name/key so i can try for myself. Would be easier to fix then :)
[Android Apps and Games] MorphiousGX:
msakallah is my user name
[Android Apps and Games] richardddd:
And your key? :)
[Android Apps and Games] MorphiousGX:
Check your PM
[Android Apps and Games] klacenas:
Glad i'm using TWRP :)

Thanks, very helpful for flashing addicts.... like me.
[Android Apps and Games] MorphiousGX:
Where are settings stored?

So I am trying to run the Autoflasher.

However it seems to fail to flahs because the files locations under TW are different from the ones for AOSP and CM . For example

TW has /mnt/storage/extSdCard

CM has /mnt/storage/sdcard1

I would hate to try to recreate the script again everytime I try switching between AOSP and TW or other ROM.

Would I be able to change the settings file manually (i.e. Search and Replace)?
[Android Apps and Games] richardddd:
The external SD card thing is a issue. My TWRP recovery version does not show the same external sd location as the app does. Im thinking about removing the SD card support for this reason
[Android Apps and Games] sacredsoul:
Can someone explain to me the purpose of the rules? I don't get it.

Also, is it safe to assume the utility will flash the zips in order, from top to bottom? Thanks!
[Android Apps and Games] richardddd:
You define filename rules so the utility knows what to flash.

For example, if you set up a rule like this:

Begins with: franco

And have two files on your SD card, like this:

* franco-kernel-1

* franco-kernel-2

The utility will find all the files that begins with franco, and return the latest modified one, so you always get the most recent kernel etc.

And yes, it will flash in order :)
[Android Apps and Games] the_rebel:
Here's a bug report I meant to post long ago (sorry, just lazy). Let's say I go to the utility and press the Flash button, and maybe realise something and cancel out, and press back button to exit. I do whatever I had to do, like maybe check a just received mail etc, go back to Auto Flasher and press Flash again, and all the options in the menu get doubled. I do it again they get tripled, and so on.

Looks like these options get appended without a check for their existence in the first place. It gets fixed if I just kill the app and restart it.

The attached pic should make it clear.

Thanks
[Android Apps and Games] richardddd:
Thank you! Will check into that right away!
[Android Apps and Games] richardddd:
Could anyone with TWRP installed and an external SD card help me write their path from the file explorer in TWRP? Would help me implementing external SD card support!!! :)

The path in recovery seems to differ from any file explorer on Android.
[Android Apps and Games] Hdhntr23:
I didnt see it mentioned in your OP so if its there my apologies...

Can you add the option/feature to move the zip files into different folders of our choosing?

Sometimes it seems my DL manager gets a mind of its own and DL's stuffs into folders I didnt designate it to do so.

Thoughts?
[Android Apps and Games] richardddd:
Seams to be a bug that should be fixed in your DL manager. I want to keep the app as clean as possible, thanks for your feedback though :)
[Android Apps and Games] the_rebel:
Looks like you fixed it, thanks :)

About your other post, wish Nexus4 had SDCARD and I'd have been happy to help. Even besides that, wish Nexus4 had SDCARD :rolleyes:
[Android Apps and Games] karanrajpal14:
Could you add a feature to add the zips from a share intent? Like you can select multiple zips or so from a file manager and tap share and voila, it's added to autoflasher list!
[Android Apps and Games] richardddd:
Great! Idea! Will look into that!
[Android Apps and Games] shekinahsmoke:
does this work w/ philz which is CWM - based not pure CWM ?
[Android Apps and Games] richardddd:
Untested but should work! :)