Mirai Device Generator

July 25, 2023 · View on GitHub

Mirai DeviceInfo 生成器

maven-central

作为插件运行时会提供 BotConfigurationAlterer 服务,自动替换 configuration.deviceInfo = generator::load
如果要重新生成 DeviceInfo,删掉 mcl/bots/.../device.json 就好

作为 mirai-core 项目的maven库引用时, 请自行调用 configuration.deviceInfo = generator::load
目前模拟的设备信息较少,有需求的可以到 issue 提需求,或者直接 pr
需要自定义 model 信息的,请按照 folder 中的 json 文件格式
data/mirai-device-generator/ 文件夹中创建同名文件

如果要追求更真实的数据生成·,请使用 https://github.com/MrXiaoM/Aoki

MCL安装

./mcl --update-package xyz.cssxsh.mirai:mirai-device-generator --channel maven-stable --type plugin

board编号参考

骁龙系列

nameboard
888sm8350
835msm8998
820msm8996
750Gsm7225
655msm8953
652msm8976
625msm8953

天玑系列

nameboard
1000+mt6889z
1000mt6889
1000Lmt6885z
820mt6875
800mt6873v
600mt6853