获取并输出当前安卓设备的系统信息

String TAG = "SystemInfo";String board = Build.BOARD;Log.i("TAG",String.Format("主板信息:%s",board));String brand = Build.BRAND;Log.i("TAG",String.Format("Android系统定制商:%s",brand));String device = Build.DEVICE;Log.i("TAG",String.Format("设备参数信息:%s",device));String display = Build.DISPLAY;Log.i("TAG",String.Format("显示器参数信息:%s",display));String fingerprint = Build.FINGERPRINT;Log.i("TAG",String.Format("唯一编号信息:%s",fingerprint));String id = Build.ID;Log.i("TAG",String.Format("修订版本列表信息:%s",id));String manufacturer = Build.MANUFACTURER;Log.i("TAG",String.Format("硬件制造商信息:%s",manufacturer));String model = Build.MODEL;Log.i("TAG",String.Format("版本信息:%s",model));String hardware = Build.HARDWARE;Log.i("TAG",String.Format("硬件信息:%s",hardware));String product = Build.PRODUCT;Log.i("TAG",String.Format("安卓产品名信息:%s",product));String tags = Build.TAGS;Log.i("TAG",String.Format("描述Build的标签信息:%s",tags));String type= Build.TYPE;Log.i("TAG",String.Format("Builder类型信息:%s",type));String codename = Build.VERSION.CODENAME;Log.i("TAG",String.Format("当前开发代号信息:%s",codename));String incremental = Build.VERSION.INCREMENTAL;Log.i("TAG",String.Format("源码控制版本信息:%s",incremental));String release = Build.VERSION.RELEASE;Log.i("TAG",String.Format("版本字符串信息:%s",release));String sdk_int = Build.VERSION.SDK_INT;Log.i("TAG",String.Format("版本号信息:%s",sdk_int));String host = Build.HOST;Log.i("TAG",String.Format("Host值信息:%s",host));String user = Build.USER;Log.i("TAG",String.Format("User名信息:%s",user));String time = Build.TIME;Log.i("TAG",String.Format("编译时间信息:%s",time));
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值