LiterMC / go-openbmclapi

OpenBMCLAPI written in Golang
GNU Affero General Public License v3.0
47 stars 22 forks source link

Android 设备请求 #38

Open ZXAS007 opened 8 months ago

ZXAS007 commented 8 months ago

在一些闲置的安卓系统设备上部署服务挂载,网盘节点之类的,使用面具模块挂载

zyxkad commented 8 months ago

安卓有点难度,linux的程序可以在上面跑么

ZXAS007 commented 8 months ago

安卓有点介绍,linux的程序可以在上面跑么

一般的都可以

zyxkad commented 8 months ago

额,那release界面有linux相关的程序了,你可以先试一试,如果不行请提供uname -a的输出

ZXAS007 commented 8 months ago

我应该不了解magisk模块的具体制作,无法尝试

xiao-k233 commented 8 months ago

linux下需要使用ndk进行编译,安卓的libc不是标准的glibc

xiao-k233 commented 8 months ago

我手头全是华为没法尝试模块XD 但是我可以在termux环境下试一下

ZXAS007 commented 8 months ago

可以把模块发给我我测试

xiao-k233 commented 8 months ago
~ $ ./go-openbmclapi-linux-arm64

Go-OpenBmclAPI  Copyright (C) 2023 Kevin Z <zyxkad@gmail.com>
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it under certain conditions;
Use subcommand 'license' for more information

[INFO][07:25:19]: Starting Go-OpenBmclApi v1.8.2 (dev-cf52e466812f4e0479feba9eb56d2d556c1d6d9e)
[INFO][07:25:19]: Dialing wss://openbmclapi.bangbang93.com/socket.io/?EIO=4&clusterId=%24%7BCLUSTER_ID%7D&clusterSecret=%24%7BCLUSTER_SECRET%7D&transport=websocket
[ERRO][07:25:19]: Dial error: dial tcp: lookup openbmclapi.bangbang93.com on [::1]:53: read udp [::1]:46367->[::1]:53: read: connection refused
~ $ uname -a
Linux localhost 5.4.191-qgki-g235bf8f0f8c0 #1 SMP PREEMPT Fri Dec 22 11:49:46 CST 2023 aarch64 Android

linux下对应解决方法是这玩意,查询多篇后大同小异,其中一个备选方案是手动将IP写入到hosts中 所以你有root,你先试一下能不能跑吧,直接跑arm64版本就行,magisk模块在写了XD 有急事出门只能先帮你试到这了

8MiYile commented 8 months ago

靠妖,我就不应该把AList for Magisk插件发出来 像你们这么搞为啥不直接搞个 Linux for Magisk 那不就原生arm64环境了? https://github.com/magojohnji/magiskboot-linux https://github.com/FerryAr/lhroot 直接从根源解决问题不是更强?

Go程序ndk编译可以参考这个 https://github.com/alist-org/alist/blob/main/build.sh

kndxhz commented 3 months ago

我靠,等我换手机我这1TB空间终于有用了(