Android:获取移动硬件信息

时间:2016-09-16 11:49:02

标签: java android device android-hardware

我正在使用app告诉用户有关Device的信息。我在SO上经历了很多问题,但没有找到答案。我想找到

  • 型号
  • Android版

  • 基带版本

  • 内核版本

  • 内部版本号

  • RAM 我的手机。

    我非常感谢有关此感谢的任何帮助。

1 个答案:

答案 0 :(得分:6)

我在我的代码上使用它,所以我把所有:

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);