Name: ntpclient-android
Owner: Mozilla-B2G
Description: Android-specific fork of Larry Doolittle's ntpclient program
Created: 2014-01-21 13:42:29.0
Updated: 2014-01-21 13:46:48.0
Pushed: 2014-01-21 13:46:48.0
Homepage: null
Size: 137
Language: C
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is a forked copy of Larry Doolittle's ntpclient program, forked and hacked in a few ways to work on Android and FirefoxOS devices.
To build, you'll need a copy of the Android NDK. You can get a copy from:
http://developer.android.com/sdk/ndk/index.html
To run, any rooted device running Android or FirefoxOS should work
Assuming you have installed the Android NDK, you can configure and build Orangutan by running:
./configure $PATH_TO_ANDROID_NDK
make
For example, on my machine I downloaded and extracted the NDK to $HOME/opt/android-ndk-r6. So In my case I would run:
./configure $HOME/opt/android-ndk-r6
make
To install on your device (assuming it's connected via USB and developer mode is enabled), run:
make push
See README.orig for detailed usage information. To simply synchronize your Android/FirefoxOS device with a central time server (the primary rationale behind this version of the utility), you can do something like:
adb shell su -c '/data/local/ntpclient -c 1 -d -h pool.ntp.org -s'