We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50c9e90 commit 0c5a614Copy full SHA for 0c5a614
lib/utilcode/src/main/java/com/blankj/utilcode/util/AppUtils.java
@@ -108,11 +108,7 @@ public static boolean isAppInstalled(final String pkgName) {
108
*/
109
public static boolean isAppRoot() {
110
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;
+ return result.result == 0;
116
}
117
118
/**
0 commit comments