@Test public void testDetectRootManagementApps() throws Exception { RootBeer rootBeer = new RootBeer(getMockedContext(null)); rootBeer.setLogging(false); assertFalse(rootBeer.detectRootManagementApps()); rootBeer = new RootBeer(getMockedContext(Const.knownRootAppsPackages[0])); rootBeer.setLogging(false); assertTrue(rootBeer.detectRootManagementApps()); }
public boolean detectRootManagementApps() { return detectRootManagementApps(null); }
RootBeer { public boolean detectRootManagementApps() { return detectRootManagementApps(null); } }
RootBeer { public boolean detectRootManagementApps() { return detectRootManagementApps(null); } RootBeer(Context context); }
RootBeer { public boolean detectRootManagementApps() { return detectRootManagementApps(null); } RootBeer(Context context); boolean isRooted(); @Deprecated boolean isRootedWithoutBusyBoxCheck(); boolean isRootedWithBusyBoxCheck(); boolean detectTestKeys(); boolean detectRootManagementApps(); boolean detectRootManagementApps(String[] additionalRootManagementApps); boolean detectPotentiallyDangerousApps(); boolean detectPotentiallyDangerousApps(String[] additionalDangerousApps); boolean detectRootCloakingApps(); boolean detectRootCloakingApps(String[] additionalRootCloakingApps); boolean checkForSuBinary(); boolean checkForMagiskBinary(); boolean checkForBusyBoxBinary(); boolean checkForBinary(String filename); void setLogging(boolean logging); boolean checkForDangerousProps(); boolean checkForRWPaths(); boolean checkSuExists(); boolean checkForNativeLibraryReadAccess(); boolean canLoadNativeLibrary(); boolean checkForRootNative(); }
RootBeer { public boolean detectRootManagementApps() { return detectRootManagementApps(null); } RootBeer(Context context); boolean isRooted(); @Deprecated boolean isRootedWithoutBusyBoxCheck(); boolean isRootedWithBusyBoxCheck(); boolean detectTestKeys(); boolean detectRootManagementApps(); boolean detectRootManagementApps(String[] additionalRootManagementApps); boolean detectPotentiallyDangerousApps(); boolean detectPotentiallyDangerousApps(String[] additionalDangerousApps); boolean detectRootCloakingApps(); boolean detectRootCloakingApps(String[] additionalRootCloakingApps); boolean checkForSuBinary(); boolean checkForMagiskBinary(); boolean checkForBusyBoxBinary(); boolean checkForBinary(String filename); void setLogging(boolean logging); boolean checkForDangerousProps(); boolean checkForRWPaths(); boolean checkSuExists(); boolean checkForNativeLibraryReadAccess(); boolean canLoadNativeLibrary(); boolean checkForRootNative();  }