终于搞定微信代收了!由于微信Wifi下fcm服务不启动,开数据可以启动,所以我用thanox情景模式在清理微信进程的代码中加上启动WCF服务的代码,实测可以代收微信消息了。然后就可以放心的用墓碑冻结微信,cpu一动不动,嘎嘎省电,再也不怕收不到消息了!
情景模式代码如下:
[
{
"name": "微信进程优化",
"description": "优化保留双进程,同时开启fcm服务",
"priority": 2,
"condition": "frontPkgChanged == true && from == \"com.tencent.mm\"",
"actions": [
"Thread.sleep(3000);",
"su.exe(\"ps -ef|grep com.tencent.mm:|grep -v :push|grep -v grep|awk '{print $2}'|xargs kill -9\")",
"su.exe(\"am start-foreground-service -n com.tencent.mm/com.tencent.mm.plugin.fcm.WCFirebaseMessagingService\")"
]
}
]
#墓碑模式# #一加11#