This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean isRooted() { | |
return detectRootManagementApps() || detectPotentiallyDangerousApps() || checkForBinary("su") | |
|| checkForBinary("busybox") || checkForDangerousProps() || checkForRWPaths() | |
|| detectTestKeys() || checkSuExists() || checkForRootNative() || checkForMagiskBinary(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.fabric.sdk.android.services.common; | |
public class CommonUtils { | |
// ... | |
public static boolean isRooted(Context context) { | |
boolean isEmulator = isEmulator(context); | |
String buildTags = Build.TAGS; | |
if (!isEmulator && buildTags != null && buildTags.contains("test-keys")) { | |
return true; | |
} else { |
NewerOlder