Stericson / RootTools

RootTools Library
1.6k stars 484 forks source link

RootTools.isRootAvailable() may call Shell.startRootShell() unexpectedly #20

Closed funorpain closed 10 years ago

funorpain commented 10 years ago

RootTools.isRootAvailable() should not use su command. But Shell.startRootShell() may be called when stat command fails.

funorpain commented 10 years ago

When RootTools.isRootAvailable() is called, root permission request dialog may be shown(such as Samsung Note3). If I reject the request, it will be shown again because it calls RootTools.exists() several times.