Giter VIP home page Giter VIP logo

ntpsync's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ntpsync's Issues

support/fork this repo?

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

Improvement

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.

Serbian translation

Please accept my request for adding Serbian language in Transifex NTPSync project page.

Galaxy S4 sync

Hi, I'm not able to sync the clock in my Samsung S4 as root, have you tried it before?

lack of time zones

Original author: [email protected] (February 11, 2013 22:42:53)

What steps will reproduce the problem?

  1. Any sync causes Greenwich time installed, though not all the users live in this zone
    2.
    3.

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

Not working on Lollipop

It does not work on Lollipop, logcat reports that app does not have permission to set time.

Ability to run ntp-sync via shell

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

Incorrect toast

The 1.5 release shows instead of the new synced time only # timestamp here# in the toast message after the sync and set function

NTPSync always times out when using Tor (Orbot)

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

generic error

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

Doesn't sync

Original author: [email protected] (February 13, 2013 18:33:05)

Steps to reproduce the problem:

  1. Install version 1.3 through market
  2. Open NTPSync
  3. Choose "Query and set time"

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

Time is not synced

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.

"time request and adjust (need Root-Access)" not working

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.

Use GPS to sync

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.

No sync in 1.3

Original author: [email protected] (December 16, 2012 10:24:04)

Steps to reproduce:

  1. Install NTPSync 1.3 from Play Store
  2. Check offset with "Detailed query!"
  3. Sync wit "Query and set time!"
  4. Check again.

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

use ntpserver provided via dhcp

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)

Cannot change language

There should be an option available for the user to override default system locale being used in NTPSync.

/dev/alarm no longer works for setting the time

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.

Mitigate NTP attacks

It would be prudent to set an encrypted default NTP server as default, if a reliable one exists.

More information here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.