android芯片配置和参数的获取

【转发】https://blog.csdn.net/mozushixin_1/article/details/93724849

用build直接获取参数


Log.d("build","BOARD:" + Build.BOARD);
Log.d("build","BOOTLOADER:" + Build.BOOTLOADER);
Log.d("build","BRAND:" + Build.BRAND);
Log.d("build","CPU_ABI:" + Build.CPU_ABI);
Log.d("build","CPU_ABI2:" + Build.CPU_ABI2);
Log.d("build","DEVICE:" + Build.DEVICE);
Log.d("build","DISPLAY:" + Build.DISPLAY);
Log.d("build","FINGERPRINT:" + Build.FINGERPRINT);
Log.d("build","HARDWARE:" + Build.HARDWARE);
Log.d("build","HOST:" + Build.HOST);
Log.d("build","ID:" + Build.ID);
Log.d("build","MANUFACTURER:" + Build.MANUFACTURER);
Log.d("build","MODEL:" + Build.MODEL);
Log.d("build","PRODUCT:" + Build.PRODUCT);
Log.d("build","RADIO:" + Build.RADIO);
Log.d("build","TAGS:" + Build.TAGS);
Log.d("build","TIME:" + Build.TIME);
Log.d("build","TYPE:" + Build.TYPE);
Log.d("build","UNKNOWN:" + Build.UNKNOWN);
Log.d("build","USER:" + Build.USER);
Log.d("build","VERSION.CODENAME:" + Build.VERSION.CODENAME);
Log.d("build","VERSION.INCREMENTAL:" + Build.VERSION.INCREMENTAL);
Log.d("build","VERSION.RELEASE:" + Build.VERSION.RELEASE);
Log.d("build","VERSION.SDK:" + Build.VERSION.SDK);
Log.d("build","VERSION.SDK_INT:" + Build.VERSION.SDK_INT);

以下是部分机型的打印信息:

三星高通芯片note9


在这里插入图片描述

华为kirin 980芯片mate 20


在这里插入图片描述

你可能感兴趣的:(android芯片配置和参数的获取)