yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] ZilverZurfarn:
That was the way I imagined it to work. Just like repositories. And the end user can add (and remove) locations for different up.txt files, managed by different developers.

/Mats
[G1 Android Development] LucidREM:
sounds good .. i put an up.txt in case anyone gets to testing alternate locations:

http://www.kyubinc.org/up.txt
[G1 Android Development] Darkrift:
Good Idea. I like the multiple up.txt file idea. It would allow theme makers and other modders to be able to provide updates without all of the work falling on one single (lazy) person. I dont mean to sound like I do not want to do it, but I get pretty busy sometimes and I wouldnt want someone to go a day (how terrible) without an update because I forgot to add it to a list. The thing with JF roms is I have advanced notice because I normally talk to him while he is building new versions and he normally tells me "ill release JF X.XX in about 2 hours". Also he uploads a copy of the file directly to my hosting so that saves a lot of time. I merely have to find the path, md5sum it and paste the info in the text file and test it to make sure it reads properly.
[G1 Android Development] dandaninc:
I just wanted to say thank you!
[G1 Android Development] [RiS]:
OK.. Added to the request list: http://code.google.com/p/jfupdater/issues/detail?id=43

BTW is nobody concerned about security?

What about to require up.txt (or its xml equivalent) to be digitally signed?
[G1 Android Development] LucidREM:
would it need to be signed if it is on a dedicated server? ie. when the software looks to www.kyubinc.org/up.txt you wouldn't find anything but the file i put there .. would there be a benefit to signing?
[G1 Android Development] [RiS]:
To avoid someone breaking your system and replacing the update files for a malicious one, then replacing the up.txt file.

Maybe I'm too paranoic? :confused:
[G1 Android Development] DeFiant*X:
I seem to be having a problem with the Updater...It finds JF1.42 and downloads, but, after it downloads from 1 source, it just redownloads again from another. I even let it download from two different sources, rebooted and tried to apply the update, but it says there is no file to be found. What's the deal?
[G1 Android Development] Darkrift:
Check your sdcard with a file manager while its downloading, maybe its not saving it properly (enough space?),.
[G1 Android Development] recasper:
Once I attempt to Apply the update I get the following over and over:

/!\ Sorry!

The application Superuser

(process

com.koushikdutta.superuser)

has stopped unexpectedly.

Please try again.

Any ideas?
[G1 Android Development] [RiS]:
The application needs to gain root acces to apply the update.

Can you reproduce the error?

Which version of JF and the updater are you using?
[G1 Android Development] recasper:
Well as for the error, it would happen each time I attempted to apply the update through JF Updater (1.0.2). Today I got frustrated and just flashed it via update.zip (which had me stuck in the boot screen forcing me to do another alt-w wipe).

I am not sure why it is giving me a root access error I am running JF R33 Rooted version with SPL ENG.

For my own benefit lol, even though I have got it installed via the flashing zip file way, anyone have ideas why this may have happened so I can use the Updater the next time around?
[G1 Android Development] [RiS]:
mmh, no idea.

Next time, could you try collecting logcat output?
[G1 Android Development] mrnote8:
I know some of you aren't from the states, happy holidays to whom that apply.. how are things going?
[G1 Android Development] LPChris:
Sweet. Although if this thing works well enough I'm sure you'll just cook it into your builds as its specific to your ROMs.
[G1 Android Development] sputnik99:
until you succeed.. Is it possible to have amailing list for JF updates? subscribing to the threads is not helpful, because on one hand JF always starts a new thread for new versions and on the other if you don't visit all the threads you are subscribed too, you stop getting notifications.

possible?
[G1 Android Development] Darkrift:
for now, till the auto update script is working, I keep the file android-dls.com/update.txt updated whenever JF makes an update (and I normally know at least one day in advanced so its updated pretty fast). I also made it so that I have an rss feed on my site that is for JF releases only. Disconnect has one also and I will post both.

http://android-dls.com/jesusfreke-updates.feed?type=rss (mine)

http://andblogs.net/tag/jf/feed/ (Disconnects)

We both keep these pages fairly updates (these are the stories we put on our front pages, and we tag/categorize them specially so they show up) and should have a new update within 8-10 hours max of a new release.
[G1 Android Development] Darkrift:
Any update on how this is going? I have added the up.txt file to my server so you can test it. let me (and the others who keep asking about this) know how things are going and if you need any testers.

By the way, feel free to drop by #android on irc.freenode.net and msg me if you need any more edits to that file you asked about. I only check for pm's here about once a day so irc is faster if you are able to catch me there.
[G1 Android Development] [RiS]:
Finally I have something to show :)

We have created a project here: http://code.google.com/p/jfupdater/ to host all the application code.

I've just uploaded a first beta version there.

Currently the application can check for updates, download them, and put them on /sdcard/update.zip

There is also a background service that would periodically check for updates.

Some noteworthy missing features:

* It can't detect the current version you are running, so every time you check for an update, it will find it.

* Currently I was using two update files: the original JF v.1.41 RC30, and a dummy file (nammed TEST ADP1). You can download and apply JF one (it should work), but if you try to flash the dummy file, it will complain about missing signature.

If anyone wants to give it a try, please post your comments here.

Also remember to perform a backup before start playing with this.

P.S: Beta-testers & artwork designers wanted!
[G1 Android Development] Darkrift:
I was helping [RiS] test this and we have found a few things that he is going to work on. First of all a note about his above post: I have changed the RC30 1.41 to be RC33 1.41 so it is actually useful for someone (those who do not have rc33 yet). Also make sure there is no update.zip in your /sdcard because from my testing it seems this might cause it to fail (I am sure this will be fixed soon).

When you click on the download button after choosing an available update, the screen goes away. There is a message that says "downloading" but you will not see this because something is wrong with the message right now (I dont know the details on why). If you re-open the jfupdater app at this point it will say "downloading". There currently is no message after the download finishes (again, something he is working on). All in all, this is not ready for general use, but please help us beta test it and let him know if you find bugs. For a first beta, this app is surprisingly far along and (in my opinion) will require very little to get it in working condition (not counting UI tweaks etc).

Thanks to all who are helping work on this (I only know of [RiS] right now), I have been wanting something like this for a long time.

*edit* I thought maybe I would try making an icon for it even though I suck with gimp. here is the aftermath :S

There are those who can gimp, and those who should not even have it installed. Maybe with a tutorial or 2 I could remove myself from the second category.
[G1 Android Development] clorox:
great job guys, this will come in very useful! :D
[G1 Android Development] humble:
i second that ;)good job:)
[G1 Android Development] Gadzks:
Okay. This is just sick. Scream'in sick! You guys are just over the top. I gotta start learning to code. Life would be so much more...controllable? :cool:

Keep it up, gents! And thanks!!
[G1 Android Development] davil124:
i think thats a great idea nd i hope u guys can do it....it would b awesome
[G1 Android Development] borodin1:
Thank you guys for all your hard work, you're the ones make me love my phone more and more every day.

@Darkrift: I LOVE that icon!!!!
[G1 Android Development] Darkrift:
for the guy who said you hope he can do it, he already did. It just needs touch ups. The hard parts are already done. He had to get some sleep but will probably work on it more tomorrow.
[G1 Android Development] Dimath:
This work is really great! Thanks!

Actually, one can just put an app on market which would download and install a new update, and update this app each time you have a new JF build :)

Well, that's all the same, except of the background app which check for an update each 12-24 hours.
[G1 Android Development] Darkrift:
That is what this app does (or will do). It lets you choose 1/12/24 hour checks or check on each boot. It checks against a file that lists the latest update and puts a nice big shiny alert in your notification area. I am guessing later versions will auto download and alert you when its time to reboot (and give you that option) to make things as easy as possible.
[G1 Android Development] jonno.n:
This is fantastic, thanks for your hard work guys.
[G1 Android Development] MasterBunnyFu:
Seems like you should be able to check /build.prop and look at the ro.build.id line and the ro.modversion line to detect which JF build is installed.
[G1 Android Development] Darkrift:
We discussed that yesterday and he is going to see what he wants to do. It sounds like he will read those details and set the "default" but also give a config option for those who want to change it eg:

US G1 (auto detected)

UK G1

APD1

This is all determined by what he can actually get working of course, but that was the last idea we had discussed before he had to go.

I cannot wait for this app to be ready for general use. I have helped many co-workers and friends install JF updates, and having to manually download/rename/flash them on a lunch break with no pc (pc makes typing a lot faster) is not easy at all, but I feel I owe it to them since I almost forced them to use a JF rom.
[G1 Android Development] Binary100100:
I love the idea. Here's a thought if it hasn't been mentioned before:

Can this be tied in to the "About phone" > "System Updates"?

I kinda stole the idea from how I update my modded PSP.
[G1 Android Development] Mutalemwa:
Great work guys..

xda is the top developer community in the galaxy!!!!:D
[G1 Android Development] All~G1:
You definitely gotta love the DEVs that roam these halls.

Loving the progress that this community has given to android/G1. THANKS!!!!:D
[G1 Android Development] [RiS]:
Actually this is really easy to do, and would be added in the next public update.
[G1 Android Development] Darkrift:
How are things going [RiS]? Im at work so no irc for me right now.
[G1 Android Development] [RiS]:
Working on a new version that will solve most of the issues of v.0.1.0, plus adding some cool new features. I hope to have it in a couple of days :)
[G1 Android Development] Darkrift:
Nice. Ill be watching your code.g site for a new beta to test.
[G1 Android Development] [RiS]:
You have a PM :)
[G1 Android Development] Darkrift:
Version 0.2.0 looking nice guys. Few more little things and this should be ready for general use.
[G1 Android Development] aaronkt:
This is just amazing! You guys really go that extra mile. XDA is the best community that i have ever joined. The amount of effort that goes into making things better is amazing.

I have not once had a problem updating to any of JF's updates, however you guys just made this all the more easier. I feel like its going to make me lazy about my phone again!

Either way thanks a ton!

i know its my first post but i have been coming here since the talk of G1. Really, thanks guys!
[G1 Android Development] savethechicken:
This is awesome I have helped some people put the JF Roms on their phones and even though I have given them instruction and all the resources they need (www.xda-developers.com I even bookmark it in their browser on their phone for them :) ) to keep it up to date they still come to me and ask me to flash the new ROM when they see I have it. This is great. Much appreciated for all the hard work everyone puts into these projects.
[G1 Android Development] [RiS]:
someone with a JF image (UK and/or US) can post here what are their values for ro.product.model and ro.product.locale.region ?

P.S: You can get it from a terminal typing

$ getprop ro.product.model
$ getprop ro.product.locale.region
[G1 Android Development] savethechicken:
Does it matter if it is ADP1.1 or does it have to be RC30/33

$ su
# getprop ro.product.model
Android Dev Phone 1
# getprop ro.product.locale.region
US
#
[G1 Android Development] [RiS]:
If has to be RC30 or RC33 or RC29 or RC8 or whatever RCXX. No mater what JF version either.

I already have the values for ADP :)
[G1 Android Development] daproy:
From JF 1.41 RC33

# getprop ro.product.model

T-Mobile G1

# getprop ro.product.locale.region

US
[G1 Android Development] jumbuck:
UK variant

UK variant. Running JF 1.41 RC8

# getprop ro.product.model

T-Mobile G1

# getprop ro.product.locale.region

GB
[G1 Android Development] [RiS]:
Thanks guys :)
[G1 Android Development] savethechicken:
Lol figured :) but I thought I would but it in anyway. This an awesome tool can't wait until it is fully up and running!
[G1 Android Development] devastatorx:
i have a server and about 2gb/month bandwidth i can lend out if you guys need another mirror
[G1 Android Development] xsoft:
Count me too. I have it at Czech rep. (europe) with unlimited traffic.

But just for mirror, I guess that mail load will be too huge.
[G1 Android Development] roggrat:
android.ratsrace.com

I've had the ratsrace.com site for a while, ive got unlimited bandwidth and tones of space. The subdomain android.ratsrace.com ,or any other is available free for you guys for your good work, should you want it for a mirror or something of the sort just hit me up !
[G1 Android Development] minogue:
IF you guys are stil in need of a mirror. I can sure help out!

just drop me a pm whenever needed!
[G1 Android Development] Darkrift:
In the last 2 weeks I alone (keep in mind there are like 4 sites hosting this so far) have used 650 gigs of bandwidth from JF's rc33 update and the 1.42 and 1.43 he released last night. These files get a lot of downloads. I will be needing some mirrors soon, but they need to have high bandwidth limits and decent speeds. Disconnect and some others are already mirroring the files, I just need to ask their permissions to use those in this app.
[G1 Android Development] polovinamozga:
script must be run from my g1 ?
[G1 Android Development] Darkrift:
Its an app you install, not a script. We are way past the script now.
[G1 Android Development] aaronkt:
Hey Dark is there anyway we can get this post cleaned up a little bit? Give us an update where things are at and maybe tell us an ETA of when it will be released to the public? Maybe post the link to the download in your first post?

thanks!
[G1 Android Development] Darkrift:
Sure, I am at work right now which means only short posts, but when I get home I will clean it up or make a new one. The subject has changed a lot since first post so maybe a new thread will be best.

***EDIT***

I have modified the first post, please see it for more details.
[G1 Android Development] Darkrift:
Ok. We have received a few offers for mirrors. First of all let me give you an idea of the bandwidth required. I am only one of probably about 4 mirrors currently and in the last 2 weeks I have used about 600 gigs of data transfer. There are a lot of downloads going on here. Your server should support a lot of traffic at once, and should also have a high bandwidth plan to avoid getting shut down or charged for overages. The files would also need to be downloadable with no referrer so please make sure you do not have an htaccess rule (anti leech rule) that would block the downloads.

If you think your server can handle this and still want to be a mirror, Please download copies of the update files, upload them to your server, check the md5sum of each file and post a url here for me to add. The more good mirrors we have the less bandwidth each server will have to deal with.

Thanks to everyone who offered to be a mirror. I will be asking the guys who are currently mirroring these files if they mind me using them as mirrors for this project.

Please also take a few minutes to test out the latest version of this app and let us know what you think and any bugs you find. [RiS] is working really hard on this and could use any extra help testing it he can find. The latest version can always be found at: http://code.google.com/p/jfupdater/downloads/list
[G1 Android Development] SpyderMS:
Excellent idea guys. I installed the beta the other day, and I just went to check to see what the latest version was, but I noticed that currently there's no way to check which version you already have on your phone. Perhaps you could throw in a little "About" screen in there to let us know? Or maybe even throw in an auto-updater to update the updater app :P I know it's still in beta, so perhaps not auto-update, but at least auto-notify when the latest build is up, and give the option to install.

Also, is this app already functioning? What I mean is, if JF releases a version tomorrow, will it tell us, or is it only looking for dummy files on your server while you work on it?

Also, when I manually check for updates, I barely even notice the tiny message bubble telling me that no updates are found. Perhaps you should make it a little larger, and maybe even style it up at some point.
[G1 Android Development] [RiS]:
The lastest versions of the application do internally check for the mod version the phone is running, just that it's not shown to the user. Anyway it seems a good ide to add a new about dialog with this info.

It's functioning in the way that DarkRift has upload the actual jf updates to his mirror, and he is commited to update it when a new update comes out, also, the application does download the updates and puts them in in the proper place, so you can manually reboot into recovery mode and apply them.

But keep in mind that it's a beta version, so expect that it may crash at any moment (Althought no phone has exploded yet :) ).

The tiny message bubble was that small because actually there is no much to say (no updates, keep going on..). When an update is found, the application will create a big, shinny, notification in the notification bar. Anyway if people complain about it I will think about changing it, but I find a notification saying "No updates" is too agressive.
[G1 Android Development] pixel-painter:
Awesome app, thank you so much :D
[G1 Android Development] Darkrift:
The app currently works just fine. Right now its small features/fixes that it needs. I have noticed that sometimes the app crashes (unloads itself from memory somehow) when you push the "check now" button, which means it will not return a result. The timed checks do work however and will tell you if an update is available (which there probably are unless you are running apd1 JF1.43 or G1US JF1.42). Check out the downloads page, download the latest version and test it out. No damage can be caused by this app unless a: the download fails and b: the recovery somehow acts different because of sun spots or global warming and allows an invalid zip file to be flashes and c: forgets to run its signature check during flashing. Since these 3 things are extremely unlikely to happen, at least all at once, you are basically safe trying this out. And with that, I am off to work.
[G1 Android Development] savethechicken:
This is awesome I installed it lastnight, havent been able to test as I already have hte most current version on the phone.

GREAT WORK!!!!
[G1 Android Development] cboy007:
good job. contact JF and get him to include this in his next update! (and make it somehow check for updates itself / add it to market...even while in beta...)

GREAT WORK.
[G1 Android Development] Darkrift:
I have talked to him about it. He personally has no use for it (duh) but I am sure he could add it to the updates. The problem with this is that apps that are installed in the update cannot be updated via the market or an apk file because they are in /system/app and it is read only. I think just making the download available here (maybe in his thread) and on the market would be good enough.
[G1 Android Development] SpyderMS:
I wasn't referring to the version of Android you were running, but the version of JF Updater that you had installed. For example, if I had 2.0 installed, there's no way for me to know this, as it doesn't say anywhere.

No problems here :D (well except for the possible problem below...)

After using it again, I think I just missed it because i'd expected it to pop up in the middle or top of the screen, as opposed to the bottom, and with the 'app drawer' in the background, it kind of blended in. The 2nd time I tried it, I saw it immediately.

Also, if you're running JF Lite (I'm not... yet), will it recognize this?
[G1 Android Development] [RiS]:
Im planning to add an about dialog before v.1.0

probably i'm missing something, but what it.ls jf litle?

thanks for all your testing!!!

do you have a logcat dump showing some error?
[G1 Android Development] TheDudeOfLife:
JF "lite" is the JF 1.42 image with the /system/media/audio and /system/media/notifications ripped out.

All things considered it will look like the exactly the same to this updater and isn't considered an "official" release.
[G1 Android Development] andrews240:
I have been following this discussion from the beginning and I just wanted to post to say great work so far. I am excited about this project because it can be the beginning of, not only automatic OS updates, but also theme installs from within the android GUI as well. Keep up the good work and continue to keep us posted. Thanks Darkrift, RiS, and all else that are helping to make this updater a reality.
[G1 Android Development] Darkrift:
No, but lemme try that now. Didnt even think about lolcatting it.
[G1 Android Development] Darkrift:
Ok. What I did was I had a notification in the taskbar, I clicked on it and it showed an update available. I then clicked the menu button where it was showing me the available updates and pressed the "check now" option on the menu. This closed the app, brought me a toast telling me that it was checking and did nothing. That is normally how it happens. Updates are avail, it tells me it is checking but never gives notification. Following is the lolcat output.

I/CheckForUpdatesTask( 5588): Checking for updates...
I/NotificationService( 54): enqueueToast pkg=jfupdater.ui callback=android.app.ITransientNotification$Stub$Proxy@434852f0 duration=0
D/dalvikvm( 5588): GC freed 4936 objects / 302560 bytes in 220ms
D/PlainTextUpdateServer( 5588): Update Mod:ADP1; System Mod:US
D/PlainTextUpdateServer( 5588): Discarting JF 1.43 ADP1-1.1 Holiday
D/PlainTextUpdateServer( 5588): Update Mod:US; System Mod:US
D/PlainTextUpdateServer( 5588): Update Version:[Ljava.lang.String;@43009948; System Version:[Ljava.lang.String;@42fff3f0
D/PlainTextUpdateServer( 5588): Update Mod:UK; System Mod:US
D/PlainTextUpdateServer( 5588): Discarting JF RC8 v.1.41 UK
I/CheckForUpdatesTask( 5588): 1 update(s) found
I/UpdateProcessInfo( 5588): Found and update.zip file. Checking it's MD5
I/UpdateProcessInfo( 5588): update.zip MD5:6ecf0ea8175e1aece8a770253447b6a8
I/ActivityManager( 54): Process jfupdater.ui (pid 5588) has died.
I/WindowManager( 54): WIN DEATH: Window{432d76b8 Toast}
D/AudioHardwareMSM72XX( 33): Going to standby

Also about your earlier problem with md5sum problems. I just opened an adb shell, browsed to my /sdcard and ran "md5sum update.zip". I was about to count to 7 before the results were shown. I think you should instead of using the java md5 use the shell version.