whitechi73 / OpenShamrock

A Bot Framework based on Lsposed with OneBot11(停止维护/禁用于违法用途)
https://whitechi73.github.io/OpenShamrock
GNU General Public License v3.0
1.41k stars 188 forks source link

bug: moe.fuqiuluo.shamrock-Oi4u-GDFtPf4rZo76LD_hQ==/lib/x86_64/libshamrock.so" is for EM_X86_64 (62) instead of EM_AARCH64 (183) #153

Closed 7125Dev closed 11 months ago

7125Dev commented 11 months ago

警告: 在进一步操作之前,请检查下列选项。如果您忽视此模板或者没有提供关键信息,您的 Issue 将直接被关闭

描述 Bug

X86_64架构的机器上运行redroid 11的镜像,安装了Magisk Delta并开启了Zygisk功能,也安装了LSPosed。按照文档配置好Shamorock和QQ后,qq能打开但是Shamrock提示未激活,看了LSPosed日志主要错误为标题那一行

复现 Bug

(1)启动docker容器 docker run -itd --privileged \ -v ~/data11:/data \ -p 5555:5555 \ redroid/redroid:11.0.0-latest \ ro.product.cpu.abilist=x86_64,arm64-v8a,x86,armeabi-v7a,armeabi \ ro.product.cpu.abilist64=x86_64,arm64-v8a \ ro.product.cpu.abilist32=x86,armeabi-v7a,armeabi \ ro.dalvik.vm.isa.arm=x86 \ ro.dalvik.vm.isa.arm64=x86_64 \ ro.enable.native.bridge.exec=1 \ ro.dalvik.vm.native.bridge=libndk_translation.so \ ro.ndk_translation.version=0.2.2 (2)安装Magisk Delta (3)安装LSPosed (4)安装Shamrock https://github.com/whitechi73/OpenShamrock/suites/18958748442/artifacts/1108026946 (5)在LSPosed启用Shamrock模块,勾选QQ

系统信息

KN{2)R_U5SBXR1WI8M9H7}6 E$~USX1H3%} M6E@%GVK0AV V I71O`U(K7KN1243FWID71 FF`4T8I}(}VSSD6N7L6J5QX P K6%G{HVYWAH{{ } OIKN6

7125Dev commented 11 months ago

@C`DU5)7H9 C8)W4A_TFCKG

fuqiuluo commented 11 months ago

可以换ARM64版本的Shamrock试试。

7125Dev commented 11 months ago

arm64的版本可以,这个版本的QQ比较容易登录,其他的要不就是提示稍后重试要不就提示com.tencent.mobileqq.msf.service.msfservice timeout AG0X{RI5TFV(7KK(CLW60KW IW_PT6ITBCK{(YHNG{933F

7125Dev commented 11 months ago

如果想在redroid上跑起来,参考 Redroid配置Magisk Redroid一键安装脚本 LSPosed安装教程

Docker容器端口映射: iptables -t nat -A PREROUTING -m tcp -p tcp --dport 5555 -j DNAT --to-destination 容器的IP:5555 iptables -t nat -A POSTROUTING -m tcp -p tcp --dport 5555 -d 容器的IP -j SNAT --to-source 宿主机的IP firewall-cmd --permanent --zone=public --add-rich-rule='rule family=ipv4 source address=容器的子网/16 accept'

我使用Ubuntu 22.04,Z3735F。不需要编译Redroid的安卓内核 启动容器前,在宿主机执行: apt install linux-modules-extra-`uname -r` modprobe binder_linux devices="binder,hwbinder,vndbinder" modprobe ashmem_linux

使用以下命令启动容器 docker run -itd --privileged \ -v ~/data11:/data \ -p 5555:5555 \ redroid/redroid:11.0.0_magisk \ ro.product.cpu.abilist=x86_64,arm64-v8a,x86,armeabi-v7a,armeabi \ ro.product.cpu.abilist64=x86_64,arm64-v8a \ ro.product.cpu.abilist32=x86,armeabi-v7a,armeabi \ ro.dalvik.vm.isa.arm=x86 \ ro.dalvik.vm.isa.arm64=x86_64 \ ro.enable.native.bridge.exec=1 \ ro.dalvik.vm.native.bridge=libndk_translation.so \ ro.ndk_translation.version=0.2.2