free-software-for-android / ntpsync Goto Github PK
View Code? Open in Web Editor NEWNTPSync is a simple NTP time synchronization app for Android.
Home Page: https://www.sufficientlysecure.org/android/
License: GNU General Public License v3.0
NTPSync is a simple NTP time synchronization app for Android.
Home Page: https://www.sufficientlysecure.org/android/
License: GNU General Public License v3.0
try again on timeout?
Hi, are any of the other contributors here interested in forking this software and supporting it? The original dev has stated he/she is not maintaining it anymore; it would be nice if some of the issues were fixed, it's a useful software.
Cheers,
Robin
Original author: [email protected] (May 21, 2012 09:19:14)
It would be useful if ntpsync could automatically sync date after a given interval of time (i.e. sync every 6 hours, every 12 hours, every 24 hours, every week, et cetera).
The "Set on boot" is fine, but I don't reboot my phone very often and my clock lags so I have to sync date manually.
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=5
Hi,
First all thanks for this useful app!
No update since October 2013, I hope that this project is not dead!
I've an esthetic request can you please remove divider line blue for match UI of app with KitKat style?
Thanks in advance.
apiDemo cannot run Null exception
move apache files to own library folder
Please accept my request for adding Serbian language in Transifex NTPSync project page.
Hi, I'm not able to sync the clock in my Samsung S4 as root, have you tried it before?
Original author: [email protected] (February 11, 2013 22:42:53)
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Expectations: exact time according actual time zone that user selected
Instead: several hours mistake
What version of the product are you using? On what operating system?
Android 3.2
Please provide any additional information below.
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=11
It does not work on Lollipop, logcat reports that app does not have permission to set time.
Original author: [email protected] (May 10, 2012 12:04:27)
translation and strings externalisation
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=2
Original author: asafge (July 14, 2012 16:58:22)
What is the expected output? What do you see instead?
An option to run an ntp-sync command from the shell and have parameters such as the NTP server's IP, the timeout and so on.
This in order to write a script that will sync the time when I want to.
What version of the product are you using? On what operating system?
CM9 ICS
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=7
Original author: [email protected] (May 13, 2012 13:51:27)
1392 PackageParser W Unknown element under <manifest>: service at /data/app/org.ntpsync-2.apk Binary XML file line # 29
1392 PackageParser W Unknown element under <manifest>: receiver at /data/app/org.ntpsync-2.apk Binary XML file line # 31
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=3
The 1.5 release shows instead of the new synced time only # timestamp here# in the toast message after the sync and set function
The Description for ntpsync on Google Play directs users to the broken link http://code.google.com/p/ntp-sync/issues to file bugs. It should point to https://github.com/dschuermann/ntp-sync/issues (i.e. this bug tracker).
The "Query" ,"Detailed Query" and "Query and set time" functions always show a "Server timeout!" flash message while Tor is active for all connections using Orbot.
As a side note: Another of Dominiks apps, that uses NTP (FasterGPS) seems to be working fine under the same scenario.
Best regards, Oliver
Original author: [email protected] (December 31, 2012 15:01:49)
What steps will reproduce the problem?
1.Tap query and set
2.
3.
What is the expected output? What do you see instead?
I expected the app to perform a query and update the device's clock. I received the "generic error" message instead.
What version of the product are you using? On what operating system?
My device is a Samsung Galaxy Tab 7.0.
Please provide any additional information below.
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=10
change line 100 in https://github.com/dschuermann/ntp-sync/blob/master/API-Demo/src/main/java/org/ntpsync/apidemo/BaseActivity.java#L100
Intent i = new Intent(INtpSyncRemoteService.class.getName());
i.setPackage("org.ntpsync");
bindService(i, mConnection,
Context.BIND_AUTO_CREATE);
Original author: [email protected] (February 13, 2013 18:33:05)
Steps to reproduce the problem:
It doesn't sync time. I'm running Android 2.2.1 (CyanogenMod-6.1.0-DS) on HTC Magic.
Log output from "adb logcat":
I/global (18319): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
D/su (18484): 10061 org.ntpsync executing 0 /system/bin/sh using shell /system/bin/sh : sh
D/SystemClock(18319): Setting time of day to sec=1360780166
W/SystemClock(18319): Unable to open alarm driver: Permission denied
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=12
Implement AIDL with callbacks for easier use?
I debugged the application. It turns out that the shell commands are run via toolbox. Unfortunately I only have busybox. I am running cyanogenmod 7.2 on a Motorola defy. I cannot remember that I have had the choice to select toolbox in the installation. Please advice me how I can fix it.
By the way. It works if I remove the reference to toolbox in the shell commands in the code.
Hello,
I use a rooted android 5.1 phone, the "time request" is working. I see the time is not correct.
I use "time request and adjust (need Root-Access)"
The message "the system time was converted to 08.11.2016 19:56:30" appears, but in reality nothing happens, the wrong time always exist.
I translated the messages from german to english!
I use the latest version of ntpsync from november 2016, i tested it also with versions before.
I test this with another rooted android 5.0 phone, its not working too.
GPS does not require an Internet connection so it is useful for devices without one.
I realize and respect your decision not to actively develop this app any more so I will leave this as a general idea.
Original author: [email protected] (May 10, 2012 12:04:09)
make intents or aidl to be usable from other apps
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=1
Original author: [email protected] (May 17, 2012 17:00:26)
see http://stackoverflow.com/questions/8739074/setting-system-time-of-rooted-phone
Use device /dev/alarm instead of date command?
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=4
on a Samsung Galaxy Note 10.1 2014 (android 4.4.2).
No related message with logcat.
Original author: [email protected] (December 16, 2012 10:24:04)
Steps to reproduce:
Expected: A significantly lower offset
Instead: Nearly the same offset (in my case it was about 7000ms)
The error occurs with version 1.3 (from the Play Store) on a HTC Incredible S, running Cyanogenmod 7. Version 1.2 (from FDroid) has no problems.
Original issue: http://code.google.com/p/ntp-sync/issues/detail?id=9
in an increasing number of networks, NTP traffic is generally blocked, and a few "known good" (an unblocked) NTP-servers are pushed via DHCP.
it would be great if NTPsync would be able to directly use these servers, and only fall-back to a globally accessible server (or make the use of DHCP provided ntp-servers totally optional)
There should be an option available for the user to override default system locale being used in NTPSync.
NTPSync silently fails to set the time on my SGH-T889 (a T-Mobile-dehanced Samsung Galaxy Note 2), creating log entries like this:
E/DatabaseUtils( 3612): Writing exception to parcel
E/DatabaseUtils( 3612): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
E/DatabaseUtils( 3612): at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:13175)
E/DatabaseUtils( 3612): at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2044)
E/DatabaseUtils( 3612): at com.android.providers.settings.SettingsProvider.callFromPackage(SettingsProvider.java:615)
E/DatabaseUtils( 3612): at android.content.ContentProvider$Transport.call(ContentProvider.java:279)
E/DatabaseUtils( 3612): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:273)
E/DatabaseUtils( 3612): at android.os.Binder.execTransact(Binder.java:388)
E/DatabaseUtils( 3612): at dalvik.system.NativeStart.run(Native Method)
W/ActivityManager( 3612): Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
[...]
D/SystemClock( 7840): Setting time of day to sec=1410443164
D/SystemClock( 7840): Trying to open a file
E/SystemClock( 7840): File Open Failed
W/SystemClock( 7840): Unable to open alarm driver: Permission denied
The SuperSU log clearly shows NTPSync successfully chmoding /dev/alarm
to mode 666 and back. Oddly, there are no log entries with the tag NTPSync
and I haven't been able to trigger the making of any Debug-level entries with /data/local.prop
.
A StackExchange answer lays out the /dev/alarm
technique, but goes on to claim that on newer Samsung firmwares, it doesn't work because of SELinux restrictions, and that use of date
is needed.
So, how about some use of date
if setCurrentTimeMillis
fails? Or at least an error message.
It would be prudent to set an encrypted default NTP server as default, if a reliable one exists.
More information here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.