<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with android]]></title><description><![CDATA[A list of topics that have been tagged with android]]></description><link>https://mirai.mamoe.net/tags/android</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Mar 2026 08:49:05 GMT</lastBuildDate><atom:link href="https://mirai.mamoe.net/tags/android.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[Aoki —— 仅用安卓手机解决登录验证]]></title><description><![CDATA[<p dir="auto"><a href="https://github.com/MrXiaoM/Aoki" target="_blank" rel="noopener noreferrer nofollow ugc">icon_round.png logo.svg</a></p>

<p dir="auto"><a href="https://github.com/MrXiaoM/Aoki/releases" target="_blank" rel="noopener noreferrer nofollow ugc">Releases</a> <a href="https://github.com/MrXiaoM/Aoki/stargazers" target="_blank" rel="noopener noreferrer nofollow ugc">Stars</a> Android</p>
<p dir="auto">Aoki 是在 Android 平台上基于 <a href="https://github.com/mamoe/mirai" target="_blank" rel="noopener noreferrer nofollow ugc">mirai</a> 开发的登录处理器</p>
<p dir="auto">本项目名称来源于<br />
i-style project 推出的虚拟歌手<a href="https://en.wikipedia.org/wiki/Aoki_Lapis" target="_blank" rel="noopener noreferrer nofollow ugc">蒼姫ラピス (<strong>Aoki</strong> Lapis)</a><br />
项目图标由<a href="https://www.pixiv.net/artworks/103427447" target="_blank" rel="noopener noreferrer nofollow ugc">人间工作</a>绘制</p>
本项目所使用的“迁移设备信息”方法可能已不再适用，请通过以下链接教程部署签名服务
<p dir="auto"><a href="https://wiki.mrxiaom.top/mirai/45" target="_blank" rel="noopener noreferrer nofollow ugc">https://wiki.mrxiaom.top/mirai/45</a></p>
注意事项

请确保你在<strong>真实的</strong> Android 设备上进行登录
请确保你已在该 Android 设备登录了<strong>官方的</strong> QQ 客户端
Aoki 可以确保你在第一次登录时能够正常登录，不能保证已经触发过 235/237/45 的账号能登录
由于服务器策略更新，“迁移设备信息” 这种登录方法可能不再可用。

使用方法
<p dir="auto">先设法将你的本地 mirai 版本升级到 2.15.0-dev-98 或以上 (或 2.15.0-RC)。升级到开发版方法将会在以后放出。</p>
<p dir="auto">使用插件将 ANDROID_PAD 协议的版本信息改为 8.8.88，如 <a href="https://github.com/cssxsh/fix-protocol-version" target="_blank" rel="noopener noreferrer nofollow ugc">fix-protocol-version</a> 插件。<br />
如果开启时提示“服务注册失败”，你可能还需要再安装 <a href="https://github.com/MrXiaoM/KawaiiMiku" target="_blank" rel="noopener noreferrer nofollow ugc">KawaiiMiku</a> 插件</p>
<p dir="auto">在<strong>真实的</strong> Android 手机上安装 Aoki，</p>
<p dir="auto">注意一定要在<strong>真实的</strong>手机上打开 Aoki，因为 Aoki 需要读取你的手机型号等信息生成 device.json。</p>
<p dir="auto">打开并按照引导进行登录 <strong>(使用平板协议)</strong>。出现「登录成功」提示后，你可以</p>
压缩并分享
<p dir="auto">登录成功后点击「打包并分享到…」，然后在弹出的分享面板中想办法将该文件发送到电脑上，比如 通过QQ文件传输助手发送到电脑，或者 使用蓝牙连接发送到电脑 等等。</p>
<p dir="auto">你也可以在「账号管理」中找到「打包并分享到…」。</p>
通过路径复制文件
<p dir="auto">使用任何你能想到的方法将手机储存目录下的 Android/data/top.mrxiaom.mirai.aoki/files/AokiMirai 文件夹传输到电脑上，可用的方法包括但不限于如下：</p>

使用数据线复制文件夹
压缩文件夹，通过QQ文件传输助手发送到电脑


<p dir="auto">将从以上其中一种方法获得的 bots 文件夹中以qq号命名的文件夹，<br />
覆盖到 mirai 目录，然后你就可以在 mirai 中登录你的账户了。</p>
<p dir="auto"><strong>建议在导出文件后，等待半小时左右再登录，以免因为短时间内两次登录的 IP 归属地变动较大被风控。</strong></p>
下载
<p dir="auto">在 <a href="https://github.com/MrXiaoM/Aoki/releases" target="_blank" rel="noopener noreferrer nofollow ugc">Github Releases</a> 下载最新版本<br />
如果你觉得有用，请点击右下角的点赞按钮，或到 Github 点一个标星(Star)，感谢支持。</p>
帮助
<p dir="auto">使用过程中的问题请在本帖或 QQ 群 <a href="https://jq.qq.com/?_wv=1027&amp;k=lICWLNqr" target="_blank" rel="noopener noreferrer nofollow ugc">1047497524</a> 询问。<br />
若出现bug或者想要贡献代码，请前往 <a href="https://github.com/MrXiaoM/Aoki/issues" target="_blank" rel="noopener noreferrer nofollow ugc">Github</a>。</p>
捐助
<p dir="auto">前往 <a href="https://afdian.net/a/mrxiaom" target="_blank" rel="noopener noreferrer nofollow ugc">爱发电</a> 捐助我。</p>
]]></description><link>https://mirai.mamoe.net/topic/1876/aoki-仅用安卓手机解决登录验证</link><guid isPermaLink="true">https://mirai.mamoe.net/topic/1876/aoki-仅用安卓手机解决登录验证</guid><dc:creator><![CDATA[MrXiaoM]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[应该从哪里着手Android开发]]></title><description><![CDATA[<p dir="auto">如题<br />
想自己做一个手机QQ机器人<br />
但是多方寻找没找到dome<br />
请直接回复本帖<br />
谢谢</p>
]]></description><link>https://mirai.mamoe.net/topic/760/应该从哪里着手android开发</link><guid isPermaLink="true">https://mirai.mamoe.net/topic/760/应该从哪里着手android开发</guid><dc:creator><![CDATA[Luo-Po]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[MiraiAndroid-在Android上运行mirai-console]]></title><description><![CDATA[MiraiAndroid
<p dir="auto"><strong>复制自 Github <a href="https://github.com/mzdluo123/MiraiAndroid" target="_blank" rel="noopener noreferrer nofollow ugc">MiraiAndroid</a> ，更多信息请到GitHub了解</strong></p>
<p dir="auto">mirai-console的Android前端程序，可作为qq机器人使用，支持多种脚本接口，已适配MiraiConsole 2.0</p>
<p dir="auto">如果你不知道什么是mirai或者是mirai-console，请到这里了解更多信息<a href="https://github.com/mamoe/mirai" target="_blank" rel="noopener noreferrer nofollow ugc">mirai</a></p>
<p dir="auto">相比使用Termux或者是Linux Deploy等应用运行mirai的方案，该项目提供的方案具有更好的性能以及更少的资源占用，但可能存在兼容性问题</p>
<p dir="auto">最新的构建版本你可以到release或QQ群内找到</p>
<p dir="auto">MiraiAndroid交流群：1131127734但是请注意，如果您违反了群内相关规定或是有其他不当行为你可能会被无理由移出本群</p>
<p dir="auto">图标以及形象由画师DazeCake绘制</p>
声明
一切开发旨在学习，请勿用于非法用途

MiraiAndroid 是完全免费且开放源代码的软件，仅供学习和娱乐用途使用
MiraiAndroid 不会通过任何方式强制收取费用，或对使用者提出物质条件
MiraiAndroid 由整个开源社区维护，并不是属于某个个体的作品，所有贡献者都享有其作品的著作权。

许可证
Copyright (C) 2019-2020 Mamoe Technologies and contributors.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.

<p dir="auto">MiraiAndroid 采用 AGPLv3 协议开源。为了整个社区的良性发展，我们<strong>强烈建议</strong>您做到以下几点：</p>

<strong>间接接触（包括但不限于使用 httpapi 或 跨进程技术）到 mirai 的软件使用 AGPLv3 开源</strong>
<strong>不鼓励，不支持一切商业使用</strong>

已实现的功能

兼容mirai-console插件(实验性)
带验证码的登录处理
内置Google d8 dex编译器，可直接编译JVM的console插件在Android运行(实验性)
lua脚本接口（测试版）
网络掉线提醒

安装脚本
<p dir="auto">目前脚本系统仍在开发中，对于2.x版本的lua或js脚本系统正在迁移中，请等待后续更新</p>
安装插件
<p dir="auto">对于apk(Android软件包)格式的插件，请直接安装到系统内即可，关于这类插件的开发说明请看<a href="https://github.com/mzdluo123/MiraiAndroid/blob/master/doc/develop.md" target="_blank" rel="noopener noreferrer nofollow ugc">这里</a></p>
<p dir="auto">对于jar格式的插件，你有两个办法安装插件</p>
使用app直接打开jar文件安装
<p dir="auto">这是最简单的方式。app切换到插件管理点击右上角选择即可，你也可以使用系统文件选择器直接打开jar文件</p>
<p dir="auto">对于已经经过d8转换过的插件，请直接导入</p>
<p dir="auto"><strong>如果你无法选择文件</strong>，请使用第三方文件选择器选择（例如Mix）</p>
使用pc转换后导入
<p dir="auto">请按照以下方法操作</p>

找到d8编译器的运行脚本

<p dir="auto">d8工具已在新版Android sdk中自带，它就在build-tools中对应版本的文件夹下。在Windows平台他是一个bat文件</p>
<p dir="auto">如果没有可到上面的交流群内下载</p>

编译

<p dir="auto">打开终端，使用以下命令编译</p>
d8.bat --output 输出文件.jar 源文件

<p dir="auto">输出文件扩展名必须是jar或者是zip</p>

复制资源

<p dir="auto">使用压缩软件打开源jar文件，将里面的plugin.yml，META-INF和其他资源文件(除存放class文件夹的其他文件)复制到新的jar文件内</p>

安装插件

<p dir="auto">将上一步的新的jar文件复制到手机的/sdcard/Android/data/io.github.mzdluo123.mirai.android/files/plugins/</p>
<p dir="auto">重启即可使用插件，当然部分插件可能也会存在兼容性问题</p>
FAQ
<p dir="auto">Q: 后台运行被系统杀死<br />
A：请手动将应用添加到系统后台白名单</p>
<p dir="auto">Q：应用崩溃或后台报错<br />
A：如果是后台报错一般是插件或者是mirai-core的问题，是mirai-core的问题请在菜单内找到分享日志并到群内或开启issue反馈，插件的问题请联系对应开发者；如果是应用崩溃，请重启并按照上面的方法提交日志给我们</p>
兼容的Console插件列表
<p dir="auto">以下插件由群友测试未发现问题，你可以到群内下载，或是到<a href="https://github.com/mamoe/mirai-plugins" target="_blank" rel="noopener noreferrer nofollow ugc">插件中心</a>手动下载jvm版并导入</p>

mirai-api-http
chatcommand

<p dir="auto">对于其他插件请自行尝试；此外，如果你的插件使用了一些Android不支持的api(例如BufferedImage)那么使用了这个api的功能将绝对不能正常工作</p>
关于支持的Android版本
<p dir="auto">MiraiAndroid只能在Android8.0及以上版本的系统中工作，因为上游MiaiCore使用了大量Java8特性</p>
<p dir="auto">目前测试过的版本中Android10无问题，Android8.1无法在移动端编译插件</p>
消息推送(2.9新增)
<p dir="auto">必须使用自动登录并在设置中开启才能使用该功能</p>
<p dir="auto">你可以发送广播来快速向指定群或联系人推送信息，这里是data的URI格式</p>
ma://sendGroupMsg?msg=消息&amp;id=群号
ma://sendFriendMsg?msg=消息&amp;id=账号
ma://sendFriendMsg?msg=消息&amp;id=账号&amp;at=要at的人

sendBroadcast(Intent("io.github.mzdluo123.mirai.android.PushMsg").apply {
        data = Uri.parse("ma://sendGroupMsg?msg=HelloWorld&amp;id=655057127")
    })

<p dir="auto">以下是auto.js的示例</p>
app.sendBroadcast({
    action: "io.github.mzdluo123.mirai.android.PushMsg",
    data: "ma://sendGroupMsg?msg=来自autojs的消息&amp;id=655057127"
})

<p dir="auto">以下是tasker的示例</p>
    ma (2)
    	A1: 发送意图 [ 操作:io.github.mzdluo123.mirai.android.PushMsg 类别:None Mime类型: 数据:ma://sendGroupMsg?msg=来自tasker的消息&amp;id=655057127 额外: 额外: 额外: 包: 类: 目标:Broadcast Receiver ] 

]]></description><link>https://mirai.mamoe.net/topic/107/miraiandroid-在android上运行mirai-console</link><guid isPermaLink="true">https://mirai.mamoe.net/topic/107/miraiandroid-在android上运行mirai-console</guid><dc:creator><![CDATA[RainChan]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>