Retrieve Android Device Manufactured date Programmatically?

我们两清 提交于 2019-12-05 12:02:41
RussVirtuoso

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!