Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

added 187 characters in body
Source Link
Keith
  • 119
  • 1
  • 8

.

Boot timestamps from android has accuracy of ±10 s

.

Kotlin and app processing introduces an additional 1.001 ms error, but cannot improve on Android’s built-in ±10 s error

By coaxing Android to correct its time, a boot timestamp error of ±200 ms is attainable

If boot timestamp is read via adb or other low-jitter and latency connection, both boot timestamp and Android time error can be read providing and accuracy of possibly ±10 ms

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET

.

Boot timestamps from android has accuracy of ±10 s

.

Kotlin and app processing introduces an additional 1.001 ms error, but cannot improve on Android’s built-in ±10 s error

By coaxing Android to correct its time, a boot timestamp error of ±200 ms is attainable

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET

.

Boot timestamps from android has accuracy of ±10 s

.

Kotlin and app processing introduces an additional 1.001 ms error, but cannot improve on Android’s built-in ±10 s error

By coaxing Android to correct its time, a boot timestamp error of ±200 ms is attainable

If boot timestamp is read via adb or other low-jitter and latency connection, both boot timestamp and Android time error can be read providing and accuracy of possibly ±10 ms

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET
added 187 characters in body
Source Link
Keith
  • 119
  • 1
  • 8

.

Boot timestamps from android has accuracy of ±10 s

.

Kotlin and app processing introduces an additional 1.001 ms error, but cannot improve on Android’s built-in ±10 s error

By coaxing Android to correct its time, a boot timestamp error of ±200 ms is attainable

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET

.

Boot timestamps from android has accuracy of ±10 s

.

Kotlin and app processing introduces an additional 1.001 ms error, but cannot improve on Android’s built-in ±10 s error

By coaxing Android to correct its time, a boot timestamp error of ±200 ms is attainable

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET
added 269 characters in body
Source Link
Keith
  • 119
  • 1
  • 8

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

  • Boot time depends on the time error of Android’s device clock
  • Every time Android time is adjusted, reported boot-time changes
  • Dumb Google allows Android time to vary ±5 s meaning any timestamp from Android is ±10 s
  • Time can only be adjusted by Android system app or app signed by Google
  • Android built-in time correction is only to within ±200 ms

.

The way to adjust time on Android when off by too much:

  • with Internet available Settings — System — Date & time — Set time automatically: Off
  • set Android time to error larger than 5 s but less than 2 minutes
  • Settings — System — Date & time — Set time automatically: On
  • Android should adjust time to within 200 ms
  • if this fails, wait 18 hours and try again

.

Android time error can be verified via

  • adb: compare date -In (capital-i) to host time
  • app: comparing gps fix to Android time
  • app: comparing ntp or other Internet time source to Android time

.

Check for Android time-correction events using adb:

adb logcat -d --format=printable,uid,usec,year | grep android.intent.action.TIME_SET
2025年01月25日 09:23:00.036705 1000 1802 1802 D ConditionProviders.SCP: onReceive android.intent.action.TIME_SET
Source Link
Keith
  • 119
  • 1
  • 8
Loading
lang-kotlin

AltStyle によって変換されたページ (->オリジナル) /