Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装v0.4后手机无限重启 #3

Closed
liyiecho opened this issue Mar 5, 2023 · 20 comments
Closed

安装v0.4后手机无限重启 #3

liyiecho opened this issue Mar 5, 2023 · 20 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@liyiecho
Copy link

liyiecho commented Mar 5, 2023

小米10 MIUI14(安卓13)
每次自动重启都会进入小米官方rec,选择开机,进入桌面未解锁屏幕之前都是正常的,解锁进入桌面后过几秒后就会再次进入小米官方rec。通过那短暂的几秒进入magisk关闭本模块,重启后就恢复正常了。

@taamarin
Copy link
Owner

taamarin commented Mar 5, 2023

检查位于 /data/adb/box/run 文件夹中的 service.log 和 runs.log。

@liyiecho
Copy link
Author

liyiecho commented Mar 5, 2023

看了一下错误大概就是在service.log里面的,

W0305 01:05:06.789774   12670 cpuid.go:251] cpuid HWCap not initialized: %!w(*errors.errorString=&{readHwCap only supported on linux, not android})
mv: can't rename '/data/adb/box/run/sing-box.log': No such file or directory
mv: can't rename '/data/adb/box/run/xray.log': No such file or directory
mv: can't rename '/data/adb/box/run/v2fly.log': No such file or directory
ifconfig: : error fetching interface information: Device not found

Parse error: bad token
    <stdin>:1


Parse error: bad token
    <stdin>:1


Parse error: bad token
    <stdin>:1

service.log
runs.log

@liyiecho
Copy link
Author

liyiecho commented Mar 5, 2023

注释了之后,service.log 和 runs.log没看到什么报错,但仍然无限重启

@liyiecho
Copy link
Author

liyiecho commented Mar 5, 2023

不知道是否跟magsik版本有关系,现在用的是magsik 25.2的

@taamarin
Copy link
Owner

taamarin commented Mar 5, 2023

不知道是否跟magsik版本有关系,现在用的是magsik 25.2的

我也使用Magisk 25.x,但没有使用MIUI 14。

请将 https://github.com/taamarin/box_for_magisk/blob/master/scripts/settings.ini#L3 删除,并更换为 Flash Module BusyBox For android NDK。

@liyiecho
Copy link
Author

liyiecho commented Mar 5, 2023

不知道是否跟magsik版本有关系,现在用的是magsik 25.2的

我也使用Magisk 25.x,但没有使用MIUI 14。

请将 https://github.com/taamarin/box_for_magisk/blob/master/scripts/settings.ini#L3 删除,并更换为 Flash Module BusyBox For android NDK。

已按要求操作安装busybox,但依然自动重启。

@liyiecho
Copy link
Author

@razilong 可我没装这个模块,而且把其他模块都禁用只开启box_for_magisk模块,也一样无限重启

@taamarin taamarin added bug Something isn't working help wanted Extra attention is needed labels Mar 11, 2023
@whao123yahoo
Copy link

whao123yahoo commented Mar 15, 2023

runs.log里面提示没有clash,让我下载放到/data/adb/box/bin/clash目录里面,但是找不到安卓版本的。。。下了个linux-arm64的放进去了,还是一样的提示。求指导🌝

@taamarin
Copy link
Owner

taamarin commented Mar 15, 2023

runs.log里面提示没有clash,让我下载放到/data/adb/box/bin/clash目录里面,但是找不到安卓版本的。。。下了个linux-arm64的放进去了,还是一样的提示。求指导🌝

# select the client to use : clash / sing-box / xray / v2fly
bin_name="clash"

https://github.com/MetaCubeX/Clash.Meta/releases/tag/Prerelease-Alpha
clash.meta-android-arm64-alpha-520cc80.gz

额外的gz文件
将clash.meta重命名为clash
移动/替换 > /data/adb/box/bin/

@taamarin
Copy link
Owner

runs.log里面提示没有clash,让我下载放到/data/adb/box/bin/clash目录里面,但是找不到安卓版本的。。。下了个linux-arm64的放进去了,还是一样的提示。求指导🌝

Screenshot_20230315-220448

@whao123yahoo
Copy link

runs.log里面提示没有clash,让我下载放到/data/adb/box/bin/clash目录里面,但是找不到安卓版本的。。。下了个linux-arm64的放进去了,还是一样的提示。求指导🌝

Screenshot_20230315-220448

3q。原来是我会错意了,又建了个子目录放进去的,难怪不行。这Linux的东西,只要是不带后缀名的我还都以为是个目录呢,没想到就已经是文件了😂

@whao123yahoo
Copy link

后台进不去,不知道是我配置是不是有问题?我看config.yaml文件里面已经正确获取到我订阅的各个服务器的信息了,但是127.0.0.1:9090进去只提示个Hello😂,而且一旦开启服务就全局没有网络连接了

@taamarin
Copy link
Owner

后台进不去,不知道是我配置是不是有问题?我看config.yaml文件里面已经正确获取到我订阅的各个服务器的信息了,但是127.0.0.1:9090进去只提示个Hello😂,而且一旦开启服务就全局没有网络连接了

http://127.0.0.1:9090/ui

@whao123yahoo
Copy link

后台进不去,不知道是我配置是不是有问题?我看config.yaml文件里面已经正确获取到我订阅的各个服务器的信息了,但是127.0.0.1:9090进去只提示个Hello😂,而且一旦开启服务就全局没有网络连接了

http://127.0.0.1:9090/ui

页面提示404 not found。。。不晓得怎么回事,看视频挺简单,而且我照着做的时候,都没有报错,结果启动服务了,各种问题都会遇到😂

@liyiecho
Copy link
Author

MIUI14 V14.0.23.3.13.DEV
box_for_magisk-v0.4.2
bfm_manager-v2.0.1
现在又莫名其妙得好了,不会无限重启了

@liyiecho
Copy link
Author

更新v0.5之后又无限重启了,但是发现不创建resolve.conf后就能正常开机了。目前没有写入resolve.conf文件,暂时没发现有什么影响。
还有就是,有时候下载内核跟geox不完整,会缺失文件。

@liyiecho liyiecho reopened this Mar 20, 2023
taamarin added a commit that referenced this issue Mar 20, 2023
@taamarin
Copy link
Owner

更新v0.5之后又无限重启了,但是发现不创建resolve.conf后就能正常开机了。目前没有写入resolve.conf文件,暂时没发现有什么影响。 还有就是,有时候下载内核跟geox不完整,会缺失文件。

使用 su -c /data/adb/box/scripts/box.tool subgeo 命令下载 GEO,使用 su -c /data/adb/box/scripts/box.tool upcore 命令下载内核。

@liyiecho
Copy link
Author

@taamarin 另外请问不用resolve.conf这个文件会有什么影响吗

@taamarin
Copy link
Owner

@taamarin 另外请问不用resolve.conf这个文件会有什么影响吗

Screenshot_20230320-130200

可能在一些设备上会遇到这个问题。
https://stackoverflow.com/questions/25785568/go-etc-resolv-conf-missing-in-android
Asterisk4Magisk/Xray4Magisk#12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants