Skip to content

Commit 0c5a614

Browse files
committed
see 05/07 log
1 parent 50c9e90 commit 0c5a614

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/utilcode/src/main/java/com/blankj/utilcode/util/AppUtils.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ public static boolean isAppInstalled(final String pkgName) {
108108
*/
109109
public static boolean isAppRoot() {
110110
ShellUtils.CommandResult result = UtilsBridge.execCmd("echo root", true);
111-
if (result.result == 0) return true;
112-
if (result.errorMsg != null) {
113-
Log.d("AppUtils", "isAppRoot() called" + result.errorMsg);
114-
}
115-
return false;
111+
return result.result == 0;
116112
}
117113

118114
/**

0 commit comments

Comments
 (0)