NOTICE: This content was originally posted to Google+, then imported here. Some formatting may be lost, links may be dead, and images may be missing.
If you're an OmniROM user on one of the latest nightlies, you might have noticed that suddenly, wild System Updates have appeared, courtesy of OpenDelta.
OpenDelta is an OTA / delta updater designed to keep your ROM up-to-date while downloading as little as possible. If possible, it will download only the changes between your currently flashed ROM, and the latest available one, greatly reducing the download time and size.
Delta en/decoding is based on the VCDIFF (RFC 3284) standard, and is provided by the OSS xdelta ( http://xdelta.org/ )
OpenDelta is fully Open Source and license under the GPLv3. Any open ROM can use it. There are various configuration options present in the config.xml that your ROM's overlay can override to use your own servers and deltas.
Keep in mind this package is really new, and just now rolling out to a number of devices - there will still be some snags here and there!
The link below leads to the OmniROM GitHub, where you can fork the project if you want to. Submitting patches should be done through Gerrit ( http://gerrit.omnirom.org/ ).
Nice to see an android ROM using delta now. Sweet
Can't wait to see if and how delta updates are integrated into PA4.
Edit : Can't wait to test it out so installing Omni on N7.
+Utkarsh Gupta Already in there. If you're on the 20131208 nightly (or newer), if you check for updates, a FlashAfterUpdate folder is created for you inside (internalstorage)/OpenDelta. You can drop ZIPs in there and they will be flashed automatically after each update.
And this is how Omni make a step forward and the other Roms get a step backwards..
Nice, hope you integrate supersu next.
Works perfect on mako and flo. No need to flash gapps and supersu again after updating because of the backup script, but the folder to do so is there. Thanks a lot!
Only one question. Why is the update file so big? It doesn't download for a long time, did it take the necessary stuff from the running rom or how does it work?
Did you just kick some CM ass?
This could have been a feature ages ago.
Hope integrated SuperSU and USB-OTG will come soon.
Omni is slowly building up.
My phone is still on CM as I've bought some themes and would like to use them.
Already updated my N4 two times with this Open Delta and all went well. Great stuff!
Please rom for alcatel idol Ultra 6033X :(
Just awesome! Works flawlessy on my find 5 ! Love you
I tried using this as I was leaving the theater with my parents and it murdered them. I am batman now.
+Chainfire that's doesn't work.. I have put zip on FlashAfterUpdate folder but there are not flash after update flash.. I have nexus 5 and trwp.
Having issues on mako using this +Chainfire Am on 07 omni nightly and twrp.. Seems to install but then sits in boot loop. Anything I'm missing?! Thanks
+Sébastien Faroux Seeing as that functionality was added in the 08 update, it would start working when flashing the 09 update. So either you're from the future, or you've misunderstood something :)
Ok lol thanks
+Chris North I doubt there would be an issue with OpenDelta, as the file is checked for a known good MD5 before flashing. It could be there's an issue with the nightly or the flashing operation itself ... who knows.
Just used this to update to the latest nightly for the S4. Worked flawlessly. Only issue was it broke root but a simple reflash of the latest SuperSU fixed it.
Will perform clean install and try again on tomorrow's nightly, thanks +Chainfire
I had made a humble proposal a long time back in 2010, http://forum.xda-developers.com/showpost.php?p=9355889&postcount=1
Awesome!
Funny enough, this debuts just in time when cyandelta stopped working for CM11
+Utkarsh Gupta hmm.. generally speaking, backuptool should preserve gapps and su though? gapps has had the backup script for ages and SuperSU added it recently i think.
+Björn Seifert And that is relevant - how ?
+Ibrahim Awwal Not all gapps come with the backup script. SuperSU has had it for about a year (from memory) but not many users are aware of the feature.
+Ananda Bibek This is off topic, but CyanDelta is working just fine for me on CM 11 nightlies for Mako. Although, I'm a crack flasher, so I see a nandroid and trying Omni in my near future.
Awesome +Chainfire . I thought you said you don't do open source?
+Chainfire I'm a little noob when it comes to delta updates. If it's just an update to the ROM, why exactly would I need to flash GAPPs again?
omnir 4.4 how to root??
+Mohd Lukfi flash rom, flash gapps, flash supersu
+Noonski Vicente you little people flaming ROMs are the saddest example of Internet losers.
+Florio Alagna I don't see no flames. Maybe you didn't like the joke as at wasn't directed at you, but more a compliment to +Chainfire
zero day pa gapps has the backup script implemented... but its better to flash it again to make it work perfectly... just to be sure... ;)
http://forum.xda-developers.com/showthread.php?t=2397942 "Automatic Backup: It is not necessary to re-flash GApps or modules when you flash a ROM update. Most ROM's support this function."
+Chainfire Let's assume I've removed apps like Calculator and Calendar. Will the update install back these apps?
If flashing a full OmniROM ZIP will bring it back, then so will an OpenDelta update. The result of flashing one or the other is exactly the same.
Thanks a lot. :) So it seems it would be better for me to do a manual updates, I'm not using many APKs packed by default in the ROMs.
+Mick Collingwood I'm still confused though and here's why. When I do a normal update using a nightly I never have to wipe or reinstall gapps. So are we saying that with Delta's that process changes? I'm just trying to 100% make sure before I delve into that world.
+Mick Collingwood Beautiful...I suppose I'll just have to take it for a test run and see. Thanks!
There is method Root GT-S7262?
hey boss big fan of your work . cant go anywere with out seeing youre name. i just downloaded this omni rom for gt-i9505. tbh i cant find a rom that suits the phone better than stock atm but this rom i think theirs hope for, anyways im trying to use the multi window feature , downloaded e flash zip, bla bla good flash,but weres the multi window feature ?
Plis poner la opcion de traducir al español a la app en play store para asi poder saber para que sirve cada app directamente desde play store sin tener que aser una busqueda en foros.!!
Can provide feature for adding additional zip for installation? Like install a custom kernel, thanks
+Joey Fong in the opendelta folder there is a sub folder called flashafterupdate. put everything you need in there and your happy ;)
+Birol Cin, thx so much
Whenever I try to update it keeps telling me the script is wrong for recovery I'm using clockwork mod recovery
+Martin Garcia only twrp! cwm doesnt work
Aw okie rookie
+Martin Garcia here you can get the latest version ;)
Any way to remove cwm recovery?
just flash twrp is fine
Thanks everybody for the help,I highly appreciate it,the system update works now with the twrp.
+Chainfire would you consider adding feature to skip adding back the unused APKs? I'd really appreciate it.
Been using it, no problem at all!
Edit: just got a taste of 4.4.2!
Used the update feature on 4.4.2 nightly for flo and it ran very smoothly, only problem was that it broke root and superSU had to be reflashed.
Is there a place for bug reports? EDIT: Nevermind, the github link is right in the damn title. (derp)
For some reason on my N5 running Omni, the TWRP script is looking for the zip file in /media/data/OpenDelta instead of /media/data/0/OpenDelta
+Craig Price Make sure you're running the latest version of TWRP, and inside TWRP go to Settings -> Reset to defaults. It's an issue with TWRP, but the TWRP's author has not been able to reproduce it. The above should fix the issue though (let me know if it does)
+Chainfire thanks for the tip! I've already flashed the zip file manually since I posted that, so I'll have to wait until tomorrow (or whenever the next nightly is) to test the fix. I'll be sure to let you know how it turns out.
Do you think it would be helpful to the TWRP guys if I contacted them and provided logs or anything to help track it down, or did you get the feeling that they weren't going to spend any more time tracking down the bug?
+Chainfire I don't have a FlashAfterUpdate folder inside (internalstorage)/OpenDelta. Should I create it manually and also after an OTA update is downloaded and when I push flash now, my Nexus 4 just reboots to recovery but no flashing is done. I have to do it manually. I'm using the the latest TWRP 2.6.3.3. Please help.
+Chainfire I restored the default settings in TWRP, and now it's crazier. It's now looking for the zip file in //OpenDelta. Also, file manager is empty, presumably because it is also trying to use // as root for some reason. I'm going to try to get into contact with TW, as this is quite obviously not a problem with your project. That said, if you have other ideas, I'm all ears. Thanks for your help so far, and thanks for all you've done for the android community.
+Jani Párkányi There is basic support for non-official CWM. Official CWM builds will not be supported as long as extendedscript remains restricted. Community-built CWM versions may well work.
Why Unknon apps couldn't installed on omnirom i9300
+Chainfire All resolved but ROM updates are still full size. Wondering why ?
+Mick Collingwood After an update I keep deleting the downloaded file from the open delta folder. Is that the reason it downloads the whole file on the next system update ?
+Mick Collingwood Thank you, updates are working fine now.
How would I go about using this tool for my own ROM? IT doesn't compile in my ROM. Sounds like a wonderful tool though
i've been using omni's open delta. very cool. but i lost root, and am looking for the latest su zip file, and am a bit confused. if some could provide a download link, i'd much appreciate it.
+Chainfire hi, why don't you use the android official diff tool, the bsdiff and imgdiff which can produce smaller delta output most of the time?
Hey +Chainfire , is there a script I could run to trigger checking for updates? Obviously I could run this in a shell with su. I looked in the AndroidManifest.xml but didn't see anything I could run using the am command. Thanks!
I figured it out... But thanks anyway Chainfire!
+Chainfire , is there any intent we can call (i.e.: from Tasker) to check for updates at a certain moment? Like +Clayton Nummer, I haven't found anything in the manifest. Thanks a lot!
Has anyone tried this with PhilZ recovery. It is CWM based but has an open scripting system.
Will do.
How can I disable the update available in Omnirom? I installed on my mother's phone but she really isn't into steady updates....
Hi a noob here, but after installing omnirom, I lost root and supersu does not work (ie to allow me to root again). Any suggestions, I've been reading the forums, but all sound a bit too techy for me (and I am a partial techy)
you just have to installed manually, for su I got it from google store
Ok, i flashed ROM of 17th May, gapps and SU successfully, now my system updates shows that there are 3 update files using OpenDelta, the files are downloaded and now i am stuck, don't know how to update it? do i need boot into recovery and then use TWRP to update using the downloaded files? tried that not working though. will appreciate any help :)
the downloaded files are .update files and are not visible when i boot into TWRP recovery....
Like mokee
Any one provide the flash script path in OmniRom. Need to add one more zip file along with OTA zip. Thanks in advance..