Skip to content

NativeSubprocess is a linux native process for android bridge 。

License

Notifications You must be signed in to change notification settings

GDee/NativeSubprocess

 
 

Repository files navigation

NativeSubprocess is a linux native process for android bridge。

Usage

it creates a child process by NDK calling linux fork function. callback your android java code run in the child process inside. Such as Watchdog (sample ProcessWatcher) to monitor your android app service, call up the customer satisfaction survey feedback page (sample UninstallWatcher) when uninstalling your applications.

How to use

  1. copy com.droidwolf.nativesubprocess package to your project;
  2. copy libsubprocess.so library to your libs/armeabi project directory.
  3. implements Subprocess class and override runOnSubprocess function.
  4. Finally, create your child process call by Subprocess.create function.

中文描述 安全软件卸载后调出浏览器苦苦哀求"主人,为什么要抛弃我..."页面是怎么做到的?service经常莫名挂了肿么办?用 NativeSubprocess一切都很简单。

NativeSubprocess 是一个可以让你在android 程序中创建linux子进程并执行你的java代码的so库。由于市面上典型的内存清理工具值清理apk 包关联的进程,而不会处理linux原生进程,所以NativeSubprocess 可以做什么您懂滴!

不详细介绍,有兴趣的请看两个典型应用场景

  1. 进程监控 ProcessWatcher
  2. 卸载反馈 UninstallWatcher

Authors

droidwolf droidwolf2010@gmail.com

License

Apache License, Version 2.0

About

NativeSubprocess is a linux native process for android bridge 。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 66.8%
  • C 21.0%
  • C++ 6.1%
  • Makefile 6.1%