added multiple root-detect options

This commit is contained in:
Nathan Freitas 2012-01-13 19:02:55 -05:00
parent 0ada0dcd3b
commit c23c7b5217
1 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,13 @@ public class TorServiceUtils implements TorServiceConstants {
try { try {
// Check if Superuser.apk exists // Check if Superuser.apk exists
//File file = new File("/system/app/Superuser.apk"); File fileSU = new File("/system/app/Superuser.apk");
if (fileSU.exists())
return true;
fileSU = new File("/system/bin/su");
if (fileSU.exists())
return true;
//Check for 'su' binary //Check for 'su' binary
String[] cmd = {"which su"}; String[] cmd = {"which su"};