firerpa / lamda

⚡️ 史上最强安卓抓包/逆向/HOOK & 云手机/远程桌面/自动化取证 ALL-IN-ONE,安卓 RPA 机器人框架,下一代移动端数据自动化机器人。
https://lamda.run
6.18k stars 862 forks source link

在WSL(Windows Subsystem-Linux)中支持安卓系统 #24

Closed aimardcr closed 1 year ago

aimardcr commented 1 year ago

我试着在WSL中运行lamda,lamda启动后,android突然崩溃了。 在Android WSL上用Magisk(x86_64)和lamda x86_64 v3.80进行了测试。

抱歉中文不好,我在用翻译器。

rev1si0n commented 1 year ago

english is ok. does frida-server works on WSA?

rev1si0n commented 1 year ago

before this check, please ensure that there only one frida-server running, two or more will crash the system.

aimardcr commented 1 year ago

Running frida-server using the latest server from the repo works fine, but running using lamda's frida-server caused segmentation fault:

image

image

Also when I run command using official frida-server, the whole terminal seems to freeze but not the android. I wonder if this has something to do with this issue

EDIT: Nevermind, the command works fine using official frida-server. The only issue is that lamda's frida-server won't run within the WSL.

EDIT Again: And yes, I don't have any frida-server running beside lamda's, but the system still crashed.

rev1si0n commented 1 year ago

it's more like a headless Android and it's not "stable" (may be not ready for product). currently no plan to support WSA in short term but i'll look into it, i have installed a windows 11 virtual machine and run the WSA, but all magisk WSA repo seems blocked by github, so i can't root it.

aimardcr commented 1 year ago

I see, it's okay then if there will be no support for WSA temporarily. The original repo was blocked due to use of Github Action, you can use this repo to root WSA. Thank you for your amazing work!

rev1si0n commented 1 year ago

now WSA 2210.40000 (retail) is supported, version above is not tested but should work also.

need do some extra settings.

1 WSA Subsystem Settings -> Subsystem Resources -> choose Continuous 2 Turn off Advanced Networking (the Advanced Networking is weird) 3 Restart Subsystem 4 Connect to WSA adb 127.0.0.1:58526 5 Use adb forward tcp:65000 tcp:65000 then access localhost:65000

if Advanced Networking is ON then step 5 will fail and you still can't reach lamda so we need turn off it. step 1 is a suggest option.