| plugState | String | 电池充电状态 |
| health | String | 电池健康状况 |
| present | String | 是否有电池 |
| technology | String | 电池的技术制造 |
| temperature | String | 电池温度 |
| voltage | String | 电池电压 |
| power | String | 电池总电量 |
Cpu 实时数据获取
代码示例
CpuInternals.getInstance().getCpuSampler().start();
CpuInternals.getInstance().getCpuSampler().getCpuList();
CpuInternals.getInstance().getCpuSampler().stop();
蓝牙数据获取
代码示例
BluetoothHelper.mobGetMobBluetooth(getApplicationContext())
数据格式
{
“bluetoothAddress”:"$unknown",
“isEnabled”:“true”,
“device”:[
{
“name”:“iPhone”,
“address”:“E4:9A:79:89:C7:24”,
}
],
“phoneName”:“Honor”
}
| 数据键 | 数据类型 | 数据解释 |
| — | — | — |
| bluetoothAddress | String | 蓝牙地址 |
| isEnabled | String | 蓝牙是否打开 |
| device | JSONArray | 连接的手机的信息 |
| name | String | 连接手机的蓝牙地址 |
| address | String | 连接手机的蓝牙名字 |
| phoneName | String | 手机设置的名字 |
系统 Build 数据获取
代码示例
BuildHelper.mobGetBuildInfo()
数据格式
{
“board”:“STF”,
“bootloader”:“unknown”,
“brand”:“HONOR”,
“device”:“HWSTF”,
“display”:“STF-AL00 8.0.0.360(C00GT)”,
“fingerprint”:“HONOR/STF-AL00/HWSTF:8.0.0/HUAWEISTF-AL00/360(C00GT):user/release-keys”,
“hardware”:“hi3660”,
“host”:“WUH1000129106”,
“id”:“HUAWEISTF-AL00”,
“manufacturer”:“HUAWEI”,
“model”:“STF-AL00”,
“product”:“STF-AL00”,
“radio”:“21C30B323S006C000,21C30B323S006C000”,
“serial”:“8BN0217901012695”,
“tags”:“release-keys”,
“time”:“1553851883000”,
“type”:“user”,
“user”:“test”,
“osVersion”:“HONOR/STF-AL00/HWSTF:8.0.0/HUAWEISTF-AL00/358(C00GT):user/release-keys”,
“releaseVersion”:“8.0.0”,
“codeName”:"$unknown",
“incremental”:“360(C00GT)”,
“sdkInt”:“26”,
“previewSdkInt”:“0”,
“securityPatch”:“2019-04-05”
}
| 数据键 | 数据类型 | 数据解释 |
| — | — | — |
| board | String | 主板名称 |
| bootloader | String | 系统引导程序版本号 |
| brand | String | 系统定制商 |
| device | String | 设备参数 |
| display | String | 显示屏参数 |
| fingerprint | String | 硬件名 |
| hardware | String | 内核命令行中的硬件名 |
| host | String | host |
| id | String | 标签 |
| manufacturer | String | 硬件厂商 |
| model | String | 版本 |
| product | String | 手机厂商 |
| radio | String | 无线电固件的版本字符串 |
| serial | String | 获取硬件序列号 |
| tags | String | 描述 Build 的标签 |
| time | String | time |
| type | String | type |
| user | String | user |
| osVersion | String | os 版本 |
| release