以下功能实现整合在
Android保活/拉活代码实现笔记
https://www.jianshu.com/p/ce60fcedd3d6
代码下载地址见文末
Low Memory Killer的原理
http://www.cnblogs.com/angeldevil/archive/2013/05/21/3090872.html
1.单/双守护进程保活
http://blog.csdn.net/andrexpert/article/details/53485360
核心:通过两个进程互相拉起
缺点:5.0以上没有用,杀掉的是一整个进程组
2.native保活
http://blog.csdn.net/marswin89/article/details/50899838
https://github.com/Coolerfall/Android-AppDaemon
核心:native(其实我并不是很懂,但5.0+无效)
3.前台Service+1像素通知+后台静默播放音乐
http://blog.csdn.net/andrexpert/article/details/75045678
核心:降低oom_adj值降低被LMK干掉的几率
亲测5.0+一键清理杀不掉,厂商杀被ko
- JobScheduler+第三方推送(复活)
http://blog.csdn.net/andrexpert/article/details/75174586
核心:通过某种方式唤醒
JobScheduler运行原理/机制解析
http://blog.csdn.net/zhangyongfeiyong/article/details/52130413
bugly出品Android进程保活招式大全
http://dev.qq.com/topic/57ac4a0ea374c75371c08ce8
另外一个保活综述
http://www.jianshu.com/p/63aafe3c12af
那些年Android黑科技①:只要活着,就有希望
https://www.jianshu.com/p/cb2deed0f2d8
Android Notification 补充 - NotificationListenerService
https://www.jianshu.com/p/4c50078127b3
Android之使用NotificationListenerService使得自己的应用不被杀及其源码分析
http://blog.csdn.net/zhangyongfeiyong/article/details/52279742
论Android应用进程长存的可行性
http://blog.csdn.net/aigestudio/article/details/51348408
NotificationListenerService的那些事儿
https://www.jianshu.com/p/981e7de2c7be
Android进程保活的一般套路
https://www.jianshu.com/p/1da4541b70ad
良心推荐分享两个个github的方案
详细的介绍了以上套路
https://github.com/xingda920813/HelloDaemon
Android进程保活实践
https://mp.weixin.qq.com/s/6w0tMtDA9kPwo0E9xq_BsA