Giter VIP home page Giter VIP logo

zombie_buster's Introduction

Zombie Buster

What is Zombie Buster?

Zombie buster is simple bash script to monitoring your proscesses, then killing zombie proscess when it found immediately. This scripts are very useful if you're using ROM based on JB 4.3, when it has annoying bug. The bug is, your system will spawn another system_server PID, where system_server should spawn once every boot, and one system_server is just enough. But in this case, somehow system_server will be spawned and multiple itself, which make your system become unresponsive, because your available memory consumed by those system_server-es.

What do you need?

System requirements

  • Busybox-ed ROM
  • ROOT-ed ROM
  • ROM that support init.d

How does it works?

These scripts has its own job. First find_zombie will watching your system process, and logging the result to /data/find_zombie.log. Second script is trigger_zb, this script will watching /data/find_zombie.log, when zombie process(es) has found, it will tell the main script to kill them. Last script is zombie_killer, this scipt won't execute any command untill trigger_zb tell it that zombie process has found and need to be killed.

How to install Zombie Buster?

Place every scripts to its place.

  • ./system/xbin/find_zombie -> /system/xbin/find_zombie
  • ./system/xbin/trigger_zb -> /system/xbin/trigger_zb
  • ./system/xbin/zombie_killer -> /system/xbin/zombie_killer
  • ./system/etc/init.d/90zombie_buster -> /system/etc/init.d/90zombie_buster

You can use adb to install these scripts

$ adb root
$ adb remount
$ adb push ./system/xbin/find_zombie /system/xbin/find_zombie
$ adb push ./system/xbin/trigger_zb /system/xbin/trigger_zb
$ adb push ./system/xbin/zombie_killer /system/xbin/zombie_killer
$ adb push ./system/etc/init.d/90zombie_buster /system/etc/init.d/90zombie_buster

After pushing those scripts, make sure you have set the permission

$ adb shell
shell@android:/$ su
root@android:/# chmod 755 /system/xbin/find_zombie
root@android:/# chmod 755 /system/xbin/trigger_zb
root@android:/# chmod 755 /system/xbin/zombie_killer
root@android:/# chmod 755 /system/etc/init.d/90zombie_buster
root@android:/# exit
shell@android:/$ exit
$

Reboot your phone. And DONE!

zombie_buster's People

Contributors

omegahanggara avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.