Skip to content

如何尽量保证app不被系统或第三方app杀死

Notifications You must be signed in to change notification settings

licheedev/AndroidDaemon

 
 

Repository files navigation

如何尽量保证app不被系统或第三方app杀死

1、使用linux c 编写jni代码 fork 出一个进程用来在间隔一定时间尝试启动指定的服务进程。(对小米手机无效)

2、在service上标识 android:process=":daemon"为服务指定进程名,可以在设置->应用->正在运行,显示为多个进程,类似微信、sina微博

3、各服务间可以相互监视,相互启动。

4、项目中使用的开源库: https://github.com/Coolerfall/Android-AppDaemon.git

About

如何尽量保证app不被系统或第三方app杀死

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 58.3%
  • C 21.4%
  • Java 20.3%