mirai-core / net.mamoe.mirai.utils / DeviceInfo

DeviceInfo

abstract class DeviceInfo

设备信息. 可通过继承 SystemDeviceInfo 来在默认的基础上修改

Types

Version

interface Version

Constructors

<init>

设备信息. 可通过继承 SystemDeviceInfo 来在默认的基础上修改

DeviceInfo()

Properties

androidId

abstract val androidId: ByteArray

apn

abstract val apn: ByteArray

baseBand

abstract val baseBand: ByteArray

board

abstract val board: ByteArray

bootId

abstract val bootId: ByteArray

bootloader

abstract val bootloader: ByteArray

brand

abstract val brand: ByteArray

context

abstract val context: Context

device

abstract val device: ByteArray

display

abstract val display: ByteArray

fingerprint

abstract val fingerprint: ByteArray

imei

abstract val imei: String

imsiMd5

abstract val imsiMd5: ByteArray

ipAddress

val ipAddress: ByteArray

macAddress

abstract val macAddress: ByteArray

model

abstract val model: ByteArray

osType

abstract val osType: ByteArray

procVersion

abstract val procVersion: ByteArray

product

abstract val product: ByteArray

simInfo

abstract val simInfo: ByteArray

version

abstract val version: Version

wifiBSSID

abstract val wifiBSSID: ByteArray?

wifiSSID

abstract val wifiSSID: ByteArray?

Functions

generateDeviceInfoData

fun generateDeviceInfoData(): ByteArray

Inheritors

DeviceInfoData

class DeviceInfoData : DeviceInfo

SystemDeviceInfo

通过本机信息来获取设备信息.

open class SystemDeviceInfo : DeviceInfo