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
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.
来源:https://stackoverflow.com/questions/18956723/retrieve-android-device-manufactured-date-programmatically