Checking if the device is rooted
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
0
down vote
favorite
private static boolean isRootedOnSu()
Process process = null;
try
process = Runtime
.getRuntime()
.exec(new String"/system/xbin/which", "su");
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
return in.readLine() != null;
catch (Throwable t)
return false;
finally
if (process != null)
process.destroy();
here I'm looking for "su" file to decide if the device is rooted or not
java android
add a comment |Â
up vote
0
down vote
favorite
private static boolean isRootedOnSu()
Process process = null;
try
process = Runtime
.getRuntime()
.exec(new String"/system/xbin/which", "su");
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
return in.readLine() != null;
catch (Throwable t)
return false;
finally
if (process != null)
process.destroy();
here I'm looking for "su" file to decide if the device is rooted or not
java android
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
private static boolean isRootedOnSu()
Process process = null;
try
process = Runtime
.getRuntime()
.exec(new String"/system/xbin/which", "su");
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
return in.readLine() != null;
catch (Throwable t)
return false;
finally
if (process != null)
process.destroy();
here I'm looking for "su" file to decide if the device is rooted or not
java android
private static boolean isRootedOnSu()
Process process = null;
try
process = Runtime
.getRuntime()
.exec(new String"/system/xbin/which", "su");
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
return in.readLine() != null;
catch (Throwable t)
return false;
finally
if (process != null)
process.destroy();
here I'm looking for "su" file to decide if the device is rooted or not
java android
asked Mar 23 at 15:42
Egek92
308314
308314
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Â
draft saved
draft discarded
Â
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f190317%2fchecking-if-the-device-is-rooted%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password