Skip to content

For rooted Android devices. It is a simple NTP time synchronization app which syncs with remote servers to keeps its time in sync.

License

Notifications You must be signed in to change notification settings

zeeshanz/NTPSync

 
 

Repository files navigation

NTPSync

I needed NTP in one of my projects, and I found this old NTPSync app which was not maintained. I forked it, and updated it for Android Marshmallow.

Please note that NTP works only on rooted devices. If your device is not rooted, this code WILL NOT work on your device.

This code was used on Android M. Since then Android has introduced many new security changes and it might not work on later versions. The android.permission-group.SYSTEM_TOOLS and android.permission-group.NETWORK persmissions are commented out because they cause Installation did not succeed error on a non-rooted phone. You can uncomment these lines to install on a rooted phone.

Installing

All you need is to open this app as a new project in Android Studio. It has been updated to used SDK 32 and tested for successful built in April 2022 with Android Studio Bumblebee 2021.1.1 Patch 2.

Coding Style

Code

  • Indentation: 4 spaces, no tabs
  • Maximum line width for code and comments: 100
  • Opening braces don't go on their own line
  • Field names: Non-public, non-static fields start with m.
  • Acronyms are words: Treat acronyms as words in names, yielding !XmlHttpRequest, getUrl(), etc.

See http://source.android.com/source/code-style.html

XML

  • XML Maximum line width 999
  • XML: Split multiple attributes each on a new line (Eclipse: Properties -> XML -> XML Files -> Editor)
  • XML: Indent using spaces with Indention size 4 (Eclipse: Properties -> XML -> XML Files -> Editor)

See http://www.androidpolice.com/2009/11/04/auto-formatting-android-xml-files-with-eclipse/

Licenses

NTPSync is licensed under the GPLv3+.
The file LICENSE includes the full license text.

Details

NTPSync is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

NTPSync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with NTPSync. If not, see http://www.gnu.org/licenses/.

Libraries

Images

About

For rooted Android devices. It is a simple NTP time synchronization app which syncs with remote servers to keeps its time in sync.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 97.6%
  • AIDL 1.4%
  • HTML 1.0%