Mirai-device-generator - Mirai Device Generator with kotlin

Overview

Mirai Device Generator

Mirai DeviceInfo 生成器

maven-central

作为插件运行时会提供 BotConfigurationAlterer 服务,自动替换 configuration.deviceInfo = generator::load
作为 mirai-core 库引用时, 请自行调用 configuration.deviceInfo = generator::load

board 编号

骁龙系列

name board
888 sm8350
835 msm8998
820 msm8996
750G sm7225
655 msm8953
652 msm8976
625 msm8953

天玑系列

name board
1000+ mt6889z
1000 mt6889
1000L mt6885z
820 mt6875
800 mt6873v
600 mt6853
You might also like...
A Mirai-Console Plugin

MuteGames 一个以 Mirai-Console 为基础开发并为了满足群友PVP需求和抖M需求开发的禁言游戏集合 开始使用 插件需要以 Mirai-Console 为基础,你可以下载 MCL 作为你的Mirai插件载入器 与此同时,本插件需要 Mirai 官方插件 chat-command 使

A mirai chatbot plugin based on OpenAI GPT-3 API
A mirai chatbot plugin based on OpenAI GPT-3 API

Mirai OpenAI GPT-3 ChatBot Plugin This is a Mirai ChatBot plugin based on OpenAI GPT-3 API. Installation Download the JAR file from https://github.com

A tool that enables advanced features through adb installing and uninstalling apps like wildcards and multi device support. Useful if you want to clean your test device from all company apks or install a lot of apks in one go.  Written in Java so it should run on your platform. A tool that enables advanced features through adb installing and uninstalling apps like wildcards and multi device support. Useful if you want to clean your test device from all company apks or install a lot of apks in one go.  Written in Java so it should run on your platform.
Native Device security checks, Rooted/Jailbroken, Not real device, Developer mode is on, On external drive.

palestine_trusted_device Native Device security checks, Rooted/Jailbroken, Not real device, Developer mode is on, On external drive. Part of Palestine

HyperUPnP is Android Application that lets you to Stream Media from PC, NAS or any other device running UPnP/DLNA compliant media server to your Android Device.

Hyper UPnP Android UPnP/DLNA client Stream Media from PC, NAS or any other device running UPnP/DLNA compliant media server to your Android Device. Int

The Kotlin fake data generator library!
The Kotlin fake data generator library!

Fakeit This library is a port of the Ruby gem Faker. It generates realistic fake data — like names, emails, dates, countries — for a variety of scenar

Swift-friendly api generator for Kotlin/Native frameworks
Swift-friendly api generator for Kotlin/Native frameworks

MOKO KSwift KSwift it's gradle plugin for generation Swift-friendly API for Kotlin/Native framework. Kotlin sealed interface/class to Swift enum Kotli

QRCode Generator implemented in pure Kotlin

Creating QRCodes in Kotlin and Java is harder than it should be. QRCode-Kotlin aims to bring a simple, straightforward and customizable way to create QRCodes into the JVM domain, especially in the backend.

Kotlin DTO generator for Protobuf Messages

Kotlin DTO Generator for gRPC The protobuf plugin generates DTO classes for the corresponding messages in your *.proto files. The data classes in Kotl

StoryGen - A simple story generator (or it will be eventually) to learn Kotlin

StoryGen A simple story generator (or it will be eventually) to learn Kotlin. To

A clean OpenAPI client generator for Kotlin multiplatform

kotlin-openapi-generator A not yet feature complete client generator. Features: generates 100% Kotlin multiplatform code does not generate any useless

A code generator to create Android ContentProvider

DatabaseCodeGenerator This project is a code generator written in Java used to generate Android code. Given a database schema JSON definition file, it

A Java Code Generator for Pojo Builders

PojoBuilder - A Code Generator for Pojo Builders Author: Michael Karneim Project Homepage: http://github.com/mkarneim/pojobuilder About The PojoBuilde

Bad Apple!! AA Generator
Bad Apple!! AA Generator

BadAppleK Bad Apple!! ASCII Art Generator for macOS Terminal. Youtube: https://www.youtube.com/watch?v=Iv8jbo4KDFo How to execute on your environment.

Ktor OpenAPI Spec Generator

Kompendium What is Kompendium Kompendium is intended to be a minimally invasive OpenApi Specification generator for Ktor. Minimally invasive meaning t

KustomExport: a KSP generator of JS facade

Status: ⚠ Experimentation ⚠ KustomExport: a KSP generator of JS facade Motivation Providing a nice JS API can sometimes be complex from a Kotlin Multi

ANTLR is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

A metadata generator intended for the Android source tree

Metalava (Also known as "doclava2", but deliberately not named doclava2 since crucially it does not generate docs; it's intended only for metadata ext

Comments
  • 能否于仅使用mirai-core的项目上运行

    能否于仅使用mirai-core的项目上运行

    在尝试创建 deviceInfo 时出现有关 mirai-console 的错误。项目并未引入mirai-console,仅使用mirai-core。 运行平台:Android。

    FATAL EXCEPTION: main
                                                                                                        Process: com.ojhdtapp.miraipluginforparabox, PID: 19010
                                                                                                        java.lang.NoClassDefFoundError: Failed resolution of: Lnet/mamoe/mirai/console/plugin/ResourceContainer;
                                                                                                        	at xyz.cssxsh.mirai.device.MiraiDeviceGenerator.<init>(MiraiDeviceGenerator.kt:23)
                                                                                                        	at com.ojhdtapp.miraipluginforparabox.domain.service.ConnService$onStartParabox$1.invokeSuspend(ConnService.kt:135)
                                                                                                        	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
                                                                                                        	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
                                                                                                        	at android.os.Handler.handleCallback(Handler.java:938)
                                                                                                        	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                        	at android.os.Looper.loopOnce(Looper.java:201)
                                                                                                        	at android.os.Looper.loop(Looper.java:288)
                                                                                                        	at android.app.ActivityThread.main(ActivityThread.java:7866)
                                                                                                        	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                        	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                                                                                                        	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
                                                                                                        	Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@7499cc9, Dispatchers.Main.immediate]
                                                                                                        Caused by: java.lang.ClassNotFoundException: Didn't find class "net.mamoe.mirai.console.plugin.ResourceContainer" on path: DexPathList[[dex file "/data/data/com.ojhdtapp.miraipluginforparabox/code_cache/.overlay/base.apk/classes7.dex", dex file "/data/data/com.ojhdtapp.miraipluginforparabox/code_cache/.overlay/base.apk/classes8.dex", zip file "/data/app/~~cTHhr43bbruizziS6gpCLA==/com.ojhdtapp.miraipluginforparabox-nsYMt09QFK8GYbqftdx-yA==/base.apk"],nativeLibraryDirectories=[/data/app/~~cTHhr43bbruizziS6gpCLA==/com.ojhdtapp.miraipluginforparabox-nsYMt09QFK8GYbqftdx-yA==/lib/arm64, /data/app/~~cTHhr43bbruizziS6gpCLA==/com.ojhdtapp.miraipluginforparabox-nsYMt09QFK8GYbqftdx-yA==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]
                                                                                                        	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:218)
                                                                                                        	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
                                                                                                        	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                        	... 12 more
    

    启动代码:

    bot = BotFactory.newBot(account, password) {
                        ...
                        deviceInfo = MiraiDeviceGenerator()::load
                    }.also {
                        it.login()
                    }
    
    
    opened by ojhdt 2
Releases(v1.1.3)
Owner
cssxsh
cssxsh
A code generator to create Android ContentProvider

DatabaseCodeGenerator This project is a code generator written in Java used to generate Android code. Given a database schema JSON definition file, it

Foxykeep 297 Nov 25, 2022
A Java Code Generator for Pojo Builders

PojoBuilder - A Code Generator for Pojo Builders Author: Michael Karneim Project Homepage: http://github.com/mkarneim/pojobuilder About The PojoBuilde

Michael Karneim 330 Dec 11, 2022
Bad Apple!! AA Generator

BadAppleK Bad Apple!! ASCII Art Generator for macOS Terminal. Youtube: https://www.youtube.com/watch?v=Iv8jbo4KDFo How to execute on your environment.

kuu(Fumiya Kume) 18 Jul 25, 2022
Kotlin code generation for commercetools platform type-safe product-types, reference expansion and custom fields

Kotlin code generation for commercetools platform type-safe product-types, reference expansion and custom fields

null 8 Dec 15, 2022
A QQ bot based on Mirai.

Chii A QQ bot based on Mirai. 个人使用, 仅供娱乐. Building from Source $ git clone https://github.com/MaxXSoft/Chii.git $ cd Chii $ gradle run License Copyri

MaxXing 5 Dec 17, 2021
A Mirai console plugin that can provide osu!std players some appropriate beatmap (WIP)

OsuMapSuggester A mirai-console plugin that can provide osu!std players some appropriate beatmap. (WIP) Features It can analyze player's aim, speed an

StageGuard 29 Dec 14, 2022
mirai-console 插件开发计划

Debug Helper 基于 Mirai Console 的RSS订阅插件 机器人会在触发上线事件后向群聊发送上线卡片消息 有好友申请和加群申请时,会记录事件信息,并联系机器人所有者 指令 注意: 使用前请确保可以 在聊天环境执行指令 <...>中的是指令名,由空格隔开表示或,选择其中任一名称都可

null 20 Nov 20, 2022
一个简单的每日新闻速报/动画速报 mirai-console 插件

Mirai News Reporter 一个简单的每日新闻速报/番剧速报 mirai-console 插件 项目地址: https://github.com/LinHeLurking/mirai-news-reporter 功能 爬取知乎的一个每日新闻页面, 以图片形式分享. 向机器人说 "今日新闻

LinHe 56 Dec 25, 2022
McMotd - Mirai Plugin for fetching motd from minecraft servers

Mirai-wiki 基于mirai的Minecraft服务器信息查询插件 关于Linux运行环境 如果你正在使用Linux而不是Windows来运行Mirai

ZRnQ 25 Dec 31, 2022
Based on mirai, a fast simple bot for maimai DX

maimai-bot 一个基于 mirai 和 舞萌 DX 查分器 编写的 maimai DX QQ 机器人插件。

心水湛清 20 Dec 16, 2022