Comments (4)
What does your code do, other than checking for root? The snippet you attached is not very informative.
from roottools.
The purpose of that snippet is to check for Root without freezing the UI (from a secondary thread) on Activity.OnResume.
If the device got Root, I finish() the current activity.
The problem is that every check RootTools.isXxxx() create a few Zombie (process that are not terminate until a device reboot)
Thoses Zombie use all the RAM memory of the device until the point when the device completly stop being responsive.
regards,
from roottools.
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!
from roottools.
the solution is simple yet powerful: start your own custom su daemon :)
this way you only need to show the root confirmation dialog once every reboot and you can keep a list of pid's in memory which you can retrieve even when your app process got killed by a task manager:
https://github.com/efidroid/android_system_extras_su/commits/master
from roottools.
Related Issues (20)
- Install "Aptoide" HOT 1
- Crash when Shell run HOT 3
- Root tool
- [email protected] HOT 1
- New
- is still alive the project?
- RootTools
- Apple
- __Originally posted by @jackiebrewster307 in https://github.com/IdeasOnCanvas/MNDocumentController/issues/1__
- Apple root HOT 1
- Apple root iPhone HOT 1
- save
- Roottools HOT 1
- How to unlock bootloader and on stylo 6???
- Root HOT 1
- Vivo
- Help me HOT 1
- .
- Permission
- I'm using Castify
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from roottools.