New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/dev/alarm no longer works for setting the time #23
Comments
It also doesn't work on recent Android devices, in general (e.g. Android 7, LineageOS). See also garlicman's comment. Logcat output from a Nexus 5 device with current LineageOS:
|
so ... is there any solution to this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NTPSync silently fails to set the time on my SGH-T889 (a T-Mobile-dehanced Samsung Galaxy Note 2), creating log entries like this:
The SuperSU log clearly shows NTPSync successfully chmoding
/dev/alarm
to mode 666 and back. Oddly, there are no log entries with the tagNTPSync
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 ofdate
is needed.So, how about some use of
date
ifsetCurrentTimeMillis
fails? Or at least an error message.The text was updated successfully, but these errors were encountered: