mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-25 06:50:09 +08:00
Move ksid from DeviceInfo to QQAClient
This commit is contained in:
parent
80207cc134
commit
8d1a12d53f
mirai-core-qqandroid/src
androidMain/kotlin/net/mamoe/mirai/qqandroid/utils
jvmMain/kotlin/net/mamoe/mirai/qqandroid/utils
@ -76,7 +76,6 @@ actual class SystemDeviceInfo actual constructor(context: Context) : DeviceInfo(
|
||||
(context.applicationContext.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager).deviceId
|
||||
}
|
||||
}.getOrElse { "" }
|
||||
override val ksid: String get() = "|454001228437590|A8.2.0.27f6ea96" // get from T108
|
||||
override val ipAddress: String get() = localIpAddress()
|
||||
override val androidId: ByteArray get() = Build.ID.toByteArray()
|
||||
override val apn: ByteArray get() = "wifi".toByteArray()
|
||||
|
@ -27,7 +27,6 @@ actual class SystemDeviceInfo actual constructor(context: Context) : DeviceInfo(
|
||||
override val imsiMd5: ByteArray
|
||||
get() = ubyteArrayOf(0xD4u, 0x1Du, 0x8Cu, 0xD9u, 0x8Fu, 0x00u, 0xB2u, 0x04u, 0xE9u, 0x80u, 0x09u, 0x98u, 0xECu, 0xF8u, 0x42u, 0x7Eu).toByteArray()
|
||||
override val imei: String get() = "858414369211993"
|
||||
override val ksid: String get() = "|454001228437590|A8.2.0.27f6ea96"
|
||||
override val ipAddress: String get() = localIpAddress()
|
||||
override val androidId: ByteArray get() = "QSR1.190920.001".toByteArray()
|
||||
override val apn: ByteArray get() = "wifi".toByteArray()
|
||||
|
Loading…
Reference in New Issue
Block a user