device设备信息
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了device设备信息相关的知识,希望对你有一定的参考价值。
参考技术A设备验证的作用:检查是否为可激活的设备,并返回设备对象,设备对象包含了可用的sim_phone,sim_phone_type信息,界面可用其填充。
失败返回非0,失败码定义: 401-无效imei; 402-验证失败; 403-设备已经激活; 500-其它错误
设备解绑的意义: 将设备的拥有人设置为缺省值。
请求范例
响应范例
请求范例
响应范例
"objs":[
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473758219000
,
"type":"0",
"remaining_power":43
,
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473715937000
,
"type":"2",
"remaining_power":41
,
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473712340000
,
"type":"2",
"remaining_power":44
,
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473708747000
,
"type":"2",
"remaining_power":45
,
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473701536000
,
"type":"2",
"remaining_power":46
,
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473697933000
,
"type":"2",
"remaining_power":48
,
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473694333000
,
"type":"2",
"remaining_power":55
,
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473690731000
,
"type":"2",
"remaining_power":61
],
"page":
"page_count":1,
"rows_per_page":20,
"total":8,
"page_current":1
,
"success":true,
"obj_name":"powerdata"
请求范例
响应范例
"objs":[
"_id":
" oid":"57d6144126425121e8b81864"
,
"device":"868219000099926",
"created_at":
" date":1473771125000
,
"type":"1",
"is_reply":false,
"is_track":false,
"city":"广州市",
"address":"广东省 广州市 黄埔区 育星路 靠近广州科学城创新大厦C1",
"point":
"type":"Point",
"coordinates":[
113.4574259,
23.1670114
]
,
"cell":[
"mcc":"460",
"mnc":"0",
"lac":9475,
"cid":51086,
"rssi":5
,
"mcc":"460",
"mnc":"0",
"lac":9475,
"cid":50168,
"rssi":-55
,
"mcc":"460",
"mnc":"0",
"lac":9475,
"cid":44588,
"rssi":-75
,
"mcc":"460",
"mnc":"0",
"lac":9475,
"cid":43472,
"rssi":-81
,
"mcc":"460",
"mnc":"0",
"lac":9475,
"cid":43471,
"rssi":-91
,
"mcc":"460",
"mnc":"0",
"lac":9475,
"cid":39506,
"rssi":-91
],
"wifi":[
"addr":"54:35:30:0c:68:02",
"ssid":"HP-HOTSPOT-02-LaserJet M1218",
"rssi":-50
,
"addr":"28:c6:8e:39:03:c7",
"ssid":"BAIYI0001",
"rssi":-52
,
"addr":"00:bd:82:50:25:3d",
"ssid":"ChinaNet-a59y",
"rssi":-81
,
"addr":"ec:26:ca:ae:37:c6",
"ssid":"BiDe_WIFI",
"rssi":-84
,
"addr":"c8:3a:35:56:e1:18",
"ssid":"gzdiko01",
"rssi":-86
]
],
"page":
"page_count":225,
"rows_per_page":1,
"total":225,
"page_current":1
,
"success":true,
"obj_name":"locationdata"
请求范例
响应范例
请求范例
响应范例
响应范例
"objs": [
"_id":
" date": 1500345821546
,
"time_begin":
" date": 1500357600000
,
"interval": 30,
"total": 20,
"data": [
"turn_over": 255,
"state": 0
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 0,
"state": 2
,
"turn_over": 255,
"state": 0
,
"turn_over": 255,
"state": 0
,
"turn_over": 255,
"state": 0
,
"turn_over": 255,
"state": 0
,
"turn_over": 255,
"state": 0
,
"turn_over": 255,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
,
"turn_over": 0,
"state": 0
]
],
"page":
"page_count": 48,
"rows_per_page": 1,
"total": 48,
"page_current": 1
,
"success": true,
"obj_name": "sleepdata"
"objs": [
"_id":
" date": 1503479423995
,
"time_begin":
"$date": 1503479422000
,
"dbp": 67,
"sbp": 110,
"type": "",
"pul": 0,
"ano": false
],
"page":
"page_count": 2,
"rows_per_page": 1,
"total": 2,
"page_current": 1
,
"success": true,
"obj_name": "bloodpressuredata"
合法的action如下:
合法的action如下:
"obj":
"remaining_power":100,
"temperature":31,
"weather":"多云",
"pm25":32,
"online":true,
"locationdata":
"_id":
" date":1473772690000
,
"type":"1",
"city":"广州市",
"address":"广东省 广州市 黄埔区 观虹路 靠近广州科学城创新大厦C1",
"point":
"type":"Point",
"coordinates":[
113.4564798,
23.167481
]
,
"wear_flag":0
,
"success":true,
"obj_name":""
使用phonegap获取设备的一些信息
device.name 设备的名称
device.phonegap phonegap版本
device.platform 设备的类型
device.uuid 设备唯一识别号
device.version 所运行的操作系统的版本
device是被指派给window对象的
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>My Device</title> <script type="text/javascript" charset="UTF-8" src="cordova.js"></script> <script type="text/javascript" charset="UTF-8"> function onLoad() { document.addEventListener("deviceready", onDeviceReady, false); } function onDeviceReady() { var myDiv = document.getElementById(‘props‘); myDiv.innerHTML = ‘Device Name: ‘ + device.name + ‘<br />‘ + ‘Device PhoneGap: ‘ + device.phonegap + ‘<br />‘ + ‘Device Platform: ‘ + device.platform + ‘<br />‘ + ‘Device UUID: ‘ + device.uuid + ‘<br />‘ + ‘Device Version: ‘ + device.version + ‘<br />‘ } </script> </head> <body onload="onLoad()"> <p id="props"> Loading device properties...</p> </body> </html>
以上是关于device设备信息的主要内容,如果未能解决你的问题,请参考以下文章
Android 逆向Android 系统文件分析 ( cmdline 系统启动参数文件 | crypto 密码算法信息文件 | devices 设备信息文件 )
Android 逆向Android 系统文件分析 ( cmdline 系统启动参数文件 | crypto 密码算法信息文件 | devices 设备信息文件 )
RK3399平台开发系列讲解(内核设备树篇)4.22设备树dtb信息转化为device_node结构
安卓系统广播暴露设备信息-Android System Broadcasts Expose Device Information