yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Darkrift:
I re-tested to day at [RiS]'s request. I first uninstalled the old version (something I had not been doing) and reinstalled. After checking for updates I was unable to reproduce the same problem I had been getting consitantly before. I am guessing this is maybe due to the service being loaded and not getting upgraded correctly, but then again this is a very uneducated guess. This program seems to be release quality once he adds the feature in that tells recovery to auto flash.

Currently it downloads the file and asks you if you want to reboot. When you reboot you have to hit "alt+s" to flash the recovery. There is a command he can have this app send that will do that for you. He is waiting to apply this because he wants to add a command that makes recovery backup first, then flash. I personally do not feel the need for backup but I am sure some of you would like it.

Keep checking back here for a release. I have talked to [RiS] about a market release and if I remember correctly he might put it on the market.
[G1 Android Development] [RiS]:
Just wanted to let you know that I've uploaded a much more stable version on Google Code: http://jfupdater.googlecode.com/files/jfupdater-v.0.3.0.apk

There have been lots of changes in the application, mainly:

* Now you can select to check for mod updates of your phone's mod type (US G1, UK G1, ADP1, All of them).

* The download screen has been improved: Now it shows a progress bar, a download counter, and it allows you to cancel the current download.

* MD5 verification is back. The downloaded file is now checked before aplying the update.

* Added the ability to detect an update.zip file stored to the sdcard. This way you can manually download the file from another sources and put it on the sdcard. The program will detect it and try to match it against one of the available downloads. If it matches, it will offer you to apply it.

* Now the application reboots into recovery mode to apply the update. (No automatic update yet). Please note that, in order to reboot into recovery mode, the application must gain root access, so if you have superuser app installed, it will prompt for permission.

* Lots of bug fixes.

I'm also working on a patch for JF recovery image that would allow the application to reboot into recovery, perform a nandroid backup, and then apply the update (Right now, pressing 'backup & update' has the same effect that pressing 'update'

There are also some issues that needs to be fixed (mainly dealing with notifications and update checking).

Since there are still some known issues, I think is better to wait to fix them before putting it on the Market. Also, I would like to have a nicer UI before that..

We've also been discussing with Darkrift about the right frequencies for update check. What would be your prefered choice? (It does not need to be one of the existing ones)

As always, any feedback is welcome :)
[G1 Android Development] roggrat:
android.ratsrace.com

Darkrift

I've set up the downloads, and this site is good to go for a mirror .

US G1: http://android.ratsrace.com/jf/v1.42/JFv1.42_RC33.zip

UK G1: http://android.ratsrace.com/jf/v1.41/JFv1.41_RC8.zip

ADP1: http://android.ratsrace.com/jf/v1.43/JFv1.43_Holiday.zip

Let me know if you need anything else to get this going.:cool:
[G1 Android Development] Darkrift:
I have added these mirrors to http://android-dls.com/up.txt which is what the app reads to find upgrades/mirrors. Please let me know if you need them removed so I can take care of that.
[G1 Android Development] Darkrift:
I just tested this again from start to finish. One thing I noticed. When you start a download and then switch to another app, and try to come back, it takes you to the "select a download" page instead of the current download progress. This could cause problems if you select "verify download" because the md5check takes forever because the dl is still growing. Also I would love if it you would be able to add something about which mirror was chosen. For example "Downloading: Filename.zip from mirror: android.ratsrace.com". This would help with 2 things. First help find mirror errors, and second, be a slight (very slight) method for our mirrors to let ppl know they are helping with the mirroring (almost an advertisement).
[G1 Android Development] [RiS]:
I was aware of this (just didn't notice that case). Tomorrow I'll start looking at it.

Nice idea. Added to the list :)
[G1 Android Development] All~G1:
Great work guys. This helps keep in the loop. Would it also be possible to add other "interesting" updates??? I know this is your project and mainly for JF updates and it much appreicated :)
[G1 Android Development] Darkrift:
[RiS]. I was told to ask you if you could add a method to update radio firmware update method. It would check the current device type, radio image and then see if a newer one is on the server. JF is not adding radio updates to his images to make them safer to flash so they need to be applied seperately. I could make a new .txt file on my server for this purpose if you needed.
[G1 Android Development] wimbet:
Wow it looks like you guys are making great progress. I have subscribed to this thread and eager for updates.
[G1 Android Development] [RiS]:
Definitelly is something that we must include. Since the TXT file is getting more and more info, what about changing it to an XML?

<?xml version="1.0" encoding="UTF-8"?>
<UpdateList version="1">
<OsUpdate mod="ADP1" version="1.43" displayName="JF 1.43 ADP1-1.1 Holiday" md5="076ba12c3e733805ba1c865ab48d370c">
<MirrorList>
<Mirror>http://android-dls.com/files/jf/v1.43/JFv1.43_Holiday.zip</Mirror>
<Mirror>http://android.ratsrace.com/jf/v1.43/JFv1.43_Holiday.zip</Mirror>
</MirrorList>
<ReleaseNotes>Fixed the issue with Latitude.
If you change from another mod (RC33 or RC8) to this one, a wipe will be required</ReleaseNotes>
</OsUpdate>

<OsUpdate mod="US" version="1.42" displayName="JF RC33 v.1.42 US" md5="6ecf0ea8175e1aece8a770253447b6a8">
<MirrorList>
<Mirror>http://android-dls.com/files/jf/v1.42/JFv1.42_RC33.zip</Mirror>
<Mirror>http://android.ratsrace.com/jf/v1.42/JFv1.42_RC33.zip</Mirror>
</MirrorList>
<ReleaseNotes>New version including RC33 update.
If you change from another mod (ADP1 or RC8) to this one, a wipe will be required</ReleaseNotes>
</OsUpdate>

<OsUpdate mod="US" version="1.41" displayName="JF RC8 v.1.41 UK" md5="72135da62839758de0cb2acd49d84850">
<MirrorList>
<Mirror>http://android-dls.com/files/jf/v1.41/JFv1.41_RC8.zip</Mirror>
<Mirror>http://android.ratsrace.com/jf/v1.41/JFv1.41_RC8.zip</Mirror>
</MirrorList>
<ReleaseNotes>New version including RC8 update.
If you change from another mod (ADP1 or RC33) to this one, a wipe will be required</ReleaseNotes>
</OsUpdate>

<RadioUpdate mod="*" basebandVersion="" displayName="" md5="">
<MirrorList>
<Mirror>http://android-dls.com/files/jf/v1.41/JFv1.41_RC8.zip</Mirror>
<Mirror>http://android.ratsrace.com/jf/v1.41/JFv1.41_RC8.zip</Mirror>
</MirrorList>
<ReleaseNotes>New version including RC8 update.
If you change from another mod (ADP1 or RC33) to this one, a wipe will be required</ReleaseNotes>
</RadioUpdate>
</UpdateList>

Suggestions about this structure are welcome

BTW, I've noticed than when adding the mirrors to the TXT, you cut a URL in the ADP1 mirror list
[G1 Android Development] daproy:
I agree, I think we definitely need to move to an xml. This structure looks like a great start. From the coding side of things it should make it much more extensible. A plain txt file just isn't sophisticated enough, especially since we're moving to support radio updates and even possibly themes in the future.
[G1 Android Development] Darkrift:
That can be done. Just let me know what/when/how
[G1 Android Development] [RiS]:
Just create that XML (I've edited the previous post with the correct URLs) and let me know the XML file URL
[G1 Android Development] Darkrift:
Added, same url as old file, name is up.xml
[G1 Android Development] goku31640:
I just tried to update using jfupdater v.0.3.2, but it refused to reboot into recovery.

I have RC33 jfv1.41, trying to update to 1.42. It downloaded great and fast, but as soon as i told it to install it checks md5 then it said trying to obtain root access, then the little bubble disapears and it just stays on that screen until i press back.

I have superuser installed, but I gave it permission to use root.
[G1 Android Development] Binary100100:
OH! There's an update? YESSSS!!!
[G1 Android Development] Binary100100:
Still no icon? Whats up with that? LOL.

I tried messing around with it to see if I could replace the icon.png file with one of my own but it wouldn't install. I'm not a dev or anything but if I wanted to do this how could i go about it?

EDIT: Nevermind. I figured it out. I deleted the meta-inf folder.
[G1 Android Development] Darkrift:
I can confirm this behavior. Previous versions would tell me "Rebooting" and then "Failed to reboot" and at that point superuser would ask for permission and when granted the reboot would happen. Currently when I press the upgrade button it says it is attempting to gain root access and sits there doing nothing. Superuser does not even ask for permission. I am guessing a small typo was introduced in this version when I made the recommendation to not say "reboot failed" but instead say "attempting to gain root access". Other than that it seems to be working nice.

One little thing (lol). Is there any way to make the about dialog go away when clicked? I kept tapping all over trying to get rid of it, but had to press back to do so.

Also does this version have the string inserted that will auto apply the update? If not, could you add that to the "upgrade" button, but not to the "backup and upgrade" so that until the backup functionality is fully integrated at least the non backup method works fully?

One last thing I would like to say is that previously I thought [RiS] was the only person working on this project and my comments were accordingly. I recently (last night) read the project updates page and saw that there is actually a second person helping with this project. Thanks to dan.poulsen for helping on this app and sorry for leaving you out before.
[G1 Android Development] [RiS]:
Let me try to answers to all the questions here.

first of all, I've been really busy lately, and I have less free time than I wanted to spent on this. Anyway, the project is not stopped, just moving forward a bit slow :)

As I said, any artwork is really welcome. You can post the icon here of add an enhacement issue at GCode page: http://code.google.com/p/jfupdater/issues/entry

As all the .apk files are digitally signed, any atempt to modify it would result in a broken .apk file that won't install.

Mmmh. Sorry, I forgot to update this post about that. The latest versions (>=0.3.1) are actually writing the update commands to /cache/recovery/command

I just disabled the reboot command cause I didn't want my phone to keep rebooting and flashing while testing. So or you granted permisions to the application in superuser (clicking 'always') and is silently writting the commands and no rebooting (as expected) or there is a bug :)

Can you

# cat /cache/recovery/command

to check if the commands are written? If so, rebooting into recovery mode should apply the update.

You can also try with a dummy file

$ rm /sdcard/update.zip
$ touch /sdcard/update.zip

The update process should start, and fail due to a wrong update file.

lol. I believe this is the intented behaviour. But it should be easy to close it when hitting back OR the dialog is pressed. Can you fill an issue about this? http://code.google.com/p/jfupdater/issues/entry

Sure. Next version will have the reboot feature enabled.

Regarding this, this week I've sent a patch to JF to enable automatic backup in the recovery image. Hopefuly he will incorporate it in the next version.

Yes, Dan has been contributing lately with several patches. Actually all the work with dialogs is his.
[G1 Android Development] roggrat:
Mirror Files Updates

Hey guys, I used the original update.sh script [RiS] had posted, modded it so as to provide a way to update the files on my server automatically using a cron job that has thus far worked fine. The script checked the other mirror up.txt file (android-dls.com). Compared the versions and downloaded the latest files if one or some were available at a rate of every 6 hrs. This would be beneficial should i not be available to do so. So the question or suggestion is can we standardize the fields in the xml the purposes of the application and cron jobs. Its fine as it is .:)

I noticed the OsUpdate mod field with the UK download had a "US" tag to it, copy and paste error I'm guessing, and on the RadioUpdate I dont know if theres two version for the US and UK and if it would be a good idea to include a second RadioUpdate field just in case theres two versions to be distributed.
[G1 Android Development] [RiS]:
Actually, the original script and idea was from Darkrift.

And yes, the xml file is wrong (my fault), there are two US tags, and the RadioUpdate attributes and children are not correct, anyway I'm not using it yet.

I think you can look for all the <MirrorList> tags on the file, and mirror all of them. I don't believe this won't change in any near future.

BTW, have you thought in a way to let darkrift know that you have mirrored the files so he can update the XML file?, also, you should take care of not re-downloading the same file from all the mirrors (including yours)
[G1 Android Development] roggrat:
Mirror Files update - android.ratsrace.com

Yes the mirror is already included (android.ratsrace.com). And the re downloading part is taken care of.
[G1 Android Development] daproy:
Not a problem, [RiS] has done most of the hard work. Just trying to help out as much as I can. Thanks though!
[G1 Android Development] mrnote8:
icon

i do some design work and i'd love to help out in this worthy cause. however, i'm not much of a developer.. what are the dimensions for the icon .png? and do you have any existing ideas floating around?
[G1 Android Development] [RiS]:
Nice :)

The desktop icon is 48x48. The notification icon is 25x25.

There is no icon for JF OS images neither, so I have no idea how these should look like :confused:
[G1 Android Development] mrnote8:
thanks [Ris].. i'll start working up some ideas. looks like your deadline is kinda loose.. may take a day or two to get back to you.
[G1 Android Development] [RiS]:
Take your time... :)
[G1 Android Development] mrnote8:
i had a few minutes. here a couple quickies.. right direction?.. wrong? i just used 'jf auto' as a working title.. i liked the simplicity.
[G1 Android Development] Darkrift:
I like the first one. Is there any way you could try making that one in a greenish? (I love the android pea green color lol)
[G1 Android Development] tokyomonster:
I'd hate to rain on anyone's parade, and I admit I did skip most of the posts, so if that has been discussed already, please disregard it..

But, honestly, checking a text file on a non-ssl web page to download an (unsigned?) update really isn't the most secure thing around. It wouldn't take much for a DNS attack or server compromise to get malicious code on to the phones with this service enabled. Yes, this is a niche market, and risk is minimal, but the risk exists.

Firefox actually had a similar issue with the way third party addons check for updates, and you can read more about that here: http://arstechnica.com/security/new...ty-affects-third-party-firefox-extensions.ars
[G1 Android Development] Darkrift:
The up.txt file is on my hosting, which is also one of the main mirrors JF uses for his updates. They would have better luck just posting their malicious update in a thread here as a mirror and getting as many ppl as they wanted before they were caught. None of this process is safe, but most of those who have the modified updates realize this.
[G1 Android Development] mrnote8:
i'l get to that when i get by a computer. would you like me to work in the android? we can really do anything you'd want. i want you to love it. hit me.
[G1 Android Development] mrnote8:
green

still working..

..lol
[G1 Android Development] Darkrift:
Nice. I like that one. The decision is ultimately up to those working on the app, but I think the green sticks with the android color and that would make a good icon.
[G1 Android Development] Treytor:
I like it, but I'd say do away with the bevel / gradients. It's so small anyway effects like that don't really add to the overall look but rather deter and make it harder to read.

Try it without.
[G1 Android Development] mrnote8:
I was kinda feeling the same way.. I'm working on some others that aren't just thrown together.. haven't had much time lately. thanks for you input. ..mv
[G1 Android Development] savethechicken:
Mine is not as colorful. lol Just have been using it since the app was first released on beta...
[G1 Android Development] Binary100100:
I like this one... but I think it should be "Android Green".
[G1 Android Development] mrnote8:
i like this one.. yes.

i guess, try it in green.
[G1 Android Development] savethechicken:
I will try it in the android green when I get home here in a couple of hours.
[G1 Android Development] Binary100100:
I'm not sure if you got to it but I was fooling around with it for a few minutes.

What do you think?

I've also taken the liberty of modding the original jfupdater v0.3.2 with the one of the icons. Tried and tested.
[G1 Android Development] mrnote8:
i was just coming to post a green version of savethechicken's icon.. looks like binary100100 beat me to it. oh well, here it is anyhow..
[G1 Android Development] Binary100100:
At least we have a variety. :D
[G1 Android Development] [RiS]:
Thanks guys for your work! :)

Let's see how they look on a real device...

What about an icon more "drawing-like"? I mean, like the ones that are used by default applications
[G1 Android Development] mrnote8:
inspired by savethechicken's idea..

i spaced putting a subtle shadow under it.. i'll get to that in a while. tell me what you think.

edit: with shadow (it's kinda hard to see, but i think on the phone it pops more)
[G1 Android Development] UnkzDomain:
I like that one!

I'm currently using it after replacing it in the source and recompiling.
[G1 Android Development] savethechicken:
I really like this one already replaced mine with this on the phone.
[G1 Android Development] mrnote8:
is that a pretty easy thing to do? is there any good instruction here on how to change out icons for apps.. sorry, i'm such a newbie to all this
[G1 Android Development] UnkzDomain:
Well, if you don't know how to compile Android apps, you can always use the BetterCut app from the Market to replace the icon on the desktop.

Or you can just open the apk as a zip file and replace the icon and resign with test keys (like when you make a theme).
[G1 Android Development] mrnote8:
thank you. that's awesome.. now i have some playing to do. ..mv
[G1 Android Development] daproy:
Nice one...I like this the best so far.
[G1 Android Development] [RiS]:
Love it!

Can you make a 25x25 version? (Scaling down the current one doesn't seems a good idea, as it's hard to read it on the notification bar).

Maybe just a 2d version will do the trick
[G1 Android Development] tubaking182:
if i wanted to add this to my phone for another program i am writing to root your phone, how would i go about that, when i ls my /cache/recovery there is nothing in there, and if i try to go to that directory via linda file manager i can't see anything in the cache folder. i wanted to make my phone run updates as automatically as possible and this looks to be the thing i need to finish my script
[G1 Android Development] mrnote8:
sure thing. i'll draw something up.. if all goes well, it'll be up in a little bit..
[G1 Android Development] mrnote8:
Oops.. double posted
[G1 Android Development] mrnote8:
Wow, designing in such small scale is more difficult than i thought. I'm gonna spend some time getting something i really like, but for now..

Edit:

Do you guys think this (or whatever it ends up being) would be better a single color? ..to keep it simple

still working..
[G1 Android Development] moussam:
I have an app that is supposed to do the whole mod process for you. The last part of the app is applying the update. Right now it takes in a url, you click a button, it downloads and prompts the user to restart into recovery and apply the update. So can I just call the command line 'reboot recovery' instead of prompting the user, or is there more to setting this up first?
[G1 Android Development] mrnote8:
here's about as good as i could shrink the original icon down.. looks pretty good on the phone. fairly horrendous on my computer. anyway.

Edit:

monochromed.. it think these have a more default-y-ish-ness

..and/or
[G1 Android Development] mrnote8:
white "jf"

tranparent "jf" This one may not be very visible on themes with dark/black notification bars..

any feedback/criticisms?
[G1 Android Development] Mr. Moe:
Like em all. They look sweet. I can't wait til the day I see one of them pop up on my phone status bar. Keep up the good work EVERYONE working to bring this to fruition
[G1 Android Development] mrnote8:
thanks Mr. Moe. yes, me either.

here are some others..

-this is my fav so far. I think it works in with original icon really well

edit:
[G1 Android Development] [RiS]:
LOVE this one.

This evening it'll give it a try :)
[G1 Android Development] mrnote8:
awesome.. thanks. can't wait!
[G1 Android Development] mrnote8:
i (re)posted an better matched/cleaner/color corrected version of the JFupdater icon in the download section.. i just wanted to be sure you knew it was there.
[G1 Android Development] Binary100100:
So I downloaded the jfupdater-v.0.4.0.apk (beta) uploaded about 4 hours ago and i had to re-sign it in order to install it. Just fyi.

Other then that it looks great!
[G1 Android Development] [RiS]:
I've uploaded a new version here: http://jfupdater.googlecode.com/files/jfupdater-v.0.4.0.apk

Changelog:

* AUTOMATIC REBOOT & APPLY IS NOW ENABLED. PLEASE PERFORM A MANUAL BACKUP BEFORE TRYING THIS.
* 'Backup & update' button it's only displayed when a compatible OS version is detected (none for now).
* New cool icons from mrnonte8 :D
* Updated UI. Looks a bit nicer now.
* Added the name of the mirror the application is downloading from.
* UpdateService now handles correctly the situations where there is no data connection
* Now you can select the notification ringtone
* Several bug fixes

This version it's pretty close to v.1.0, just a couple of things are missing:

* I feel than some icons doesn't match 100% to it's purposed meaning. It would be nice if someone could made custom ones... :rolleyes:

* My english is pretty bad, so I would appreciate if someone could take a look at http://jfupdater.googlecode.com/svn/trunk/res/values/strings.xml and fix everything that doesn't sound good :)
[G1 Android Development] [RiS]:
Mmmh that shouldn't happen, I used the same key used in older releases.. were you upgrading from a previous version signed with your dev key?

thnx :D
[G1 Android Development] Binary100100:
I tried both. I tried updating and when that didn't work I tried to uninstall it. It still didn't install.

But now that you mentioned it... i used the png that was included in this thread earlier and modified the apk file and signed it myself to give the 0.3.2 the icon. Maybe that was the problem. But even when I uninstalled it and tried installing the 0.4.0 it came back unsucessful. So i signed it and it installed fine.

Why wasn't I able to install the new version after uninstalling the older one?

Strange...
[G1 Android Development] [RiS]:
I came across a similar problem switching from my dev key to the 'oficial releases' key when testing the app on my adp1...

I think I solved it installing the dev version and then running

adb uninstall jfupdater.ui