Skip to content

Commit 45ab964

Browse files
authored
Merge pull request Blankj#114 from SubhrajyotiSen/patch-1
DeviceUtils: change method name to isDeviceRooted
2 parents 2d52faf + da81fbc commit 45ab964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utilcode/src/main/java/com/blankj/utilcode/utils/DeviceUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private DeviceUtils() {
3333
*
3434
* @return the boolean{@code true}: 是<br>{@code false}: 否
3535
*/
36-
public static boolean isDeviceRoot() {
36+
public static boolean isDeviceRooted() {
3737
String su = "su";
3838
String[] locations = {"/system/bin/", "/system/xbin/", "/sbin/", "/system/sd/xbin/", "/system/bin/failsafe/",
3939
"/data/local/xbin/", "/data/local/bin/", "/data/local/"};
@@ -238,4 +238,4 @@ public static void reboot2Recovery() {
238238
public static void reboot2Bootloader() {
239239
ShellUtils.execCmd("reboot bootloader", true);
240240
}
241-
}
241+
}

0 commit comments

Comments
 (0)