-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RootTools create zombie process #15
Comments
What does your code do, other than checking for root? The snippet you attached is not very informative. |
The purpose of that snippet is to check for Root without freezing the UI (from a secondary thread) on Activity.OnResume. The problem is that every check RootTools.isXxxx() create a few Zombie (process that are not terminate until a device reboot) regards, |
This issue has also been raised before on stackoverflow: http://stackoverflow.com/a/15485210/692167 Every time "su" is executed, it spawns a zombie process that survives the application and grows in memory allocation. Ouch! |
the solution is simple yet powerful: start your own custom su daemon :) https://github.com/efidroid/android_system_extras_su/commits/master |
config : RootTools 3.4 on GT-S5830i android 2.3.6.
I assume this is related to http://bugs.java.com/view_bug.do?bug_id=6474073
Code:
after a few run:
adb shell ps
The text was updated successfully, but these errors were encountered: