作者已表示暂未计划为Flclash Android
添加自启动,详见 此issue
所以只能通过一些其他方式来自启动,比如thanox
的情景模式
1
2
3
4
5
6
7
8
9
{
"name": "Flclash autostart",
"description": "Flclash开机自启",
"priority": 1,
"condition": "systemReady == true",
"actions": [
"su.exe('am start -n com.follow.clash/.TempActivity -a com.follow.clash.action.START -c android.intent.category.DEFAULT')"
]
}
记得打开引擎
里的suAPI
并给予Thanox
root权限
,不然无法正常使用
如果你不想用Thanox
也可以,把actions
的am start
那一段丢进service.sh
里再写个module.prop
打包成模块
刷入magisk/ksu
理论上也行
一些其他可控制Flclash Android
的shell
可见 此issue