Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
f0840c33
Commit
f0840c33
authored
Jan 22, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mirailize device info
parent
67d85971
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mirai-core-qqandroid/src/jvmMain/kotlin/net/mamoe/mirai/qqandroid/utils/SystemDeviceInfo.kt
...otlin/net/mamoe/mirai/qqandroid/utils/SystemDeviceInfo.kt
+8
-8
No files found.
mirai-core-qqandroid/src/jvmMain/kotlin/net/mamoe/mirai/qqandroid/utils/SystemDeviceInfo.kt
View file @
f0840c33
...
...
@@ -4,14 +4,14 @@ import kotlinx.io.core.toByteArray
import
net.mamoe.mirai.utils.localIpAddress
actual
class
SystemDeviceInfo
actual
constructor
(
context
:
Context
)
:
DeviceInfo
(
context
)
{
override
val
display
:
ByteArray
get
()
=
"
QSR1.190920
.001"
.
toByteArray
()
override
val
product
:
ByteArray
get
()
=
"
sdk_gphone_x86
"
.
toByteArray
()
override
val
device
:
ByteArray
get
()
=
"
generic_x86
"
.
toByteArray
()
override
val
board
:
ByteArray
get
()
=
"
goldfish_x86
"
.
toByteArray
()
override
val
brand
:
ByteArray
get
()
=
"
googl
e"
.
toByteArray
()
override
val
display
:
ByteArray
get
()
=
"
MIRAI.200122
.001"
.
toByteArray
()
override
val
product
:
ByteArray
get
()
=
"
mirai
"
.
toByteArray
()
override
val
device
:
ByteArray
get
()
=
"
mirai
"
.
toByteArray
()
override
val
board
:
ByteArray
get
()
=
"
mirai
"
.
toByteArray
()
override
val
brand
:
ByteArray
get
()
=
"
mamo
e"
.
toByteArray
()
override
val
model
:
ByteArray
get
()
=
"Android SDK built for x86"
.
toByteArray
()
override
val
bootloader
:
ByteArray
get
()
=
"unknown"
.
toByteArray
()
override
val
fingerprint
:
ByteArray
get
()
=
"
google/sdk_gphone_x86/generic_x86:10/QSR1.190920
.001/5891938:user/release-keys"
.
toByteArray
()
override
val
fingerprint
:
ByteArray
get
()
=
"
mamoe/mirai/mirai:10/MIRAI.200122
.001/5891938:user/release-keys"
.
toByteArray
()
override
val
bootId
:
ByteArray
get
()
=
"5974cb66-bb69-4e82-a436-836b98ebd88c"
.
toByteArray
()
override
val
procVersion
:
ByteArray
get
()
=
"Linux version 3.0.31-g6fb96c9 (android-build@xxx.xxx.xxx.xxx.com)"
.
toByteArray
()
override
val
baseBand
:
ByteArray
get
()
=
byteArrayOf
()
...
...
@@ -26,11 +26,11 @@ actual class SystemDeviceInfo actual constructor(context: Context) : DeviceInfo(
@UseExperimental
(
ExperimentalUnsignedTypes
::
class
)
override
val
imsiMd5
:
ByteArray
get
()
=
ubyteArrayOf
(
0
xD4u
,
0
x1Du
,
0
x8Cu
,
0
xD9u
,
0
x8Fu
,
0
x00u
,
0
xB2u
,
0
x04u
,
0
xE9u
,
0
x80u
,
0
x09u
,
0
x98u
,
0
xECu
,
0
xF8u
,
0
x42u
,
0
x7Eu
).
toByteArray
()
override
val
imei
:
String
get
()
=
"858414
3692
11993"
override
val
imei
:
String
get
()
=
"858414
5247
11993"
@UseExperimental
(
ExperimentalUnsignedTypes
::
class
)
override
val
ipAddress
:
ByteArray
get
()
=
localIpAddress
().
split
(
"."
).
map
{
it
.
toUByte
().
toByte
()
}.
takeIf
{
it
.
size
==
4
}
?.
toByteArray
()
?:
byteArrayOf
()
override
val
androidId
:
ByteArray
get
()
=
"QSR1.190920.001"
.
toByteArray
()
override
val
androidId
:
ByteArray
get
()
=
display
override
val
apn
:
ByteArray
get
()
=
"wifi"
.
toByteArray
()
object
Version
:
DeviceInfo
.
Version
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment