6

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Software Sainath
  • 1,040
  • 2
  • 14
  • 39

5 Answers5

2

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

Kevin Panko
  • 8,356
  • 19
  • 50
  • 61
RussVirtuoso
  • 900
  • 1
  • 9
  • 20
  • I need Manufactured Date not the name of Manufacturer – Software Sainath Sep 27 '13 at 09:08
  • The `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; – Karl Oct 01 '13 at 20:39
  • 2
    @Karl: `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. – ozbek Oct 02 '13 at 11:46
  • Upvote for you considering the Android docs don't even explain that :p Cheers for the info. – Karl Oct 02 '13 at 20:19
  • 1
    @Sameer, by getting system updates: Settings > About > System updates – ozbek Oct 03 '13 at 17:48
2

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.

LondonAppDev
  • 8,501
  • 8
  • 60
  • 87
  • When testing on my android device I saw this in the logcat "mali: REVISION=Linux-r2p4-02rel0 BUILD_DATE=Thu Oct 25 08:43:05 KST 2012". This looks like a manufacture date or the compile date? I havn't figured out how to extract this in the android app yet. – LondonAppDev Oct 04 '13 at 06:54
1

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.

jboi
  • 11,324
  • 4
  • 36
  • 43
0

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.

Sinu Varghese
  • 800
  • 1
  • 14
  • 39
-1

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.

enter image description here

Yasiru Nayanajith
  • 1,647
  • 17
  • 20