Uygulama satın almayı güçlendirdikten sonra ekstra koyabilirsiniz.
public static boolean isRootGiven(){
if (isRootAvailable()) {
Process process = null;
try {
process = Runtime.getRuntime().exec(new String[]{"su", "-c", "id"});
BufferedReader in = new BufferedReader(new InputStreamReader(process.getInputStream()));
String output = in.readLine();
if (output != null && output.toLowerCase().contains("uid=0"))
return true;
} catch (Exception e) {
e.printStackTrace();
} finally {
if (process != null)
process.destroy();
}
}
return false;
} if(isRootGiven())
Toast.makeText(getBaseContext(),"Ne ayaksın kardeşim?",Toast.LENGTH_SHORT).show();