ray512512 / keepalive Goto Github PK
View Code? Open in Web Editor NEW使用各种保活方案兼容4.0-9.0保活,效果良好
使用各种保活方案兼容4.0-9.0保活,效果良好
音乐.zip可以替换成这个
只提示电池优化的权限,不提示自启动的权限。
2020-06-01 17:43:42.497 790-817/? E/ActivityManager: ANR in com.sdk.coolfar_sdk:watch
PID: 15201
Reason: Context.startForegroundService() did not then call Service.startForeground()
出现设备 nexus 60
android版本 8.1.0
出现时机 清除掉进程之后,在logcat中会有打印此anr
ActivityThread: Service com.sdk.coolfar_sdk.MyService has leaked ServiceConnection com.sdk.keepbackground.work.AbsWorkService$1@6cc4ee0 that was originally bound here
android.app.ServiceConnectionLeaked: Service com.sdk.coolfar_sdk.MyService has leaked ServiceConnection com.sdk.keepbackground.work.AbsWorkService$1@6cc4ee0 that was originally bound here
at com.sdk.keepbackground.work.DaemonEnv.startServiceMayBind(DaemonEnv.java:63)
at com.sdk.keepbackground.work.AbsWorkService.onStart(AbsWorkService.java:79)
at com.sdk.coolfar_sdk.MyService.onStart(MyService.java:41)
at com.sdk.keepbackground.work.AbsWorkService.onStartCommand(AbsWorkService.java:63)
at com.sdk.coolfar_sdk.MyService.onStartCommand(MyService.java:35)
运行在5.1版本以下的安卓设备报错
2 android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2911)
3 ......
4 Caused by:
5 java.lang.NullPointerException:
6 android.content.ComponentName.(ComponentName.java:78)
7 android.content.Intent.(Intent.java:3836)
8 com.sdk.keepbackground.watch.WatchDogService.a(WatchDogService.java:90)
9 com.sdk.keepbackground.watch.WatchDogService.onStartCommand(WatchDogService.java:65)
10 android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2874)
11 android.app.ActivityThread.access$2300(ActivityThread.java:143)
12 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)
13 android.os.Handler.dispatchMessage(Handler.java:102)
14 android.os.Looper.loop(Looper.java:136)
15 android.app.ActivityThread.main(ActivityThread.java:5291)
16 java.lang.reflect.Method.invokeNative(Native Method)
17 java.lang.reflect.Method.invoke(Method.java:515)
18 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
19 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
20 dalvik.system.NativeStart.main(Native Method)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.