Skip to content

Android-specific fork of Larry Doolittle's ntpclient program

License

Notifications You must be signed in to change notification settings

kinneko/ntpclient-android

 
 

Repository files navigation

ntpclient-android

This is a forked copy of Larry Doolittle's ntpclient program, forked and hacked in a few ways to work on Android devices.

Original:

This fork:

  • remove unuse files.
  • add Android.mk file for full and mm build.
  • add GPL2 LISENCE file.

Building / Installing

  • You can import AOSP Manifest or mm build.
$ cd [your AOSP/mydroid/]external
$ git clone https://github.com/kinneko/ntpclient-android.git
    
$ cd ntpclient-android
$ export ARCH=arm
$ export CROSS_COMPILE="../../prebuilt/linux-x86/toolchain/arm-eabi-[your gcc version]/bin/arm-eabi-"
$ export TOP="../../"
$ export TARGET_PRODUCT_NAME=[your product name]
$ export VENDER=[your vender name]
$ export BUILD_PRODUCT=${VENDER}_${TARGET_PRODUCT_NAME}
$ export TARGET_PRODUCT=${BUILD_PRODUCT}
$ source ../../build/envsetup.sh
$ mm

Running

  • adb shell command line as root user
# date
Fri Jan  2 09:02:59 JST 1970

# ntpclient -c 1 -h pool.ntp.org -s
25568 00505.385  107348.0     80.2  1392804224801225.0  42846.7         0

# date
Thu Feb 20 19:12:12 JST 2014
  • Call ntpclient as service from init.rc.

About

Android-specific fork of Larry Doolittle's ntpclient program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.9%
  • C++ 1.1%