MCPcopy Create free account
hub / github.com/afkT/DevUtils / isGrantedRoot

Method isGrantedRoot

lib/DevApp/src/main/java/dev/utils/app/ADBUtils.java:69–71  ·  view source on GitHub ↗

判断 APP 是否授权 Root 权限 @return true yes, false no

()

Source from the content-addressed store, hash-verified

67 * @return {@code true} yes, {@code false} no
68 */
69 public static boolean isGrantedRoot() {
70 return ShellUtils.execCmd("exit", true).isSuccessWithoutErrorOutput();
71 }
72
73 // ==========
74 // = 应用管理 =

Callers

nothing calls this directly

Calls 2

execCmdMethod · 0.95

Tested by

no test coverage detected