I need to find the Android Device manufactured Date through my code I have gone through the android.os.Build API But Didn't find such a method
is possible to get Android Device Manufactured Date or Not?
I need to find the Android Device manufactured Date through my code I have gone through the android.os.Build API But Didn't find such a method
is possible to get Android Device Manufactured Date or Not?
You can use
Log.i("ManuFacturer :", Build.MANUFACTURER);
Log.i("Board : ", Build.BOARD);
Log.i("Diaply : ", Build.DISPLAY);
Here is the documentations of that: http://developer.android.com/reference/android/os/Build.html
Build.TIME
field is likely what you're after though it's not documented as to what that field actually describes. If you look at the source code for the Build
object you'll see the following: public static final long TIME = getLong("ro.build.date.utc") * 1000; –
Commix Build.TIME
is the time the binary was built. It changes every time a new binary is downloaded or the device gets a system upgrade. –
Watt You can get the date the OS was installed.
Date osInstalledDate = new Date(Build.TIME);
Log.i("MW", "time from Build.TIME = " + osInstalledDate .toString());
Unfortunately if they re-install the OS this won't work.
The closest you can get to the Device is with the TelephonyManager
.
TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
Log.d("X", tm.getDeviceId() + ", " + tm.getDeviceSoftwareVersion());
There you get the IMEI, Software Version and some information about the current Cell and SIM card. But device depenedant date: no, not yet in Android.
Presently there is no API in Android to get Android Device Manufactured Date. From Build.TIME
you can get OS installation or up-gradation date.
On samsung oneui devices we can dial *#12580*369#
and see the manufactured date. RF Cal shows the manufactured date there.
But I have no idea to retrieve it programatically.
© 2022 - 2024 — McMap. All rights reserved.