what constant "long android.os.build.time" means?
i tested in device , strange number not know meaning.
in http://developer.android.com/reference/android/os/build.html, not explained.
as @commonsware correctly commented: it's unix epoch timestamp (in milliseconds) of when device's rom built.
if dig source of build
class, you'll find following:
// following properties make sense internal engineering builds. public static final long time = getlong("ro.build.date.utc") * 1000;
in other words: value read ro.build.date.utc
system property, part of rom's build.prop
, on turn gets generated buildinfo.sh
.
the more human-friendly equivalent ro.build.date
, contains textual date representation of same value. example, in build.prop
may find:
ro.build.date=tue nov 6 13:10:27 cst 2012 ro.build.date.utc=1352229027
there no associated constant in android's public api, retrieve calling systemproperties.get("ro.build.date")
.
that being said, unless develop specific roms and/or rom developer, shouldn't have care these values, comment in first code snippet points out.
Comments
Post a Comment