10
[How-To] Automate batch flashing, when updating your ROM

  1. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    Tl;Dr: This is a CyanDelta-like alternative for non-CM ROMs.

    Many ROM users, especially on non-CM nightly builds, usually have to download an update, flash the update, reboot, wait for the System Apps to optimize, then reboot to recovery and flash X amount of post update zips. If Xposed is one of them, you have to wait for System to go through all your apps again. @Tarfex, this thread is for you.

    Anyhow, for the habitual flashers on other ROMs not supported by CyanDelta, you can install this free app. You need a Custom Recovery that supports Open Recovery Scripts like TWRP. You will also need root access.

    Once installed, launch the app and hit the add button "+". For static files, whose name does not change, use the whole name of the file, as the file rule. For kernels and nightly builds, use name rules. The supported rules are: Begins with // Ends with // Equals

    These rules will tell the updater to flash any file that begins/ends with ______, located in ______ folder.

    Example: To flash CM 12.1 nightlies, use: Begins with: cm-12.1- instead of cm-12.1-20150906-NIGHTLY-bacon.zip.

    [​IMG] [​IMG]

    This will tell the app that anything located in folder x that begins with cm-12.1- needs to be flashed.

    Hope this helps users like @Tarfex.

    @Me1256 my curiosity got the best of me :p.

    You can even add a clean zip to the flash list that just contains 3 lines in the updater-script.
    • Line 1, mount sdcard.
    • Line 2, delete folder X (location of the ROM you just flashed, location will be remade when you download the next update - that way you wont need to manually delete the old update)
    • Line 3, unmount
     
    Last edited: Sep 7, 2015

    #1
  2. Tarfex
    Ice Cream Sandwich Sep 7, 2015

    Tarfex , Sep 7, 2015 :
    This is awsome!! Thanks for helping me out and other users like me. I started using flashify and it worked but it would only let me flash three files a day, which works but still. This takes the cake haha @indest
     

    #2
    #HYPEorGTFO and Dr. Indest like this.
  3. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    I remember reading a post of yours a while back. I wish I knew of this when I was on Exodus.
     

    #3
    #HYPEorGTFO likes this.
  4. Tokolozi
    Marshmallow Sep 7, 2015


    #4
    #HYPEorGTFO and Dr. Indest like this.
  5. HR_778
    KitKat Sep 7, 2015


    #5
    #HYPEorGTFO and Dr. Indest like this.
  6. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    Throw MinMin Guard on it and no ads :p....

    @Tarfex I know you like Xposed, look at MinMin :p
     

    #6
    Tarfex, #HYPEorGTFO and Tokolozi like this.
  7. Me1256
    KitKat Sep 7, 2015

    Me1256 , Sep 7, 2015 :
    You are more brave than me lol.
    I can never stay on a rom for more than 1 update, so I think this is not really for me. :p
     

    #7
    #HYPEorGTFO likes this.
  8. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    Not brave, I made a backup :p.
     

    #8
    #HYPEorGTFO likes this.
  9. Me1256
    KitKat Sep 7, 2015

    Me1256 , Sep 7, 2015 :
    Ah, I see. I probably could have tried it. I had soooo many issues installing tugapower lol.
    Literally had to wipe/install 5 times, along with full restores. XD
     

    #9
    Dr. Indest and #HYPEorGTFO like this.
  10. #HYPEorGTFO
    KitKat Sep 7, 2015

    #HYPEorGTFO , Sep 7, 2015 :
    why would you need it? You never leave HydrogenOS:D
     

    #10
    HR_778 likes this.
  11. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    But HydrogenOS does get updated. Maybe once a year, but still :p.
     

    #11
    #HYPEorGTFO and HR_778 like this.
  12. Tarfex
    Ice Cream Sandwich Sep 7, 2015

    Tarfex , Sep 7, 2015 :
    Can I put the files into one folder and the app will flash that folder? @indest for me it says /0/emulated/exodusupdater (I put SuperSU and xposed framework in there too. And exodus auto downloads the file to that golder already)
     

    #12
    #HYPEorGTFO likes this.
  13. HR_778
    KitKat Sep 7, 2015

    HR_778 , Sep 7, 2015 :
    At least I don't multirom it like you. EXPOSED
     

    #13
    #HYPEorGTFO and Tokolozi like this.
  14. Ceasedd
    Marshmallow Sep 7, 2015

    Ceasedd , Sep 7, 2015 :
    Very useful indeed.;)
     

    #14
    #HYPEorGTFO and Dr. Indest like this.
  15. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    You can put it all in one folder. However, you will need to set the rule to flash x, in folder y. However, set the rule once and it will remember it for life (unless you clear app data :p). It will not flash everything in 1 folder. However, it will flash anything you tell it to flash, in any folder.
     

    #15
    #HYPEorGTFO likes this.
  16. Me1256
    KitKat Sep 7, 2015

    Me1256 , Sep 7, 2015 :
    I didnt recognize you because of your avatar. I need the cat back. :(
     

    #16
    Dr. Indest, #HYPEorGTFO and Ceasedd like this.
  17. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    Hey leave the hype master alone. He obviously bought into OnePlus' hype over the ROM :p.
     

    #17
    HR_778 and #HYPEorGTFO like this.
  18. Psk.it
    KitKat Sep 7, 2015

    Psk.it , Sep 7, 2015 :
    @indest

    hey bad-boy ;)

    I am on a stupid project to build flashable scripts to get (at the end) a CM12.1S "tailor-made" -> here

    can I suggest my audience to use your flasher to automate more zip?

    thank you in advance ;)
     

    #18
    Dr. Indest likes this.
  19. Dr. Indest
    Lollipop Sep 7, 2015

    Dr. Indest , Sep 7, 2015 :
    Not my flasher, I never developed the app lol. But, I don't see why the developer would mind you sharing his/her app :). Free publicity never hurts.

    Anyhow, this is my personal debloater :p (never fixed the spelling error but, had no intentions of sharing it lol).
     

    Attached Files:


    #19
    Psk.it likes this.
  20. Tarfex
    Ice Cream Sandwich Sep 7, 2015

    Tarfex , Sep 7, 2015 :
    I just updated and it works flawlessly thnx for sharing your discovery with the oneplus community @indest
     

    #20
    Dr. Indest likes this.