yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] MattBooth:
Maybe this line instead: https://www.dropbox.com/s/d4ghncsf1eadnhr/update_manifest.xml?dl=1

Notice it says "?dl=1" at the end. I have to admit I have no experience using Dropbox for this (I use my webserver), but I know you can get direct links this way.
[Android Apps and Games] artur0588:
Now it says update available but downloading small 15.1kb zip file with rom name.

I found what is wrong, now all fine.
[Android Apps and Games] dkionline:
Any way to implement that in system like stock ota, or replace? CM like, don't know if s possible.
[Android Apps and Games] MattBooth:
I'm not sure what you mean. This is supposed to be a system app and you as a ROM developer can provide your own OTA updates with it, if you have the right tools.
[Android Apps and Games] dkionline:
I mean implement in settings app, you wrote about no icon in 3 post, will that work on sony?
[Android Apps and Games] MattBooth:
Absolutely :)

https://github.com/UltimaAOSP/platf...blob/kk-4.4/res/xml/settings_headers.xml#L196

<!-- UltimaControl Settings -->
<header
android:title="@string/ultima_settings"
android:icon="@drawable/ic_ultima_settings">
<intent android:targetPackage="com.ultima.settings"
android:targetClass="com.ultima.settings.SettingsActivity" />
</header>

That's how you'd do it. Obviously you should replace the strings and drawable with your own. The target package and class in the OP's :) It goes in the xml's for settings. I'vfe never had a Sony device so I don't know the exact layout, but for me that's in /Settings.apk/res/xml/settings_headers.xml
[Android Apps and Games] dkionline:
i tried now, but its complicated. Are there more lines to write in other file? It stops in compilingtime.
[Android Apps and Games] MattBooth:
You probably need to match the strings, of course, and add a drawable/image of your choosing.
[Android Apps and Games] artur0588:
Everything seems working fine. The only md5 check always failed.
[Android Apps and Games] artur0588:
How can i release 2 or more OTA step by step?

For example i pushed first OTA with some additional and improvements. Then i want push 2nd OTA after some time. How to make users receive 1st OTA then 2nd OTA step by step?
[Android Apps and Games] MattBooth:
The only way would be to have multiple manifests.

Say v1.0 has http://www.example.com/update/manifest_1.0.xml

Then v1.1 has http://www.example.com/update/manifest_1.1.xml

And v1.2 has http://www.example.com/update/manifest_1.2.xml

That way, anyone on v1.0 would update to 1.1, then 1.2. However, that's pretty inefficient, but it works.

You can also simply integrate v1.1 into the v1.2 update, that way anyone getting the v1.2 update also gets the v1.1 update as well. That's what I'd do.

Or, you can have a record of previous updates, and run an assert check in your installer script for an update checking the user is on the right version and directing them to a website to download the other updates.

I could bare this in mind and perhaps add some stuff to the xml about previous updates, but I don't want it to get too messy.
[Android Apps and Games] artur0588:
Thanks for reply. I also think about integrate previous update in each next, just think that each next OTA size increase.
[Android Apps and Games] MattBooth:
Some of my OTA's are just full ROM downloads anyway, which is like 800MB+. Sometimes you just need to do this, I've found. This is why there's a setting to limit which data connection is being used. Not everyone has unlimited mobile data :(
[Android Apps and Games] dkionline:
That means for every Update or full rom a new xml. Correct me if im wrong.

The best method would be a check of higher number. U provide folder link in build.prop and it checks automatic if 1.1->1.2 by xml name.

I had tested in 1 xml with small zip by changing build nr, but it doesn't show anything -.-.
[Android Apps and Games] MattBooth:
The method I outlined above works fine, I have tested this before. But I'd rather opt for integrating patches or putting assert checks in the installer zip. Most people, believe it or not, do not even do patch zips, they do full ROMs lol.
[Android Apps and Games] dkionline:
Yea, build an update in kitchen goes faster, than in aroma.

i stopped now a month with testing through OTA, at beginning it doesn't worked like i said before. Now i know how it works.

Really thanks for that ;)
[Android Apps and Games] MattBooth:
v2.0 - 5th December

Material UI for 5.0+ devices

More robust checking of version numbers

Removed location chooser - Better to store on the internal storage and limit the chance of an error with using an external SD Card

Fixed MD5 checking

Default checking on boot time is 12 hours rather than 3 days
[Android Apps and Games] MattBooth:
Pretty soon http://romhut.com will integrate into this app nicely.

Core features, which I feel take this a step above other OTA apps/solutions:

It will generate the update_manifest.xml for you automatically when you upload a new "version" of your ROM to ROMHut

Host a direct link to your ROM for use in the manifest generated, as mentioned above

Should make using this OTA app ridiculously easy for ROM Devs

EIDT:

Also, app version 2.0.2 will be coming soon with some fixes.
[Android Apps and Games] MattBooth:
Huge update in the OP. I've spent a lot of hours fine tuning this!

8th January 2015

Fixed issue with ROMs not seeing updates

Fixed background service not switching off

Background service will now correctly check for an update on boot (if on)

Theme no longer changes to dark after accessing the settings

New material icons

New changelog parsing (using Btpass HTML to parse Markdown in changelogs)

Changed priority of notification to be viewable on the lockscreen

New notification controls (change the sound and toggle vibrate)

Integration with major hosting provider (RomHut.com)

Tapping a notification now takes you to the update page

General cleaning of the code and making more efficient

If you are currently using this application and will be upgrading, you WILL need to regenerate your update_manifest.xml. Some things have changed and some things have gone. If you would please direct yourself here: https://github.com/Kryten2k35/OTAUpdates/blob/stable/README.md To read up and get a new example copy fo the manifest XML. It's nothing major, but you need to do it.

I want to take the opportunity to thank RomHut.com for offering their services for integration with this OTA app to make updating and hosting easier.

Just a couple of notes:

RomHut is free for developers and users

There are no wait times or download limits

It's pretty damn fast

I'm not being paid to say this (lol), it's just free and I think it's awesome

I've been using RomHut for years for all my ROMs!
[Android Apps and Games] Grouxho:
Thank you so much for your help Kryten2k35.

It works perfect. Awesome work as always master.
[Android Apps and Games] artur0588:
New version not working for me, say no update available.I have changed manifest and edited build.prop but not working.
[Android Apps and Games] MattBooth:
Can you show me your build.prop values and manifest?
[Android Apps and Games] MattBooth:
Try changing these values:

build.prop

ro.ota.version=5.5

to

ro.ota.version=55

and

<VersionNumber type="integer">5.6</VersionNumber>

to

<VersionNumber type="integer">56</VersionNumber>

Version Number most definitely needs to be an integer type. I contemplated, in the code, stripping any character that is not a number, but figured it was much easier to ensure everyone uses integers... because if someone used v1.3.4b as a version number, then used 1.3.4c, no change would be detected.

You may want to change:

<VersionName>5.6</VersionName>

to

<VersionName>Artmod 5.6</VersionName>

also, as VersionName is what will be read for the zip name :)
[Android Apps and Games] MattBooth:
You've just helped me find a bug in my code, also...

MD5 checking on the phone is done via the shell. The app generates an MD5 by running the shell command "md5sum ZIPNAME.zip" and this generates a lowercase result. Which I then check. Your MD5 is uppercase and that will present a problem.

I can fix this in the next release, but you may want to change that to lowercase while I do this.

Also, if you're interested, and able, you could provide a translation for Ukrainian? https://github.com/Kryten2k35/OTAUpdates/tree/master/res/values
[Android Apps and Games] MattBooth:
This: https://www.dropbox.com/s/yhis6bna8ma7u34/update_manifest_e975.xml

Still shows 5.6
[Android Apps and Games] artur0588:
you are right, may be not uploaded from first time. Now Ota available, thanks.

---------- Post added at 04:54 PM ---------- Previous post was at 04:49 PM ----------

Now another issue FC when press download OTA.

UPD: with your manifest download ok but check md5 failed, it's failed for me in old versions also.
[Android Apps and Games] MattBooth:
Damn!

Can you post a logcat of that FC?

Also, try clearing the apk data
[Android Apps and Games] Grouxho:
I will translate tonight the Apk to spanish, if you want to.

My only problem is with this "0" folder you see in the picture.

Since i intalled 4.2.2 in my S3 this folder is there. Also in korean 4.4.4 port.

The ota update is downloaded to my dowloads folder, but when enabled Openrecoveryscript if I press install it fails, because recovery script looks into sdcard0/0/name_of_update.zip..

What can I do?.

View attachment 3106556

Enviado desde mi GT-I9300 mediante Tapatalk
[Android Apps and Games] MattBooth:
I will get a fix up really quickly for the md5 issue and this open recovery script issue :)
[Android Apps and Games] MattBooth:
9th January 2015

Fixed with MD5 returning false if you use uppercase MD5 string in the XML

Fixed OpenRecoveryScript not installing if used (looking for the file in a folder with 0 in it.)

Added Dutch translation

Added Portuguese (Brazil) translation

Added German translation

Added Spanish translation
[Android Apps and Games] MattBooth:
BTW, that 0 folder is normal and is where all your SDCard stuff (internal) should and will go if created by the device. At leas,t it will in /data/media/0/ I think there will still be an /sdcard/ mount for you that will directly access it. Or, /storage/sdcard0/

Open Recovery Script should now work for you, eitherway
[Android Apps and Games] Grouxho:
I have downloaded again the apk and lib (armeabi-v7a_icon.zip) but still not working.

(E: Can´t open /data/media/0/21.zip).

I looks like if "/Download/" is missed. I made a clean install, of course.
[Android Apps and Games] MattBooth:
Crap, this is my bad AGAIN :(

Here

mScript.append("install " + "/sdcard/" + mFilename + NEW_LINE);

Should be...

mScript.append("install " + "/sdcard/Download/" + mFilename + NEW_LINE);

Let me throw together another version for you to try :(

EDIT:

The code was original like that, but then I changed it the other day thinking it was more correct to use the Android variables... forgetting about Recovery :(

Check your PM's
[Android Apps and Games] artur0588:
There is russian translation in attachment. I don't know how to add in github.
[Android Apps and Games] artur0588:
How to hide donate url?

this is code

<!-- Your Donate URL -->
<!-- OPTIONAL: Enter <DonateURL nil="true" /> to hide this -->
<DonateURL nil="true" />

Donate url still in Ota app. And when i click on it it's FC. Log in attachment.
[Android Apps and Games] MattBooth:
Try adding

<DonateUrl>null</DonateUrl>
[Android Apps and Games] artur0588:
Thanks, this working.
[Android Apps and Games] artur0588:
There is another issue. If you want install ota update as system app then it FC when click on Update available tab, log says somethings about libs. But if you put lib in /system/lib manually it's working without FC.

One more thin:

if i update rom version in manifest then go check in ota update it's show new version available, for example v7.

Then i change manifest to same version as current rom v6 and check for updates and then it show update available with v6 but must say not available updates. After i clear app data it's correct say no updates.
[Android Apps and Games] MattBooth:
Yes, if you check the instructions, it does tell you to download the right folder form the website and extract to /system, which includes the libbypass.so library :)

Regarding this update issue, I'm looking at this for a fix later today. Along with those translations of yours :)
[Android Apps and Games] skuffle:
Notification feature request

Thanks for all your work on this. Would it be possible to add a setting to choose how the notification of updates is presented?

I was hoping to have something similar to the Gmail app, where you can individually choose to disable vibrate or sound for the notification. I personally want the notification to appear if there is an update, but I don't want sound or vibration to activate, as it always seems to happen when I'm asleep!

Just seeing the notification the next time I unlock the phone is good enough for me :)
[Android Apps and Games] MattBooth:
Hi, yep, in the changelog:

You can toggle on and off the notification sound and vibrate. Is that what you meant?
[Android Apps and Games] skuffle:
So it is - sorry! I thought I had the latest version, but I now know that due to another bug (I think) in the auto-update, the latest ROM wasn't showing. I have manually installed that ROM, and now see all the options I was asking for - thank you for adding these! Hopefully future updates should show as normal from now on.
[Android Apps and Games] artur0588:
Using v 2.1.1. After rom update still receiving update notification. It's stopped only after clear OTA update app data.
[Android Apps and Games] Grouxho:
I think it is only necessary to delete the file rom_update.xml after flashing the OTA update.

You could try to do it through your OTA zip updater-script...
[Android Apps and Games] MattBooth:
This should be fixed on the current master branch. I keep meaning to update this thread :/
[Android Apps and Games] skuffle:
Skip this update feature

Would it be possible to add a 'skip this update' feature?

I am currently on the previous version of a ROM, and nothing in the changelog is relevant to me, so I don't want to install the current update (if it ain't broke, etc.). I do still want to receive a notification if another new version is released. At the moment, I continually get the update notification for the version I want to 'skip'.

I assume you would simply offer a 'skip this update' button in the app, which saves that ROM version, and doesn't notify again until a later version than that is found. At this point the notifications resume, until the update is installed, or the skip button is used again.

Is this feasible?
[Android Apps and Games] MattBooth:
Definitely feasible.
[Android Apps and Games] MattBooth:
2.3 13th March 2015

Fixed cancel button not updating to install when the download finishes

Important licence changes (to ensure the app cannot be taken and resold by someone -it stays free)

Added ignore release option (found in the notification for a new release. Can be undone in settings)

Added notification shortcut to the download page

More robust update checking code

Font changes in about page - more legible

Added BitCoin donations (for ROM developers and the me)

Removed some debugging code showing for end users

Theme tweaks to Material theming, more true to proper Material light and dark.

Fixed layout height being broken on the update available card

Better method of rechecking for an update

Advertisements added. A small evil, but you can disable them freely in the app settings. Please consider keeping them for me.

XML parsing is more robust and should result in fewer FC's or errors

Ongoing notification for downloading now takes you to the download page

Added Addons (can be added manually via a new XML, or automatically on RomHut

I also publish updates on Google Play Store now. I am working on adding an option to disable the app icon programatically for those that prefer not to show it. Check back to the thread here upon updates to see if there is anything new you should add to your manually updated XML's. If you use RomHut, chances are you won't need to do anything (unless you want to make use of the new features we've added).
[Android Apps and Games] Calin:
I'm trying to figure it out why it still appears that there is a new version available if the version of the ROM is the same (yes i changed it in build.prop)

Any solution or advice?

edit. Never mind it's fixed now with the latest release.
[Android Apps and Games] daniel-t:
sorry for this noobish question

I installed the JFLTE-GPE 5.0 ROM 12172014 onto my mother's Galaxy S4 a few months ago, and a few days ago, the ota updates app showed a notification that an update "JFLTE-GPE-20150112" is available. I told her not to do anything with it until I looked into it.

I'd like to know if updating it, will mean she will lose her music and data, as she did when I installed the ROM manually, or does the app provide a seamless update?

Apologies for such a noobish question.
[Android Apps and Games] MattBooth:
You should have asked that in the ROM thread in question :)

You'll probably want to go there, ask the question and get a more updated version of the ROM as well.
[Android Apps and Games] daniel-t:
OK, I'll do that. Thanks!
[Android Apps and Games] MattBooth:
2.3.1 - 15th March 2015

Updated to target/be compatible with Android 5.1

Show a warning dialog when trying to download an addon on a mobile network

Show a button on the network warning dialogs to take you to settings and adjust if need be

Card layout in the About activity

Changelog viewing (for this app) in the About activity

Removed lots of unnecessary and unused images from the Holo-based themes

Fixed links in the Addons description markdown not being able to be clicked
[Android Apps and Games] Kamy:
I wonder why this thread is so quite. Thanks [MENTION=3443334]Kryten2k35[/MENTION], this is amazing offer to all developers. I added it to AryaMod and working a like a charm without any issue :good:
[Android Apps and Games] RVR:
kudos !! Will try the latest update :)
[Android Apps and Games] Ale95:
Thanks [MENTION=3443334]Kryten2k35[/MENTION], working perfectly.

Added in Aurora ROM too :good:

Good Job ;)
[Android Apps and Games] Ale95:
Hi [MENTION=3443334]Kryten2k35[/MENTION],

I try to add "OTA Updates" in settings but dont show, I add the lines in "settings_headers.xml" and "strings.xml" but dont show the app :(,

How I can make for add it?

<header
android:title="@string/ota_updates"
android:icon="@drawable/ic_setting_grid_help">
<intent android:targetPackage="com.ota.updates"
android:targetClass="com.ota.updates.activities.MainActivity" />
</header>
[Android Apps and Games] MattBooth:
Hi mate,

I don't know how it is on Samsung Lollipop, but on the Gogole Play Edition (and NExus) The settings headers are now in "res/xml/dashboard_categories.xml"

You should add something like this:

<dashboard-tile android:icon="@drawable/ic_setting_grid_help" android:title="@string/ota_updates">
<intent
android:targetPackage="com.ota.updates"
android:action="android.intent.action.MAIN"
android:targetClass="com.ota.updates.activities.MainActivity" />
</dashboard-tile>
[Android Apps and Games] g7755725:
can u fix the crash

After the v2.2 update the app craahes when i select something like addon or settings etc
[Android Apps and Games] MattBooth:
LAtest version is 2.3.1

You need to post a Logcat with any crashes (or report them when it gives you the option - those go to Google Play for me to see).
[Android Apps and Games] g7755725:
i will

I have adaway that fixes that issue but i fear that my GamerROM users will be irritated of it once i get a crash ill give you the log
[Android Apps and Games] the_vanya1:
When i downloaded my rom/mod my device dont reboot but give su toast (use latest apk and romhunt) cm11, LG P713
[Android Apps and Games] RVR:
EDIT: DELETED (posted by mistake ) :)
[Android Apps and Games] MattBooth:
Oh, the ads? I can't support a previous version. But the ads can be disabled by users entirely just by turning them off in the settings. Doing so stops them from loading, so no resources are wasted (unlike adaway's usage, because the code in apps still run and attempt to get the ads, but get blocked by thr hosts file - my switch stops any code being executed at all).

I would emplore them to leave them though, ad revenue helps keep the lights on, but the off switch is there for a reason too :)
[Android Apps and Games] RVR:
Error while compiling with Resurrection Remix ..Please help . Thanks!

packages/apps/OTAUpdates/res/layout/ad_activity_about.xml:17: error: No resource identifier found for attribute 'adSize' in package 'com.ota.updates'

packages/apps/OTAUpdates/res/layout/ad_activity_about.xml:17: error: No resource identifier found for attribute 'adUnitId' in package 'com.ota.updates'

packages/apps/OTAUpdates/res/layout/ad_activity_main.xml:17: error: No resource identifier found for attribute 'adSize' in package 'com.ota.updates'

packages/apps/OTAUpdates/res/layout/ad_activity_main.xml:17: error: No resource identifier found for attribute 'adUnitId' in package 'com.ota.updates'
[Android Apps and Games] MattBooth:
You need to add the Google Play Services library to your workspace ( and add it to the build of the project, like cardview and bypass) :)

I'll update the instructions when GitHub is back online.

EDIT:

There we go:

https://github.com/Kryten2k35/OTAUpdates/blob/stable/Building.md#google-play-services
[Android Apps and Games] Ale95:
Dont work is the same :(, I use the apk with the icon better :)
[Android Apps and Games] z1on:
may be a stupid question but how to set paths to cardview and google_play_services without using Eclipse?

I'm using AOSP code, I set in .bashrc:

export SDK_ROOT=/path/to/sdk

but I still have errors about adSize and adUnitId.

thanks
[Android Apps and Games] MattBooth:
CArdview should be in the libraries alteady, so you should include it the same way you would any other support library (like android-support-v4) but google play services you might need to include different. I havne't gotten around to building with AOSP yet, but if you find out how, please send me a pull request.
[Android Apps and Games] saintxseiya:
Love your project, but the App crashes almost always accesing it.

or clicking on view website.

Saint
[Android Apps and Games] udK:
[MENTION=3443334]Kryten2k35[/MENTION]: I had the same issue with AOSP code, I sent you a PM.
[Android Apps and Games] mantiyeah:
is it possible to use with stock recovery?
[Android Apps and Games] MattBooth:
No, you need to be running a custom ROM to use this, which probably means a custom recovery.
[Android Apps and Games] MattBooth:
This doesn't warrant an update, but I have been doing some updating for AOSP building. a PM from [MENTION=465183]udK[/MENTION] got me started and I ended up getting around to finishing it today.

This also makes building form source easier for Eclipse users too. There is no more messing around with ByPass and boost. I've integrated the ByPass libraries into the apk, which removes the need to manually compile it using NDK. I will maintain this myself and update any changes as and when.

Anyone using an AOSP based ROM (Slim, Omni, Cyanogen, etc) should use the building from source option. Doing so removes the need for SU permissions, as the package is signed with platform keys and is a proper system app, therefore can reboot to recovery and write to cache without the need for the SU permissions.

Instructions are here as usual: https://github.com/Kryten2k35/OTAUpdates/blob/stable/AOSP_CM.md
[Android Apps and Games] g7755725:
doesnt give me no butyon to report

It diesnt give me a button to report and copy tge log but still crashes
[Android Apps and Games] MattBooth:
http://xdaforums.com/showthread.php?t=1726238
[Android Apps and Games] nicholaschum:
[MENTION=3443334]Kryten2k35[/MENTION], thanks a lot for this OTA updater and guide! It was very descriptive!