NTPd? or re-sync with network? - G1 Android Development

I just had the rather annoying experience of noticing my G1's clock was a full 5 minutes slow this morning trying to catch my commute light rail train. I was wondering why in blazes the trains were either so late, or so early...until I dialed into the NIST's atomic clock / Radio WWV line (303-499-7111 if you're curious) and got a rude awakening. The trains were on time, _I wasn't_.
Having had a CDMA cellphone of some sort for the last 8 years, I rather expected the phone to keep a reasonable sync to GMT time..(CDMA itself is based off of GPS for synchronization and GPS time is based off of the atomic clocks; every CDMA phone i've owned has been within a second of my ntpd running computer)
This said, I rebooted for the first time in about 4 days and it pulled network time from the towers. I'm reasonably synced now. However, if the clock drift is -5 minutes in 4 days without some provision of re-syncing or keeping time up to date at all times, with a stable enough operating system to not force reboots every day, I need something else.
Has anyone compiled an ntp application for the G1? Either a daemon ntpd or some sort of ntp-client scheduled via a timer/cron or the like would work for me.
Alternatively, is there a way to make the phone re-sync with network time? It seems to do it only once at bootup, never again.

Know this might be obvious, but do you have your clock set to Automatic under settings-->date & time?
I have never had a problem with time on my phone

This has happened to me too but its has gotten as bad as +/- 20 min. It is usually fixed by rebooting or pulling the battery. This has happened with Tmobile's RC30 firmware, JF's 1.42 RC33, and JFMOD 1.42 RC 33 (install apps to sd card).

Here's the sad part, I also have had a drift of upto about 30min slow, I've rand JF since RC30 was downgraded, and I'm now using HARDSPL w/JF ADP1.1h, and unlocked on AT&T. Mines been doing this for about a few weeks. I got so tired of it, that I just set it to my watch witch is realatively close to the internet time servers windows syncs with. Nothing has worked as of yet, I've rebooted, reflashed, wiped, and also asked for AT&T service books, no success.

This morning, I had set the G1 alarm and the alarm on my radio controlled alarm clock at the same time - They fired at exactly the same millisecond! I've never got out of bed that fast. And yes, I've set the G1 to Automatic.
/Mats

Related

android.process.media has started sucking bandwidth

Hi guys,
In the last couple of weeks I noticed my data traffic increased hugely (it used to be around 10MB for a week or so) up to the limit where my phone provider (Vodafone) told me I had reached the limit for my contract (500MB in 7 days). I did some research and it seems that the responsible process is android.process.media, which downloads i don't know what i don't know where at crazy speeds, some megabits per seconds, then stops, and then does it again after some hours.
I really have no clue what this process is doing, and why, since I don't remember changing anything since the time when this problem was not occurring. Any clue? This is really annoying because for the moment I have had to switch off 3G connectivity completely.
BY THE WAY: I don't know if this could be related, but a couple of days ago I was driving in my car and turned to google maps to get my location. Latitude was active and it kept saying that I was in China (!?!?), then as soon as my GPS receiver fixed the signal my location changed to the correct one, and then again back to China etc. For a while I thought that my google account could have been hijacked, but:
1) is it really possible for android malicious apps to steal your google account password?
2) that did not happen again, it just stopped after 10 minutes or so
3) I changed my password just to be sure, but now I am really wondering what malicious apps can do in Android...
I am running the basic nk02 rooted version of the original 1.6 Donut from HTC.
Thanks for your help,
Andrea
I have the exact same problem on a different phone with a different ROM... did you ever find a solution? I hit 5gb in 7 days :/

[REQ] A Better Solution for Data Auto-Disconnect... with Peak Time/Push Mail

Hi folks
I've searched around the forums and have seen a couple of solutions out there for automatically terminating data connections (Bandswitch, WMLongLife, the registry tweak) but each seems to lack some of what I need and do a lot that I don't need.
Here's the lowdown:
- I've already tweaked the Comm Manager to add the 3G on/off switch so I don't need something that messes with that
- I use push email for business so I need the data connection to stay on during the "peak times" that I've set in Activesync (for me, that's 8am-11pm)
- Outside of peak times, I've got the phone checking email every hour. Right now, it seems to be leaving the connection on afterward.
- I want to keep the automatic updates for HTC Sense's weather and stock tabs. Not every 5 minutes, of course, but at least a couple of times a day. Also tends to leave the connection going when used outside peak hours.
As I understand it, the registry tweak won't work for the Sense tabs. Bandswitch and WMLongLife mess with the 3G radio and, as far as I can tell, don't let you set a timeframe (re: the latter - I suppose when you've got push mail going it pings the Exchange server regularly so in theory it shouldn't consider the connection idle, but why mess with it?)
So, in short, anyone got a solution that could switch off an idle data connection outside of the peak times set in Activesync?
If you just want to kill connections during certain times (ie, night time) try G-Profile. I have it set to kill data connections during the night, works fine for me although I am using a new beta version which is available from their site.
Looks interesting but reading through the manual it looks as if you can only set a profile to disable the data connection during certain hours. I'd like to leave the data available, just switch on auto-disconnect.
Plus, again, there's a lot of extra stuff in there that's really not necessary. I'm looking for something more lightweight...
I haven't tried it, but you might want to take a look at CommMgrPro.
It's also from the creator of Bandswitch.
PhoneAlarm can do this.
I had PhoneAlarm installed on my previous phone. True, it can do this.
But again, it's like using a tank to kill a fly. Sam with CommMgrPro.
Is there no lightweight solution?
+1 for this. It has to be possible, everyone just seems to lump the functionality in with a load of other stuff I'm not interested in.
Up, I'm looking for this also
+1
This kind of app is missing...
SO.... last night I left my charging cable at the office and I only had around 20% of the battery left at 11:00pm. For some reason, the thing kept opening the data channel even though it was outside of "peak" hours for push! I had to reset and turn manually turn off all data... couldn't have the phone die overnight as it's my alarm clock!
Any ideas here?
DialUp Enabler Disabler v06
What about this one
http://forum.xda-developers.com/showthread.php?t=610657

[REQ] Data connection manager - turn off 3G when inactive

Im looking for an app which turns of data connections when after X minutes of inactivity.
Sorry if this has been asked before, I've done the searches and havent found anything.
Thanks in advance
Big big thread just below yours:
http://forum.xda-developers.com/showthread.php?t=610657
I was running WMLongLife for a couple of weeks when I first got my HD2. It wasn't quite working for me, though, but stuck with it for the sake of my battery life. I was getting 24-36 hours use out of the phone with it installed, so I was reasonably happy.
However, when I uninstalled it, I found I was able to get about 60 hours. I'm not saying this was entirely due to removing WMLongLife, and I admit that usage patterns may have changed (stopped having to show the thing off to everyone) which may have contributed.

[Q] Sprint Galaxy S Epic 4G GPS problem: Gingerbread

I upgraded from Froyo to Gingerbread through Sprint's "push" during November. Since then, I've been experiencing problems with GPS in Google Maps, which "bleed over" to Google Navigation as well as Sprint's TeleNav app (they can't locate me, much less give me routing).
Example: I recently drove from Arlington up to Denton, TX, about 60 miles, with GPS on (didn't actually need it), turned it off, then drove back down to Fort Worth. When I got there, I wanted to see a map of the area where I was, turned on GPS, and Maps insisted that I was still 40 miles away in Denton. Had similar problems in other towns with Maps telling me I was where I'd been before.
Depending upon whom you talk to at Sprint, it either is or isn't a known issue. The only solutions I've found are to (1) cover the GPS antenna with thin cardboard (e.g., business card scrap), and (2) to root the phone and use a GPSfix.zip fix (which I'm loathe to do since it voids warranty).
Today, a seemingly knowledgeable Sprint rep said that they have "no reports" of such problems on this phone, tho' there are threads upon threads on the Sprint Community about this. Their only suggestion is to retrograde the phone to Froyo, which necessarily involves wiping the phone of apps and data. I'm not concerned so much about the data (I can back most of it up), but it takes a couple of days to get the phone back to where it was (multiple email accounts in different apps, etc., not to mention re-downloading everything).
I've also done a forced stop of Maps and removed all updates and data, but don't get any better or consistent results using either the "factory" Maps or after re-installing updates.
Does anyone have a clue about this? It's been going on for more than a month and I'm getting rather frustrated.
I have this problem. The GPS indicator stays on, but no position info gets updated. A power-off restart is required - it then works for 1 minute to 1 week... very frustrating when you are lost and relying on your GPS.

Network time is wrong (DST)

This is all related to daylight saving time. I live in Egypt and we haven't used DST since 2011. It has been used again since the 16th of May 2014.
I've tried setting my phone to automatically retrieve time from my network (I'm on Vodafone). It is always off by 1 hour, meaning it's the old time (before the DST).
My whole phone is acting strange. Some apps behave incorrectly, for example Facebook: Any comment/post posted at this moment, shows "1 hour ago". Even WhatsApp, I've sent a message to someone and they responded 1 hour earlier..
My stock Samsung weather widget shows a DST icon next to the clock and adds an additional hour to my original time whatever I do to change it, and I've even set the widget to use my current GPS location.
Same goes for Google Now (soccer games times).
I've got a couple of questions: 1. Could the network problem be caused by my phone? Because logically all networks in Egypt should have updated this.
2. What should I do at the moment about Facebook and other apps? That's supposedly something that has to do with their servers. Anyway I can contact them about this?

Categories

Resources