小编典典

Android:获取移动硬件信息

java

我正在开发向用户介绍设备的应用程序。我在SO上遇到了许多问题,但没有找到答案。我想找到

  • 型号编号
  • Android版

  • 基带版本

  • 内核版本

  • 内部编号

  • 我的手机的RAM。

对于此Thankx,我将不胜感激。


阅读 208

收藏
2020-11-26

共1个答案

小编典典

我在代码中使用了它,所以我把所有内容都放了:

Log.i("TAG", "SERIAL: " + Build.SERIAL);
Log.i("TAG","MODEL: " + Build.MODEL);
Log.i("TAG","ID: " + Build.ID);
Log.i("TAG","Manufacture: " + Build.MANUFACTURER);
Log.i("TAG","brand: " + Build.BRAND);
Log.i("TAG","type: " + Build.TYPE);
Log.i("TAG","user: " + Build.USER);
Log.i("TAG","BASE: " + Build.VERSION_CODES.BASE);
Log.i("TAG","INCREMENTAL " + Build.VERSION.INCREMENTAL);
Log.i("TAG","SDK  " + Build.VERSION.SDK);
Log.i("TAG","BOARD: " + Build.BOARD);
Log.i("TAG","BRAND " + Build.BRAND);
Log.i("TAG","HOST " + Build.HOST);
Log.i("TAG","FINGERPRINT: "+Build.FINGERPRINT);
Log.i("TAG","Version Code: " + Build.VERSION.RELEASE);
2020-11-26