MaaAssistantArknights
MaaAssistantArknights copied to clipboard
当 android_id 为空时,会导致 minitouch / maatouch 不可用
在提问之前...
- [X] 我理解 Issue 是用于反馈和解决问题的,而非吐槽评论区,将尽可能提供更多信息帮助问题解决
- [X] 我填写了简短且清晰明确的标题,以便开发者在翻阅 issue 列表时能快速确定大致问题。而不是“一个建议”、“卡住了”等
- [X] 我已查看最新测试版本的更新内容,并未提及该 bug 已被修复的情况
- [X] 我已检查了置顶议题(pinned issue),确认我的问题未被提及
问题描述
android_id 作为 minitouchWorkingFile 并不可靠
- Config
"pushMinitouch": "[Adb] -s [AdbSerial] push \"[minitouchLocalPath]\" \"/data/local/tmp/[minitouchWorkingFile]\"",
"chmodMinitouch": "[Adb] -s [AdbSerial] shell chmod 700 \"/data/local/tmp/[minitouchWorkingFile]\"",
"callMinitouch": "[Adb] -s [AdbSerial] shell \"/data/local/tmp/[minitouchWorkingFile]\" -i",
- Log
[2024-01-29 18:31:22.511][INF][Px6b28][Tx8830] Call ` D:\Program Files\Netease\MuMuPlayer-12.0\shell\adb.exe -s 127.0.0.1:16384 shell settings get secure android_id ` ret 0 , cost 20001 ms , stdout size: 0 , socket size: 0
[2024-01-29 18:31:22.511][INF][Px6b28][Tx8830] Assistant::append_callback | ConnectionInfo {"details":{"adb":"D:\\Program Files\\Netease\\MuMuPlayer-12.0\\shell\\adb.exe","address":"127.0.0.1:16384","config":"MuMuEmulator12","uuid":""},"uuid":"","what":"UuidGot","why":""}
[2024-01-29 18:31:35.277][INF][Px6b28][Tx8830] Call ` D:\Program Files\Netease\MuMuPlayer-12.0\shell\adb.exe -s 127.0.0.1:16384 push "E:\awa\文件夹\程序文件\【MAA】MAA\resource\minitouch\x86_64\minitouch" "/data/local/tmp/" ` ret 0 , cost 39 ms , stdout size: 142 , socket size: 0
[2024-01-29 18:31:35.277][TRC][Px6b28][Tx8830] stdout output:
E:\awa\文件夹\程序文件\【MAA】MAA\resource\minitouch\x86_64\minitouch: 1 file pushed, 0 skipped. 196.7 MB/s (39016 bytes in 0.000s)
[2024-01-29 18:31:35.319][INF][Px6b28][Tx8830] Call ` D:\Program Files\Netease\MuMuPlayer-12.0\shell\adb.exe -s 127.0.0.1:16384 shell chmod 700 "/data/local/tmp/" ` ret 0 , cost 43 ms , stdout size: 0 , socket size: 0
[2024-01-29 18:31:35.319][TRC][Px6b28][Tx8830] asst::MinitouchController::call_and_hup_minitouch | enter
[2024-01-29 18:31:35.319][INF][Px6b28][Tx8830] D:\Program Files\Netease\MuMuPlayer-12.0\shell\adb.exe -s 127.0.0.1:16384 shell "/data/local/tmp/" -i
[2024-01-29 18:31:38.357][ERR][Px6b28][Tx8830] read timeout
[2024-01-29 18:31:38.357][INF][Px6b28][Tx8830] unable to find $ from pipe_str:
/system/bin/sh: /data/local/tmp/: can't execute: Is a directory
日志文件
截图
还有别的吗?
module: others
注:如果是 mumu 12,遇到此问题需要将等待模拟器启动时间设置得更长
看看需不需要兜底,可以 Close
↖问题提供者:(
我的mumu在启动模拟器时出现界面很快但是android_id要等十几秒甚至二十几秒之后才能获取到
导致maa连接上adb但是无法操作,然后出现问题
~曾一度通过重启maa解决~
如果不能修建议加进文档,将等待模拟器启动时间设置得更长
(原设置30s随机出现问题,20s大概率出现问题,目前增加了10s相对稳定了一些)
5.3更新:当时解决办法是新增一个开模拟器的任务并且在任务开始前执行adb.exe -s 127.0.0.1:16384 shell settings get secure android_id,可以解决,今天还看到了https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/8859 有空可以试试
This issue has been inactive for a prolonged period and will be closed automatically in 3 days. 该问题已长时间处于闲置状态,3 天后将自动关闭。