eycorsican / kitsunebi-android

A fully-featured V2Ray client for Android.
MIT License
1.76k stars 315 forks source link

fakedns耗电问题 #116

Open llllllllqq opened 4 years ago

llllllllqq commented 4 years ago

你正在使用哪个版本?

1.8.0

使用最新版本是否还遇到同样的问题?

你的手机型号和手机操作系统版本是多少?

红米note5 安卓9 miui11

你遇到了什么问题?

A.后台不运行耗cpu略高 B.运行时,fakedns耗电和唤醒严重

你遇到的问题可以用固定步骤重现吗?

是 步骤: 1.默认设置,随便链接个ss节点 2.锁屏,解锁后发现后台cpu时间非常多,并且伴有唤醒 3.断开链接,后台依旧有持续的(每4秒实际时间消耗0.1cpu时间,即约0.15%)耗电 4.关闭fakedns再链接,问题B解决,问题A仍存在

日志: --------- beginning of main 11-08 19:44:42.742 28915 28915 I System.out: pong received 11-08 19:44:44.733 28915 28930 I System.out: send ping from tile service. 11-08 19:44:44.740 28915 28915 I System.out: pong received 11-08 19:44:46.732 28915 28930 I System.out: send ping from tile service. 11-08 19:44:46.738 28915 28915 I System.out: pong received 11-08 19:44:48.733 28915 28930 I System.out: send ping from tile service. 11-08 19:44:48.748 28915 28915 I System.out: pong received 11-08 19:44:50.732 28915 28930 I System.out: send ping from tile service. 11-08 19:44:50.740 28915 28915 I System.out: pong received 11-08 19:44:50.903 28915 28925 I tsunebi4androi: Background concurrent copying GC freed 299372(10MB) AllocSpace objects, 0(0B) LOS objects, 50% free, 10MB/20MB, paused 95us total 129.511ms 11-08 19:44:52.733 28915 28930 I System.out: send ping from tile service. 11-08 19:44:52.739 28915 28915 I System.out: pong received 11-08 19:44:54.732 28915 28930 I System.out: send ping from tile service. 11-08 19:44:54.738 28915 28915 I System.out: pong received 11-08 19:44:56.733 28915 28930 I System.out: send ping from tile service. 11-08 19:44:56.742 28915 28915 I System.out: pong received 11-08 19:44:58.733 28915 28930 I System.out: send ping from tile service. 11-08 19:44:58.737 28915 28915 I System.out: pong received 11-08 19:45:00.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:00.741 28915 28915 I System.out: pong received 11-08 19:45:02.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:02.740 28915 28915 I System.out: pong received 11-08 19:45:04.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:04.739 28915 28915 I System.out: pong received 11-08 19:45:06.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:06.740 28915 28915 I System.out: pong received 11-08 19:45:08.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:08.738 28915 28915 I System.out: pong received 11-08 19:45:10.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:10.745 28915 28915 I System.out: pong received 11-08 19:45:12.734 28915 28930 I System.out: send ping from tile service. 11-08 19:45:12.744 28915 28915 I System.out: pong received 11-08 19:45:14.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:14.742 28915 28915 I System.out: pong received 11-08 19:45:16.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:16.743 28915 28915 I System.out: pong received 11-08 19:45:18.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:18.742 28915 28915 I System.out: pong received 11-08 19:45:20.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:20.743 28915 28915 I System.out: pong received 11-08 19:45:22.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:22.746 28915 28915 I System.out: pong received 11-08 19:45:24.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:24.742 28915 28915 I System.out: pong received 11-08 19:45:26.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:26.741 28915 28915 I System.out: pong received 11-08 19:45:28.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:28.741 28915 28915 I System.out: pong received 11-08 19:45:30.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:30.743 28915 28915 I System.out: pong received 11-08 19:45:32.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:32.743 28915 28915 I System.out: pong received 11-08 19:45:34.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:34.743 28915 28915 I System.out: pong received 11-08 19:45:36.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:36.743 28915 28915 I System.out: pong received 11-08 19:45:38.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:38.741 28915 28915 I System.out: pong received 11-08 19:45:40.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:40.738 28915 28915 I System.out: pong received 11-08 19:45:42.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:42.744 28915 28915 I System.out: pong received 11-08 19:45:44.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:44.742 28915 28915 I System.out: pong received 11-08 19:45:46.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:46.745 28915 28915 I System.out: pong received 11-08 19:45:48.734 28915 28930 I System.out: send ping from tile service. 11-08 19:45:48.744 28915 28915 I System.out: pong received 11-08 19:45:50.736 28915 28930 I System.out: send ping from tile service. 11-08 19:45:50.750 28915 28915 I System.out: pong received 11-08 19:45:52.735 28915 28930 I System.out: send ping from tile service. 11-08 19:45:52.750 28915 28915 I System.out: pong received 11-08 19:45:54.735 28915 28930 I System.out: send ping from tile service. 11-08 19:45:54.749 28915 28915 I System.out: pong received 11-08 19:45:54.930 28915 28925 I tsunebi4androi: Background concurrent copying GC freed 304416(10MB) AllocSpace objects, 0(0B) LOS objects, 49% free, 10MB/20MB, paused 130us total 130.288ms 11-08 19:45:56.733 28915 28930 I System.out: send ping from tile service. 11-08 19:45:56.738 28915 28915 I System.out: pong received 11-08 19:45:58.575 28915 28915 I System.out: send ping from main activity. 11-08 19:45:58.732 28915 28930 I System.out: send ping from tile service. 11-08 19:45:58.743 28915 28915 I System.out: pong received 11-08 19:45:58.829 28915 28915 I System.out: pong received --------- beginning of system 11-08 19:46:00.503 28915 28915 I Timeline: Timeline: Activity_launch_request time:33463198 intent:Intent { cmp=fun.kitsunebi.kitsunebi4android/.ui.analysis.AnalysisActivity } 11-08 19:46:00.575 28915 28915 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c6179a9 11-08 19:46:00.582 28915 29173 D ViewContentFactory: initViewContentFetcherClass 11-08 19:46:00.582 28915 29173 I ContentCatcher: ViewContentFetcher : ViewContentFetcher 11-08 19:46:00.582 28915 29173 D ViewContentFactory: createInterceptor took 1ms 11-08 19:46:00.732 28915 28930 I System.out: send ping from tile service. 11-08 19:46:00.768 28915 28915 I System.out: pong received 11-08 19:46:01.452 28915 28915 I Timeline: Timeline: Activity_launch_request time:33464147 intent:Intent { act=android.intent.action.VIEW cmp=fun.kitsunebi.kitsunebi4android/.ui.proxylog.ProxyLogActivity } 11-08 19:46:01.485 28915 28915 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@e4dc786 11-08 19:46:01.499 28915 29173 D ViewContentFactory: initViewContentFetcherClass 11-08 19:46:01.499 28915 29173 I ContentCatcher: ViewContentFetcher : ViewContentFetcher 11-08 19:46:01.499 28915 29173 D ViewContentFactory: createInterceptor took 0ms 11-08 19:46:02.733 28915 28930 I System.out: send ping from tile service. 11-08 19:46:02.745 28915 28915 I System.out: pong received 11-08 19:46:03.002 28915 28915 I Timeline: Timeline: Activity_launch_request time:33465697 intent:Intent { act=android.intent.action.VIEW cmp=fun.kitsunebi.kitsunebi4android/.ui.LogcatActivity } 11-08 19:46:03.049 28915 28915 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@776f0f6 11-08 19:46:03.060 28915 29173 D ViewContentFactory: initViewContentFetcherClass 11-08 19:46:03.061 28915 29173 I ContentCatcher: ViewContentFetcher : ViewContentFetcher 11-08 19:46:03.061 28915 29173 D ViewContentFactory: createInterceptor took 0ms 11-08 19:46:03.406 28915 29176 D OpenGLRenderer: endAllActiveAnimators on 0x7a8a38a900 (RippleDrawable) with handle 0x7a8f941ee0

你正使用的配置

任意配置均可触发bug

注:surfboard应该也是fakedns,耗电很少